PageSourceSearch

https://mbclub.ru/js/TC/ComponentLibrary/pluralization.min.js?_v=af3faf70

js mbclub.ru collected 2026-10-02 11:50:17 UTC 1,840 bytes, 5 lines download raw bytes

1window.TeslaCloud=window.TeslaCloud||{};
2((k,l)=>{TeslaCloud.Pluralization=XF.create({language:null,pluralRules:null,__construct(b){this.language=b||l.querySelector("html").getAttribute("lang");if(!TeslaCloud.Pluralization._isSupported)throw Error("Pluralization is not supported.");try{this.pluralRules=new Intl.PluralRules(this.language)}catch(a){throw Error(`Pluralization init error: ${a}`);}},pluralPhraseName(b,a){"string"==typeof a&&(a={zero:a+"_zero",one:a+"_one",two:a+"_two",few:a+"_few",many:a+"_many",other:a});if(!a.hasOwnProperty("other"))throw Error('Required pluralization form "other" is missing.');
3return a[this.getCardinal(b,Object.keys(a))]},phrasePlural(b,a,f,h){return XF.phrase(this.pluralPhraseName(b,a),f,h)},getCardinal(b,a=[]){if(!TeslaCloud.Pluralization._isSupported||!this.pluralRules)return"other";b=this.pluralRules.select(b);return!a.length||a.includes(b)?b:"other"}});TeslaCloud.Pluralization._isSupported="Intl"in k&&"PluralRules"in k.Intl;TeslaCloud.Pluralization.current=new TeslaCloud.Pluralization;const m=XF.phrase;XF.extendObject(XF,{phrase(b,a,f){const h=/\{plural\s+((?:(?:[a-z]|[0-9.0-9])+=(['"]).+?\2\s*)+)}/g;
4a=m(b,a,f);return h.test(a)?!TeslaCloud.Pluralization._isSupported&&f?f:a.replaceAll(h,(c,e,d)=>{e=e.matchAll(new RegExp(`(.+?)=${d}([^${d}]*)${d}\\s*`,"g"));c={};for(var g of e)c[g[1]]=g[2];if(!c.hasOwnProperty("number"))throw Error(`Phrase pluralization error: ${b}: Missing parameter "number".`);if(!c.hasOwnProperty("other"))throw Error(`Phrase pluralization error: ${b}: Missing parameter "other".`);g=TeslaCloud.Pluralization.current;e=c.number;d=c.precision||0;d=Number(e).toLocaleString(g.language,
5{minimumFractionDigits:d,maximumFractionDigits:d});return c.hasOwnProperty(e)?c[e].replace("#n",d):c[g.getCardinal(e,Object.keys(c))].replace("#n",d)}):a}})})(window,document);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.