@everymatrix/casino-sort 1.29.0 → 1.29.4

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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * https://svelte.dev/docs#run-time-svelte-onmount
10
10
  */
11
- function v(t){(function(){if(!y)throw new Error("Function called outside component initialization");return y})().$$.on_mount.push(t)}const S=[],H=[];let A=[];const T=[],B=Promise.resolve();let _=!1;function w(t){A.push(t)}
11
+ function v(t){(function(){if(!y)throw new Error("Function called outside component initialization");return y})().$$.on_mount.push(t)}const S=[],A=[];let T=[];const H=[],B=Promise.resolve();let _=!1;function w(t){T.push(t)}
12
12
  // flush() calls callbacks in this order:
13
13
  // 1. All beforeUpdate callbacks, in order: parents before children
14
14
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -37,16 +37,16 @@ if(0!==L)return;const t=y;do{
37
37
  // and update components
38
38
  try{for(;L<S.length;){const t=S[L];L++,E(t),I(t.$$)}}catch(t){
39
39
  // reset dirty state to not end up in a deadlocked state and then rethrow
40
- throw S.length=0,L=0,t}for(E(null),S.length=0,L=0;H.length;)H.pop()();
40
+ throw S.length=0,L=0,t}for(E(null),S.length=0,L=0;A.length;)A.pop()();
41
41
  // then, once components are updated, call
42
42
  // afterUpdate functions. This may cause
43
43
  // subsequent updates...
44
- for(let t=0;t<A.length;t+=1){const e=A[t];P.has(e)||(
44
+ for(let t=0;t<T.length;t+=1){const e=T[t];P.has(e)||(
45
45
  // ...so guard against infinite loops
46
- P.add(e),e())}A.length=0}while(S.length);for(;T.length;)T.pop()();_=!1,P.clear(),E(t)}function I(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(w)}}
46
+ P.add(e),e())}T.length=0}while(S.length);for(;H.length;)H.pop()();_=!1,P.clear(),E(t)}function I(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(w)}}
47
47
  /**
48
48
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
49
- */const O=new Set;function C(t,e){const r=t.$$;null!==r.fragment&&(!function(t){const e=[],r=[];A.forEach((n=>-1===t.indexOf(n)?e.push(n):r.push(n))),r.forEach((t=>t())),A=e}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(e),
49
+ */const O=new Set;function C(t,e){const r=t.$$;null!==r.fragment&&(!function(t){const e=[],r=[];T.forEach((n=>-1===t.indexOf(n)?e.push(n):r.push(n))),r.forEach((t=>t())),T=e}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(e),
50
50
  // TODO null out other refs, including component.$$ (but need to
51
51
  // preserve final state?)
52
52
  r.on_destroy=r.fragment=null,r.ctx=[])}function M(t,e){-1===t.$$.dirty[0]&&(S.push(t),_||(_=!0,B.then(N)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function R(i,s,a,l,c,u,f,p=[-1]){const m=y;E(i);const g=i.$$={fragment:null,ctx:[],
@@ -87,12 +87,12 @@ if(!o(r))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return
87
87
  * @param {*=}value initial value
88
88
  * @param {StartStopNotifier=} start
89
89
  */
90
- function G(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
91
- const t=!D.length;for(const t of o)t[1](),D.push(t,e);if(t){for(let t=0;t<D.length;t+=2)D[t][0](D[t+1]);D.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&n&&(n(),n=null)}}}}function x(e,r,i){const a=!Array.isArray(e),l=a?[e]:e,h=r.length<2;return c=e=>{let i=!1;const c=[];let u=0,f=t;const p=()=>{if(u)return;f();const n=r(a?c[0]:c,e);h?e(n):f=o(n)?n:t},m=l.map(((t,e)=>s(t,(t=>{c[e]=t,u&=~(1<<e),i&&p()}),(()=>{u|=1<<e}))));return i=!0,p(),function(){n(m),f(),
90
+ function x(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
91
+ const t=!D.length;for(const t of o)t[1](),D.push(t,e);if(t){for(let t=0;t<D.length;t+=2)D[t][0](D[t+1]);D.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&n&&(n(),n=null)}}}}function G(e,r,i){const a=!Array.isArray(e),l=a?[e]:e,h=r.length<2;return c=e=>{let i=!1;const c=[];let u=0,f=t;const p=()=>{if(u)return;f();const n=r(a?c[0]:c,e);h?e(n):f=o(n)?n:t},m=l.map(((t,e)=>s(t,(t=>{c[e]=t,u&=~(1<<e),i&&p()}),(()=>{u|=1<<e}))));return i=!0,p(),function(){n(m),f(),
92
92
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
93
93
  // Callbacks might already be placed in the queue which doesn't know it should no longer
94
94
  // invoke this derived store.
95
- i=!1}},{subscribe:G(i,c).subscribe};var c}var F=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===k}(t)}
95
+ i=!1}},{subscribe:x(i,c).subscribe};var c}var F=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===k}(t)}
96
96
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
97
97
  (t)};var k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function $(t,e){return!1!==e.clone&&e.isMergeableObject(t)?X((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function j(t,e,r){return t.concat(e).map((function(t){return $(t,r)}))}function V(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function Z(t,e){try{return e in t}catch(t){return!1}}
98
98
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
@@ -251,12 +251,12 @@ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `
251
251
  // @generated from regex-gen.ts
252
252
  var dt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var bt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,yt=/^(@+)?(\+|#+)?[rs]?$/g,Et=/(\*)(0+)|(#+)(0+)|(0+)/g,vt=/^(0+)$/;function St(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(yt,(function(t,r,n){
253
253
  // @@@ case
254
- return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function Ht(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function At(t){
254
+ return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function At(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Tt(t){
255
255
  // Engineering
256
- var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!vt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Tt(t){var e=Ht(t);return e||{}}
256
+ var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!vt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Ht(t){var e=At(t);return e||{}}
257
257
  /**
258
258
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
259
- */function Bt(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=tt(tt(tt({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return tt(tt({},t),Tt(e))}),{}));continue;case"engineering":e=tt(tt(tt({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return tt(tt({},t),Tt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
259
+ */function Bt(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=tt(tt(tt({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return tt(tt({},t),Ht(e))}),{}));continue;case"engineering":e=tt(tt(tt({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return tt(tt({},t),Ht(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
260
260
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
261
261
  case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;
262
262
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
@@ -272,7 +272,7 @@ return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDi
272
272
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
273
273
  "w"===i?e=tt(tt({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=tt(tt({},e),St(i)))}
274
274
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
275
- else if(yt.test(o.stem))e=tt(tt({},e),St(o.stem));else{var s=Ht(o.stem);s&&(e=tt(tt({},e),s));var a=At(o.stem);a&&(e=tt(tt({},e),a))}}return e}
275
+ else if(yt.test(o.stem))e=tt(tt({},e),St(o.stem));else{var s=At(o.stem);s&&(e=tt(tt({},e),s));var a=Tt(o.stem);a&&(e=tt(tt({},e),a))}}return e}
276
276
  // @generated from time-data-gen.ts
277
277
  // prettier-ignore
278
278
  var _t,wt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
@@ -299,14 +299,14 @@ e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12"
299
299
  var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(wt[r||""]||wt[n||""]||wt["".concat(n,"-001")]||wt["001"])[0]}var Lt=new RegExp("^".concat(pt.source,"*")),Nt=new RegExp("".concat(pt.source,"*$"));function It(t,e){return{start:t,end:e}}
300
300
  // #region Ponyfills
301
301
  // Consolidate these variables up top for easier toggling during debugging
302
- var Ot=!!String.prototype.startsWith,Ct=!!String.fromCodePoint,Mt=!!Object.fromEntries,Rt=!!String.prototype.codePointAt,Ut=!!String.prototype.trimStart,Dt=!!String.prototype.trimEnd,Gt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},xt=!0;try{
302
+ var Ot=!!String.prototype.startsWith,Ct=!!String.fromCodePoint,Mt=!!Object.fromEntries,Rt=!!String.prototype.codePointAt,Ut=!!String.prototype.trimStart,Dt=!!String.prototype.trimEnd,xt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Gt=!0;try{
303
303
  /**
304
304
  * legacy Edge or Xbox One browser
305
305
  * Unicode flag support: supported
306
306
  * Pattern_Syntax support: not supported
307
307
  * See https://github.com/formatjs/formatjs/issues/2822
308
308
  */
309
- xt="a"===(null===(_t=Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===_t?void 0:_t[0])}catch(t){xt=!1}var Ft,kt=Ot?// Native
309
+ Gt="a"===(null===(_t=Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===_t?void 0:_t[0])}catch(t){Gt=!1}var Ft,kt=Ot?// Native
310
310
  function(t,e,r){return t.startsWith(e,r)}:// For IE11
311
311
  function(t,e,r){return t.slice(r,r+e.length)===e},$t=Ct?String.fromCodePoint:// IE11
312
312
  function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},jt=
@@ -322,7 +322,7 @@ function(t){return t.replace(Nt,"")};
322
322
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
323
323
  function Xt(t,e){return new RegExp(t,e)}
324
324
  // #endregion
325
- if(xt){
325
+ if(Gt){
326
326
  // Native
327
327
  var Kt=Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ft=function(t,e){var r;return Kt.lastIndex=e,null!==(r=Kt.exec(t)[1])&&void 0!==r?r:""}}else
328
328
  // IE11
@@ -464,7 +464,7 @@ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.err
464
464
  // Keep track of the existing selectors
465
465
  a.add(l),
466
466
  // Prep next selector clause.
467
- this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,h=o.location}return 0===s.length?this.error("select"===e?J.EXPECT_SELECT_ARGUMENT_SELECTOR:J.EXPECT_PLURAL_ARGUMENT_SELECTOR,It(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(J.MISSING_OTHER_CLAUSE,It(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=It(n,this.clonePosition());return o?Gt(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
467
+ this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,h=o.location}return 0===s.length?this.error("select"===e?J.EXPECT_SELECT_ARGUMENT_SELECTOR:J.EXPECT_PLURAL_ARGUMENT_SELECTOR,It(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(J.MISSING_OTHER_CLAUSE,It(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=It(n,this.clonePosition());return o?xt(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
468
468
  // This is much faster than `Object.assign` or spread.
469
469
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
470
470
  /**
@@ -576,17 +576,17 @@ this.formats=ye(t.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.
576
576
  // Default format options used as the prototype of the `formats` provided to the
577
577
  // constructor. These are used when constructing the internal Intl.NumberFormat
578
578
  // and Intl.DateTimeFormat instances.
579
- t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const Se={},He=(t,e,r)=>r?(e in Se||(Se[e]={}),t in Se[e]||(Se[e][t]=r),r):r,Ae=(t,e)=>{if(null==e)return;if(e in Se&&t in Se[e])return Se[e][t];const r=Ke(e);for(let n=0;n<r.length;n++){const o=we(r[n],t);if(o)return He(t,e,o)}};let Te;const Be=G({});function _e(t){return t in Te}function we(t,e){if(!_e(t))return null;const r=function(t){return Te[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Pe(t,...e){delete Se[t],Be.update((r=>(r[t]=K.all([r[t]||{},...e]),r)))}x([Be],(([t])=>Object.keys(t))),Be.subscribe((t=>Te=t));const Le={};function Ne(t){return Le[t]}function Ie(t){return null!=t&&Ke(t).some((t=>{var e;return null==(e=Ne(t))?void 0:e.size}))}function Oe(t,e){const r=Promise.all(e.map((e=>(function(t,e){Le[t].delete(e),0===Le[t].size&&delete Le[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Pe(t,...e)))}const Ce={};function Me(t){if(!Ie(t))return t in Ce?Ce[t]:Promise.resolve();const e=function(t){return Ke(t).map((t=>{const e=Ne(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Ce[t]=Promise.all(e.map((([t,e])=>Oe(t,e)))).then((()=>{if(Ie(t))return Me(t);delete Ce[t]})),Ce[t]}const Re={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Ue(){return Re}const De=G(!1);var Ge=Object.defineProperty,xe=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ve=(t,e,r)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let Ze;const ze=G(null);function Xe(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Ke(t,e=Ue().fallbackLocale){const r=Xe(t);return e?[...new Set([...r,...Xe(e)])]:r}function Ye(){return null!=Ze?Ze:void 0}ze.subscribe((t=>{Ze=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const We=(Je=((t,e)=>{for(var r in e||(e={}))$e.call(e,r)&&Ve(t,r,e[r]);if(ke)for(var r of ke(e))je.call(e,r)&&Ve(t,r,e[r]);return t})({},ze),xe(Je,Fe({set:t=>{if(t&&function(t){if(null==t)return;const e=Ke(t);for(let t=0;t<e.length;t++){const r=e[t];if(_e(r))return r}}(t)&&Ie(t)){const{loadingDelay:e}=Ue();let r;return"undefined"!=typeof window&&null!=Ye()&&e?r=window.setTimeout((()=>De.set(!0)),e):De.set(!0),Me(t).then((()=>{ze.set(t)})).finally((()=>{clearTimeout(r),De.set(!1)}))}return ze.set(t)}})));var Je;const Qe=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var qe=Object.defineProperty,tr=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,nr=(t,e,r)=>e in t?qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,or=(t,e)=>{for(var r in e||(e={}))er.call(e,r)&&nr(t,r,e[r]);if(tr)for(var r of tr(e))rr.call(e,r)&&nr(t,r,e[r]);return t},ir=(t,e)=>{var r={};for(var n in t)er.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&tr)for(var n of tr(t))e.indexOf(n)<0&&rr.call(t,n)&&(r[n]=t[n]);return r};const sr=(t,e)=>{const{formats:r}=Ue();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},ar=Qe((t=>{var e=t,{locale:r,format:n}=e,o=ir(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=sr("number",n)),new Intl.NumberFormat(r,o)})),lr=Qe((t=>{var e=t,{locale:r,format:n}=e,o=ir(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=sr("date",n):0===Object.keys(o).length&&(o=sr("date","short")),new Intl.DateTimeFormat(r,o)})),hr=Qe((t=>{var e=t,{locale:r,format:n}=e,o=ir(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=sr("time",n):0===Object.keys(o).length&&(o=sr("time","short")),new Intl.DateTimeFormat(r,o)})),cr=Qe((
579
+ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const Se={},Ae=(t,e,r)=>r?(e in Se||(Se[e]={}),t in Se[e]||(Se[e][t]=r),r):r,Te=(t,e)=>{if(null==e)return;if(e in Se&&t in Se[e])return Se[e][t];const r=Ke(e);for(let n=0;n<r.length;n++){const o=we(r[n],t);if(o)return Ae(t,e,o)}};let He;const Be=x({});function _e(t){return t in He}function we(t,e){if(!_e(t))return null;const r=function(t){return He[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Pe(t,...e){delete Se[t],Be.update((r=>(r[t]=K.all([r[t]||{},...e]),r)))}G([Be],(([t])=>Object.keys(t))),Be.subscribe((t=>He=t));const Le={};function Ne(t){return Le[t]}function Ie(t){return null!=t&&Ke(t).some((t=>{var e;return null==(e=Ne(t))?void 0:e.size}))}function Oe(t,e){const r=Promise.all(e.map((e=>(function(t,e){Le[t].delete(e),0===Le[t].size&&delete Le[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Pe(t,...e)))}const Ce={};function Me(t){if(!Ie(t))return t in Ce?Ce[t]:Promise.resolve();const e=function(t){return Ke(t).map((t=>{const e=Ne(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Ce[t]=Promise.all(e.map((([t,e])=>Oe(t,e)))).then((()=>{if(Ie(t))return Me(t);delete Ce[t]})),Ce[t]}const Re={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Ue(){return Re}const De=x(!1);var xe=Object.defineProperty,Ge=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ve=(t,e,r)=>e in t?xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let Ze;const ze=x(null);function Xe(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Ke(t,e=Ue().fallbackLocale){const r=Xe(t);return e?[...new Set([...r,...Xe(e)])]:r}function Ye(){return null!=Ze?Ze:void 0}ze.subscribe((t=>{Ze=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const We=(Je=((t,e)=>{for(var r in e||(e={}))$e.call(e,r)&&Ve(t,r,e[r]);if(ke)for(var r of ke(e))je.call(e,r)&&Ve(t,r,e[r]);return t})({},ze),Ge(Je,Fe({set:t=>{if(t&&function(t){if(null==t)return;const e=Ke(t);for(let t=0;t<e.length;t++){const r=e[t];if(_e(r))return r}}(t)&&Ie(t)){const{loadingDelay:e}=Ue();let r;return"undefined"!=typeof window&&null!=Ye()&&e?r=window.setTimeout((()=>De.set(!0)),e):De.set(!0),Me(t).then((()=>{ze.set(t)})).finally((()=>{clearTimeout(r),De.set(!1)}))}return ze.set(t)}})));var Je;const Qe=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var qe=Object.defineProperty,tr=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,nr=(t,e,r)=>e in t?qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,or=(t,e)=>{for(var r in e||(e={}))er.call(e,r)&&nr(t,r,e[r]);if(tr)for(var r of tr(e))rr.call(e,r)&&nr(t,r,e[r]);return t},ir=(t,e)=>{var r={};for(var n in t)er.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&tr)for(var n of tr(t))e.indexOf(n)<0&&rr.call(t,n)&&(r[n]=t[n]);return r};const sr=(t,e)=>{const{formats:r}=Ue();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},ar=Qe((t=>{var e=t,{locale:r,format:n}=e,o=ir(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=sr("number",n)),new Intl.NumberFormat(r,o)})),lr=Qe((t=>{var e=t,{locale:r,format:n}=e,o=ir(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=sr("date",n):0===Object.keys(o).length&&(o=sr("date","short")),new Intl.DateTimeFormat(r,o)})),hr=Qe((t=>{var e=t,{locale:r,format:n}=e,o=ir(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=sr("time",n):0===Object.keys(o).length&&(o=sr("time","short")),new Intl.DateTimeFormat(r,o)})),cr=Qe((
580
580
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
581
- (t,e=Ye())=>new ve(t,e,Ue().formats,{ignoreTag:Ue().ignoreTag}))),ur=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=Ye(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ae(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(i=null!=(o=null==(n=(r=Ue()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:h}))?o:h)?i:t;if(!a)return c;let u=c;try{u=cr(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u},fr=(t,e)=>((t={})=>{var e=t,{locale:r=Ye()}=e,n=ir(e,["locale"]);return hr(or({locale:r},n))})(e).format(t),pr=(t,e)=>((t={})=>{var e=t,{locale:r=Ye()}=e,n=ir(e,["locale"]);return lr(or({locale:r},n))})(e).format(t),mr=(t,e)=>((t={})=>{var e=t,{locale:r=Ye()}=e,n=ir(e,["locale"]);return ar(or({locale:r},n))})(e).format(t),gr=(t,e=Ye())=>Ae(t,e),dr=x([We,Be],(()=>ur));function br(t,e){Pe(t,e)}x([We],(()=>fr)),x([We],(()=>pr)),x([We],(()=>mr)),x([We,Be],(()=>gr));const yr={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}};
581
+ (t,e=Ye())=>new ve(t,e,Ue().formats,{ignoreTag:Ue().ignoreTag}))),ur=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=Ye(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Te(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(i=null!=(o=null==(n=(r=Ue()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:h}))?o:h)?i:t;if(!a)return c;let u=c;try{u=cr(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u},fr=(t,e)=>((t={})=>{var e=t,{locale:r=Ye()}=e,n=ir(e,["locale"]);return hr(or({locale:r},n))})(e).format(t),pr=(t,e)=>((t={})=>{var e=t,{locale:r=Ye()}=e,n=ir(e,["locale"]);return lr(or({locale:r},n))})(e).format(t),mr=(t,e)=>((t={})=>{var e=t,{locale:r=Ye()}=e,n=ir(e,["locale"]);return ar(or({locale:r},n))})(e).format(t),gr=(t,e=Ye())=>Te(t,e),dr=G([We,Be],(()=>ur));function br(t,e){Pe(t,e)}G([We],(()=>fr)),G([We],(()=>pr)),G([We],(()=>mr)),G([We,Be],(()=>gr));const yr={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},"pt-br":{sortby:"Organizar por:",all:"Todos",az:"A-Z",newest:"Mais recente",hottest:"mais quente"},"es-mx":{sortby:"Ordenar Por:",all:"Todo",az:"A-Z",newest:"Más nuevos",hottest:"Más calientes"}};
582
582
  /* src/CasinoSort.svelte generated by Svelte v3.59.2 */function Er(t,e,r){const n=t.slice();return n[23]=e[r],n}
583
583
  // (114:4) {#if !isLoading}
584
- function vr(t){let e,r,n,o,i,s,b,y,E,v,S,H,A,T,B,_,w,P,L,N,I,O,C,M,R,U,D,G,x=/*$_*/t[4]("sortby")+"",F=/*vendorSortingBy*/(t[3]||/*$_*/t[4]("all"))+"",k=Object.values(/*vendorMap*/t[5]),$=[];for(let e=0;e<k.length;e+=1)$[e]=Sr(Er(t,k,e));return{c(){e=c("div"),r=c("div"),n=c("div"),o=u("svg"),i=u("g"),s=u("path"),b=u("path"),y=u("path"),E=p(),v=c("div"),S=c("span"),H=f(x),A=p(),T=c("div"),B=c("span"),_=f(F),w=p(),P=c("span"),L=u("svg"),N=u("path"),C=p(),M=c("div"),R=c("ul");for(let t=0;t<$.length;t+=1)$[t].c();g(s,"id","Path_5267"),g(s,"data-name","Path 5267"),g(s,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),g(s,"transform","translate(-206.448 0)"),g(s,"fill","#fff"),g(b,"id","Path_5268"),g(b,"data-name","Path 5268"),g(b,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),g(b,"transform","translate(0 0)"),g(b,"fill","#fff"),g(y,"id","Path_5269"),g(y,"data-name","Path 5269"),g(y,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),g(y,"transform","translate(-412.896 0)"),g(y,"fill","#fff"),g(i,"id","sortby"),g(i,"transform","translate(-306 -342)"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","20"),g(o,"height","20"),g(o,"viewBox","0 0 26.003 22.819"),g(S,"class","SorterName"),g(T,"class","SorterValueContainer"),g(v,"class","SorterTextContainer"),g(n,"class","SorterMainArea"),g(N,"id","arrow"),g(N,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),g(N,"transform","translate(-274.511 -441.088)"),g(N,"fill","#d1d1d1"),g(L,"xmlns","http://www.w3.org/2000/svg"),g(L,"width","14"),g(L,"height","6.835"),g(L,"viewBox","0 0 14 6.835"),g(P,"class",I="TriangleInactive "+(/*isSorterActive*/t[1]?"TriangleActive":"")),g(r,"class",O="SorterSelector "+(/*isSorterActive*/t[1]?"SorterSelectorOpen":"")),g(R,"class","SorterDropdown"),g(M,"class",U="SorterDropdownContainer "+(/*isSorterActive*/t[1]?"SorterOpen":"")),g(e,"class","SorterContainer")},m(h,c){l(h,e,c),a(e,r),a(r,n),a(n,o),a(o,i),a(i,s),a(i,b),a(i,y),a(n,E),a(n,v),a(v,S),a(S,H),a(v,A),a(v,T),a(T,B),a(B,_),a(r,w),a(r,P),a(P,L),a(L,N),a(e,C),a(e,M),a(M,R);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(R,null);D||(G=m(r,"click",/*click_handler*/t[13]),D=!0)},p(t,e){if(/*$_*/16&e&&x!==(x=/*$_*/t[4]("sortby")+"")&&d(H,x),/*vendorSortingBy, $_*/24&e&&F!==(F=/*vendorSortingBy*/(t[3]||/*$_*/t[4]("all"))+"")&&d(_,F),/*isSorterActive*/2&e&&I!==(I="TriangleInactive "+(/*isSorterActive*/t[1]?"TriangleActive":""))&&g(P,"class",I),/*isSorterActive*/2&e&&O!==(O="SorterSelector "+(/*isSorterActive*/t[1]?"SorterSelectorOpen":""))&&g(r,"class",O),/*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/120&e){let r;for(k=Object.values(/*vendorMap*/t[5]),r=0;r<k.length;r+=1){const n=Er(t,k,r);$[r]?$[r].p(n,e):($[r]=Sr(n),$[r].c(),$[r].m(R,null))}for(;r<$.length;r+=1)$[r].d(1);$.length=k.length}/*isSorterActive*/2&e&&U!==(U="SorterDropdownContainer "+(/*isSorterActive*/t[1]?"SorterOpen":""))&&g(M,"class",U)},d(t){t&&h(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}($,t),D=!1,G()}}}
584
+ function vr(t){let e,r,n,o,i,s,b,y,E,v,S,A,T,H,B,_,w,P,L,N,I,O,C,M,R,U,D,x,G=/*$_*/t[4]("sortby")+"",F=/*vendorSortingBy*/(t[3]||/*$_*/t[4]("all"))+"",k=Object.values(/*vendorMap*/t[5]),$=[];for(let e=0;e<k.length;e+=1)$[e]=Sr(Er(t,k,e));return{c(){e=c("div"),r=c("div"),n=c("div"),o=u("svg"),i=u("g"),s=u("path"),b=u("path"),y=u("path"),E=p(),v=c("div"),S=c("span"),A=f(G),T=p(),H=c("div"),B=c("span"),_=f(F),w=p(),P=c("span"),L=u("svg"),N=u("path"),C=p(),M=c("div"),R=c("ul");for(let t=0;t<$.length;t+=1)$[t].c();g(s,"id","Path_5267"),g(s,"data-name","Path 5267"),g(s,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),g(s,"transform","translate(-206.448 0)"),g(s,"fill","#fff"),g(b,"id","Path_5268"),g(b,"data-name","Path 5268"),g(b,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),g(b,"transform","translate(0 0)"),g(b,"fill","#fff"),g(y,"id","Path_5269"),g(y,"data-name","Path 5269"),g(y,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),g(y,"transform","translate(-412.896 0)"),g(y,"fill","#fff"),g(i,"id","sortby"),g(i,"transform","translate(-306 -342)"),g(o,"xmlns","http://www.w3.org/2000/svg"),g(o,"width","20"),g(o,"height","20"),g(o,"viewBox","0 0 26.003 22.819"),g(S,"class","SorterName"),g(H,"class","SorterValueContainer"),g(v,"class","SorterTextContainer"),g(n,"class","SorterMainArea"),g(N,"id","arrow"),g(N,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),g(N,"transform","translate(-274.511 -441.088)"),g(N,"fill","#d1d1d1"),g(L,"xmlns","http://www.w3.org/2000/svg"),g(L,"width","14"),g(L,"height","6.835"),g(L,"viewBox","0 0 14 6.835"),g(P,"class",I="TriangleInactive "+(/*isSorterActive*/t[1]?"TriangleActive":"")),g(r,"class",O="SorterSelector "+(/*isSorterActive*/t[1]?"SorterSelectorOpen":"")),g(R,"class","SorterDropdown"),g(M,"class",U="SorterDropdownContainer "+(/*isSorterActive*/t[1]?"SorterOpen":"")),g(e,"class","SorterContainer")},m(h,c){l(h,e,c),a(e,r),a(r,n),a(n,o),a(o,i),a(i,s),a(i,b),a(i,y),a(n,E),a(n,v),a(v,S),a(S,A),a(v,T),a(v,H),a(H,B),a(B,_),a(r,w),a(r,P),a(P,L),a(L,N),a(e,C),a(e,M),a(M,R);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(R,null);D||(x=m(r,"click",/*click_handler*/t[13]),D=!0)},p(t,e){if(/*$_*/16&e&&G!==(G=/*$_*/t[4]("sortby")+"")&&d(A,G),/*vendorSortingBy, $_*/24&e&&F!==(F=/*vendorSortingBy*/(t[3]||/*$_*/t[4]("all"))+"")&&d(_,F),/*isSorterActive*/2&e&&I!==(I="TriangleInactive "+(/*isSorterActive*/t[1]?"TriangleActive":""))&&g(P,"class",I),/*isSorterActive*/2&e&&O!==(O="SorterSelector "+(/*isSorterActive*/t[1]?"SorterSelectorOpen":""))&&g(r,"class",O),/*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/120&e){let r;for(k=Object.values(/*vendorMap*/t[5]),r=0;r<k.length;r+=1){const n=Er(t,k,r);$[r]?$[r].p(n,e):($[r]=Sr(n),$[r].c(),$[r].m(R,null))}for(;r<$.length;r+=1)$[r].d(1);$.length=k.length}/*isSorterActive*/2&e&&U!==(U="SorterDropdownContainer "+(/*isSorterActive*/t[1]?"SorterOpen":""))&&g(M,"class",U)},d(t){t&&h(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}($,t),D=!1,x()}}}
585
585
  // (140:10) {#each Object.values(vendorMap) as sort}
586
- function Sr(t){let e,r,n,o,i,s,u,d,b,y,E,v,S=/*sort*/t[23]+"";function H(){/*click_handler_1*/
587
- return t[14](/*sort*/t[23])}return{c(){e=c("li"),r=c("label"),n=c("input"),i=p(),s=c("span"),u=p(),d=c("span"),b=f(S),y=p(),g(n,"type","radio"),g(n,"name","radio"),n.value=/*sort*/t[23],n.checked=o=/*vendorSortingBy*/t[3]==/*sort*/t[23]||/*vendorSortingBy*/null==t[3]&&/*sort*/t[23]==/*$_*/t[4]("all"),g(s,"class","SortersCheckmark"),g(r,"class","SorterLabel CustomRadioButton"),g(e,"class","SorterItem"),e.value=/*sort*/t[23]},m(t,o){l(t,e,o),a(e,r),a(r,n),a(r,i),a(r,s),a(r,u),a(r,d),a(d,b),a(e,y),E||(v=m(n,"click",H),E=!0)},p(e,r){t=e,/*vendorSortingBy, $_*/24&r&&o!==(o=/*vendorSortingBy*/t[3]==/*sort*/t[23]||/*vendorSortingBy*/null==t[3]&&/*sort*/t[23]==/*$_*/t[4]("all"))&&(n.checked=o)},d(t){t&&h(e),E=!1,v()}}}function Hr(e){let r;function n(t,e){if(!/*isLoading*/t[2])return vr}let o=n(e),i=o&&o(e);return{c(){r=c("div"),i&&i.c(),this.c=t},m(t,n){l(t,r,n),i&&i.m(r,null)
586
+ function Sr(t){let e,r,n,o,i,s,u,d,b,y,E,v,S=/*sort*/t[23]+"";function A(){/*click_handler_1*/
587
+ return t[14](/*sort*/t[23])}return{c(){e=c("li"),r=c("label"),n=c("input"),i=p(),s=c("span"),u=p(),d=c("span"),b=f(S),y=p(),g(n,"type","radio"),g(n,"name","radio"),n.value=/*sort*/t[23],n.checked=o=/*vendorSortingBy*/t[3]==/*sort*/t[23]||/*vendorSortingBy*/null==t[3]&&/*sort*/t[23]==/*$_*/t[4]("all"),g(s,"class","SortersCheckmark"),g(r,"class","SorterLabel CustomRadioButton"),g(e,"class","SorterItem"),e.value=/*sort*/t[23]},m(t,o){l(t,e,o),a(e,r),a(r,n),a(r,i),a(r,s),a(r,u),a(r,d),a(d,b),a(e,y),E||(v=m(n,"click",A),E=!0)},p(e,r){t=e,/*vendorSortingBy, $_*/24&r&&o!==(o=/*vendorSortingBy*/t[3]==/*sort*/t[23]||/*vendorSortingBy*/null==t[3]&&/*sort*/t[23]==/*$_*/t[4]("all"))&&(n.checked=o)},d(t){t&&h(e),E=!1,v()}}}function Ar(e){let r;function n(t,e){if(!/*isLoading*/t[2])return vr}let o=n(e),i=o&&o(e);return{c(){r=c("div"),i&&i.c(),this.c=t},m(t,n){l(t,r,n),i&&i.m(r,null)
588
588
  /*div_binding*/,e[15](r)},p(t,[e]){o===(o=n(t))&&i?i.p(t,e):(i&&i.d(1),i=o&&o(t),i&&(i.c(),i.m(r,null)))},i:t,o:t,d(t){t&&h(r),i&&i.d()
589
- /*div_binding*/,e[15](null)}}}function Ar(t,e,r){let n;var o,i;o=dr,i=t=>r(4,n=t),t.$$.on_destroy.push(s(o,i));let a,{lang:l=""}=e,{translationurl:h=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{categoryid:f=""}=e,p=!1,m=!0,g="",d="All";!function({withLocale:t,translations:e}){We.subscribe((r=>{null==r&&(Be.set(e),We.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
589
+ /*div_binding*/,e[15](null)}}}function Tr(t,e,r){let n;var o,i;o=dr,i=t=>r(4,n=t),t.$$.on_destroy.push(s(o,i));let a,{lang:l=""}=e,{translationurl:h=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{categoryid:f=""}=e,p=!1,m=!0,g="",d="All";!function({withLocale:t,translations:e}){We.subscribe((r=>{null==r&&(Be.set(e),We.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
590
590
  /*dictionary.set(translations);
591
- locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(yr).forEach((t=>{br(t,yr[t])}));const b={All:n("all"),name:n("az"),isNew:n("newest"),"advancedTags(name(hot))":n("hottest")},y=t=>{r(3,d=t);let e=localStorage.getItem("vendorSortingBy");g=t;for(let e in b)if(b[e]===t){g=e;break}null==e?localStorage.setItem("vendorSortingBy",JSON.stringify({[f]:g})):(e=JSON.parse(e),e[f]=g,localStorage.setItem("vendorSortingBy",JSON.stringify(e))),window.postMessage({type:"ApplySorter",sortBy:g,itemId:f},window.location.href),r(1,p=!p)},E=()=>{r(1,p=!p),window.postMessage({type:"SortingOpened"},window.location.href)},S=t=>{"FilterOpened"==t.data.type&&r(1,p=!1)};v((()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})));return t.$$set=t=>{"lang"in t&&r(8,l=t.lang),"translationurl"in t&&r(9,h=t.translationurl),"clientstyling"in t&&r(10,c=t.clientstyling),"clientstylingurl"in t&&r(11,u=t.clientstylingurl),"categoryid"in t&&r(12,f=t.categoryid)},t.$$.update=()=>{/*categoryid*/4096&t.$$.dirty&&f&&(()=>{var t;r(3,d="All"),r(2,m=!1),r(1,p=!1);let e=null===(t=JSON.parse(localStorage.getItem("vendorSortingBy")))||void 0===t?void 0:t[f];r(3,d=e||"All"),r(3,d=b[e])})(),/*clientstyling, customStylingContainer*/1025&t.$$.dirty&&c&&a&&(()=>{let t=document.createElement("style");t.innerHTML=c,a.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/2049&t.$$.dirty&&u&&a&&(()=>{let t=document.createElement("style");fetch(new URL(u)).then((t=>t.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*translationurl*/512&t.$$.dirty&&h&&fetch(h).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{br(e,t[e])}))})).catch((t=>{console.log(t)}))},[a,p,m,d,n,b,y,E,l,h,c,u,f,()=>E(),t=>y(t),function(t){H[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class Tr extends U{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.SorterContainer{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emfe-w-color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emfe-w-color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}',this.shadowRoot.appendChild(e),R(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},Ar,Hr,i,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12},null),t&&(t.target&&l(t.target,this,t.anchor),t.props&&(this.$set(t.props),N()))}static get observedAttributes(){return["lang","translationurl","clientstyling","clientstylingurl","categoryid"]}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),N()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),N()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),N()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),N()}get categoryid(){return this.$$.ctx[12]}set categoryid(t){this.$$set({categoryid:t}),N()}}return!customElements.get("casino-sort")&&customElements.define("casino-sort",Tr),Tr}));
591
+ locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(yr).forEach((t=>{br(t,yr[t])}));const b={All:n("all"),name:n("az"),isNew:n("newest"),"advancedTags(name(hot))":n("hottest")},y=t=>{r(3,d=t);let e=localStorage.getItem("vendorSortingBy");g=t;for(let e in b)if(b[e]===t){g=e;break}null==e?localStorage.setItem("vendorSortingBy",JSON.stringify({[f]:g})):(e=JSON.parse(e),e[f]=g,localStorage.setItem("vendorSortingBy",JSON.stringify(e))),window.postMessage({type:"ApplySorter",sortBy:g,itemId:f},window.location.href),r(1,p=!p)},E=()=>{r(1,p=!p),window.postMessage({type:"SortingOpened"},window.location.href)},S=t=>{"FilterOpened"==t.data.type&&r(1,p=!1)};v((()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})));return t.$$set=t=>{"lang"in t&&r(8,l=t.lang),"translationurl"in t&&r(9,h=t.translationurl),"clientstyling"in t&&r(10,c=t.clientstyling),"clientstylingurl"in t&&r(11,u=t.clientstylingurl),"categoryid"in t&&r(12,f=t.categoryid)},t.$$.update=()=>{/*categoryid*/4096&t.$$.dirty&&f&&(()=>{var t;r(3,d="All"),r(2,m=!1),r(1,p=!1);let e=null===(t=JSON.parse(localStorage.getItem("vendorSortingBy")))||void 0===t?void 0:t[f];r(3,d=e||"All"),r(3,d=b[e])})(),/*clientstyling, customStylingContainer*/1025&t.$$.dirty&&c&&a&&(()=>{let t=document.createElement("style");t.innerHTML=c,a.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/2049&t.$$.dirty&&u&&a&&(()=>{let t=document.createElement("style");fetch(new URL(u)).then((t=>t.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*translationurl*/512&t.$$.dirty&&h&&fetch(h).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{br(e,t[e])}))})).catch((t=>{console.log(t)}))},[a,p,m,d,n,b,y,E,l,h,c,u,f,()=>E(),t=>y(t),function(t){A[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class Hr extends U{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.SorterContainer{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emfe-w-color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emfe-w-color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}',this.shadowRoot.appendChild(e),R(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},Tr,Ar,i,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12},null),t&&(t.target&&l(t.target,this,t.anchor),t.props&&(this.$set(t.props),N()))}static get observedAttributes(){return["lang","translationurl","clientstyling","clientstylingurl","categoryid"]}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),N()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),N()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),N()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),N()}get categoryid(){return this.$$.ctx[12]}set categoryid(t){this.$$set({categoryid:t}),N()}}return!customElements.get("casino-sort")&&customElements.define("casino-sort",Hr),Hr}));
592
592
  //# sourceMappingURL=casino-sort.js.map