text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
import { expect } from 'chai';
import { stubMethod } from 'hanbi';
import { createTestServer, expectIncludes } from '@web/dev-server-core/test-helpers';
import { Browser, HTTPResponse, launch as launchPuppeteer, Page } from 'puppeteer';
import { posix as pathUtil } from 'path';
import { hmrPlugin } from '../src/index.js';
import { mockFiles } from './utils.js';
function trackErrors(page: Page) {
const errors: any[] = [];
page.on('error', error => {
errors.push(error);
});
page.on('console', e => {
if (e.type() === 'error' || e.type() === 'warn') {
errors.push(e.text());
}
});
return errors;
}
async function mockFaviconRequests(page: Page) {
await page.setRequestInterception(true);
page.on('request', request => {
if (request.isInterceptResolutionHandled()) {
return;
}
if (request.url().endsWith('favicon.ico')) {
request.respond({ status: 200 });
return;
}
request.continue();
});
}
describe('browser tests', function () {
this.timeout(5000);
let browser: Browser;
before(async () => {
browser = await launchPuppeteer();
});
after(async () => {
await browser.close();
});
it('should bubble when bubbles is true', async function () {
const { server, host } = await createTestServer({
rootDir: __dirname,
plugins: [
mockFiles({
'/foo.html': '<script src="/foo.js" type="module"></script>',
'/foo.js': `import '/bar.js'; import.meta.hot.accept();`,
'/bar.js': `import.meta.hot.accept({ bubbles: true })`,
}),
hmrPlugin(),
],
});
const { fileWatcher, webSockets } = server;
const stub = stubMethod(webSockets!, 'send');
const page = await browser.newPage();
try {
await page.goto(`${host}/foo.html`, { waitUntil: 'networkidle0' });
fileWatcher.emit('change', pathUtil.join(__dirname, '/bar.js'));
expect(stub.callCount).to.equal(2);
expect(stub.getCall(0)!.args[0]).to.equal(
JSON.stringify({
type: 'hmr:update',
url: '/bar.js',
}),
);
expect(stub.getCall(1)!.args[0]).to.equal(
JSON.stringify({
type: 'hmr:update',
url: '/foo.js',
}),
);
} finally {
await page.close();
await server.stop();
}
});
it('should hot replace a module', async function () {
const files = {
'/foo.html': '<script src="/foo.js" type="module"></script>',
'/foo.js':
'import.meta.hot.accept(); document.body.appendChild(document.createTextNode(" a "));',
};
const { server, host } = await createTestServer({
rootDir: __dirname,
plugins: [mockFiles(files), hmrPlugin()],
});
const page = await browser.newPage();
const errors = trackErrors(page);
await mockFaviconRequests(page);
try {
await page.goto(`${host}/foo.html`);
expectIncludes(await page.content(), '<body> a </body>');
files['/foo.js'] = files['/foo.js'].replace('" a "', '" b "');
server.fileWatcher.emit('change', pathUtil.join(__dirname, '/foo.js'));
await page.waitForResponse((r: HTTPResponse) => r.url().startsWith(`${host}/foo.js`));
expectIncludes(await page.content(), '<body> a b </body>');
for (const error of errors) {
throw error;
}
} finally {
await page.close();
await server.stop();
}
});
it('should hot replace a bubbled module', async () => {
const files = {
'/foo.html': '<script src="/foo.js" type="module"></script>',
'/foo.js':
'import bar from "/bar.js"; import.meta.hot.accept(); document.body.appendChild(document.createTextNode(bar));',
'/bar.js': 'export default " a ";',
};
const { server, host } = await createTestServer({
rootDir: __dirname,
plugins: [mockFiles(files), hmrPlugin()],
});
const page = await browser.newPage();
const errors = trackErrors(page);
await mockFaviconRequests(page);
try {
await page.goto(`${host}/foo.html`);
expectIncludes(await page.content(), '<body> a </body>');
files['/bar.js'] = 'export default " b ";';
server.fileWatcher.emit('change', pathUtil.join(__dirname, '/bar.js'));
await page.waitForResponse((r: HTTPResponse) => r.url().startsWith(`${host}/bar.js`));
expectIncludes(await page.content(), '<body> a b </body>');
for (const error of errors) {
throw error;
}
} finally {
await page.close();
await server.stop();
}
});
/**
* Times out in CI because it's too slow
*/
it.skip('hot replaces multiple bubbled modules', async () => {
const files = {
'/foo.html': '<script type="module">import "/foo.js"; import "/bar.js";</script>',
'/foo.js':
'import baz from "/baz.js"; import.meta.hot.accept(); document.body.appendChild(document.createTextNode(" foo " + baz));',
'/bar.js':
'import baz from "/baz.js"; import.meta.hot.accept(); document.body.appendChild(document.createTextNode(" bar " + baz));',
'/baz.js': 'export default " a ";',
};
const { server, host } = await createTestServer({
rootDir: __dirname,
plugins: [mockFiles(files), hmrPlugin()],
});
const page = await browser.newPage();
const errors = trackErrors(page);
try {
await page.goto(`${host}/foo.html`);
expectIncludes(await page.content(), '<body> foo a bar a </body>');
files['/baz.js'] = 'export default " b ";';
server.fileWatcher.emit('change', pathUtil.join(__dirname, '/baz.js'));
await Promise.all([
page.waitForResponse((r: HTTPResponse) => r.url().startsWith(`${host}/foo.js`)),
page.waitForResponse((r: HTTPResponse) => r.url().startsWith(`${host}/bar.js`)),
page.waitForResponse((r: HTTPResponse) => r.url().startsWith(`${host}/baz.js`)),
]);
await page.waitForFunction(
() => document.body.outerHTML === '<body> foo a bar a foo b bar b </body>',
);
for (const error of errors) {
throw error;
}
} finally {
await page.close();
await server.stop();
}
});
it('reloads the page when a module has no hot replacable parent', async () => {
const files = {
'/foo.html':
'<script src="/foo.js" type="module"></script><script src="/baz.js" type="module"></script>',
'/foo.js':
'import bar from "/bar.js"; import.meta.hot.accept(); document.body.appendChild(document.createTextNode(bar));',
'/bar.js': 'export default " a ";',
'/baz.js': 'document.body.appendChild(document.createTextNode(" b "));',
};
const { server, host } = await createTestServer({
rootDir: __dirname,
plugins: [mockFiles(files), hmrPlugin()],
});
const page = await browser.newPage();
const errors = trackErrors(page);
await mockFaviconRequests(page);
try {
await page.goto(`${host}/foo.html`);
await page.evaluate('document.body.appendChild(document.createTextNode(" c "))');
expectIncludes(await page.content(), '<body> a b c </body>');
server.fileWatcher.emit('change', pathUtil.join(__dirname, '/baz.js'));
await page.waitForNavigation();
expectIncludes(await page.content(), '<body> a b </body>');
for (const error of errors) {
throw error;
}
} finally {
await page.close();
await server.stop();
}
});
});
| modernweb-dev/web/packages/dev-server-hmr/test/browser.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-hmr/test/browser.test.ts",
"repo_id": "modernweb-dev",
"token_count": 3078
} | 183 |
import { spy } from 'hanbi';
export const __postDataSpy = spy();
__postDataSpy.returns(Promise.resolve());
export const postData = __postDataSpy.handler;
export const __importMeta = import.meta;
| modernweb-dev/web/packages/dev-server-import-maps/test-browser/test/mocks/postData.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-import-maps/test-browser/test/mocks/postData.js",
"repo_id": "modernweb-dev",
"token_count": 66
} | 184 |
import { isUri } from 'valid-url';
import { Document as DocumentAst, Node as NodeAst } from 'parse5';
import { queryAll, predicates, getAttribute, hasAttribute } from '@web/dev-server-core/dist/dom5';
function isDeferred(script: NodeAst) {
return getAttribute(script, 'type') === 'module' || hasAttribute(script, 'defer');
}
function isAsync(script: NodeAst) {
return hasAttribute(script, 'async');
}
function sortByLoadingPriority(a: NodeAst, b: NodeAst) {
if (isAsync(a)) {
return 0;
}
const aDeferred = isDeferred(a);
const bDeferred = isDeferred(b);
if (aDeferred && bDeferred) {
return 0;
}
if (aDeferred) {
return 1;
}
if (bDeferred) {
return -1;
}
return 0;
}
export function findJsScripts(document: DocumentAst) {
const allScripts = queryAll(document, predicates.hasTagName('script'));
return allScripts
.filter(script => {
const inline = !hasAttribute(script, 'src');
const type = getAttribute(script, 'type');
// we don't handle scripts which import from a URL (ex. a CDN)
if (!inline && isUri(getAttribute(script, 'src') ?? '')) {
return false;
}
if (!type || ['application/javascript', 'text/javascript', 'module'].includes(type)) {
return true;
}
return false;
})
.sort(sortByLoadingPriority);
}
| modernweb-dev/web/packages/dev-server-legacy/src/findJsScripts.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-legacy/src/findJsScripts.ts",
"repo_id": "modernweb-dev",
"token_count": 495
} | 185 |
# Dev Server Rollup
Adapter for using rollup plugins in Web Dev Server and Web Test Runner.
See [our website](https://modern-web.dev/docs/dev-server/plugins/rollup/) for full documentation.
| modernweb-dev/web/packages/dev-server-rollup/README.md/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/README.md",
"repo_id": "modernweb-dev",
"token_count": 53
} | 186 |
export default 'moduleA';
| modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/basic/node_modules/module-a/index.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/basic/node_modules/module-a/index.js",
"repo_id": "modernweb-dev",
"token_count": 7
} | 187 |
module.exports = 'foo';
| modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/commonjs/modules/default-export.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/commonjs/modules/default-export.js",
"repo_id": "modernweb-dev",
"token_count": 9
} | 188 |
import moduleA from 'module-a';
import moduleB from 'resolve-outside-dir-foo';
console.log(moduleA);
console.log(moduleB);
| modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/resolve-outside-dir/src/app.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/resolve-outside-dir/src/app.js",
"repo_id": "modernweb-dev",
"token_count": 42
} | 189 |
# Dev Server Storybook
Plugin to use [storybook](https://github.com/storybookjs/storybook) with Web Dev Server.
See [our website](https://modern-web.dev/docs/dev-server/plugins/storybook/) for full documentation.
| modernweb-dev/web/packages/dev-server-storybook/README.md/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/README.md",
"repo_id": "modernweb-dev",
"token_count": 63
} | 190 |
import { storybookPlugin } from '../../index.mjs';
export default {
rootDir: '../..',
open: true,
nodeResolve: true,
plugins: [
storybookPlugin({
type: 'web-components',
configDir: 'demo/wc/.storybook',
}),
],
};
| modernweb-dev/web/packages/dev-server-storybook/demo/wc/web-dev-server.config.mjs/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/demo/wc/web-dev-server.config.mjs",
"repo_id": "modernweb-dev",
"token_count": 101
} | 191 |
import fs from 'fs';
import { StorybookConfig } from '../config/StorybookConfig.js';
import { createBrowserImport } from '../utils.js';
function createManagerImport(rootDir: string, managerJsPath: string) {
if (!fs.existsSync(managerJsPath)) {
return '';
}
const managerImport = createBrowserImport(rootDir, managerJsPath);
return `import '${managerImport}';`;
}
export function createManagerHtml(storybookConfig: StorybookConfig, rootDir: string) {
const managerImport = createManagerImport(rootDir, storybookConfig.managerJsPath);
const addonImports = storybookConfig.mainJs.addons
? storybookConfig.mainJs.addons.map(a => `import '${a}';`).join('')
: '';
return `<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Storybook</title>
<style>
html,
body {
overflow: hidden;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
</style>
<style>
#root[hidden],
#docs-root[hidden] {
display: none !important;
}
</style>
${storybookConfig.managerHead ?? ''}
</head>
<body>
<div id="root"></div>
<div id="docs-root"></div>
<script type="module">
import '@web/storybook-prebuilt/manager.js';
${managerImport}
${addonImports}
</script>
</body>
</html>`;
}
| modernweb-dev/web/packages/dev-server-storybook/src/shared/html/createManagerHtml.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/src/shared/html/createManagerHtml.ts",
"repo_id": "modernweb-dev",
"token_count": 563
} | 192 |
<html>
<body>
<img width="100" src="../logo.png" />
<h1>Node resolve demo</h1>
<p>A demo which resolves bare module imports</p>
<div id="test"></div>
<script type="module">
// inline bare modules are resolved
import { render, html } from 'lit-html';
window.__inlineNodeResolve = !!render && !!html;
</script>
<script type="module">
window.__tests = {
// lit-html only adds this global in development mode
// so when the exportCondition is overwritten, it'll be undefined
prodExport: typeof window.litIssuedWarnings === 'undefined',
};
document.getElementById('test').innerHTML = `<pre>${JSON.stringify(
window.__tests,
null,
2,
)}</pre>`;
</script>
</body>
</html>
| modernweb-dev/web/packages/dev-server/demo/export-conditions/index.html/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/demo/export-conditions/index.html",
"repo_id": "modernweb-dev",
"token_count": 324
} | 193 |
import { html, render } from 'lit-html';
import { LitElement } from 'lit-element';
class MyElement extends LitElement {
connectedCallback() {
super.connectedCallback();
render(html` <p>Web component instantiated ✓</p> `, document.getElementById('web-component'));
}
render() {
return html` <p>Element Shadow DOM content ✓</p> `;
}
}
customElements.define('my-element', MyElement);
window.__nodeResolve = !!html && !!render && !!LitElement;
| modernweb-dev/web/packages/dev-server/demo/node-resolve/module.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/demo/node-resolve/module.js",
"repo_id": "modernweb-dev",
"token_count": 149
} | 194 |
const foo = { a: 1 };
const bar = { ...foo };
const objectSpread = bar.a === 1;
async function asyncFunction() {}
const asyncFunctions = asyncFunction() instanceof Promise;
const exponentation = 2 ** 4 === 16;
class Foo {
constructor() {
this.foo = 'bar';
}
}
const classes = new Foo().foo === 'bar';
const templateLiterals = `template ${'literal'}` === 'template literal';
const lorem = { ipsum: 'lorem ipsum' };
const optionalChaining = lorem?.ipsum === 'lorem ipsum' && lorem?.ipsum?.foo === undefined;
const buz = null;
const nullishCoalescing = (buz ?? 'nullish colaesced') === 'nullish colaesced';
window.__stage4 =
objectSpread &&
asyncFunctions &&
exponentation &&
classes &&
templateLiterals &&
optionalChaining &&
nullishCoalescing;
| modernweb-dev/web/packages/dev-server/demo/syntax/stage-4-features.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/demo/syntax/stage-4-features.js",
"repo_id": "modernweb-dev",
"token_count": 257
} | 195 |
function requirePlugin() {
try {
const path = require.resolve('@web/dev-server-esbuild', { paths: [__dirname, process.cwd()] });
return require(path);
} catch (error) {
if ((error as NodeJS.ErrnoException).code === 'MODULE_NOT_FOUND') {
throw new Error(
'You need to add @web/dev-server-esbuild as a dependency of your project to use the esbuild flags.',
);
} else {
throw error;
}
}
}
export function esbuildPlugin(target: string | string[]) {
const pluginModule = requirePlugin();
return pluginModule.esbuildPlugin({ target });
}
| modernweb-dev/web/packages/dev-server/src/plugins/esbuildPlugin.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/src/plugins/esbuildPlugin.ts",
"repo_id": "modernweb-dev",
"token_count": 210
} | 196 |
{
"name": "@web/mocks",
"version": "1.1.1",
"publishConfig": {
"access": "public"
},
"description": "MSW integration for @web tooling",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages/mocks"
},
"author": "modern-web",
"homepage": "https://github.com/modernweb-dev/web/tree/master/packages/mocks",
"type": "module",
"exports": {
"./http.js": {
"types": "./dist-types/http.d.ts",
"default": "./http.js"
},
"./browser.js": {
"types": "./dist-types/browser.d.ts",
"default": "./browser.js"
},
"./storybook/addon/decorator.js": {
"types": "./dist-types/storybook/addon/decorator.d.ts",
"default": "./storybook/addon/decorator.js"
},
"./storybook/addon/manager.js": "./storybook/addon/manager.js",
"./storybook/decorator.js": {
"types": "./dist-types/storybook/decorator.d.ts",
"default": "./storybook/decorator.js"
},
"./storybook/addon.js": "./storybook/addon.js",
"./plugins.js": {
"types": "./dist-types/plugins.d.ts",
"default": "./plugins.js"
},
"./node.js": {
"types": "./dist-types/node.d.ts",
"default": "./node.js"
},
"./types.js": {
"types": "./dist-types/types.d.ts",
"default": "./types.js"
}
},
"scripts": {
"start": "wds --config demo/wc/web-dev-server.config.mjs",
"test:browser": "node ../test-runner/dist/bin.js test-browser/*.test.js --config test-browser/web-test-runner.config.js",
"types": "wireit"
},
"files": [
"**/*.js",
"dist-types",
"README.md"
],
"keywords": [
"mocks",
"msw"
],
"dependencies": {
"@storybook/manager-api": "^7.0.0",
"@storybook/preview-api": "^7.0.0",
"@web/storybook-prebuilt": "^0.1.37",
"@web/storybook-utils": "^1.0.0",
"lit": "^2.7.5 || ^3.0.0",
"msw": "^2.0.11"
},
"devDependencies": {
"@web/dev-server": "^0.4.0",
"@web/dev-server-storybook": "^2.0.0"
},
"wireit": {
"types": {
"command": "tsc --build --pretty",
"files": [
"**/*.js",
"**/*.ts",
"tsconfig.json"
],
"output": [
"dist-types/**"
],
"dependencies": []
}
}
}
| modernweb-dev/web/packages/mocks/package.json/0 | {
"file_path": "modernweb-dev/web/packages/mocks/package.json",
"repo_id": "modernweb-dev",
"token_count": 1115
} | 197 |
# @web/parse5-utils
## 2.1.0
### Minor Changes
- c185cbaa: Set minimum node version to 18
## 2.0.2
### Patch Changes
- 640ba85f: added types for main entry point
## 2.0.1
### Patch Changes
- d5da0e4a: Adds support for traversing <template> elements
## 2.0.0
### Major Changes
- febd9d9d: Set node 16 as the minimum version.
## 1.3.1
### Patch Changes
- 18a16bb0: Update `html-minifier-terser`
## 1.3.0
### Minor Changes
- ca749b0e: Update dependency @types/parse5 to v6
## 1.2.2
### Patch Changes
- a07f4aef: Add missing export for prepend utility.
## 1.2.1
### Patch Changes
- abe37741: Allow break lines in comments when checking isHtmlFragment
## 1.2.0
### Minor Changes
- b5af71e3: Ignore comments when checking isHtmlFragment
## 1.1.2
### Patch Changes
- a7c9af6: fix entrypoint for node v10
## 1.1.1
### Patch Changes
- 68b8211: export using direct assignment
## 1.1.0
### Minor Changes
- 3121966: add textcontent helpers
## 1.0.0
### Major Changes
- cd5244e: First setup
| modernweb-dev/web/packages/parse5-utils/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/parse5-utils/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 390
} | 198 |
import { Document, Node, ParentNode, parse, serialize } from 'parse5';
import {
findElements,
getAttribute,
createScript,
getTextContent,
insertBefore,
appendChild,
createElement,
findElement,
getTagName,
Element,
} from '@web/parse5-utils';
import { PolyfillsLoaderConfig, PolyfillsLoader, GeneratedFile } from './types.js';
import { createPolyfillsLoader } from './createPolyfillsLoader.js';
import { hasFileOfType, fileTypes } from './utils.js';
function injectImportMapPolyfill(headAst: ParentNode, originalScript: Node, type: string) {
const systemJsScript = createScript({ type }, getTextContent(originalScript));
insertBefore(headAst, systemJsScript, originalScript);
}
function findImportMapScripts(document: Document) {
const scripts = findElements(document, script => getAttribute(script, 'type') === 'importmap');
const inline: Node[] = [];
const external: Node[] = [];
for (const script of scripts) {
if (getAttribute(script, 'src')) {
external.push(script);
} else {
inline.push(script);
}
}
return { inline, external };
}
function injectImportMapPolyfills(
documentAst: Document,
headAst: ParentNode,
cfg: PolyfillsLoaderConfig,
) {
const importMapScripts = findImportMapScripts(documentAst);
if (importMapScripts.external.length === 0 && importMapScripts.inline.length === 0) {
return;
}
const polyfillSystemJs = hasFileOfType(cfg, fileTypes.SYSTEMJS);
const importMaps = [...importMapScripts.external, ...importMapScripts.inline];
importMaps.forEach(originalScript => {
if (polyfillSystemJs) {
injectImportMapPolyfill(headAst, originalScript, 'systemjs-importmap');
}
});
}
function injectLoaderScript(
bodyAst: ParentNode,
polyfillsLoader: PolyfillsLoader,
cfg: PolyfillsLoaderConfig,
) {
let loaderScript: Element;
if (cfg.externalLoaderScript) {
const loaderScriptFile = polyfillsLoader.polyfillFiles.find(f => f.path.endsWith('loader.js'));
if (!loaderScriptFile) {
throw new Error('Missing polyfills loader script file');
}
loaderScript = createScript({ src: loaderScriptFile.path });
} else {
loaderScript = createScript({}, polyfillsLoader.code);
}
appendChild(bodyAst, loaderScript);
}
function injectPrefetchLinks(headAst: ParentNode, cfg: PolyfillsLoaderConfig) {
for (const file of cfg.modern!.files) {
const { path } = file;
const href = path.startsWith('.') || path.startsWith('/') ? path : `./${path}`;
if (file.type === fileTypes.MODULE) {
appendChild(
headAst,
createElement('link', {
rel: 'preload',
href,
as: 'script',
crossorigin: 'anonymous',
}),
);
} else {
appendChild(headAst, createElement('link', { rel: 'preload', href, as: 'script' }));
}
}
}
export interface InjectPolyfillsLoaderResult {
htmlString: string;
polyfillFiles: GeneratedFile[];
}
/**
* Transforms an index.html file, injecting a polyfills loader for
* compatibility with older browsers.
*/
export async function injectPolyfillsLoader(
htmlString: string,
cfg: PolyfillsLoaderConfig,
): Promise<InjectPolyfillsLoaderResult> {
const documentAst = parse(htmlString);
const headAst = findElement(documentAst, e => getTagName(e) === 'head');
const bodyAst = findElement(documentAst, e => getTagName(e) === 'body');
if (!headAst || !bodyAst) {
throw new Error(`Invalid index.html: missing <head> or <body>`);
}
const polyfillsLoader = await createPolyfillsLoader(cfg);
if (polyfillsLoader === null) {
return { htmlString, polyfillFiles: [] };
}
if (cfg.preload) {
injectPrefetchLinks(headAst, cfg);
}
injectImportMapPolyfills(documentAst, headAst, cfg);
injectLoaderScript(bodyAst, polyfillsLoader, cfg);
return {
htmlString: serialize(documentAst),
polyfillFiles: polyfillsLoader.polyfillFiles,
};
}
| modernweb-dev/web/packages/polyfills-loader/src/injectPolyfillsLoader.ts/0 | {
"file_path": "modernweb-dev/web/packages/polyfills-loader/src/injectPolyfillsLoader.ts",
"repo_id": "modernweb-dev",
"token_count": 1337
} | 199 |
const html = require('../../dist/index').default;
module.exports = {
output: {
dir: './demo/dist',
},
plugins: [
html({
input: '**/*.html',
flattenOutput: false,
rootDir: __dirname,
}),
],
};
| modernweb-dev/web/packages/rollup-plugin-html/demo/mpa/rollup.config.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/demo/mpa/rollup.config.js",
"repo_id": "modernweb-dev",
"token_count": 104
} | 200 |
import { Document, serialize } from 'parse5';
import fs from 'fs';
import path from 'path';
import { InputAsset } from '../InputData.js';
import {
findAssets,
getSourcePaths,
isHashedAsset,
resolveAssetFilePath,
createAssetPicomatchMatcher,
} from '../../assets/utils.js';
export interface ExtractAssetsParams {
document: Document;
htmlFilePath: string;
htmlDir: string;
rootDir: string;
externalAssets?: string | string[];
absolutePathPrefix?: string;
}
export function extractAssets(params: ExtractAssetsParams): InputAsset[] {
const assetNodes = findAssets(params.document);
const allAssets: InputAsset[] = [];
const isExternal = createAssetPicomatchMatcher(params.externalAssets);
for (const node of assetNodes) {
const sourcePaths = getSourcePaths(node);
for (const sourcePath of sourcePaths) {
if (isExternal(sourcePath)) continue;
const filePath = resolveAssetFilePath(
sourcePath,
params.htmlDir,
params.rootDir,
params.absolutePathPrefix,
);
const hashed = isHashedAsset(node);
const alreadyHandled = allAssets.find(a => a.filePath === filePath && a.hashed === hashed);
if (!alreadyHandled) {
try {
fs.accessSync(filePath);
} catch (error) {
const elStr = serialize(node);
const htmlPath = path.relative(process.cwd(), params.htmlFilePath);
throw new Error(
`Could not find ${filePath} referenced from HTML file ${htmlPath} from element ${elStr}.`,
);
}
const content = fs.readFileSync(filePath);
allAssets.push({ filePath, hashed, content });
}
}
}
return allAssets;
}
| modernweb-dev/web/packages/rollup-plugin-html/src/input/extract/extractAssets.ts/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/src/input/extract/extractAssets.ts",
"repo_id": "modernweb-dev",
"token_count": 644
} | 201 |
import { ScriptModuleTag } from './RollupPluginHTMLOptions.js';
const PLUGIN = '[@web/rollup-plugin-html]';
export const NOOP_IMPORT: ScriptModuleTag = { importPath: '@web/rollup-plugin-html-noop' };
export function createError(msg: string) {
return new Error(`${PLUGIN} ${msg}`);
}
| modernweb-dev/web/packages/rollup-plugin-html/src/utils.ts/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/src/utils.ts",
"repo_id": "modernweb-dev",
"token_count": 101
} | 202 |
f | modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/resolves-assets-in-styles-images/images/star.svg/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/resolves-assets-in-styles-images/images/star.svg",
"repo_id": "modernweb-dev",
"token_count": 1
} | 203 |
<a href="assets/docs/partial.html"></a>
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/exclude/index.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/exclude/index.html",
"repo_id": "modernweb-dev",
"token_count": 15
} | 204 |
export default 'shared';
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/pages/shared.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/pages/shared.js",
"repo_id": "modernweb-dev",
"token_count": 6
} | 205 |
import cjsEntrypoint from './src/rollup-plugin-import-meta-assets.js';
const { importMetaAssets } = cjsEntrypoint;
export { importMetaAssets };
| modernweb-dev/web/packages/rollup-plugin-import-meta-assets/index.mjs/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/index.mjs",
"repo_id": "modernweb-dev",
"token_count": 48
} | 206 |
export const nameOne = 'one-name';
export const imageOne = new URL('../one.svg', import.meta.url).href;
| modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/one.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/one.js",
"repo_id": "modernweb-dev",
"token_count": 34
} | 207 |
function __variableDynamicURLRuntime0__(path) {
switch (path) {
case './dynamic-assets/one.svg': return new URL(new URL('assets/one-ZInu4dBJ.svg', import.meta.url).href, import.meta.url);
case './dynamic-assets/three.svg': return new URL(new URL('assets/three-CDdgprDC.svg', import.meta.url).href, import.meta.url);
case './dynamic-assets/two.svg': return new URL(new URL('assets/two--yckvrYd.svg', import.meta.url).href, import.meta.url);
default: return new Promise(function(resolve, reject) {
(typeof queueMicrotask === 'function' ? queueMicrotask : setTimeout)(
reject.bind(null, new Error("Unknown variable dynamic new URL statement: " + path))
);
})
}
}
const names = ['one', 'two'];
// value of one could also be "two" or "three", bundler does not analyze the value itself
// Therefore, we expect both one.svg, two.svg and three.svg to be bundled, and this to turn into a switch statement
// with 3 cases (for all 3 assets in the dynamic-assets folder)
const dynamicImgs = names.map(n => __variableDynamicURLRuntime0__(`./dynamic-assets/${n}.svg`));
const backticksImg = new URL(new URL('assets/three-CDdgprDC.svg', import.meta.url).href, import.meta.url);
console.log(dynamicImgs, backticksImg);
| modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/snapshots/dynamic-vars.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/snapshots/dynamic-vars.js",
"repo_id": "modernweb-dev",
"token_count": 439
} | 208 |
const nameTwo = 'two-name';
const imageTwo = new URL('../../two.svg', import.meta.url).href;
export { imageTwo, nameTwo };
| modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/snapshots/two-bundle.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/snapshots/two-bundle.js",
"repo_id": "modernweb-dev",
"token_count": 43
} | 209 |
<script type="module" src="../entrypoint-a.js"></script>
<script type="module" src="../entrypoint-b.js"></script> | modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/fixtures/non-flat/index.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/fixtures/non-flat/index.html",
"repo_id": "modernweb-dev",
"token_count": 37
} | 210 |
/* eslint-disable no-await-in-loop */
import { OutputChunk, rollup, OutputAsset, RollupOptions, OutputOptions } from 'rollup';
import { expect } from 'chai';
import fs from 'fs';
import path from 'path';
import { rollupPluginHTML as html } from '@web/rollup-plugin-html';
import polyfillsLoader from '../../src/index.js';
type Output = (OutputChunk | OutputAsset)[];
const relativeUrl = `./${path.relative(process.cwd(), path.join(__dirname, '..'))}`;
const updateSnapshots = process.argv.includes('--update-snapshots');
function getAsset(output: Output, name: string) {
return output.find(o => o.fileName === name && o.type === 'asset') as OutputAsset & {
source: string;
};
}
interface SnapshotArgs {
name: string;
fileName: string;
inputOptions: RollupOptions;
outputOptions: OutputOptions[];
}
async function testSnapshot({ name, fileName, inputOptions, outputOptions }: SnapshotArgs) {
const snapshotPath = path.join(__dirname, '..', 'snapshots', `${name}.html`);
const bundle = await rollup(inputOptions);
let output;
for (const outputConfig of outputOptions) {
({ output } = await bundle.generate(outputConfig));
}
if (!output) throw new Error('');
const file = getAsset(output, fileName);
if (!file) throw new Error(`Build did not output ${fileName}`);
if (updateSnapshots) {
fs.writeFileSync(snapshotPath, file.source, 'utf-8');
} else {
const snapshot = fs.readFileSync(snapshotPath, 'utf-8');
expect(file.source.trim()).to.equal(snapshot.trim());
// expect(file.source.replace(/\s/g, '')).to.equal(snapshot.replace(/\s/g, ''));
}
return output;
}
const defaultOutputOptions: OutputOptions[] = [
{
format: 'es',
dir: 'dist',
},
];
describe('rollup-plugin-polyfills-loader', function describe() {
// bootup of the first test can take a long time in CI to load all the polyfills
this.timeout(5000);
it('can inject a polyfills loader with a single output', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
input: {
html: `<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>`,
},
}),
polyfillsLoader({
polyfills: { hash: false, fetch: true },
}),
],
};
await testSnapshot({
name: 'single-output',
fileName: 'index.html',
inputOptions,
outputOptions: defaultOutputOptions,
});
});
it('can inject a polyfills loader with multiple entrypoints', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
input: {
html: `
<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>
<script type="module" src="${relativeUrl}/fixtures/entrypoint-b.js"></script>`,
},
}),
polyfillsLoader({
polyfills: { hash: false, fetch: true },
}),
],
};
await testSnapshot({
name: 'multiple-entrypoints',
fileName: 'index.html',
inputOptions,
outputOptions: defaultOutputOptions,
});
});
it('retains attributes on script tags when injecting a polyfills loader with multiple entrypoints', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
input: {
html: `
<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js" keep-this-attribute></script>
<script type="module" src="${relativeUrl}/fixtures/entrypoint-b.js"></script>`,
},
}),
polyfillsLoader({
polyfills: { hash: false, fetch: true },
}),
],
};
await testSnapshot({
name: 'multiple-entrypoints-retain-attributes',
fileName: 'index.html',
inputOptions,
outputOptions: defaultOutputOptions,
});
});
it('can inject a polyfills loader with non-flat inputs, flattenOutput: true', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
rootDir: `${relativeUrl}/fixtures/`,
input: `non-flat/index.html`,
flattenOutput: true,
}),
polyfillsLoader({
polyfills: { hash: false, fetch: true },
}),
],
};
await testSnapshot({
name: 'flattened',
fileName: `index.html`,
inputOptions,
outputOptions: defaultOutputOptions,
});
});
it('can inject a polyfills loader with non-flat inputs, flattenOutput: false', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
rootDir: `${relativeUrl}/fixtures/`,
input: `non-flat/index.html`,
flattenOutput: false,
}),
polyfillsLoader({
polyfills: { hash: false, fetch: true },
}),
],
};
await testSnapshot({
name: 'non-flattened',
fileName: path.normalize(`non-flat/index.html`),
inputOptions,
outputOptions: defaultOutputOptions,
});
});
it('injects the correct preload for systemjs output', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
input: {
html: `
<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>
<script type="module" src="${relativeUrl}/fixtures/entrypoint-b.js"></script>`,
},
}),
polyfillsLoader(),
],
};
await testSnapshot({
name: 'systemjs',
fileName: 'index.html',
inputOptions,
outputOptions: [
{
format: 'system',
dir: 'dist',
},
],
});
});
it('can set polyfills to load', async () => {
const inputOptions = {
plugins: [
html({
input: {
html: `<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>`,
},
}),
polyfillsLoader({
polyfills: {
hash: false,
webcomponents: true,
fetch: true,
},
}),
],
};
const output = await testSnapshot({
name: 'polyfills',
fileName: 'index.html',
inputOptions,
outputOptions: defaultOutputOptions,
});
expect(output.find(o => o.fileName.startsWith('polyfills/webcomponents'))).to.exist;
expect(output.find(o => o.fileName.startsWith('polyfills/fetch'))).to.exist;
});
it('can inject with multiple build outputs', async () => {
const htmlPlugin = html({
input: {
html: `<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>`,
},
});
const inputOptions = {
plugins: [
htmlPlugin,
polyfillsLoader({
modernOutput: { name: 'modern' },
legacyOutput: [{ name: 'legacy', test: "!('noModule' in HTMLScriptElement.prototype)" }],
polyfills: { hash: false, webcomponents: true, fetch: true },
}),
],
};
const outputOptions: OutputOptions[] = [
{
format: 'system',
dir: 'dist',
plugins: [htmlPlugin.api.addOutput('legacy')],
},
{
format: 'es',
dir: 'dist',
plugins: [htmlPlugin.api.addOutput('modern')],
},
];
await testSnapshot({
name: 'multiple-outputs',
fileName: 'index.html',
inputOptions,
outputOptions,
});
});
it('can customize the file type', async () => {
const htmlPlugin = html({
input: {
html: `<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>`,
},
});
const inputOptions = {
plugins: [
htmlPlugin,
polyfillsLoader({
modernOutput: { name: 'modern', type: 'systemjs' },
polyfills: { hash: false, webcomponents: true, fetch: true },
}),
],
};
const outputOptions: OutputOptions[] = [
{
format: 'es',
dir: 'dist',
},
];
await testSnapshot({
name: 'customize-filetype',
fileName: 'index.html',
inputOptions,
outputOptions,
});
});
it('can customize the file type for multiple outputs', async () => {
const htmlPlugin = html({
input: {
html: `<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>`,
},
});
const inputOptions = {
plugins: [
htmlPlugin,
polyfillsLoader({
modernOutput: { name: 'modern', type: 'script' },
legacyOutput: [
{
name: 'legacy',
type: 'script',
test: "!('noModule' in HTMLScriptElement.prototype)",
},
],
polyfills: { hash: false, webcomponents: true, fetch: true },
}),
],
};
const outputOptions: OutputOptions[] = [
{
format: 'system',
dir: 'dist',
plugins: [htmlPlugin.api.addOutput('legacy')],
},
{
format: 'es',
dir: 'dist',
plugins: [htmlPlugin.api.addOutput('modern')],
},
];
await testSnapshot({
name: 'customize-filetype-multi-output',
fileName: 'index.html',
inputOptions,
outputOptions,
});
});
it('injects preload when there are no polyfills to inject', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
input: {
html: `
<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>
<script type="module" src="${relativeUrl}/fixtures/entrypoint-b.js"></script>`,
},
}),
polyfillsLoader(),
],
};
await testSnapshot({
name: 'no-polyfills',
fileName: 'index.html',
inputOptions,
outputOptions: defaultOutputOptions,
});
});
it('will retain attributes of script tags if there are no polyfills to inject', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
input: {
html: `
<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js" keep-this-attribute></script>
<script type="module" src="${relativeUrl}/fixtures/entrypoint-b.js"></script>`,
},
}),
polyfillsLoader(),
],
};
await testSnapshot({
name: 'no-polyfills-retain-attributes',
fileName: 'index.html',
inputOptions,
outputOptions: defaultOutputOptions,
});
});
it('can inject a polyfills loader as an external script', async () => {
const inputOptions: RollupOptions = {
plugins: [
html({
input: {
html: `<script type="module" src="${relativeUrl}/fixtures/entrypoint-a.js"></script>`,
},
}),
polyfillsLoader({
polyfills: { hash: false, fetch: true },
externalLoaderScript: true,
}),
],
};
await testSnapshot({
name: 'external-script',
fileName: 'index.html',
inputOptions,
outputOptions: defaultOutputOptions,
});
});
});
| modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/src/rollupPluginPolyfillsLoader.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/src/rollupPluginPolyfillsLoader.test.ts",
"repo_id": "modernweb-dev",
"token_count": 4833
} | 211 |
# @web/storybook-builder
See [our website](https://modern-web.dev/docs/storybook-builder/overview/) for full documentation.
| modernweb-dev/web/packages/storybook-builder/README.md/0 | {
"file_path": "modernweb-dev/web/packages/storybook-builder/README.md",
"repo_id": "modernweb-dev",
"token_count": 38
} | 212 |
// must be valid names (without \0) to let the transform logic work, specifically "rollup-plugin-external-globals"
// must have extension, otherwise "fromRollup" adapter will resolve it incorrectly as an "outside of root" dir
const PREFIX = 'virtual-web-storybook-builder-';
export const virtualAppFilename = `${PREFIX}app.js`;
export const virtualSetupAddonsFilename = `${PREFIX}setup-addons.js`;
export const virtualStoriesFilename = `${PREFIX}stories.js`;
| modernweb-dev/web/packages/storybook-builder/src/virtual-file-names.ts/0 | {
"file_path": "modernweb-dev/web/packages/storybook-builder/src/virtual-file-names.ts",
"repo_id": "modernweb-dev",
"token_count": 131
} | 213 |
import type { PresetProperty } from '@storybook/types';
import type { StorybookConfig } from './types.js';
export const core: PresetProperty<'core', StorybookConfig> = {
builder: '@web/storybook-builder',
renderer: '@storybook/web-components',
};
| modernweb-dev/web/packages/storybook-framework-web-components/src/preset.ts/0 | {
"file_path": "modernweb-dev/web/packages/storybook-framework-web-components/src/preset.ts",
"repo_id": "modernweb-dev",
"token_count": 80
} | 214 |
# Web Test Runner Browserstack
Browser launchers for web test runner to run tests remotely on [Browserstack](https://www.browserstack.com/).
See [our website](https://modern-web.dev/docs/test-runner/browser-launchers/browserstack/) for full documentation.
| modernweb-dev/web/packages/test-runner-browserstack/README.md/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-browserstack/README.md",
"repo_id": "modernweb-dev",
"token_count": 67
} | 215 |
import * as puppeteerCore from 'puppeteer-core';
import { ChromeLauncher, CreateBrowserContextFn, CreatePageFn } from './ChromeLauncher.js';
import { PuppeteerNodeLaunchOptions } from 'puppeteer-core';
export interface ChromeLauncherArgs {
puppeteer?: typeof puppeteerCore;
launchOptions?: PuppeteerNodeLaunchOptions;
createBrowserContext?: CreateBrowserContextFn;
createPage?: CreatePageFn;
concurrency?: number;
}
export { ChromeLauncher, puppeteerCore };
export function chromeLauncher(args: ChromeLauncherArgs = {}) {
const {
launchOptions = {},
createBrowserContext = ({ browser }) => browser.defaultBrowserContext(),
createPage = ({ context }) => context.newPage(),
puppeteer,
concurrency,
} = args;
return new ChromeLauncher(
launchOptions,
createBrowserContext,
createPage,
puppeteer,
concurrency,
);
}
| modernweb-dev/web/packages/test-runner-chrome/src/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-chrome/src/index.ts",
"repo_id": "modernweb-dev",
"token_count": 278
} | 216 |
/* eslint-env browser, es2020 */
const PARAM_SESSION_ID = 'wtr-session-id';
const sessionId = new URL(window.location.href).searchParams.get(PARAM_SESSION_ID);
function isObject(payload) {
return payload != null && typeof payload === 'object';
}
export async function executeServerCommand(command, payload, pluginName) {
if (typeof sessionId !== 'string') {
throw new Error(
'Unable to execute server commands in a browser not controlled by the test runner. ' +
'Use the debug option from the watch menu to debug in a controlled browser.',
);
}
let sendMessageWaitForResponse;
try {
const webSocketModule = await import('/__web-dev-server__web-socket.js');
({ sendMessageWaitForResponse } = webSocketModule);
} catch (error) {
throw new Error(
'Could not setup web socket connection. Are you executing this test through Web Test Runner?',
);
}
try {
const response = await sendMessageWaitForResponse({
type: 'wtr-command',
sessionId,
command,
payload,
});
if (!response.executed) {
let msg;
if (pluginName) {
msg = `Unknown command ${command}. Add the ${pluginName} to your config.`;
} else {
msg = `Unknown command ${command}. Did you install a plugin to handle this command?`;
}
throw new Error(msg);
}
return response.result;
} catch (error) {
throw new Error(
`Error while executing command ${command}${
payload ? ` with payload ${JSON.stringify(payload)}` : ''
}: ${error.message}`,
);
}
}
export function setViewport(viewport) {
return executeServerCommand('set-viewport', viewport);
}
export function emulateMedia(media) {
return executeServerCommand('emulate-media', media);
}
export function setUserAgent(options) {
return executeServerCommand('set-user-agent', options);
}
export function sendKeys(options) {
return executeServerCommand('send-keys', options);
}
export function selectOption(options) {
return executeServerCommand('select-option', options);
}
export function sendMouse(options) {
return executeServerCommand('send-mouse', options);
}
export function resetMouse(options) {
return executeServerCommand('reset-mouse', options);
}
export function a11ySnapshot(options) {
return executeServerCommand('a11y-snapshot', options);
}
export function writeFile(options) {
return executeServerCommand('write-file', options, 'filePlugin from @web/test-runner-commands');
}
export function readFile(options) {
return executeServerCommand('read-file', options, 'filePlugin from @web/test-runner-commands');
}
export function removeFile(options) {
return executeServerCommand('remove-file', options, 'filePlugin from @web/test-runner-commands');
}
export function findAccessibilityNode(node, test) {
if (test(node)) return node;
for (const child of node.children || []) {
const foundNode = findAccessibilityNode(child, test);
if (foundNode) {
return foundNode;
}
}
return null;
}
let snapshotConfig;
let cachedSnapshots;
export async function getSnapshotConfig() {
if (!snapshotConfig) {
snapshotConfig = await executeServerCommand(
'get-snapshot-config',
undefined,
'snapshotPlugin from @web/test-runner-commands',
);
}
return snapshotConfig;
}
/**
* This regexp is used to capture the snapshots contents.
*
* snapshots\[[^\]]+] = (\n)? - snapshot definition. Sometimes the initial content backtick is placed in the next line
* (?<content>`[^`]+`) - capture the snapshot content, which is included between backticks "`"
* /gm - global and multiline
* @type {RegExp}
*/
const ESCAPE_REGEX = /snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm;
const escapeContent = content => {
[...content.matchAll(ESCAPE_REGEX)].forEach(({ groups: { content: itemContent } }) => {
content = content.replaceAll(itemContent, encodeURIComponent(itemContent));
});
return content;
};
export async function getSnapshots({ cache = true } = {}) {
if (cache && cachedSnapshots) {
return cachedSnapshots;
}
const result = await executeServerCommand(
'get-snapshots',
undefined,
'snapshotPlugin from @web/test-runner-commands',
);
if (typeof result?.content !== 'string') {
throw new Error('Expected a result as string');
}
const content = `${escapeContent(result.content)}/* ${Math.random()} */`;
const module = await import(`data:text/javascript;charset=utf-8,${content}`);
if (!module || !isObject(module.snapshots)) {
throw new Error('Expected snapshot result to be a module that exports an object.');
}
cachedSnapshots = module.snapshots;
return cachedSnapshots;
}
export async function getSnapshot(options) {
if (!isObject(options)) throw new Error('You must provide a payload object');
if (typeof options.name !== 'string') throw new Error('You must provide a snapshot name');
const snapshots = await getSnapshots(options);
return snapshots[options.name];
}
export async function saveSnapshot(options) {
if (!isObject(options)) throw new Error('You must provide a payload object');
if (typeof options.name !== 'string') throw new Error('You must provide a snapshot name');
if (options.content !== undefined && typeof options.content !== 'string')
throw new Error('You must provide a snapshot content');
// ensure snapshots for this file are loaded
const snapshots = await getSnapshots();
// store snapshot in-memory
snapshots[options.name] = options.content;
return executeServerCommand(
'save-snapshot',
options,
'snapshotPlugin from @web/test-runner-commands',
);
}
export function removeSnapshot(options) {
if (!isObject(options)) throw new Error('You must provide a payload object');
if (typeof options.name !== 'string') throw new Error('You must provide a snapshot name');
return saveSnapshot({ ...options, content: undefined });
}
export async function compareSnapshot({ name, content }) {
const currentSnapshot = await getSnapshot({ name });
if (currentSnapshot) {
const config = await getSnapshotConfig();
if (!config.updateSnapshots) {
if (currentSnapshot !== content) {
throw new Error(
`Snapshots for ${name} are not equal. \n\n` +
`Stored:\n${currentSnapshot}\n\n` +
`New:\n${content}`,
);
}
} else if (currentSnapshot === content) {
return;
}
}
await saveSnapshot({ name, content });
}
| modernweb-dev/web/packages/test-runner-commands/browser/commands.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/browser/commands.mjs",
"repo_id": "modernweb-dev",
"token_count": 2087
} | 217 |
import path from 'path';
import { runTests } from '@web/test-runner-core/test-helpers';
import { chromeLauncher } from '@web/test-runner-chrome';
import { playwrightLauncher } from '@web/test-runner-playwright';
import { a11ySnapshotPlugin } from '../../src/a11ySnapshotPlugin.js';
describe('a11ySnapshotPlugin', function test() {
this.timeout(20000);
it('can find accessibility nodes in the returned accessibility tree on puppeteer', async () => {
await runTests({
files: [path.join(__dirname, 'browser-test.js')],
browsers: [chromeLauncher()],
plugins: [a11ySnapshotPlugin()],
});
});
it('can find accessibility nodes in the returned accessibility tree on playwright', async () => {
await runTests({
files: [path.join(__dirname, 'browser-test.js')],
browsers: [
playwrightLauncher({ product: 'chromium' }),
playwrightLauncher({ product: 'firefox' }),
playwrightLauncher({ product: 'webkit' }),
],
plugins: [a11ySnapshotPlugin()],
});
});
});
| modernweb-dev/web/packages/test-runner-commands/test/a11y-snapshot/a11ySnapshotPlugin.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/test/a11y-snapshot/a11ySnapshotPlugin.test.ts",
"repo_id": "modernweb-dev",
"token_count": 374
} | 218 |
import { sendKeys } from '../../browser/commands.mjs';
import { expect } from '../chai.js';
it('natively types into an input', async () => {
const keys = 'abc123';
const input = document.createElement('input');
document.body.append(input);
input.focus();
await sendKeys({
type: keys,
});
expect(input.value).to.equal(keys);
input.remove();
});
it('natively presses `Tab`', async () => {
const input1 = document.createElement('input');
const input2 = document.createElement('input');
document.body.append(input1, input2);
input1.focus();
expect(document.activeElement).to.equal(input1);
await sendKeys({
press: 'Tab',
});
expect(document.activeElement).to.equal(input2);
input1.remove();
input2.remove();
});
it('natively presses `Shift+Tab`', async () => {
const input1 = document.createElement('input');
const input2 = document.createElement('input');
document.body.append(input1, input2);
input2.focus();
expect(document.activeElement).to.equal(input2);
await sendKeys({
down: 'Shift',
});
await sendKeys({
press: 'Tab',
});
await sendKeys({
up: 'Shift',
});
expect(document.activeElement).to.equal(input1);
input1.remove();
input2.remove();
});
it('natively holds and then releases a key', async () => {
const input = document.createElement('input');
document.body.append(input);
input.focus();
await sendKeys({
down: 'Shift',
});
// Note that pressed modifier keys are only respected when using `press` or
// `down`, and only when using the `Key...` variants.
await sendKeys({
press: 'KeyA',
});
await sendKeys({
press: 'KeyB',
});
await sendKeys({
press: 'KeyC',
});
await sendKeys({
up: 'Shift',
});
await sendKeys({
press: 'KeyA',
});
await sendKeys({
press: 'KeyB',
});
await sendKeys({
press: 'KeyC',
});
expect(input.value).to.equal('ABCabc');
input.remove();
});
| modernweb-dev/web/packages/test-runner-commands/test/send-keys/browser-test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/test/send-keys/browser-test.js",
"repo_id": "modernweb-dev",
"token_count": 668
} | 219 |
# Test Runner Core
## Projects
- `@web/test-runner-core` implements the basics of the test runner.
- `@web/test-runner` reads command line args, starts the test runner, and adds default opinionated plugins, test framework and reporter.
- `@web/dev-server-core` is used as web server in the test runner.
- `@web/config-loader` is used to read the config.
- `@web/browser-logs` is used to serialize browser logs, and deserialize them on the server.
- `@web/test-runner-mocha` is a test framework implementation.
- `@web/test-runner-{chrome, puppeteer, playwright, webdriver, saucelabs, browserstack}` are browser launcher implementations.
- `@web/test-runner-junit-reporter` is a test reporter. `@web/test-runner` contains the default reporter.
- `@web/test-runner-commands` implements some default commands.
- `@web/test-runner-visual-regression` is a plugin for visual regression testing.
- `@web/test-runner-coverage-v8` is used for instrumenting test coverage using chromium.
- `@web/test-runner-cli` is now deprecated, and no longer used.
## Lifecycle of a test
This describes the lifecycle of a test file through the different parts of the test runner. Code snippets are simplified for clarity.
Let's say we are running tests using the default implementation of `@web/test-runner` and we have a config that looks like this:
```js
import { playwrightLauncher } from '@web/test-runner-chrome';
export default {
files: 'test/my-test.test.js',
browsers: [
playwrightLauncher({ product: 'chromium' }),
playwrightLauncher({ product: 'firefox' }),
],
};
```
The `TestRunner` class is instantiated with this config, and creates two test sessions:
```js
const defaultGroup = {
name: 'default',
testFiles: ['/my-project/test/my-test.test.js'],
browsers: config.browsers,
sessionIds: ['<uuid 1>', '<uuid 2>'],
};
const testSessions = [
{
id: '<uuid 1>',
group: defaultGroup,
browser: config.browsers[0],
testFile: '/my-project/test/my-test.test.js',
status: SESSION_STATUS.SCHEDULED,
},
{
id: '<uuid 2>',
group: defaultGroup,
browser: config.browsers[1],
testFile: '/my-project/test/my-test.test.js',
status: SESSION_STATUS.SCHEDULED,
},
];
```
These test sessions are handed to the `TestScheduler` which boots up the browsers and runs the tests:
```js
for (const session of testSessions) {
const url = createSessionUrl(session);
session.browser.startSession(session.id, url);
}
```
The test URL looks like this: `/?wtr-session-id=<uuid>`
And the served HTML page like this:
```html
<!DOCTYPE html>
<html>
<body>
<script type="module" src="/test-framework.js"></script>
</body>
</html>
```
The browser opens up the test URL in the browser where the configured test framework is loaded. The test framework now takes care of running your test file. For mocha it looks something like this:
```js
import {
sessionStarted,
getConfig,
sessionFinished,
} from '@web/test-runner-core/browser/session.js';
import 'mocha/mocha.js';
sessionStarted();
const { testFile } = await getConfig();
await import(testFile);
mocha.run(testResults => {
sessionFinished(testResults);
});
```
The browser has a websocket connection with the server. The test framework first communicates that the test session has started and later that it has finished. These updates are received by the server and communicated to the `TestSessionManager`. This fires events to notify the different parts of the test runner about these changes. For example to update progress logging.
After the scheduler starts a test session in the browser, it waits for the manager to notify that the session has finished. The scheduler will then close the browser, and collect data like test coverage from the browser.
```js
testSessionManager.on('session-status-updated', async session => {
if (session.status === SESSION_STATUS.TEST_FINISHED) {
const { testCoverage, errors } = await session.browser.stopSession(session.id);
const updatedSession = { ...session, errors, testCoverage };
testSessionManager.updateStatus(updatedSession, SESSION_STATUS.FINISHED);
}
});
```
This concludes the lifecycle of a test session. If it's a single test run, the test runner will wait for all tests to finish and exit. In watch mode, editing a file will trigger schedule a test session again and the cycle starts again from the beginning.
## Overview
This is an overview of the different components and data structures of the test runner.
### TestRunner
`TestRunner` is the main class that kicks off the test runner. It fires events notifying when individual test runs start, finish and when testing in general has finished. It contains a number of properties that contain information about the status of the test runner.
```js
const runner = new TestRunner(config, testGroupConfigs);
await runner.start();
runner.on('test-run-started', () => {
// ...
});
runner.on('finished', () => {
// ...
});
console.log(runner.config); // TestRunnerCoreConfig
console.log(runner.sessions); // TestSessionManager (see below)
console.log(runner.testFiles); // string[]
console.log(runner.browsers); // BrowserLauncher[] (taken from the config)
console.log(runner.browserNames); // string[]
console.log(runner.testRun); // number
console.log(runner.started); // boolean
console.log(runner.stopped); // boolean
console.log(runner.finished); // boolean
console.log(runner.passed); // boolean
await runner.stop();
```
### TestSessionManager
The `TestSessionManager` is created by the `TestRunner` class. It's a wrapper around multiple data structures that represent the status of the tests being executed by the test runner. It contains methods to update the status of test sessions, and to easily query different subsets. The manager fires events to notify about changes. The manager is mutable, but test sessions are immutable.
The manager is available from the test runner:
```js
const runner = new TestRunner(config, testGroupConfigs);
await runner.start();
console.log(runner.sessions.all());
console.log(runner.sessions.get(sessionId));
console.log(runner.sessions.forStatus(SESSION_STATUS.FINISHED));
console.log(runner.sessions.forBrowserName('chromium'));
console.log(runner.sessions.failed());
console.log(runner.sessions.passed());
console.log(runner.sessions.updateStatus(session, SESSION_STATUS.FINISHED));
```
### TestSession
A test session is a combination of a combination of a browser and a testfile. For example if you have test file A and B, and run them on the browsers chromium and firefox, there would be four total test sessions representing all the combinations.
The `TestSession` data structure represents these individual combinations, and contains information about the status and test results. The status property is updated over time as the test session executed. It's implemented as a regular javascript object, and should be treated as immutable.
### TestSessionGroup
A test group is a way to group together related tests which share the same configuration options. A user can do this from the config, using the `groups` entry. For example to execute a group of tests only on a certain browser, or to execute tests in a different HTML environment.
A default group is always created as well, this contains all the default options from the top level config.
### TestScheduler
The scheduler is created by the test runner, and is not exposed as a public property. It manages the actual execution of a test session, and communicates with the browser launcher.
For each test run tests are scheduled for execution. The scheduler will pick up these tests. It start up the browsers, executes the tests and gathers the test results. Multiple tests are executed concurrently, based on the concurrency settings. The other tests are queued until there is space available.
### TestRunnerServer
The test runner server is a wrapper around `@web/dev-server-core`. It sets up web dev server for serving the user's test files, and adds plugins and middleware necessary for the test runner.
### TestRunnerCli
The `TestRunnerCli` is responsible for reporting test results and progress to the terminal, and responding to user input from the interactive watch menu.
Reporting test results and progress is implemented by reporters. The default reporter is implemented in `@web/test-runner`. Different reporters can be configured by a user from the config.
The CLI is created separately from the test runner. It accepts the test runner instance in the constructor, so that it can communicate with it.
```js
const runner = new TestRunner(config, testGroupConfigs);
const cli = new TestRunnerCli(config, runner);
await runner.start();
cli.start();
```
### BrowserLauncher
A `BrowserLauncher` is an interface for communicating with a browser. It's responsible for booting up a browser, navigating to a test URL and returning the test results. The core projects doesn't implement any default browser launcher.
### TestFramework
A `TestFramework` is responsible for executing a test file in the browser, and pinging back the results. The core doesn't implement any test framework by default. `@web/test-runner-mocha` is included by default in `@web/test-runner`.
| modernweb-dev/web/packages/test-runner-core/architecture.md/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/architecture.md",
"repo_id": "modernweb-dev",
"token_count": 2523
} | 220 |
import { BrowserLauncher } from '../browser-launcher/BrowserLauncher';
import { TestRunnerCoreConfig } from './TestRunnerCoreConfig.js';
export interface TestRunnerGroupConfig {
name: string;
configFilePath?: string;
files?: string | string[];
browsers?: BrowserLauncher[];
testRunnerHtml?: (
testRunnerImport: string,
config: TestRunnerCoreConfig,
group: TestRunnerGroupConfig,
) => string;
}
| modernweb-dev/web/packages/test-runner-core/src/config/TestRunnerGroupConfig.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/config/TestRunnerGroupConfig.ts",
"repo_id": "modernweb-dev",
"token_count": 126
} | 221 |
import path from 'path';
import { SourceMapConverter } from 'convert-source-map';
import { SourceMapConsumer } from 'source-map';
import { fetchSourceMap } from '../../../utils/fetchSourceMap.js';
import { StackLocation } from '@web/browser-logs';
export type SourceMapFunction = (
loc: StackLocation,
userAgent: string,
) => Promise<StackLocation | null>;
function resolveRelativeTo(relativeTo: string, filePath: string): string {
if (path.isAbsolute(filePath)) {
return filePath;
}
const dir = path.dirname(relativeTo);
return path.join(dir, filePath);
}
/**
* Creates a function that can map file path, line an column based on source maps. It maintains a cache of source maps,
* so that they are not fetched multiple times.
* @param protocol
* @param host
* @param port
*/
export function createSourceMapFunction(
protocol: string,
host: string,
port: number,
): SourceMapFunction {
const cachedSourceMaps = new Map<string, Promise<SourceMapConverter | undefined>>();
return async ({ browserUrl, filePath, line, column }, userAgent) => {
const cacheKey = `${filePath}${userAgent}`;
if (!cachedSourceMaps.has(cacheKey)) {
cachedSourceMaps.set(
cacheKey,
fetchSourceMap({
protocol,
host,
port,
browserUrl,
userAgent,
})
.then(({ sourceMap }) => sourceMap)
.catch(() => undefined),
);
}
const sourceMap = await cachedSourceMaps.get(cacheKey);
if (!sourceMap) {
return null;
}
try {
// if there is no line and column we're looking for just the associated file, for example
// the test file itself has source maps. if this is a single file source map, we can return
// that.
if (typeof line !== 'number' || typeof column !== 'number') {
const sources = sourceMap.getProperty('sources') as string[] | undefined;
if (sources && sources.length === 1) {
return {
filePath: resolveRelativeTo(filePath, sources[0]),
browserUrl,
line: 0,
column: 0,
};
}
return null;
}
// do the actual source mapping
const consumer: SourceMapConsumer = await new SourceMapConsumer(sourceMap.sourcemap);
let originalPosition = consumer.originalPositionFor({
line: line ?? 0,
column: column ?? 0,
bias: SourceMapConsumer.GREATEST_LOWER_BOUND,
});
if (originalPosition.line == null) {
originalPosition = consumer.originalPositionFor({
line: line ?? 0,
column: column ?? 0,
bias: SourceMapConsumer.LEAST_UPPER_BOUND,
});
}
consumer.destroy();
if (originalPosition.line == null) {
return null;
}
if (!originalPosition.source) {
return null;
}
const newFilePath = originalPosition.source.split('/').join(path.sep);
return {
filePath: resolveRelativeTo(filePath, newFilePath),
browserUrl,
line: originalPosition.line ?? 0,
column: originalPosition.column ?? 0,
};
} catch (error) {
console.error(`Error while reading source maps for ${filePath}`);
console.error(error);
return null;
}
};
}
| modernweb-dev/web/packages/test-runner-core/src/server/plugins/api/createSourceMapFunction.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/server/plugins/api/createSourceMapFunction.ts",
"repo_id": "modernweb-dev",
"token_count": 1282
} | 222 |
export type TestSessionStatus = 'SCHEDULED' | 'INITIALIZING' | 'STARTED' | 'FINISHED';
export const SESSION_STATUS = {
// waiting for a browser to free up and run this test session
SCHEDULED: 'SCHEDULED' as TestSessionStatus,
// browser is booting up, waiting to ping back that it's starting
INITIALIZING: 'INITIALIZING' as TestSessionStatus,
// browser has started, running the actual tests
TEST_STARTED: 'TEST_STARTED' as TestSessionStatus,
// browser has collected the test results, but not yet results, logs or coverage
TEST_FINISHED: 'TEST_FINISHED' as TestSessionStatus,
// finished running tests and collecting tests results, logs, coverage etc.
FINISHED: 'FINISHED' as TestSessionStatus,
};
| modernweb-dev/web/packages/test-runner-core/src/test-session/TestSessionStatus.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/test-session/TestSessionStatus.ts",
"repo_id": "modernweb-dev",
"token_count": 221
} | 223 |
{
"name": "@web/test-runner-junit-reporter",
"version": "0.7.1",
"publishConfig": {
"access": "public"
},
"description": "Junit reporter for @web/test-runner",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages/test-runner-junit-reporter"
},
"author": "modern-web",
"homepage": "https://github.com/modernweb-dev/web/tree/master/packages/test-runner-junit-reporter",
"main": "dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"require": "./dist/index.js"
}
},
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"build": "tsc",
"test": "mocha test/**/*.test.ts --require ts-node/register --reporter dot",
"test:watch": "mocha test/**/*.test.ts --require ts-node/register --watch --watch-files src,test --reporter dot"
},
"files": [
"*.d.ts",
"*.js",
"*.mjs",
"dist",
"src"
],
"keywords": [
"web",
"test",
"runner",
"testrunner",
"junit",
"reporter"
],
"dependencies": {
"@web/test-runner-chrome": "^0.16.0",
"@web/test-runner-core": "^0.13.0",
"array-flat-polyfill": "^1.0.1",
"xml": "^1.0.1"
},
"devDependencies": {
"@types/xml": "^1.0.11",
"@web/test-runner-playwright": "^0.11.0"
}
}
| modernweb-dev/web/packages/test-runner-junit-reporter/package.json/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-junit-reporter/package.json",
"repo_id": "modernweb-dev",
"token_count": 635
} | 224 |
import deepmerge from 'deepmerge';
import createConfig from '../../rollup.browser.config.mjs';
const REGEXP_DTS_MOCHA = /'..\/..\/..\/node_modules\/mocha\/mocha.js'/g;
const REGEXP_DTS_CORE = /'..\/..\/test-runner-core\/browser\/session.js'/g;
const rewriteDtsPlugin = {
generateBundle(options, bundle) {
for (const [name, file] of Object.entries(bundle)) {
if (name.endsWith('.d.ts')) {
file.source = file.source
.replace(REGEXP_DTS_MOCHA, "'mocha/mocha.js'")
.replace(REGEXP_DTS_CORE, "'@web/test-runner-core/browser/session.js'");
}
}
},
};
const rewriteWebSocketImportPlugin = {
resolveId(id) {
if (id === '/__web-dev-server__web-socket.js') {
// rollup treats external absolute paths as relative to the root of the file sytem,
// while we want to preserve the absolute path. we use a bare import which is mapped
// again later
return { id: 'wds-socket', external: true };
}
},
};
export default [
deepmerge(createConfig('src/autorun.ts'), {
output: {
paths: {
// resolve bare import to an absolute import to avoid rollup
// from normalizing the import relative to the root of the file system
'wds-socket': '/__web-dev-server__web-socket.js',
},
},
plugins: [rewriteDtsPlugin, rewriteWebSocketImportPlugin],
}),
deepmerge(createConfig('src/standalone.ts'), {
output: {
paths: {
// resolve bare import to an absolute import to avoid rollup
// from normalizing the import relative to the root of the file system
'wds-socket': '/__web-dev-server__web-socket.js',
},
},
plugins: [rewriteDtsPlugin, rewriteWebSocketImportPlugin],
}),
];
| modernweb-dev/web/packages/test-runner-mocha/rollup.config.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-mocha/rollup.config.mjs",
"repo_id": "modernweb-dev",
"token_count": 675
} | 225 |
{
"name": "@web/test-runner-module-mocking",
"version": "0.1.0",
"publishConfig": {
"access": "public"
},
"description": "Package to enable mocking modules in @web/test-runner",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages/test-runner-module-mocking"
},
"author": "modern-web",
"homepage": "https://github.com/modernweb-dev/web/tree/master/packages/test-runner-module-mocking",
"main": "browser/index.js",
"type": "module",
"exports": {
".": "./browser/index.js",
"./plugin.js": "./dist/moduleMockingPlugin.js"
},
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"build": "tsc",
"test:node": "mocha test/**/*.test.ts --loader=ts-node/esm --reporter dot",
"test:watch": "mocha test/**/*.test.ts --loader ts-node/esm --watch --watch-files src,test"
},
"files": [
"*.d.ts",
"*.js",
"*.mjs",
"dist",
"src"
],
"keywords": [
"web",
"dev",
"server",
"test",
"runner",
"testrunner",
"module",
"intercept",
"mock",
"stub",
"spy"
],
"dependencies": {
"@web/dev-server-core": "^0.7.0",
"es-module-lexer": "^1.3.1"
},
"devDependencies": {
"@web/test-runner-chrome": "^0.16.0",
"@web/test-runner-core": "^0.13.0"
}
}
| modernweb-dev/web/packages/test-runner-module-mocking/package.json/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-module-mocking/package.json",
"repo_id": "modernweb-dev",
"token_count": 618
} | 226 |
import path from 'path';
import { fileURLToPath } from 'url';
import { runTests } from '@web/test-runner-core/test-helpers';
import { chromeLauncher } from '@web/test-runner-chrome';
import { nodeResolvePlugin } from '@web/dev-server';
import { moduleMockingPlugin } from '../src/moduleMockingPlugin.js';
import { expect } from 'chai';
const dirname = fileURLToPath(new URL('.', import.meta.url));
describe('moduleMockingPlugin', function test() {
this.timeout(20000);
it('can intercept server relative modules', async () => {
await runTests({
files: [path.join(dirname, 'fixtures', 'server-relative', 'browser-test.js')],
browsers: [chromeLauncher()],
plugins: [moduleMockingPlugin(), nodeResolvePlugin('', false, {})],
});
});
it('can intercept bare modules', async () => {
const rootDir = path.resolve(dirname, 'fixtures', 'bare', 'fixture');
// Define the bare module as duped to force nodeResolve to use the passed rootDir instead of the cwd
const dedupe = (importee: string) => importee === 'time-library/hour';
await runTests({
files: [path.join(dirname, 'fixtures', 'bare', 'browser-test.js')],
browsers: [chromeLauncher()],
plugins: [moduleMockingPlugin(), nodeResolvePlugin(rootDir, false, { dedupe })],
});
});
it('throws when trying to intercept without the plugin', async () => {
const { sessions } = await runTests(
{
files: [path.join(dirname, 'fixtures', 'server-relative', 'browser-test.js')],
browsers: [chromeLauncher()],
plugins: [nodeResolvePlugin('', false, {})],
},
[],
{ allowFailure: true, reportErrors: false },
);
expect(sessions.length).to.equal(1);
expect(sessions[0].passed).to.equal(false);
expect(sessions[0].errors.length).to.equal(1);
expect(sessions[0].logs[0][0]).to.match(/Error: Module interception is not active./);
expect(sessions[0].errors[0].message).to.match(/Could not import your test module./);
});
it('throws when trying to intercept an inexistent module', async () => {
const { sessions } = await runTests(
{
files: [path.join(dirname, 'fixtures', 'inexistent', 'browser-test.js')],
browsers: [chromeLauncher()],
plugins: [moduleMockingPlugin(), nodeResolvePlugin('', false, {})],
},
[],
{ allowFailure: true, reportErrors: false },
);
expect(sessions.length).to.equal(1);
expect(sessions[0].passed).to.equal(false);
expect(sessions[0].errors.length).to.equal(1);
expect(sessions[0].logs[0][0]).to.match(/Error: Could not resolve "\/inexistent-module.js"./);
expect(sessions[0].errors[0].message).to.match(/Could not import your test module./);
});
it('throws when trying to intercept a relative module', async () => {
const { sessions } = await runTests(
{
files: [path.join(dirname, 'fixtures', 'relative', 'browser-test.js')],
browsers: [chromeLauncher()],
plugins: [moduleMockingPlugin(), nodeResolvePlugin('', false, {})],
},
[],
{ allowFailure: true, reportErrors: false },
);
expect(sessions.length).to.equal(1);
expect(sessions[0].passed).to.equal(false);
expect(sessions[0].errors.length).to.equal(1);
expect(sessions[0].logs[0][0]).to.match(
/Error: Parameter `moduleName` \('.\/file\.js'\) contains a relative reference./,
);
expect(sessions[0].errors[0].message).to.match(/Could not import your test module./);
});
});
| modernweb-dev/web/packages/test-runner-module-mocking/test/moduleMockingPlugin.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-module-mocking/test/moduleMockingPlugin.test.ts",
"repo_id": "modernweb-dev",
"token_count": 1303
} | 227 |
// this file is autogenerated with the generate-mjs-dts-entrypoints script
import cjsEntrypoint from './dist/index.js';
const { seleniumLauncher, SeleniumLauncher } = cjsEntrypoint;
export { seleniumLauncher, SeleniumLauncher };
| modernweb-dev/web/packages/test-runner-selenium/index.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-selenium/index.mjs",
"repo_id": "modernweb-dev",
"token_count": 73
} | 228 |
export default 'moduleFeaturesA';
| modernweb-dev/web/packages/test-runner-selenium/test/fixtures/module-features-a.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-selenium/test/fixtures/module-features-a.js",
"repo_id": "modernweb-dev",
"token_count": 8
} | 229 |
# @web/test-runner-webdriver
## 0.8.0
### Minor Changes
- c185cbaa: Set minimum node version to 18
### Patch Changes
- Updated dependencies [c185cbaa]
- @web/test-runner-core@0.13.0
## 0.7.2
### Patch Changes
- Updated dependencies [43be7391]
- @web/test-runner-core@0.12.0
## 0.7.1
### Patch Changes
- 640ba85f: added types for main entry point
- Updated dependencies [640ba85f]
- @web/test-runner-core@0.11.6
## 0.7.0
### Minor Changes
- 812400a3: Update `webdriver` to version 8
### Patch Changes
- Updated dependencies [c26d3730]
- @web/test-runner-core@0.11.1
## 0.6.0
### Minor Changes
- febd9d9d: Set node 16 as the minimum version.
### Patch Changes
- Updated dependencies [febd9d9d]
- @web/test-runner-core@0.11.0
## 0.5.1
### Patch Changes
- 8a813171: Navigations to blank pages now use `about:blank` instead of `data:,`.
## 0.5.0
### Minor Changes
- 064b9dde: Add a resetMouse command that resets the mouse position and releases mouse buttons.
## 0.4.3
### Patch Changes
- bfa1d1ca: Update webdriver dependency to 7.16.0
## 0.4.2
### Patch Changes
- 33ada3d8: Align @web/test-runner-core version
## 0.4.1
### Patch Changes
- 6014eba2: Bump webdriverio dependency to 7.9.0
## 0.4.0
### Minor Changes
- 5d440dbd: Bump webdriverio to 7.7.4
## 0.3.0
### Minor Changes
- d1227d88: Update webdriverio dependency to v7
## 0.2.3
### Patch Changes
- e3314b02: update dependency on core
## 0.2.2
### Patch Changes
- 8861ded8: feat(dev-server-core): share websocket instances with iframe parent
- Updated dependencies [8861ded8]
- @web/test-runner-core@0.10.6
## 0.2.1
### Patch Changes
- 967f12d9: Fix intermittent testsStartTimeout on Safari on Sauce
## 0.2.0
### Minor Changes
- a7d74fdc: drop support for node v10 and v11
- 1dd7cd0e: version bump after breaking change in @web/test-runner-core
### Patch Changes
- Updated dependencies [1dd7cd0e]
- Updated dependencies [a7d74fdc]
- @web/test-runner-core@0.10.0
## 0.1.3
### Patch Changes
- 69b2d13d: use about:blank to kill stale browser pages, this makes tests that rely on browser focus work with puppeteer
## 0.1.2
### Patch Changes
- 75fba3d0: lazily create webdriver connection
## 0.1.1
### Patch Changes
- 5b117da4: add heartbeat to webdriver launcher
## 0.1.0
### Minor Changes
- 6e313c18: merged @web/test-runner-cli package into @web/test-runner
### Patch Changes
- Updated dependencies [6e313c18]
- Updated dependencies [0f613e0e]
- @web/test-runner-core@0.9.0
## 0.0.3
### Patch Changes
- ecfb31c: Update launcher type to webdriver
## 0.0.2
### Patch Changes
- 40cd5f6: Fixed the generated entrypoint
## 0.0.1
### Patch Changes
- 4c71303: Initial implementation of WebdriverIO launcher
| modernweb-dev/web/packages/test-runner-webdriver/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-webdriver/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 1037
} | 230 |
import { expect } from '@esm-bundle/chai';
import { foo } from '../src/foo.js';
it('works', () => {
foo();
expect(true).to.be.true;
});
| modernweb-dev/web/packages/test-runner/demo/coverage-babel/test/a.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/coverage-babel/test/a.test.js",
"repo_id": "modernweb-dev",
"token_count": 57
} | 231 |
export { a } from './a.js';
export { b } from './b.js'; | modernweb-dev/web/packages/test-runner/demo/source-maps/bundled/src/index.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/source-maps/bundled/src/index.js",
"repo_id": "modernweb-dev",
"token_count": 23
} | 232 |
/* @web/test-runner snapshot v1 */
export const snapshots = {};
snapshots["snapshot-a"] =
`some snapshot A1`;
/* end snapshot snapshot-a */
snapshots["snapshot-b"] =
`some snapshot B1`;
/* end snapshot snapshot-b */
snapshots["snapshot-c"] =
`some snapshot C1`;
/* end snapshot snapshot-c */
| modernweb-dev/web/packages/test-runner/demo/test/__snapshots__/pass-snapshot-1.test.snap.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/__snapshots__/pass-snapshot-1.test.snap.js",
"repo_id": "modernweb-dev",
"token_count": 103
} | 233 |
window.location.reload();
it('x', async () => {
await new Promise(r => setTimeout(r, 1000));
});
| modernweb-dev/web/packages/test-runner/demo/test/fail-location-reload.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/fail-location-reload.test.js",
"repo_id": "modernweb-dev",
"token_count": 35
} | 234 |
export default {
name: 'group-c',
files: 'c.test.js',
};
| modernweb-dev/web/packages/test-runner/demo/test/groups/c.test.config.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/groups/c.test.config.mjs",
"repo_id": "modernweb-dev",
"token_count": 26
} | 235 |
import { compareSnapshot } from '@web/test-runner-commands';
it('can test snapshot A', async () => {
await compareSnapshot({ name: 'snapshot-a', content: 'some snapshot A2' });
});
it('can test snapshot B', async () => {
await compareSnapshot({ name: 'snapshot-b', content: 'some snapshot B2' });
});
it('can test snapshot C', async () => {
await compareSnapshot({ name: 'snapshot-c', content: 'some snapshot C2' });
});
| modernweb-dev/web/packages/test-runner/demo/test/pass-snapshot-2.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/pass-snapshot-2.test.js",
"repo_id": "modernweb-dev",
"token_count": 136
} | 236 |
export {};
| modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/fail-1.test.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/fail-1.test.d.ts",
"repo_id": "modernweb-dev",
"token_count": 4
} | 237 |
import './shared-a.js';
import './shared-b.js';
| modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-5.test.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-5.test.d.ts",
"repo_id": "modernweb-dev",
"token_count": 20
} | 238 |
// this file is autogenerated with the generate-mjs-dts-entrypoints script
import cjsEntrypoint from './dist/index.js';
const {
chromeLauncher,
startTestRunner,
defaultReporter,
summaryReporter,
dotReporter,
formatError,
constants,
TestRunner,
TestRunnerCli,
BufferedLogger,
TestSessionManager,
SESSION_STATUS,
EventEmitter,
isTestFilePath,
fetchSourceMap,
} = cjsEntrypoint;
export {
chromeLauncher,
startTestRunner,
defaultReporter,
summaryReporter,
dotReporter,
formatError,
constants,
TestRunner,
TestRunnerCli,
BufferedLogger,
TestSessionManager,
SESSION_STATUS,
EventEmitter,
isTestFilePath,
fetchSourceMap,
};
| modernweb-dev/web/packages/test-runner/index.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/index.mjs",
"repo_id": "modernweb-dev",
"token_count": 237
} | 239 |
import {
TestRunnerCoreConfig,
TestSessionManager,
SESSION_STATUS,
TestCoverage,
CoverageConfig,
BrowserLauncher,
} from '@web/test-runner-core';
import { bold, gray, green, red } from 'nanocolors';
import { getPassedFailedSkippedCount } from './utils/getPassedFailedSkippedCount.js';
import { getCodeCoverage } from './getCodeCoverage.js';
import { renderProgressBar } from './renderProgressBar.js';
export interface TestProgressArgs {
browsers: BrowserLauncher[];
browserNames: string[];
testFiles: string[];
testRun: number;
sessions: TestSessionManager;
startTime: number;
watch: boolean;
focusedTestFile?: string;
coverage: boolean;
coverageConfig?: CoverageConfig;
testCoverage?: TestCoverage;
}
function getProgressReport(
name: string,
minWidth: number,
finishedFiles: number,
activeFiles: number,
testFiles: number,
passedTests: number,
skippedTests: number,
failedTests: number,
) {
const failedText = `${failedTests} failed`;
const testResults =
`${green(`${passedTests} passed`)}` +
`, ${failedTests !== 0 ? red(failedText) : failedText}` +
(skippedTests !== 0 ? `, ${gray(`${skippedTests} skipped`)}` : '');
const progressBar = `${renderProgressBar(
finishedFiles,
activeFiles,
testFiles,
)} ${finishedFiles}/${testFiles} test files`;
return `${`${name}:`.padEnd(minWidth)} ${progressBar} | ${testResults}`;
}
export function getTestProgressReport(config: TestRunnerCoreConfig, args: TestProgressArgs) {
const {
browsers,
browserNames,
testRun,
sessions,
watch,
startTime,
focusedTestFile,
coverage,
coverageConfig,
testCoverage,
} = args;
const entries: string[] = [];
const unfinishedSessions = Array.from(
sessions.forStatusAndTestFile(
focusedTestFile,
SESSION_STATUS.SCHEDULED,
SESSION_STATUS.INITIALIZING,
SESSION_STATUS.TEST_STARTED,
SESSION_STATUS.TEST_FINISHED,
),
);
const finishedFiles = new Set<string>();
let failedTestCount = 0;
let failed = false;
const longestBrowser = [...browserNames].sort((a, b) => b.length - a.length)[0];
const minWidth = longestBrowser ? longestBrowser.length + 1 : 0;
for (const browser of browsers) {
// when started or not initiliazing we render a progress bar
const allSessionsForBrowser = Array.from(sessions.forBrowser(browser));
const sessionsForBrowser = focusedTestFile
? allSessionsForBrowser.filter(s => s.testFile === focusedTestFile)
: allSessionsForBrowser;
const totalTestFiles = sessionsForBrowser.length;
let finishedFilesForBrowser = 0;
let activeFilesForBrowser = 0;
let passedTestsForBrowser = 0;
let skippedTestsForBrowser = 0;
let failedTestsForBrowser = 0;
for (const session of sessionsForBrowser) {
if (!session.passed) {
failed = true;
}
if (![SESSION_STATUS.SCHEDULED, SESSION_STATUS.FINISHED].includes(session.status)) {
activeFilesForBrowser += 1;
}
if (session.status === SESSION_STATUS.FINISHED) {
const { testFile, testResults } = session;
finishedFiles.add(testFile);
finishedFilesForBrowser += 1;
if (testResults) {
const parsed = getPassedFailedSkippedCount(testResults);
passedTestsForBrowser += parsed.passed;
skippedTestsForBrowser += parsed.skipped;
failedTestsForBrowser += parsed.failed;
failedTestCount += parsed.failed;
}
}
}
entries.push(
getProgressReport(
browser.name,
minWidth,
finishedFilesForBrowser,
activeFilesForBrowser,
totalTestFiles,
passedTestsForBrowser,
skippedTestsForBrowser,
failedTestsForBrowser,
),
);
}
entries.push('');
if (coverage && coverageConfig) {
if (testCoverage) {
if (!testCoverage.passed) {
failed = true;
}
const coverageReport = getCodeCoverage(testCoverage, watch, coverageConfig);
entries.push(...coverageReport);
}
}
if (testRun !== -1 && unfinishedSessions.length === 0) {
if (coverage && !testCoverage) {
entries.push(bold('Calculating code coverage...'));
} else if (config.watch) {
entries.push(bold(`Finished running tests, watching for file changes...`));
} else {
const durationInSec = (Date.now() - startTime) / 1000;
const duration = Math.trunc(durationInSec * 10) / 10;
if (failed) {
if (coverage && !testCoverage?.passed) {
entries.push(
bold(red(`Finished running tests in ${duration}s, failed to meet coverage threshold.`)),
);
} else if (failedTestCount > 0) {
entries.push(
bold(
red(`Finished running tests in ${duration}s with ${failedTestCount} failed tests.`),
),
);
} else if (finishedFiles.size > 0) {
entries.push(bold(red(`Error while running tests.`)));
} else {
entries.push(bold(red(`Failed to run any tests.`)));
}
} else {
entries.push(bold(`Finished running tests in ${duration}s, all tests passed! 🎉`));
}
}
} else {
entries.push(bold('Running tests...'));
}
entries.push('');
return entries;
}
| modernweb-dev/web/packages/test-runner/src/reporter/getTestProgress.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/reporter/getTestProgress.ts",
"repo_id": "modernweb-dev",
"token_count": 2057
} | 240 |
// GENERATED by update-package-tsconfig
{
"files": [],
"references": [
{
"path": "./dev-server-core/tsconfig.json"
},
{
"path": "./test-runner-core/tsconfig.json"
},
{
"path": "./test-runner-coverage-v8/tsconfig.json"
},
{
"path": "./test-runner-server/tsconfig.json"
},
{
"path": "./dev-server-rollup/tsconfig.json"
},
{
"path": "./test-runner-chrome/tsconfig.json"
},
{
"path": "./test-runner-cli/tsconfig.json"
},
{
"path": "./dev-server-legacy/tsconfig.json"
},
{
"path": "./test-runner-selenium/tsconfig.json"
},
{
"path": "./dev-server/tsconfig.json"
},
{
"path": "./dev-server-esbuild/tsconfig.json"
},
{
"path": "./test-runner/tsconfig.json"
},
{
"path": "./test-runner-puppeteer/tsconfig.json"
},
{
"path": "./test-runner-playwright/tsconfig.json"
},
{
"path": "./test-runner-browserstack/tsconfig.json"
}
]
} | modernweb-dev/web/packages/tsconfig.project.json/0 | {
"file_path": "modernweb-dev/web/packages/tsconfig.project.json",
"repo_id": "modernweb-dev",
"token_count": 521
} | 241 |
const packages = [
{ name: 'config-loader', type: 'js', environment: 'node' },
{ name: 'parse5-utils', type: 'js', environment: 'node' },
{ name: 'browser-logs', type: 'ts', environment: 'node' },
{ name: 'polyfills-loader', type: 'ts', environment: 'node' },
{ name: 'rollup-plugin-html', type: 'ts', environment: 'node' },
{ name: 'rollup-plugin-polyfills-loader', type: 'ts', environment: 'node' },
{ name: 'rollup-plugin-copy', type: 'js', environment: 'node' },
{ name: 'rollup-plugin-workbox', type: 'ts', environment: 'node' },
{ name: 'rollup-plugin-import-meta-assets', type: 'js', environment: 'node' },
{ name: 'dev-server', type: 'ts', environment: 'node' },
{ name: 'dev-server-core', type: 'ts', environment: 'node' },
{ name: 'dev-server-esbuild', type: 'ts', environment: 'node' },
{ name: 'dev-server-hmr', type: 'ts', environment: 'node' },
{ name: 'dev-server-polyfill', type: 'ts', environment: 'node' },
{ name: 'dev-server-rollup', type: 'ts', environment: 'node' },
{ name: 'dev-server-legacy', type: 'ts', environment: 'node' },
{ name: 'dev-server-import-maps', type: 'ts', environment: 'node' },
{ name: 'storybook-builder', type: 'ts', environment: 'node' },
{ name: 'storybook-framework-web-components', type: 'ts', environment: 'node' },
{ name: 'storybook-utils', type: 'js', environment: 'browser' },
{ name: 'test-runner', type: 'ts', environment: 'node' },
{ name: 'test-runner-core', type: 'ts', environment: 'node' },
{ name: 'test-runner-chrome', type: 'ts', environment: 'node' },
{ name: 'test-runner-puppeteer', type: 'ts', environment: 'node' },
{ name: 'test-runner-playwright', type: 'ts', environment: 'node' },
{ name: 'test-runner-selenium', type: 'ts', environment: 'node' },
{ name: 'test-runner-browserstack', type: 'ts', environment: 'node' },
{ name: 'test-runner-coverage-v8', type: 'ts', environment: 'node' },
{ name: 'test-runner-commands', type: 'ts', environment: 'node' },
{ name: 'test-runner-module-mocking', ignoreTsConfig: true },
{ name: 'test-runner-junit-reporter', type: 'ts', environment: 'node' },
{ name: 'test-runner-mocha', type: 'ts', environment: 'browser' },
{ name: 'test-runner-saucelabs', type: 'ts', environment: 'node' },
{ name: 'test-runner-visual-regression', type: 'ts', environment: 'node' },
{ name: 'test-runner-webdriver', type: 'ts', environment: 'node' },
{ name: 'dev-server-storybook', ignoreTsConfig: true },
];
export { packages };
| modernweb-dev/web/workspace-packages.mjs/0 | {
"file_path": "modernweb-dev/web/workspace-packages.mjs",
"repo_id": "modernweb-dev",
"token_count": 874
} | 242 |
const fs = require('fs');
const path = require('path');
const langsPath = path.resolve(__dirname, '../src/lang');
const oldLangsPath = path.resolve(__dirname, '../src/lang/old');
const excludedLangKeys = ['title_template'];
const langs = fs.readdirSync(langsPath).filter(dir => ['.', '..', 'old', 'index.js'].includes(dir) === false);
if (!fs.existsSync(oldLangsPath)) {
fs.mkdirSync(oldLangsPath);
}
langs.forEach((langFile) => {
// Make a backup of the old file.
if (!fs.existsSync(path.resolve(oldLangsPath, langFile))) {
fs.copyFileSync(path.resolve(langsPath, langFile), path.resolve(oldLangsPath, langFile));
}
const lang = JSON.parse(fs.readFileSync(path.resolve(langsPath, langFile)));
const pattern = /(%[^\s^%]+)/g;
const updatedLang = {};
Object.entries(lang).map(([langKey, string]) => {
let count = 0;
const replaced = string.split(pattern).map((split) => {
if (excludedLangKeys.includes(langKey) === false && split.match(pattern)) {
// eslint-disable-next-line no-plusplus
return `{${count++}}`;
}
return split;
});
updatedLang[langKey] = replaced.join('');
return updatedLang[langKey];
});
fs.writeFileSync(path.resolve(langsPath, langFile), JSON.stringify(updatedLang, undefined, ' '));
});
| odota/web/dev/migrateLangFormat.js/0 | {
"file_path": "odota/web/dev/migrateLangFormat.js",
"repo_id": "odota",
"token_count": 496
} | 243 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M0 0h640v480H0z"/>
</clipPath>
</defs>
<g clip-path="url(#a)">
<path fill-rule="evenodd" fill="#fff" d="M.426.42H403.1v240.067H.427z"/>
<path d="M.426.422L.41 18.44l96.093 59.27 36.155 1.257L.424.422z" fill="#c00"/>
<path d="M41.573.422l116.494 73.046V.422H41.573z" fill="#006"/>
<path d="M173.607.422v93.25H.423v53.288h173.184v93.25h53.286v-93.25h173.185V93.673H226.893V.423h-53.286z" fill="#c00"/>
<path d="M242.435.422V69.25L356.407.955 242.435.422z" fill="#006"/>
<path d="M246.032 76.754l32.054-.31L402.604.955l-33.037.647-123.535 75.154z" fill="#c00"/>
<path d="M401.34 21.09l-95.12 56.62 93.853.42v84.37h-79.93l79.19 51.51 1.163 26.2-42.297-.605-115.763-68.222v68.828h-84.37v-68.827l-108.59 68.643-49.046.185v239.794h799.294V.426l-397.537-.43M.43 27.06l-.42 49.8 84.146 1.266L.43 27.06zM.426 162.497v51.066l79.93-50.533-79.93-.533z" fill="#006"/>
<path d="M308.217 164.606l-33.322-.31 125.597 75.067-.826-17.174-91.453-57.584zM31.637 240.63l117.767-74.225-30.93.247L.423 240.518" fill="#c00"/>
<path d="M525.376 247.8l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M527.406 247.8l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M521.315 249.83l2.03 2.032-2.03-2.03z" fill="#262678"/>
<path d="M523.346 249.83l2.03 2.032-2.03-2.03z" fill="#808067"/>
<path d="M529.436 249.83l2.03 2.032-2.03-2.03z" fill="#58587b"/>
<path d="M454.32 251.862l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M517.255 251.862l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M519.285 251.862l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M457.892 255.536c0 52.457-6.046 111.57 33.052 152.65 8.043 8.453 23.345 27.725 36.462 26.986 13.732-.773 31.39-21.093 39.246-31.045 34.034-44.77 28.624-98.17 29.78-150.134-15.368 6.902-23.022 9.176-36.462 9.136-9.954 1.022-25.31-5.67-34.493-10.045-6 4.007-14.706 8.786-30.35 9.323-18.07.795-23.795-2.267-37.235-6.872z" fill="#cc3"/>
<path d="M531.466 251.862l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M533.497 251.862l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M596.433 251.862l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M456.35 253.892l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M458.38 253.892l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M460.41 253.892l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M513.195 253.892l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M515.225 253.892l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M517.255 253.892l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M525.376 253.892l2.03 2.03-2.03-2.03z" fill="#d0d045"/>
<path d="M533.497 253.892l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M535.527 253.892l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M537.557 253.892l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M590.342 253.892l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M592.372 253.892l2.03 2.03-2.03-2.03z" fill="#53527c"/>
<path d="M594.403 253.892l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M464.47 255.922l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M466.5 255.922l2.03 2.03-2.03-2.03z" fill="#53527c"/>
<path d="M468.53 255.922l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M509.134 255.922l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M511.164 255.922l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M513.195 255.922l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M523.346 255.922l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M462.054 261.24c-1.092 27.557-.254 58.587 4.054 88.07 4.763 15.404 4.126 23.866 11.203 33.098l99.07-.772c5.97-9.712 10.397-24.44 10.968-30.295 5.532-29.776 5.664-62.636 5.796-92.028-9.962 5.296-23.008 9.05-35.67 7.402-10.152-.774-19.53-3.09-30.454-9.264-9.475 5.676-12.778 8.268-28.423 8.93-12.18.6-22.048 1.588-36.543-5.14z" fill="#fff"/>
<path d="M527.406 255.922l2.03 2.03-2.03-2.03z" fill="#f2f1d7"/>
<path d="M529.436 255.922l2.03 2.03-2.03-2.03z" fill="#d9d868"/>
<path d="M537.557 255.922l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M539.587 255.922l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M541.617 255.922l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M543.648 255.922l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M584.252 255.922l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M586.282 255.922l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M588.312 255.922l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M590.342 255.922l2.03 2.03-2.03-2.03m-121.812 2.03l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M470.56 257.952l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M472.59 257.952l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M474.62 257.952l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M476.65 257.952l2.03 2.03-2.03-2.03m26.394 0l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M505.074 257.952l2.03 2.03-2.03-2.03z" fill="#53527c"/>
<path d="M507.104 257.952l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M509.134 257.952l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M519.285 257.952l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M521.315 257.952l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M531.466 257.952l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M533.497 257.952l2.03 2.03-2.03-2.03z" fill="#d9d868"/>
<path d="M543.648 257.952l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M545.678 257.952l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M547.708 257.952l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M574.1 257.952l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M576.13 257.952l2.03 2.03-2.03-2.03z" fill="#32327b"/>
<path d="M578.16 257.952l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M580.19 257.952l2.03 2.03-2.03-2.03z" fill="#808067"/>
<path d="M583.582 258.622l1.352.677-1.352-.678z" fill="#a4a43d"/>
<path d="M460.41 259.982l2.03 2.03-2.03-2.03z" fill="#dddc7a"/>
<path d="M462.44 259.982l2.03 2.03-2.03-2.03z" fill="#d0d045"/>
<path d="M478.01 260.652l1.353.677-1.352-.678z" fill="#a4a43d"/>
<path d="M480.71 259.982l2.032 2.03-2.03-2.03z" fill="#808067"/>
<path d="M482.742 259.982l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M484.772 259.982l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M486.802 259.982l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M498.983 259.982l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M501.013 259.982l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M503.044 259.982l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M515.225 259.982l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M517.255 259.982l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M535.527 259.982l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M537.557 259.982l2.03 2.03-2.03-2.03z" fill="#d9d868"/>
<path d="M549.068 260.652l1.352.677-1.352-.678z" fill="#a4a43d"/>
<path d="M551.768 259.982l2.03 2.03-2.03-2.03z" fill="#808067"/>
<path d="M553.8 259.982l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M555.83 259.982l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M557.86 259.982l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M567.34 260.652l1.352.677-1.352-.678z" fill="#58587b"/>
<path d="M570.04 259.982l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M572.07 259.982l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M574.1 259.982l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M590.342 259.982l2.03 2.03-2.03-2.03z" fill="#dddc7a"/>
<path d="M592.372 259.982l2.03 2.03-2.03-2.03z" fill="#d0d045"/>
<path d="M464.47 262.013l2.03 2.03-2.03-2.03z" fill="#f2f1d7"/>
<path d="M466.5 262.013l2.03 2.03-2.03-2.03z" fill="#e0dea1"/>
<path d="M468.53 262.013l2.03 2.03-2.03-2.03z" fill="#dddc7a"/>
<path d="M509.134 262.013l2.03 2.03-2.03-2.03z" fill="#d9d868"/>
<path d="M511.164 262.013l2.03 2.03-2.03-2.03z" fill="#e5e3af"/>
<path d="M539.587 262.013l2.03 2.03-2.03-2.03z" fill="#f6f6e4"/>
<path d="M541.617 262.013l2.03 2.03-2.03-2.03z" fill="#e1e18c"/>
<path d="M582.22 262.013l2.032 2.03-2.03-2.03z" fill="#d4d456"/>
<path d="M584.252 262.013l2.03 2.03-2.03-2.03z" fill="#e1e18c"/>
<path d="M586.282 262.013l2.03 2.03-2.03-2.03z" fill="#eeedc1"/>
<path d="M472.59 264.043l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M474.62 264.043l2.03 2.03-2.03-2.03z" fill="#e0dea1"/>
<path d="M476.65 264.043l2.03 2.03-2.03-2.03z" fill="#dddc7a"/>
<path d="M478.68 264.043l2.03 2.03-2.03-2.03z" fill="#d0d045"/>
<path d="M503.044 264.043l2.03 2.03-2.03-2.03z" fill="#dddc7a"/>
<path d="M505.074 264.043l2.03 2.03-2.03-2.03z" fill="#e5e3af"/>
<path d="M507.104 264.043l2.03 2.03-2.03-2.03z" fill="#f6f6e4"/>
<path d="M545.678 264.043l2.03 2.03-2.03-2.03z" fill="#eeedc1"/>
<path d="M547.708 264.043l2.03 2.03-2.03-2.03z" fill="#e1e18c"/>
<path d="M549.738 264.043l2.03 2.03-2.03-2.03z" fill="#d4d456"/>
<path d="M574.1 264.043l2.03 2.03-2.03-2.03z" fill="#d9d868"/>
<path d="M576.13 264.043l2.03 2.03-2.03-2.03z" fill="#e1e18c"/>
<path d="M578.16 264.043l2.03 2.03-2.03-2.03z" fill="#eeedc1"/>
<path d="M580.19 264.043l2.03 2.03-2.03-2.03z" fill="#f6f6e4"/>
<path d="M482.742 266.073l2.03 2.03-2.03-2.03z" fill="#f2f1d7"/>
<path d="M484.772 266.073l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M486.802 266.073l2.03 2.03-2.03-2.03z" fill="#eeedc1"/>
<path d="M496.283 266.743l1.352.677-1.352-.677z" fill="#f2f1d2"/>
<path d="M498.983 266.073l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M509.134 266.073l4.06 4.06v-4.06h-4.06z" fill="#fef8f1"/>
<path d="M553.8 266.073l2.03 2.03-2.03-2.03z" fill="#f2f1d7"/>
<path d="M555.83 266.073l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M557.86 266.073l2.03 2.03-2.03-2.03z" fill="#e5e3af"/>
<path d="M561.25 266.743l1.352.677-1.353-.677z" fill="#e5e59d"/>
<path d="M563.95 266.073l2.03 2.03-2.03-2.03z" fill="#e0dea1"/>
<path d="M567.34 266.743l1.352.677-1.352-.677z" fill="#f2f1d2"/>
<path d="M570.04 266.073l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M505.074 268.103l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M507.104 268.103l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M505.074 270.133l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M509.134 270.133l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M505.074 272.164l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M509.134 272.164l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M503.044 274.194l2.03 2.03-2.03-2.03m8.12 0l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M521.315 274.194l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M523.346 274.194l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M531.466 274.194l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M533.497 274.194l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M503.044 276.224l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M511.164 276.224l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M515.225 276.224l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M517.255 276.224l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M519.285 276.224l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M535.527 276.224l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M537.557 276.224l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M503.044 278.254l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M513.195 278.254l2.03 2.03-2.03-2.03m26.392 0l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M541.617 278.254l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M460.41 280.284l2.03 2.03-2.03-2.03z" fill="#f6f6e4"/>
<path d="M503.044 280.284l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M543.648 280.284l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M545.678 280.284l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M503.044 282.315l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M549.738 282.315l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M551.768 282.315l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M501.013 284.345l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M503.044 284.345l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M559.89 284.345l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M561.92 284.345l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M563.95 284.345l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M565.98 284.345l4.06 4.06-4.06-4.06z" fill="#f9d6aa"/>
<path d="M568.01 284.345l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M501.013 286.375l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M529.436 286.375l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M531.466 286.375l2.03 2.03-2.03-2.03zm8.121 0l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M541.617 286.375l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M498.983 288.405l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M525.376 288.405l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M527.406 288.405l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M543.648 288.405l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M545.678 288.405l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M557.86 288.405l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M559.89 288.405l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M561.92 288.405l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M563.95 288.405l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M498.983 290.435l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M523.346 290.435l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M547.708 290.435l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M555.83 290.435l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M496.953 292.466l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M521.315 292.466l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M549.738 292.466l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M555.83 292.466l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M496.953 294.496l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M519.285 294.496l2.03 2.03-2.03-2.03m32.483 0l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M555.83 294.496l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M460.41 296.526l2.03 2.03-2.03-2.03z" fill="#f6f6e4"/>
<path d="M496.953 296.526l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M519.285 296.526l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M551.768 296.526l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M557.86 296.526l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M494.923 298.556l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M517.255 298.556l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M553.8 298.556l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M557.86 298.556l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M494.923 300.586l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M517.255 300.586l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M527.406 300.586l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M529.436 300.586l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M531.466 300.586l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M533.497 300.586l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M553.8 300.586l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M555.83 300.586l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M557.86 300.586l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M494.923 302.617l-2.03 6.09 2.03-6.09z" fill="#faca88"/>
<path d="M515.225 302.617l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M517.255 302.617l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M527.406 302.617l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M535.527 302.617l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M537.557 302.617l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M555.83 302.617l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M557.86 302.617l2.03 2.03-2.03-2.03z" fill="#f90"/>
<path d="M560.56 303.977l.677 1.353-.678-1.353z" fill="#fbead6"/>
<path d="M519.285 304.647l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M521.315 304.647l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M523.346 304.647l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M525.376 304.647l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M527.406 304.647l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M529.436 304.647l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M539.587 304.647l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M541.617 304.647l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M543.648 304.647l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M545.678 304.647l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M549.068 305.317l1.352.677-1.352-.677z" fill="#fae3c9"/>
<path d="M551.768 304.647l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M557.86 304.647l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M470.56 306.677l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M472.59 306.677l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M525.376 306.677l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M529.436 306.677l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M531.466 306.677l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M547.708 306.677l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M549.738 306.677l-2.03 4.06 2.03-4.06z" fill="#fcb144"/>
<path d="M553.8 306.677l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M555.83 306.677l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M557.86 306.677l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M470.56 308.707l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M472.59 308.707l4.06 4.06-4.06-4.06z" fill="#fe9f11"/>
<path d="M474.62 308.707l2.03 2.03-2.03-2.03zm18.273 0l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M494.923 308.707l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M513.195 308.707l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M515.225 308.707l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M517.255 308.707l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M523.346 308.707l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M525.376 308.707l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M533.497 308.707l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M549.738 308.707l2.03 2.03-2.03-2.03z" fill="#fff"/>
<path d="M551.768 308.707l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M559.89 308.707l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M470.56 310.737l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M476.65 310.737l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M486.802 310.737l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M496.953 310.737l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M500.343 311.407l1.353.677-1.353-.677z" fill="#f9d6aa"/>
<path d="M513.195 310.737l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M519.285 310.737l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M535.527 310.737l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M549.738 310.737l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M561.92 310.737l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M563.95 310.737l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M454.32 312.768l2.03 2.03-2.03-2.03z" fill="#53527c"/>
<path d="M472.59 312.768l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M476.65 312.768l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M484.772 312.768l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M488.832 312.768l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M490.862 312.768l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M496.953 312.768l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M498.983 312.768l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M501.013 312.768l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M511.164 312.768l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M537.557 312.768l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M563.95 312.768l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M596.433 312.768l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M460.41 314.798l2.03 2.03-2.03-2.03z" fill="#e5e3af"/>
<path d="M472.59 314.798l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M478.68 314.798l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M484.772 314.798l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M488.832 314.798l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M496.953 314.798l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M511.164 314.798l2.03 2.03-2.03-2.03m28.423 0l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M565.98 314.798l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M474.62 316.828l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M480.71 316.828l2.032 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M482.742 316.828l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M486.802 316.828l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M488.832 316.828l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M498.983 316.828l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M511.164 316.828l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M541.617 316.828l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M568.01 316.828l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M474.62 318.858l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M486.802 318.858l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M498.983 318.858l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M509.134 318.858l2.03 2.03-2.03-2.03m34.514 0l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M570.04 318.858l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M476.65 320.888l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M484.772 320.888l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M501.013 320.888l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M509.134 320.888l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M543.648 320.888l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M570.04 320.888l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M460.41 322.92l2.03 2.03-2.03-2.03z" fill="#d3d079"/>
<path d="M476.65 322.92l2.03 2.03-2.03-2.03zm24.363 0l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M509.134 322.92l2.03 2.03-2.03-2.03m34.514 0l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M572.07 322.92l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M590.342 322.92l2.03 2.03-2.03-2.03z" fill="#f2f1d7"/>
<path d="M597.103 324.28l.678 1.352-.677-1.353z" fill="#58587b"/>
<path d="M461.08 326.31l.677 1.352-.678-1.353z" fill="#d9d868"/>
<path d="M476.65 324.95l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M541.617 324.95l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M543.648 324.95l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M572.07 324.95l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M591.012 326.31l.678 1.352-.678-1.353z" fill="#f2f1d2"/>
<path d="M476.65 326.98l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M539.587 326.98l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M541.617 326.98l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M547.708 326.98l-2.03 4.06 2.03-4.06z" fill="#fdab33"/>
<path d="M549.738 326.98l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M574.1 326.98l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M576.13 326.98l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M596.433 326.98l2.03 2.03-2.03-2.03z" fill="#53527c"/>
<path d="M457.02 330.37l.677 1.352-.678-1.353z" fill="#808067"/>
<path d="M478.68 329.01l2.03 2.03-2.03-2.03m6.092 0l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M507.104 329.01l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M539.587 329.01l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M547.708 329.01l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M551.768 329.01l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M578.16 329.01l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M580.19 329.01l4.062 4.06-4.06-4.06z" fill="#fef8f1"/>
<path d="M591.012 330.37l.678 1.352-.678-1.353z" fill="#e5e59d"/>
<path d="M597.103 330.37l.678 1.352-.677-1.353z" fill="#32327b"/>
<path d="M479.35 332.4l.68 1.352-.68-1.352z" fill="#fcb755"/>
<path d="M486.802 331.04l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M507.104 331.04l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M539.587 331.04l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M543.648 331.04l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M545.678 331.04l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M551.768 331.04l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M580.19 331.04l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M456.35 333.07l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M462.44 333.07l2.03 2.03-2.03-2.03z" fill="#f6f6e4"/>
<path d="M486.802 333.07l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M503.044 333.07l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M505.074 333.07l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M507.104 333.07l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M541.617 333.07l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M543.648 333.07l2.03 2.03-2.03-2.03m10.15 0l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M582.22 333.07l2.032 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M590.342 333.07l2.03 2.03-2.03-2.03z" fill="#dddc7a"/>
<path d="M456.35 335.1l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M462.44 335.1l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M479.35 336.46l.68 1.352-.68-1.352z" fill="#fcb144"/>
<path d="M486.802 335.1l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M507.104 335.1l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M509.134 335.1l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M513.195 335.1l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M515.225 335.1l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M541.617 335.1l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M543.648 335.1l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M553.8 335.1l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M555.83 335.1l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M584.252 335.1l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M590.342 335.1l2.03 2.03-2.03-2.03z" fill="#d9d868"/>
<path d="M456.35 337.13l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M462.44 337.13l2.03 2.03-2.03-2.03z" fill="#e5e3af"/>
<path d="M488.832 337.13l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M509.134 337.13l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M515.225 337.13l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M517.255 337.13l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M539.587 337.13l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M541.617 337.13l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M543.648 337.13l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M555.83 337.13l2.03 2.03-2.03-2.03m16.24 0l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M574.1 337.13l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M576.13 337.13l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M578.16 337.13l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M580.19 337.13l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M584.252 337.13l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M594.403 337.13l2.03 2.03-2.03-2.03z" fill="#808067"/>
<path d="M456.35 339.16l2.03 2.03-2.03-2.03z" fill="#32327b"/>
<path d="M459.05 340.52l.677 1.353-.678-1.353z" fill="#a4a43d"/>
<path d="M462.44 339.16l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M478.68 339.16l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M490.862 339.16l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M511.164 339.16l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M517.255 339.16l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M535.527 339.16l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M537.557 339.16l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M545.678 339.16l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M555.83 339.16l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M572.07 339.16l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M582.22 339.16l2.032 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M584.252 339.16l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M594.403 339.16l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M462.44 341.19l2.03 2.03-2.03-2.03z" fill="#d9d868"/>
<path d="M478.68 341.19l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M492.893 341.19l2.03 2.03-2.03-2.03m18.27 0l2.032 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M517.255 341.19l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M527.406 341.19l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M529.436 341.19l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M531.466 341.19l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M533.497 341.19l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M545.678 341.19l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M588.312 341.19l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M594.403 341.19l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M458.38 343.22l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M462.44 343.22l2.03 2.03-2.03-2.03z" fill="#d0d045"/>
<path d="M494.923 343.22l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M496.953 343.22l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M511.164 343.22l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M519.285 343.22l2.03 2.03-2.03-2.03z" fill="#fcb755"/>
<path d="M521.315 343.22l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M523.346 343.22l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M525.376 343.22l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M541.617 343.22l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M543.648 343.22l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M572.07 343.22l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M588.312 343.22l2.03 2.03-2.03-2.03z" fill="#e0dea1"/>
<path d="M594.403 343.22l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M458.38 345.25l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M464.47 345.25l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M480.71 345.25l2.032 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M498.983 345.25l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M501.013 345.25l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M503.044 345.25l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M505.074 345.25l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M507.104 345.25l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M509.134 345.25l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M511.164 345.25l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M539.587 345.25l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M541.617 345.25l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M570.04 345.25l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M588.312 345.25l2.03 2.03-2.03-2.03z" fill="#e1e18c"/>
<path d="M593.042 346.61l.678 1.353-.678-1.352z" fill="#a4a43d"/>
<path d="M594.403 345.25l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M458.38 347.28l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M464.47 347.28l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M480.71 347.28l2.032 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M535.527 347.28l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M537.557 347.28l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M555.83 347.28l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M570.04 347.28l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M588.312 347.28l2.03 2.03-2.03-2.03z" fill="#d4d456"/>
<path d="M458.38 349.31l2.03 2.03-2.03-2.03z" fill="#32327b"/>
<path d="M464.47 349.31l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M480.71 349.31l2.032 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M482.742 349.31l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M535.527 349.31l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M555.83 349.31l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M570.04 349.31l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M592.372 349.31l2.03 2.03-2.03-2.03z" fill="#808067"/>
<path d="M458.38 351.34l2.03 2.032-2.03-2.03z" fill="#0e0e6e"/>
<path d="M460.41 351.34l2.03 2.032-2.03-2.03z" fill="#a4a43d"/>
<path d="M464.47 351.34l2.03 2.032-2.03-2.03z" fill="#d9d868"/>
<path d="M482.742 351.34l2.03 2.032-2.03-2.03z" fill="#f8dcbb"/>
<path d="M553.8 351.34l2.03 2.032-2.03-2.03z" fill="#f9d6aa"/>
<path d="M568.01 351.34l2.03 2.032-2.03-2.03z" fill="#faca88"/>
<path d="M586.282 351.34l2.03 2.032-2.03-2.03z" fill="#f2f1d2"/>
<path d="M592.372 351.34l2.03 2.032-2.03-2.03z" fill="#58587b"/>
<path d="M460.41 353.372l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M484.772 353.372l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M525.376 353.372l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M527.406 353.372l2.03 2.03-2.03-2.03z" fill="#fff"/>
<path d="M530.796 354.042l1.353.678-1.354-.678z" fill="#fcb144"/>
<path d="M551.768 353.372l-2.03 4.06 2.03-4.06z" fill="#fef8f1"/>
<path d="M553.8 353.372l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M565.98 353.372l-2.03 4.06 2.03-4.06z" fill="#fdab33"/>
<path d="M586.282 353.372l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M592.372 353.372l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M460.41 355.402l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M466.5 355.402l2.03 2.03-2.03-2.03z" fill="#f2f1d2"/>
<path d="M486.802 355.402l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M525.376 355.402l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M527.406 355.402l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M529.436 355.402l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M531.466 355.402l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M551.768 355.402l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M565.98 355.402l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M586.282 355.402l2.03 2.03-2.03-2.03z" fill="#d9d868"/>
<path d="M590.342 355.402l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M592.372 355.402l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M460.41 357.432l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M466.5 357.432l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M488.832 357.432l4.06 4.06-4.06-4.06z" fill="#fae3c9"/>
<path d="M490.862 357.432l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M529.436 357.432l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M547.708 357.432l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M549.738 357.432l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M561.92 357.432l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M563.95 357.432l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M584.252 357.432l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M590.342 357.432l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M460.41 359.462l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M462.44 359.462l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M466.5 359.462l2.03 2.03-2.03-2.03z" fill="#d4d456"/>
<path d="M527.406 359.462l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M545.678 359.462l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M547.708 359.462l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M559.89 359.462l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M584.252 359.462l2.03 2.03-2.03-2.03z" fill="#eeedc1"/>
<path d="M590.342 359.462l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M462.44 361.492l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M468.53 361.492l2.03 2.03-2.03-2.03z" fill="#f6f6e4"/>
<path d="M490.862 361.492l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M523.346 361.492l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M526.046 362.853l.678 1.352-.678-1.352z" fill="#f8dcbb"/>
<path d="M541.617 361.492l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M543.648 361.492l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M555.83 361.492l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M557.86 361.492l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M584.252 361.492l2.03 2.03-2.03-2.03z" fill="#d3d079"/>
<path d="M588.312 361.492l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M590.342 361.492l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M462.44 363.523l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M468.53 363.523l2.03 2.03-2.03-2.03z" fill="#e0dea1"/>
<path d="M488.832 363.523l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M517.255 363.523l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M519.285 363.523l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M521.315 363.523l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M527.406 363.523l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M553.8 363.523l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M588.312 363.523l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M462.44 365.553l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M464.47 365.553l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M468.53 365.553l2.03 2.03-2.03-2.03z" fill="#d4d456"/>
<path d="M486.802 365.553l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M488.832 365.553l2.03 2.03-2.03-2.03m10.15 0l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M501.013 365.553l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M503.044 365.553l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M511.164 365.553l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M513.195 365.553l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M515.225 365.553l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M531.466 365.553l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M533.497 365.553l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M535.527 365.553l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M537.557 365.553l2.03 2.03-2.03-2.03z" fill="#fbc477"/>
<path d="M539.587 365.553l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M549.738 365.553l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M551.768 365.553l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M582.22 365.553l2.032 2.03-2.03-2.03z" fill="#e5e3af"/>
<path d="M588.312 365.553l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M464.47 367.583l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M470.56 367.583l2.03 2.03-2.03-2.03z" fill="#f2f1d7"/>
<path d="M484.772 367.583l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M494.923 367.583l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M496.953 367.583l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M498.983 367.583l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M547.708 367.583l2.03 2.03-2.03-2.03z" fill="#fea522"/>
<path d="M549.738 367.583l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M582.22 367.583l2.032 2.03-2.03-2.03z" fill="#dddc7a"/>
<path d="M586.282 367.583l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M588.312 367.583l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M464.47 369.613l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M467.17 370.973l.678 1.353-.678-1.353z" fill="#a4a43d"/>
<path d="M470.56 369.613l2.03 2.03-2.03-2.03z" fill="#d3d079"/>
<path d="M486.802 369.613l2.03 2.03-2.03-2.03z" fill="#f9d099"/>
<path d="M488.832 369.613l2.03 2.03-2.03-2.03z" fill="#fcb144"/>
<path d="M490.862 369.613l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M492.893 369.613l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M494.923 369.613l2.03 2.03-2.03-2.03z" fill="#fef8f1"/>
<path d="M539.587 369.613l2.03 2.03-2.03-2.03z" fill="#f8dcbb"/>
<path d="M547.708 369.613l2.03 2.03-2.03-2.03z" fill="#fcf1e4"/>
<path d="M580.19 369.613l2.03 2.03-2.03-2.03z" fill="#f6f6e4"/>
<path d="M586.282 369.613l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M472.59 371.643l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M539.587 371.643l2.03 2.03-2.03-2.03z" fill="#fbbe66"/>
<path d="M545.678 371.643l2.03 2.03-2.03-2.03z" fill="#faca88"/>
<path d="M580.19 371.643l2.03 2.03-2.03-2.03z" fill="#e1e18c"/>
<path d="M586.282 371.643l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M466.5 373.674l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M472.59 373.674l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M539.587 373.674l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M543.648 373.674l2.03 2.03-2.03-2.03z" fill="#fdab33"/>
<path d="M578.16 373.674l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M584.252 373.674l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M586.282 373.674l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M466.5 375.704l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M468.53 375.704l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M472.59 375.704l2.03 2.03-2.03-2.03z" fill="#d0d045"/>
<path d="M537.557 375.704l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M541.617 375.704l2.03 2.03-2.03-2.03z" fill="#fe9f11"/>
<path d="M543.648 375.704l2.03 2.03-2.03-2.03z" fill="#fbead6"/>
<path d="M578.16 375.704l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M584.252 375.704l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M468.53 377.734l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M474.62 377.734l2.03 2.03-2.03-2.03z" fill="#e5e3af"/>
<path d="M538.227 379.094l.678 1.352-.678-1.352z" fill="#faca88"/>
<path d="M541.617 377.734l2.03 2.03-2.03-2.03z" fill="#fae3c9"/>
<path d="M576.13 377.734l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M582.22 377.734l2.032 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M584.252 377.734l2.03 2.03-2.03-2.03m-115.722 2.03l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M470.56 379.764l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M474.62 379.764l2.03 2.03-2.03-2.03z" fill="#d0d045"/>
<path d="M476.65 379.764l2.03 2.03-2.03-2.03z" fill="#fbfaf2"/>
<path d="M539.587 379.764l2.03 2.03-2.03-2.03z" fill="#f9d6aa"/>
<path d="M576.13 379.764l2.03 2.03-2.03-2.03z" fill="#e5e59d"/>
<path d="M582.22 379.764l2.032 2.03-2.03-2.03m-111.662 2.03l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M476.65 381.794l2.03 2.03-2.03-2.03z" fill="#8cbf84"/>
<path d="M477.524 381.794c7.05 14.84 31.99 49.848 51.04 49.166 18.5-.662 39.393-34.82 47.567-49.166h-98.606z" fill="#0cf"/>
<path d="M580.19 381.794l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M582.22 381.794l2.032 2.03-2.03-2.03m-111.662 2.03l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M472.59 383.825l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M476.65 383.825l2.03 2.03-2.03-2.03z" fill="#adb333"/>
<path d="M478.68 383.825l2.03 2.03-2.03-2.03z" fill="#1ac5b5"/>
<path d="M574.1 383.825l2.03 2.03-2.03-2.03z" fill="#68b070"/>
<path d="M580.19 383.825l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M472.59 385.855l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M478.68 385.855l2.03 2.03-2.03-2.03z" fill="#7fb15c"/>
<path d="M572.07 385.855l2.03 2.03-2.03-2.03z" fill="#27c2aa"/>
<path d="M578.16 385.855l-2.03 4.06 2.03-4.06z" fill="#a4a43d"/>
<path d="M580.19 385.855l2.03 2.03-2.03-2.03m-107.6 2.03l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M474.62 387.885l4.06 4.06-4.06-4.06z" fill="#a4a43d"/>
<path d="M480.71 387.885l2.032 2.03-2.03-2.03z" fill="#34be9e"/>
<path d="M572.07 387.885l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M578.16 387.885l2.03 2.03-2.03-2.03z" fill="#53527c"/>
<path d="M474.62 389.915l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M480.71 389.915l2.032 2.03-2.03-2.03z" fill="#a2b23d"/>
<path d="M482.742 389.915l2.03 2.03-2.03-2.03z" fill="#0dc9c1"/>
<path d="M570.04 389.915l2.03 2.03-2.03-2.03z" fill="#5bb47c"/>
<path d="M576.13 389.915l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M476.65 391.945l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M482.742 391.945l2.03 2.03-2.03-2.03z" fill="#74b166"/>
<path d="M568.01 391.945l2.03 2.03-2.03-2.03z" fill="#27c2aa"/>
<path d="M574.1 391.945l-2.03 4.06 2.03-4.06z" fill="#a4a43d"/>
<path d="M576.13 391.945l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M476.65 393.976l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M478.68 393.976l4.062 4.06-4.06-4.06z" fill="#a4a43d"/>
<path d="M484.772 393.976l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M565.98 393.976l2.03 2.03-2.03-2.03z" fill="#0dc9c1"/>
<path d="M568.01 393.976l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M574.1 393.976l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M478.68 396.006l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M484.772 396.006l2.03 2.03-2.03-2.03z" fill="#adb333"/>
<path d="M486.802 396.006l2.03 2.03-2.03-2.03z" fill="#27c2aa"/>
<path d="M565.98 396.006l2.03 2.03-2.03-2.03z" fill="#74b166"/>
<path d="M572.07 396.006l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M480.71 398.036l2.032 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M486.802 398.036l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M488.832 398.036l2.03 2.03-2.03-2.03z" fill="#0dc9c1"/>
<path d="M563.95 398.036l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M570.04 398.036l-4.06 6.09 4.06-6.09z" fill="#a4a43d"/>
<path d="M572.07 398.036l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M480.71 400.066l2.032 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M482.742 400.066l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M488.832 400.066l2.03 2.03-2.03-2.03z" fill="#7fb15c"/>
<path d="M561.92 400.066l2.03 2.03-2.03-2.03z" fill="#34be9e"/>
<path d="M570.04 400.066l2.03 2.03-2.03-2.03z" fill="#3a3a7c"/>
<path d="M482.742 402.096l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M484.772 402.096l22.332 22.333-22.332-22.334z" fill="#a4a43d"/>
<path d="M490.862 402.096l2.03 2.03-2.03-2.03z" fill="#74b166"/>
<path d="M559.89 402.096l2.03 2.03-2.03-2.03z" fill="#27c2aa"/>
<path d="M561.92 402.096l2.03 2.03-2.03-2.03z" fill="#adb333"/>
<path d="M568.01 402.096l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M484.772 404.127l2.03 2.03-2.03-2.03z" fill="#32327b"/>
<path d="M492.893 404.127l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M557.86 404.127l-8.122 10.15 8.12-10.15z" fill="#0dc9c1"/>
<path d="M559.89 404.127l2.03 2.03-2.03-2.03z" fill="#adb333"/>
<path d="M565.98 404.127l2.03 2.03-2.03-2.03z" fill="#737370"/>
<path d="M486.802 406.157l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M494.923 406.157l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M557.86 406.157l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M563.95 406.157l-2.03 4.06 2.03-4.06z" fill="#8d8d5b"/>
<path d="M565.98 406.157l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M488.832 408.187l2.03 2.03-2.03-2.03z" fill="#53527c"/>
<path d="M496.953 408.187l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M555.83 408.187l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M563.95 408.187l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M490.862 410.217l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M498.983 410.217l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M553.8 410.217l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M559.89 410.217l-4.06 6.09 4.06-6.09z" fill="#a4a43d"/>
<path d="M561.92 410.217l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M492.893 412.247l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M501.013 412.247l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M551.768 412.247l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M559.89 412.247l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M494.923 414.278l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M503.044 414.278l2.03 2.03-2.03-2.03z" fill="#68b070"/>
<path d="M547.708 414.278l2.03 2.03-2.03-2.03z" fill="#27c2aa"/>
<path d="M549.738 414.278l2.03 2.03-2.03-2.03z" fill="#adb333"/>
<path d="M557.86 414.278l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M496.953 416.308l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M505.074 416.308l2.03 2.03-2.03-2.03z" fill="#74b166"/>
<path d="M545.678 416.308l2.03 2.03-2.03-2.03z" fill="#34be9e"/>
<path d="M547.708 416.308l2.03 2.03-2.03-2.03z" fill="#adb333"/>
<path d="M553.8 416.308l-2.032 4.06 2.03-4.06z" fill="#8d8d5b"/>
<path d="M555.83 416.308l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M498.983 418.338l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M507.104 418.338l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M509.134 418.338l2.03 2.03-2.03-2.03z" fill="#0dc9c1"/>
<path d="M543.648 418.338l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M553.8 418.338l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M501.013 420.368l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M509.134 420.368l2.03 2.03-2.03-2.03z" fill="#a2b23d"/>
<path d="M511.164 420.368l2.03 2.03-2.03-2.03z" fill="#27c2aa"/>
<path d="M541.617 420.368l2.03 2.03-2.03-2.03z" fill="#74b166"/>
<path d="M547.708 420.368l-6.09 8.12 6.09-8.12z" fill="#a4a43d"/>
<path d="M549.738 420.368l2.03 2.03-2.03-2.03z" fill="#808067"/>
<path d="M551.768 420.368l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M503.044 422.398l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M511.164 422.398l2.03 2.03-2.03-2.03z" fill="#adb333"/>
<path d="M513.195 422.398l2.03 2.03-2.03-2.03z" fill="#42bb92"/>
<path d="M537.557 422.398l2.03 2.03-2.03-2.03z" fill="#0dc9c1"/>
<path d="M539.587 422.398l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M547.708 422.398l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M505.074 424.43l2.03 2.03-2.03-2.03z" fill="#1b1b74"/>
<path d="M507.104 424.43l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M515.225 424.43l2.03 2.03-2.03-2.03z" fill="#74b166"/>
<path d="M517.255 424.43l2.03 2.03-2.03-2.03z" fill="#0dc9c1"/>
<path d="M535.527 424.43l2.03 2.03-2.03-2.03z" fill="#34be9e"/>
<path d="M537.557 424.43l2.03 2.03-2.03-2.03z" fill="#adb333"/>
<path d="M545.678 424.43l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M507.104 426.46l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M509.134 426.46l2.03 2.03-2.03-2.03z" fill="#6e6c70"/>
<path d="M511.164 426.46l4.06 4.06-4.06-4.06z" fill="#a4a43d"/>
<path d="M517.255 426.46l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M519.285 426.46l2.03 2.03-2.03-2.03z" fill="#27c2aa"/>
<path d="M533.497 426.46l2.03 2.03-2.03-2.03z" fill="#68b070"/>
<path d="M543.648 426.46l2.03 2.03-2.03-2.03z" fill="#32327b"/>
<path d="M511.164 428.49l2.03 2.03-2.03-2.03z" fill="#49497d"/>
<path d="M521.315 428.49l2.03 2.03-2.03-2.03z" fill="#5bb47c"/>
<path d="M529.436 428.49l2.03 2.03-2.03-2.03z" fill="#27c2aa"/>
<path d="M531.466 428.49l2.03 2.03-2.03-2.03z" fill="#96b247"/>
<path d="M537.557 428.49l-2.03 4.06 2.03-4.06z" fill="#a4a43d"/>
<path d="M539.587 428.49l2.03 2.03-2.03-2.03z" fill="#808067"/>
<path d="M541.617 428.49l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M513.195 430.52l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M515.225 430.52l2.03 2.03-2.03-2.03z" fill="#8d8d5b"/>
<path d="M523.346 430.52l2.03 2.03-2.03-2.03z" fill="#8bb252"/>
<path d="M525.376 430.52l2.03 2.03-2.03-2.03z" fill="#1ac5b5"/>
<path d="M527.406 430.52l2.03 2.03-2.03-2.03z" fill="#5bb47c"/>
<path d="M537.557 430.52l2.03 2.03-2.03-2.03z" fill="#58587b"/>
<path d="M515.225 432.55l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M517.255 432.55l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M519.285 432.55l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M533.497 432.55l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M535.527 432.55l2.03 2.03-2.03-2.03m-16.242 2.03l2.03 2.03-2.03-2.03z" fill="#32327b"/>
<path d="M521.315 434.58l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M529.436 434.58l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M531.466 434.58l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M533.497 434.58l2.03 2.03-2.03-2.03m-12.182 2.03l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M523.346 436.61l2.03 2.03-2.03-2.03z" fill="#667"/>
<path d="M525.376 436.61l2.03 2.03-2.03-2.03z" fill="#a4a43d"/>
<path d="M527.406 436.61l2.03 2.03-2.03-2.03z" fill="#99994e"/>
<path d="M529.436 436.61l2.03 2.03-2.03-2.03z" fill="#32327b"/>
<path d="M525.376 438.64l2.03 2.03-2.03-2.03z" fill="#262678"/>
<path d="M527.406 438.64l2.03 2.03-2.03-2.03z" fill="#0e0e6e"/>
<path d="M529.436 302.617c3.133 7.368 13.176 15.504 15.937 19.492-3.514 3.986-4.216 3.552-3.756 10.96 6.11-6.394 6.22-7.06 10.15-6.09 8.61 8.59 1.542 27.043-5.574 31.055-7.113 4.28-5.822-.148-16.485 5.216 4.89 4.18 10.553-.613 15.182.668 2.516 2.985-1.196 8.424.76 13.546 4.09-.394 3.6-8.653 4.55-11.647 2.99-10.97 20.957-18.623 21.87-28.687 3.79-1.778 7.575-.556 12.182 2.03-2.295-9.428-9.883-9.327-11.918-12.27-4.842-7.4-9.134-15.842-19.475-18.03-7.852-1.664-7.265.5-12.296-2.933-3.127-2.44-12.648-7.053-11.126-3.31z" fill="#f90"/>
<path d="M552.008 310.987a1.636 1.636 0 1 1-3.272-.002 1.636 1.636 0 0 1 3.272.003z" fill-rule="evenodd" fill="#fff"/>
<path d="M504.328 333.876c5.05-6.212 7.553-18.893 9.79-23.197 5.166 1.243 5.11 2.067 11.445-1.8-8.508-2.417-9.15-2.203-10.128-6.13 3.575-11.628 23.192-13.997 30.063-9.58 7.108 4.29 2.59 5.218 12.313 12.14 1.413-6.276-5.47-9.045-6.5-13.736 1.463-3.618 8.006-2.878 11.62-7-2.258-3.432-9.33.86-12.423 1.417-11.097 2.484-26.256-9.827-35.58-5.934-3.343-2.518-4.03-6.437-3.896-11.718-7.264 6.433-3.63 13.095-5.282 16.27-4.28 7.737-9.74 15.475-6.843 25.642 2.197 7.718 3.835 6.19 3.15 12.24-.696 3.905-.326 14.478 2.27 11.384z" fill="#f90"/>
<path d="M501.184 310.008c.8-.422 1.79-.117 2.21.682a1.635 1.635 0 1 1-2.21-.682z" fill-rule="evenodd" fill="#fff"/>
<path d="M545.374 338.236c-7.93-1.11-20.076 3.308-24.916 3.62-1.608-5.065-.874-5.443-7.46-8.864 2.332 8.532 2.847 8.97-.01 11.84-11.798 2.954-23.974-12.61-23.748-20.775-.004-8.302 3.126-4.915 4.02-16.817-6.1 2.037-4.91 9.36-8.39 12.67-3.855.618-6.606-5.364-12.003-6.326-1.77 3.71 5.563 7.542 7.64 9.9 7.864 8.212 5.17 27.554 13.325 33.52-.427 4.164-3.425 6.78-8.014 9.396 9.263 2.89 13.085-3.667 16.656-3.895 8.837-.34 18.283.33 25.486-7.407 5.468-5.874 3.313-6.484 8.845-9.03 3.702-1.422 12.56-7.208 8.57-7.83z" fill="#f90"/>
<path d="M526.574 353.272a1.635 1.635 0 1 1 1.685-2.805 1.637 1.637 0 0 1-1.686 2.805z" fill-rule="evenodd" fill="#fff"/>
</g>
</svg>
| odota/web/public/assets/images/flags/ai.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ai.svg",
"repo_id": "odota",
"token_count": 31917
} | 244 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd">
<path fill="#de0000" d="M640.003 479.578H.378V0h639.625z"/>
<path fill="#35a100" d="M639.628 480H.003V240.216h639.625z"/>
<path fill="#fff300" d="M254.612 276.188l-106.066-72.434 131.043.122 40.386-117.322 40.388 117.322 131.043-.087-106.085 72.398 40.59 117.27-105.954-72.573-105.955 72.556"/>
</g>
</svg>
| odota/web/public/assets/images/flags/bf.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/bf.svg",
"repo_id": "odota",
"token_count": 210
} | 245 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="480" width="640" viewBox="0 0 640 480">
<defs>
<path id="b" d="M0-1l.225.69H.95L.364.12l.225.69L0 .383-.588.81l.225-.692L-.95-.31h.725z"/>
<clipPath id="a">
<path fill-opacity=".67" d="M0 0h682.67v512H0z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" transform="scale(.94)">
<path fill="#002b7f" d="M0 0h768v512H0z"/>
<path fill="#f9e814" d="M0 320h768v64H0z"/>
<use xlink:href="#b" transform="scale(42.67)" height="9000" width="13500" y="2" x="2" fill="#fff"/>
<use xlink:href="#b" transform="scale(56.9)" height="9000" width="13500" y="3" x="3" fill="#fff"/>
</g>
</svg>
| odota/web/public/assets/images/flags/cw.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/cw.svg",
"repo_id": "odota",
"token_count": 346
} | 246 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd" stroke-width="1pt">
<path fill="#fff" d="M0 0h640v480H0z"/>
<path fill="#0039a6" d="M0 160.003h640V480H0z"/>
<path fill="#d52b1e" d="M0 319.997h640V480H0z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/ru.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ru.svg",
"repo_id": "odota",
"token_count": 145
} | 247 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#377e3f" d="M.1 0h640v480H.1z"/>
<path fill="#fff" d="M.1 96h640v288H.1z"/>
<path fill="#b40a2d" d="M.1 144h640v192H.1z"/>
<path d="M320 153.167l56.427 173.666-147.73-107.33h182.605l-147.73 107.33z" fill="#ecc81d"/>
</svg>
| odota/web/public/assets/images/flags/sr.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/sr.svg",
"repo_id": "odota",
"token_count": 165
} | 248 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M-85.333 0h682.67v512h-682.67z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(80) scale(.9375)">
<path fill="#e70013" d="M-128 0h768v512h-768z"/>
<path d="M385.808 255.773c0 71.316-57.813 129.129-129.129 129.129-71.317 0-129.13-57.814-129.13-129.13s57.814-129.129 129.13-129.129c71.317 0 129.13 57.814 129.13 129.13z" fill="#fff"/>
<path d="M256.68 341.41c-47.27 0-85.635-38.364-85.635-85.635s38.364-85.636 85.635-85.636c11.818 0 25.27 2.719 34.407 9.43-62.63 2.357-78.472 55.477-78.472 76.885s10.128 69.154 78.471 76.205c-7.777 5.013-22.588 8.75-34.406 8.75z" fill="#e70013"/>
<path fill="#e70013" d="M332.11 291.785l-38.89-14.18-25.72 32.417 1.477-41.356-38.787-14.45 39.798-11.373 1.744-41.356 23.12 34.338 39.87-11.116-25.504 32.594z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/tn.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/tn.svg",
"repo_id": "odota",
"token_count": 499
} | 249 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd">
<path fill="#f4f100" d="M0 0h640v480H0z"/>
<path fill="#199a00" d="M490 0h150v480H490z"/>
<path fill="#0058aa" d="M0 0h150v480H0z"/>
<path d="M259.26 129.95l-46.376 71.391 44.748 74.391 43.82-73.735-42.192-72.046zM380.54 129.95l-46.376 71.391 44.748 74.391 43.82-73.735-42.192-72.046zM319.28 227.34l-46.376 71.391 44.748 74.391 43.82-73.735-42.192-72.046z" fill="#199a00"/>
</g>
</svg>
| odota/web/public/assets/images/flags/vc.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/vc.svg",
"repo_id": "odota",
"token_count": 263
} | 250 |
import config from '../config';
const url = '/api/request';
const START = 'request/START';
const ERROR = 'request/ERROR';
const OK = 'request/OK';
const PROGRESS = 'request/PROGRESS';
export const requestActions = {
START,
ERROR,
OK,
PROGRESS,
};
const requestStart = () => ({
type: START,
});
const requestError = error => ({
type: ERROR,
error,
});
const requestOk = () => ({
type: OK,
});
const requestProgress = progress => ({
type: PROGRESS,
progress,
});
function poll(dispatch, json, matchId) {
fetch(`${config.VITE_API_HOST}${url}/${json.job.jobId}`)
.then(res => res.json())
.then((_json) => {
if (_json && _json.progress) {
dispatch(requestProgress(_json.progress));
}
if (!_json || _json.state === 'completed') {
dispatch(requestOk());
window.location.href = `/matches/${matchId}`;
} else {
setTimeout(poll, 2000, dispatch, { job: _json }, matchId);
}
});
}
export const postRequest = matchId => (dispatch) => {
dispatch(requestStart());
return fetch(`${config.VITE_API_HOST}${url}/${matchId}`, { method: 'post' })
.then(res => res.json())
.then((json) => {
if (json.job && json.job.jobId) {
poll(dispatch, json, matchId);
} else if (json.job && !json.job.jobId) {
// No parse job created so just go to the page
window.location.href = `/matches/${matchId}`;
} else {
dispatch(requestError(json.err));
}
})
.catch(err => dispatch(requestError(err)));
};
| odota/web/src/actions/requestActions.js/0 | {
"file_path": "odota/web/src/actions/requestActions.js",
"repo_id": "odota",
"token_count": 626
} | 251 |
import React from 'react';
import styled from 'styled-components';
import ReactTooltip from 'react-tooltip';
import PropTypes from 'prop-types';
import constants from '../constants';
import AghanimsTooltipHeader from './AghsTooltipHeader';
import AghsTooltipBody from './AghsTooltipBody';
import config from '../../config';
const Wrapper = styled.div`
width: 340px;
background: rgb(21, 27, 29);
overflow: hidden;
border: 2px solid #27292b;
`;
const CombinedWrapper = styled.div`
display: flex;
background-color: rgba(0,0,255,0.01);
flex-direction: column;
gap: 10px;
margin: 0 -20px;
`;
const AghanimsToolTip = ({ upgrades, skills }) => {
let newScepterAbility = null;
let newShardAbility = null;
const getAghsSkillObject = (skillName) => {
if(!skillName || skillName === "") return null;
const ability = skills.find(skill =>
skill.data.dname === skillName
)
return ability.data;
}
if (skills && upgrades) {
const newShardSkillName = upgrades.shard_skill_name;
const newShardSkillObject = getAghsSkillObject(newShardSkillName)
newShardAbility = (
<Wrapper>
<AghanimsTooltipHeader image="/assets/images/dota2/shard_0.png" type="shard">
<span>Aghanim‘s Shard</span>
</AghanimsTooltipHeader>
<AghsTooltipBody
icon={`${config.VITE_IMAGE_CDN}${newShardSkillObject ? newShardSkillObject.img : ""}`}
skillName={upgrades.shard_skill_name}
hasUpgrade={upgrades.has_shard}
isNewSkill={upgrades.shard_new_skill}
aghsDescription={upgrades.shard_desc}
skillObject={newShardSkillObject}
/>
</Wrapper>
)
const newScepterSkillName = upgrades.scepter_skill_name;
const newScepterSkillObject = getAghsSkillObject(newScepterSkillName);
newScepterAbility = (
<Wrapper>
<AghanimsTooltipHeader image="/assets/images/dota2/scepter_0.png" type="scepter">
<span>Aghanim‘s Scepter</span>
</AghanimsTooltipHeader>
<AghsTooltipBody
icon={`${config.VITE_IMAGE_CDN}${newScepterSkillObject ? newScepterSkillObject.img : ""}`}
skillName={upgrades.scepter_skill_name}
hasUpgrade={upgrades.has_scepter}
isNewSkill={upgrades.scepter_new_skill}
aghsDescription={upgrades.scepter_desc}
skillObject={newScepterSkillObject}
/>
</Wrapper>
)
}
return (
<CombinedWrapper>
{newScepterAbility}
{newShardAbility}
</CombinedWrapper>
)
}
const TtWrapper = styled.div`
background: linear-gradient(to bottom, ${constants.colorBlueMuted}, ${constants.primarySurfaceColor});
border-radius: 4px;
box-shadow: 0 2px 2px rgba(0, 0, 0, .3);
position: relative;
`;
export const StyledAghanimsBuffs = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
> img {
width: 65%;
}
.__react_component_tooltip {
opacity: 1 !important;
padding: 0px !important;
}
`
const AghsTooltipWrapper = ({ upgrades, skills }) => (
<TtWrapper>
<StyledAghanimsBuffs>
<ReactTooltip id="aghanim" effect="solid" place="bottom" >
<AghanimsToolTip type="scepter" upgrades={upgrades} skills={skills} />
</ReactTooltip>
</StyledAghanimsBuffs>
</TtWrapper>
);
AghsTooltipWrapper.propTypes = {
upgrades: PropTypes.shape({}).isRequired,
skills: PropTypes.array.isRequired,
}
export default AghsTooltipWrapper;
| odota/web/src/components/AghsTooltip/index.jsx/0 | {
"file_path": "odota/web/src/components/AghsTooltip/index.jsx",
"repo_id": "odota",
"token_count": 1432
} | 252 |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Transition from 'react-transition-group/Transition';
import { connect } from 'react-redux';
import { IconPlusSquare, IconMinusSquare } from '../Icons';
import constants from '../constants';
const ButtonContainer = styled.div`
position: absolute;
right: -4px;
top: 5px;
z-index: 100;
cursor: pointer;
opacity: 0.4;
color: ${constants.colorBlue};
&:hover {
opacity: 1;
}
svg {
height: 19px;
fill: ${constants.colorBlue};
}
span {
font-size: 11px;
vertical-align: text-top;
text-transform: uppercase;
}
`;
const CollapseButton = ({
handleClick, collapsed, strings, buttonStyle, handleHoverOn, handleHoverOff,
}) => (
<ButtonContainer style={buttonStyle} onClick={handleClick} onMouseEnter={handleHoverOn} onMouseLeave={handleHoverOff}>
{collapsed
? [<span>{strings.general_show}</span>, <IconPlusSquare />]
: [<span>{strings.general_hide}</span>, <IconMinusSquare />]}
</ButtonContainer>
);
CollapseButton.propTypes = {
handleClick: PropTypes.func,
collapsed: PropTypes.bool,
strings: PropTypes.shape({}),
buttonStyle: PropTypes.shape({}),
handleHoverOn: PropTypes.func,
handleHoverOff: PropTypes.func,
};
const CollapsibleContainer = styled.div`
position: relative;
width: 100%;
border: 1px solid transparent;
box-sizing: border-box;
`;
class Collapsible extends React.Component {
static propTypes = {
name: PropTypes.string.isRequired,
children: PropTypes.arrayOf(PropTypes.node),
strings: PropTypes.shape({}),
initialMaxHeight: PropTypes.number,
buttonStyle: PropTypes.shape({}),
}
constructor(props) {
super(props);
this.state = {
collapsed: localStorage.getItem(`${props.name}Collapsed`) === 'true',
hovered: false,
};
}
handleClick = () => {
const { collapsed } = this.state;
localStorage.setItem(`${this.props.name}Collapsed`, `${!collapsed}`);
this.setState({ collapsed: !collapsed });
}
handleHoverOn = () => {
this.setState({ hovered: true });
}
handleHoverOff = () => {
this.setState({ hovered: false });
}
render() {
const { collapsed, hovered } = this.state;
const { initialMaxHeight, strings, buttonStyle } = this.props;
return (
<CollapsibleContainer style={{ border: !collapsed && hovered && '1px dashed rgba(255, 255, 255, 0.1)' }}>
<CollapseButton
handleClick={this.handleClick}
collapsed={collapsed}
strings={strings}
buttonStyle={buttonStyle}
handleHoverOn={this.handleHoverOn}
handleHoverOff={this.handleHoverOff}
/>
<Transition in={!collapsed} timeout={{ enter: 0, exit: 300 }} mountOnEnter>
{status => (
<div style={{
transition: 'max-height 300ms ease-in-out',
overflow: 'hidden',
maxHeight: status === 'entered' ? (initialMaxHeight || '100%') : 0,
}}
>
{this.props.children}
</div>
)}
</Transition>
</CollapsibleContainer>
);
}
}
const mapStateToProps = state => ({
strings: state.app.strings,
});
export default connect(mapStateToProps)(Collapsible);
| odota/web/src/components/Collapsible/index.jsx/0 | {
"file_path": "odota/web/src/components/Collapsible/index.jsx",
"repo_id": "odota",
"token_count": 1342
} | 253 |
import heroes from 'dotaconstants/build/heroes.json';
import store from '../../store';
// import fields from './fields';
const items = (await import('dotaconstants/build/items.json')).default;
const sqlfs = ['SELECT', 'WHERE', 'GROUP BY', 'ORDER BY'];
const sqlts = ['FROM', 'JOIN', 'LEFT JOIN'];
const tables = ['matches', 'player_matches', 'teams', 'match_logs', 'public_matches', 'public_player_matches'];
const sqlks = ['OFFSET', 'LIMIT', 'DISTINCT', 'IN'];
const sqlfuncs = ['to_timestamp()', 'count()', 'avg()', 'sum()', 'stddev()', 'min()', 'max()', 'using()'];
const autocomplete = (cols, proPlayers = [], teams = [], leagues = []) => {
const { strings } = store.getState().app;
const filteredPros = proPlayers.filter(p => p.name).slice(0).map(p => ({ value: p.name, snippet: p.account_id.toString(), meta: `${p.account_id.toString()} (${strings.explorer_player})` }));
const filteredTeams = teams.filter(t => t.name).slice(0, 100).map(t => ({ value: t.name, snippet: t.team_id.toString(), meta: `${t.team_id.toString()} (${strings.explorer_organization})` }));
const filteredLeagues = leagues.filter(l => l.tier === 'premium' || l.tier === 'professional').map(l => ({ value: l.name, snippet: l.leagueid.toString(), meta: `${l.leagueid.toString()} (${strings.explorer_league})` }));
return {
getCompletions(editor, session, pos, prefix, callback) {
callback(null, []
.concat(Object.keys(heroes).map(k => ({ caption: heroes[k].localized_name, value: heroes[k].name, snippet: k, meta: `${k} (${strings.explorer_hero})` })))
.concat(Object.keys(items).filter(k => k.indexOf('recipe_') !== 0).map(k => ({ caption: items[k].dname, value: k, snippet: `'${k}'`, meta: `${k} (${strings.scenarios_item})` })))
.concat(filteredPros)
.concat(filteredTeams)
.concat(filteredLeagues)
.concat(sqlfuncs.map(e => ({ value: e, meta: strings.explorer_postgresql_function })))
.concat(sqlfs.map(e => ({ value: e, meta: strings.explorer_sql })))
.concat(sqlts.map(e => ({ value: e, meta: strings.explorer_sql })))
.concat(sqlks.map(e => ({ value: e, meta: strings.explorer_sql })))
.concat(tables.map(e => ({ value: e, meta: strings.explorer_table })))
.concat(cols.map(e => ({ value: `${e.column_name}`, meta: `${e.table_name} - ${e.data_type}` }))));
},
};
};
export default autocomplete;
| odota/web/src/components/Explorer/autocomplete.js/0 | {
"file_path": "odota/web/src/components/Explorer/autocomplete.js",
"repo_id": "odota",
"token_count": 946
} | 254 |
export { default } from './FourOhFour';
| odota/web/src/components/FourOhFour/index.js/0 | {
"file_path": "odota/web/src/components/FourOhFour/index.js",
"repo_id": "odota",
"token_count": 12
} | 255 |
import React from 'react';
import { connect } from 'react-redux';
import { shape, number, string, bool } from 'prop-types';
import styled from 'styled-components';
import constants from '../constants';
import Attribute from './Attribute';
import { compileLevelOneStats } from '../../utility';
const AttributesWrapper = styled.div`
display: flex;
margin-left: -8px;
margin-right: -8px;
@media screen and (max-width: ${constants.wrapMobile}) {
flex-wrap: wrap;
}
`;
const AttributeBlock = styled.div`
display: flex;
flex-direction: column;
flex: 1 1 0;
margin-top: 10px;
padding: 8px;
@media screen and (max-width: ${constants.wrapMobile}) {
flex-grow: 0;
flex-shrink: 0;
width: 50%;
}
`;
const Label = styled.span`
color: rgba(255, 255, 255, .5);
flex-grow: 1;
font-size: ${constants.fontSizeSmall};
margin-right: 5px;
text-transform: uppercase;
`;
// Damage multiplier https://dota2.gamepedia.com/Armor#Damage_multiplier
const calcArmorPercent = hero => Math.round(0.06 * hero / (1 + (0.06 * hero)) * 100);
const HeroAttributes = ({ hero, strings }) => {
const h = compileLevelOneStats(hero);
return (
<AttributesWrapper>
<AttributeBlock>
<Attribute>
<Label>{strings.heading_attack}:</Label> {`${h.base_attack_min} - ${h.base_attack_max}`}
</Attribute>
<Attribute>
<Label>{strings.heading_attack_range}:</Label> {h.attack_range}
</Attribute>
<Attribute>
<Label>{strings.heading_attack_speed}:</Label> {h.attack_rate}
</Attribute>
{h.projectile_speed !== 0 && (
<Attribute>
<Label>{strings.heading_projectile_speed}:</Label> {h.projectile_speed}
</Attribute>
)}
</AttributeBlock>
<AttributeBlock>
<Attribute>
<Label>{strings.heading_base_health}:</Label> {h.base_health}
</Attribute>
<Attribute>
<Label>{strings.heading_base_health_regen}:</Label> {h.base_health_regen}
</Attribute>
<Attribute>
<Label>{strings.heading_base_mana}:</Label> {h.base_mana}
</Attribute>
<Attribute>
<Label>{strings.heading_base_mana_regen}:</Label> {h.base_mana_regen}
</Attribute>
</AttributeBlock>
<AttributeBlock>
<Attribute>
<Label>{strings.heading_base_armor}:</Label> {`${h.base_armor} (${calcArmorPercent(h.base_armor)}%)`}
</Attribute>
<Attribute>
<Label>{strings.heading_base_mr}:</Label> {`${h.base_mr}%`}
</Attribute>
<Attribute>
<Label>{strings.heading_move_speed}:</Label> {h.move_speed}
</Attribute>
<Attribute>
<Label>{strings.heading_turn_rate}:</Label> {h.turn_rate}
</Attribute>
</AttributeBlock>
<AttributeBlock>
<Attribute>
<Label>{strings.heading_legs}:</Label> {h.legs}
</Attribute>
<Attribute>
<Label>{strings.heading_cm_enabled}:</Label> {h.cm_enabled ? strings.yes : strings.no}
</Attribute>
</AttributeBlock>
</AttributesWrapper>
);
};
HeroAttributes.propTypes = {
hero: shape({
primary_attr: string,
base_health: number,
base_health_regen: number,
base_mana: number,
base_mana_regen: number,
base_armor: number,
base_mr: number,
base_attack_min: number,
base_attack_max: number,
base_str: number,
base_agi: number,
base_int: number,
str_gain: number,
agi_gain: number,
int_gain: number,
attack_range: number,
projectile_speed: number,
attack_rate: number,
move_speed: number,
turn_rate: number,
cm_enabled: bool,
legs: number,
}),
strings: shape({}),
};
const mapStateToProps = state => ({
strings: state.app.strings,
});
export default connect(mapStateToProps)(HeroAttributes);
| odota/web/src/components/Hero/AttributesBlock.jsx/0 | {
"file_path": "odota/web/src/components/Hero/AttributesBlock.jsx",
"repo_id": "odota",
"token_count": 1661
} | 256 |
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import heroes from 'dotaconstants/build/heroes.json';
import { getHeroStats, getProPlayers } from '../../actions';
import Heading from '../Heading';
import Table from '../Table';
import TabBar from '../TabBar';
import Hero from '../Hero';
import {
sum,
abbreviateNumber,
} from '../../utility';
import { rankColumns } from './rankColumns.ts';
class RequestLayer extends React.Component {
static propTypes = {
dispatchHeroStats: PropTypes.func,
onGetProPlayers: PropTypes.func,
data: PropTypes.oneOfType([
PropTypes.shape({}),
PropTypes.arrayOf(PropTypes.shape({})),
]),
loading: PropTypes.bool,
match: PropTypes.shape({
params: PropTypes.shape({
info: PropTypes.string,
heroId: PropTypes.string,
}),
}),
strings: PropTypes.shape({}),
}
componentDidMount() {
this.props.dispatchHeroStats();
this.props.onGetProPlayers();
}
getMatchCountByRank = (json, rank) => json.map(heroStat => heroStat[rank] || 0).reduce(sum, 0) / 10
createTab = (key, matchCount) => {
const { strings } = this.props;
const names = {
public: strings.hero_public_tab,
turbo: strings.hero_turbo_tab,
}
const titles = {
public: strings.hero_public_heading,
turbo: strings.hero_turbo_heading,
}
const name = names[key] ?? strings.hero_pro_tab;
const title = titles[key] ?? strings.hero_pro_heading;
return {
name,
key,
content: (data, _columns, loading) => (
<div>
<Heading
className="top-heading with-tabbar"
title={title}
subtitle={`${abbreviateNumber(matchCount)} ${strings.hero_last_7days}`}
icon=""
twoLine
/>
<Table data={data} columns={_columns} loading={loading} />
</div>),
route: `/heroes/${key}`,
};
}
render() {
const route = this.props.match.params.heroId || 'pro';
if (Number.isInteger(Number(route))) {
return <Hero {...this.props} />;
}
const json = this.props.data;
// Assemble the result data array
const matchCountPro = json.map(heroStat => heroStat.pro_pick || 0).reduce(sum, 0) / 10;
const matchCount8 = this.getMatchCountByRank(json, '8_pick');
const matchCount7 = this.getMatchCountByRank(json, '7_pick');
const matchCount6 = this.getMatchCountByRank(json, '6_pick');
const matchCount5 = this.getMatchCountByRank(json, '5_pick');
const matchCount4 = this.getMatchCountByRank(json, '4_pick');
const matchCount3 = this.getMatchCountByRank(json, '3_pick');
const matchCount2 = this.getMatchCountByRank(json, '2_pick');
const matchCount1 = this.getMatchCountByRank(json, '1_pick');
const matchCountPublic = matchCount8 + matchCount7 + matchCount6 + matchCount5 + matchCount4 + matchCount3 + matchCount2 + matchCount1;
const matchCountTurbo = json.map(heroStat => heroStat.turbo_picks || 0).reduce(sum, 0) / 10;
const processedData = json.map((heroStat) => {
const pickRatePro = (heroStat.pro_pick || 0) / matchCountPro;
const banRatePro = (heroStat.pro_ban || 0) / matchCountPro;
const matchCountPub = matchCountPublic;
const pickCountPub = heroStat['8_pick'] + heroStat['7_pick'] + heroStat['6_pick'] + heroStat['5_pick'] + heroStat['4_pick'] + heroStat['3_pick'] + heroStat['2_pick'] + heroStat['1_pick'];
const winCountPub = heroStat['8_win'] + heroStat['7_win'] + heroStat['6_win'] + heroStat['5_win'] + heroStat['4_win'] + heroStat['3_win'] + heroStat['2_win'] + heroStat['1_win'];
const matchCountHigh = matchCount8 + matchCount7 + matchCount6;
const matchCountMid = matchCount5 + matchCount4;
const matchCountLow = matchCount3 + matchCount2 + matchCount1;
const pickCountHigh = heroStat['8_pick'] + heroStat['7_pick'] + heroStat['6_pick'];
const pickCountMid = heroStat['5_pick'] + heroStat['4_pick'];
const pickCountLow = heroStat['3_pick'] + heroStat['2_pick'] + heroStat['1_pick'];
const winCountHigh = heroStat['8_win'] + heroStat['7_win'] + heroStat['6_win'];
const winCountMid = heroStat['5_win'] + heroStat['4_win'];
const winCountLow = heroStat['3_win'] + heroStat['2_win'] + heroStat['1_win'];
return {
...heroStat,
hero_id: heroStat.id,
heroName: (heroes[heroStat.id] && heroes[heroStat.id].localized_name) || '',
matchCountPro,
pickBanRatePro: pickRatePro + banRatePro,
pickRatePro,
banRatePro,
winRatePro: (heroStat.pro_win || 0) / heroStat.pro_pick,
pickCountPub,
winCountPub,
matchCountPub,
pickRatePub: pickCountPub / matchCountPub,
winRatePub: winCountPub / pickCountPub,
pickCountHigh,
winCountHigh,
matchCountHigh,
pickRateHigh: pickCountHigh / matchCountHigh,
winRateHigh: winCountHigh / pickCountHigh,
pickCountMid,
winCountMid,
matchCountMid,
pickRateMid: pickCountMid / matchCountMid,
winRateMid: winCountMid / pickCountMid,
pickCountLow,
winCountLow,
matchCountLow,
pickRateLow: pickCountLow / matchCountLow,
winRateLow: winCountLow / pickCountLow,
matchCountTurbo,
pickRateTurbo: (heroStat.turbo_picks || 0) / matchCountTurbo,
winRateTurbo: (heroStat.turbo_wins || 0) / heroStat.turbo_picks,
};
});
processedData.sort((a, b) => a.heroName && a.heroName.localeCompare(b.heroName));
const heroTabs = [
this.createTab('pro', matchCountPro),
this.createTab('public', matchCountPublic),
this.createTab('turbo', matchCountTurbo)
];
const selectedTab = heroTabs.find(_tab => _tab.key === route);
const { loading, strings } = this.props;
return (
<div>
<Helmet title={strings.header_heroes} />
<div>
<TabBar
info={route}
tabs={heroTabs}
/>
{selectedTab && selectedTab.content(processedData, rankColumns({ tabType: route, strings }), loading)}
</div>
</div>);
}
}
const mapStateToProps = state => ({
data: state.app.heroStats.data,
loading: state.app.heroStats.loading,
strings: state.app.strings,
});
const mapDispatchToProps = {
dispatchHeroStats: getHeroStats,
onGetProPlayers: getProPlayers,
};
export default connect(mapStateToProps, mapDispatchToProps)(RequestLayer);
| odota/web/src/components/Heroes/index.jsx/0 | {
"file_path": "odota/web/src/components/Heroes/index.jsx",
"repo_id": "odota",
"token_count": 2674
} | 257 |
import React from 'react';
import constants from '../constants';
export default props => (
<svg
{...props}
viewBox="0 0 300 300"
style={{
fill: 'none',
stroke: constants.textColorPrimary,
strokeWidth: 10,
}}
>
<path
d="M141.4,234.6c0,0,17.4-7.3,39-10s38.7,0.7,38.7,0.7"
/>
<path
d="M9.2,143.9c0,0-10.4,104.6,2.3,115.7c7.7,6.8,26.1-0.8,53.3-3.6c46.9-4.8,83.5-8.9,83.5-9.6
c0.1-1-10.1-12-10.1-24.8c0-15.3,5.6-36.9,37.7-40.2c26.2-2.7,43.1,10.1,44.5,30.1c0.9,13.6-6.3,25.9-5.7,26.3s71.4-6.5,77.2-14.6
c2.6-3.5,1.7-20.4,1.9-44.8c0.3-31.6,1.1-70.4,1.1-70.4"
/>
<path
d="M125.9,127.9c8.6-1.2,17.5-2.4,26.4-3.5c75.5-9.5,142.5-16.4,142.5-16.4s1-32.5-56.1-54s-99.1-17.8-104-11.5
c-7.8,10.3,5.1,8.5,5.7,18s-13.6,17-25.4,18.5c-11.8,1.5-20-5.9-20-5.9s-20.9,18-44,35.3c-21.6,16.2-45.2,31.4-41.5,36.4
c3.2,4.4,17.1-2.8,30.4-5.2c9.5-1.7,30.1-5.1,30.3-4.6c0.1,0.5-6.7-4.5-3.9-11c2.8-6.5,19.8-11.1,34.2-10.2
c7.7,0.5,15.6,3.9,20.2,7.5C124.6,124.5,125.9,127.9,125.9,127.9s1.4,12.3-6.7,25.7c-5.7,9.6-20.4,14-30.9,11.9
c-25.3-5-18.1-30.4-18.1-30.4"
/>
<path
d="M222.2,88.8c0.3,7.1-10.5,9.8-24.1,12.1c-17.8,3-26.5-0.2-27-7.2c-0.6-7,11.2-15.7,25-16.8
C209.7,75.8,221.8,81.7,222.2,88.8z"
/>
<path
d="M269.7,144.9c0,10.1-9.4,19.6-21.1,19.6s-21.4-0.3-21.4-10.4s9.4-18.6,21.2-18.6S269.7,134.8,269.7,144.9z"
/>
<path
d="M78.3,219c0,10.1-9.9,17.5-21.7,17.5s-17.3-7.4-17.3-17.5c0-10.1,8-20.7,19.8-20.7S78.3,208.9,78.3,219z"
/>
</svg>
);
| odota/web/src/components/Icons/Cheese.jsx/0 | {
"file_path": "odota/web/src/components/Icons/Cheese.jsx",
"repo_id": "odota",
"token_count": 1183
} | 258 |
import React from 'react';
export default props => (
<svg {...props} viewBox="0 0 300 300">
<path
d="M149.9,237.2c11.5,0,8.3,21.6,16.6,21.6s29.8-68.3,9.1-70.7c-20.8-2.4-12.1,24-25.7,24V237.2z"
/>
<path
d="M149.9,103.2c2.2,0,8,11.5,22.1,18.2c10,4.7,24.9,8.1,33.6,13.7c21,13.5-0.9,50-4.5,49.1c-3.6-0.9-20-26.1-27.5-26.1
c-12.2-1.2-13.1,13.8-23.7,13.8V103.2z"
/>
<path
d="M149.9,63.6c41,0,22.1,55.1,51.2,55.1c7.9,0,29.1-20,29.1-55.5c0-13.3-8.4-21.7-14.4-30.4C205.8,18.1,198.6,7.7,189,7.7
c-18.3,0-21.7,19.8-39.1,19.8V63.6z"
/>
<path
d="M243.9,292.3c2.6,0,56.1-49.1,56.1-77.6S268.5,91,251.3,91s-28.1,28.8-28.1,42.8s45.3,64.1,45.3,97.1
S241.3,292.3,243.9,292.3z"
/>
<path
d="M150.1,237.2c-11.5,0-8.3,21.6-16.6,21.6s-29.8-68.3-9.1-70.7c20.8-2.4,12.1,24,25.7,24V237.2z"
/>
<path
d="M150.1,103.2c-2.2,0-8,11.5-22.1,18.2c-10,4.7-24.9,8.1-33.6,13.7c-21,13.5,0.9,50,4.5,49.1c3.6-0.9,20-26.1,27.5-26.1
c12.2-1.2,13.1,13.8,23.7,13.8V103.2z"
/>
<path
d="M150.1,63.6c-41,0-22.1,55.1-51.2,55.1c-7.9,0-29.1-20-29.1-55.5c0-13.3,8.4-21.7,14.4-30.4C94.2,18.1,101.4,7.7,111,7.7
c18.3,0,21.7,19.8,39.1,19.8V63.6z"
/>
<path
d="M56.1,292.3c-2.6,0-56.1-49.1-56.1-77.6C0,186.2,31.5,91,48.7,91s28.1,28.8,28.1,42.8s-45.3,64.1-45.3,97.1
S58.7,292.3,56.1,292.3z"
/>
</svg>
);
| odota/web/src/components/Icons/Roshan.jsx/0 | {
"file_path": "odota/web/src/components/Icons/Roshan.jsx",
"repo_id": "odota",
"token_count": 1060
} | 259 |
import React, { createElement } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import AvVolumeUp from 'material-ui/svg-icons/av/volume-up';
import Checkbox from 'material-ui/Checkbox';
import Visibility from 'material-ui/svg-icons/action/visibility';
import VisibilityOff from 'material-ui/svg-icons/action/visibility-off';
import heroes from 'dotaconstants/build/heroes.json';
import playerColors from 'dotaconstants/build/player_colors.json';
import chatWheelMessages from 'dotaconstants/build/chat_wheel.json';
import emotes from 'dota2-emoticons/resources/json/charname.json';
import styled from 'styled-components';
import { isRadiant, formatSeconds } from '../../../utility';
import { IconRadiant, IconDire } from '../../Icons';
import constants from '../../constants';
import HeroImage from './../../Visualizations/HeroImage';
const StyledDiv = styled.div`
padding-left: 32px;
padding-right: 32px;
@media (max-width: 768px) {
padding-left: 0;
padding-right: 0;
}
& .Chat,
& .Filters {
margin: 0;
padding: 0;
}
& .Chat {
& .radiant {
& svg.icon {
fill: ${constants.colorSuccess};
}
}
& .dire {
& svg.icon {
fill: ${constants.colorDanger};
}
}
& .radiant,
& .dire {
display: flex;
align-items: flex-end;
flex-wrap: wrap;
&:not(:last-of-type) {
padding-bottom: 10px;
}
& svg.icon {
width: 16px;
height: 16px;
}
& time {
display: inline-block;
width: 54px;
text-align: center;
& a {
font-size: ${constants.fontSizeSmall};
margin: 2px;
}
}
& time,
& time > a {
color: ${constants.colorMutedLight};
}
& img {
&:not(.chatwheel) {
width: 36px;
}
height: 20px;
&.unknown {
width: 16px;
height: 16px;
}
}
& .target {
font-size: ${constants.fontSizeMedium};
margin-left: 8px;
}
& .author {
font-size: ${constants.fontSizeMedium};
font-weight: ${constants.fontWeightMedium};
margin: 0 8px;
}
& article {
& svg,
& .chatwheel {
vertical-align: sub;
margin-right: 5px;
height: 18px !important;
}
/* override material-ui */
& svg {
width: 18px !important;
border-radius: 50%;
background-color: ${constants.colorBlueMuted};
&.play {
&:hover {
cursor: pointer;
background-color: ${constants.colorBlue};
color: ${constants.primarySurfaceColor} !important;
}
&:active {
opacity: 0.6;
}
}
&.playing {
background-color: ${constants.colorBlue};
color: ${constants.primarySurfaceColor} !important;
}
}
& .emote {
width: 20px;
height: 20px;
vertical-align: bottom;
}
}
&.spam {
opacity: 0.5;
color: ${constants.colorMuted} !important;
filter: grayscale(100%);
pointer-events: none;
}
}
& .disabled {
pointer-events: none;
}
}
& .divider {
border: 0;
height: 1px;
background: linear-gradient(to right, ${constants.primaryTextColor}, rgba(0, 0, 0, 0));
opacity: 0.1;
margin: 6px 0 20px 0;
}
& .Filters {
display: flex;
flex-flow: row wrap;
& > li {
display: flex;
flex-direction: column;
margin: 0;
padding-right: 32px;
& > div {
text-transform: uppercase;
font-size: ${constants.fontSizeSmall};
color: ${constants.colorMutedLight};
margin-bottom: 8px;
}
& > ul {
padding: 0;
display: flex;
flex-flow: row wrap;
& > li {
margin-bottom: 10px;
&:not(:last-of-type) {
margin-right: 16px;
}
/* override material-ui */
& > div {
display: block !important;
& > div {
& > div {
margin-right: 8px !important;
}
& > label {
width: auto !important;
& > span {
display: inline-block;
& > div {
display: flex;
justify-content: space-between;
flex-direction: row;
}
& > div > b,
& > small {
text-align: right;
color: ${constants.colorMutedLight};
}
& > div > b,
& > small > span {
margin-left: 4px;
width: 32px;
display: inline-block;
}
& > small {
display: block;
font-weight: ${constants.fontWeightNormal};
font-size: ${constants.fontSizeSmall};
text-transform: lowercase;
margin-top: -4px;
}
}
}
}
}
}
}
&:not(:last-of-type) {
margin-right: 16px;
}
}
}
`;
const isSpectator = slot => slot > 9 && slot < 128;
const getChatWheel = id => chatWheelMessages[id] || {};
class Chat extends React.Component {
static propTypes = {
data: PropTypes.shape({}),
strings: PropTypes.shape({}),
};
constructor(props) {
super(props);
this.raw = this.props.data;
// detect spam
for (let i = 0; i < this.raw.length - 1; i += 1) {
const curr = this.raw[i];
const next = this.raw[i + 1];
if (curr.player_slot === next.player_slot) {
if ((next.time - curr.time) < 15) {
if (curr.key === next.key) {
next.spam = true;
}
}
// ex: 3334005345
if (curr.type === 'chat' && next.type === 'chat') {
// for some reason some strings have trailing space
curr.key = curr.key.trim();
next.key = next.key.trim();
// if first and last 2 chars matches, it's spam
if (curr.key.slice(0, 2) === next.key.slice(0, 2) && curr.key.slice(-2) === next.key.slice(-2)) {
next.spam = true;
}
}
}
}
this.state = {
radiant: true,
dire: true,
text: true,
phrases: false,
audio: true,
all: true,
allies: true,
spam: true,
playing: null,
messages: null,
};
this.filters = {
radiant: {
f: (arr = this.raw) => arr.filter(msg => isRadiant(msg.player_slot) || isSpectator(msg.slot)),
type: 'faction',
disabled: () => !this.state.dire,
},
dire: {
f: (arr = this.raw) => arr.filter(msg => !isRadiant(msg.player_slot)),
type: 'faction',
disabled: () => !this.state.radiant,
},
text: {
f: (arr = this.raw) => arr.filter(msg => msg.type === 'chat'),
type: 'type',
disabled: () => this.state.phrases === false && this.state.audio === false,
},
phrases: {
f: (arr = this.raw) => arr.filter(msg => msg.type === 'chatwheel' && !getChatWheel(msg.key).sound_ext && !getChatWheel(msg.key).image),
type: 'type',
disabled: () => this.state.text === false && this.state.audio === false,
},
audio: {
f: (arr = this.raw) => arr.filter(msg => msg.type === 'chatwheel' && getChatWheel(msg.key).sound_ext),
type: 'type',
disabled: () => this.state.phrases === false && this.state.text === false,
},
all: {
f: (arr = this.raw) => arr.filter(msg => msg.type === 'chat' || (msg.type === 'chatwheel' && getChatWheel(msg.key).all_chat)),
type: 'target',
disabled: () => !this.state.allies,
},
allies: {
f: (arr = this.raw) => arr.filter(msg => msg.type === 'chatwheel' && !getChatWheel(msg.key).all_chat),
type: 'target',
disabled: () => !this.state.all,
},
spam: {
f: (arr = this.raw) => arr.filter(msg => msg.spam),
type: 'other',
disabled: () => false,
},
};
this.state.messages = this.filter();
}
audio = (message, index) => {
const a = new Audio(`https://odota.github.io/media/chatwheel/dota_chatwheel_${message.id}.${message.sound_ext}`);
a.play();
this.setState({
playing: index,
});
const i = setInterval(() => {
if (a.paused) {
this.setState({
playing: null,
});
clearInterval(i);
}
}, 500);
};
toggleFilter = (key) => {
if (key !== undefined) {
this.setState((state) => ({[key]: !state[key]}), () => {this.setState({messages: this.filter()})});
}
}
filter = () => {
const messages = this.raw.slice();
Object.keys(this.filters).forEach((k) => {
if (!this.state[k]) {
this.filters[k].f().forEach((obj) => {
const index = messages.indexOf(obj);
if (index >= 0) {
messages.splice(index, 1);
}
});
}
});
// sort by time, considering spam
messages.sort((a, b) => {
const timeDiff = Number(a.time) - Number(b.time);
if (timeDiff === 0) {
if (a.spam === b.spam) {
return 0;
}
return a.spam ? 1 : -1;
}
return timeDiff;
});
return messages
};
render() {
const emoteKeys = Object.keys(emotes);
const Messages = ({ strings }) => (
<div>
<ul className="Chat">
{this.state.messages.map((msg, index) => {
const hero = heroes[msg.heroID];
const rad = isRadiant(msg.player_slot);
const spec = isSpectator(msg.slot);
let message = null;
if (msg.type === 'chatwheel') {
const messageInfo = getChatWheel(msg.key);
message = [
(messageInfo.message || '').replace(/%s1/, 'A hero'),
];
if (messageInfo.sound_ext) {
message.unshift(<AvVolumeUp
key={messageInfo.id}
viewBox="-2 -2 28 28"
onClick={() => this.audio(messageInfo, index)}
className={`play ${this.state.playing === index ? 'playing' : ''}`}
/>);
} else {
message.unshift(<img
key={messageInfo.id}
src="/assets/images/dota2/chat_wheel_icon.png"
alt="Chat Wheel"
className="chatwheel"
/>);
}
} else if (msg.type === 'chat') {
const messageRaw = msg.key
.split('')
.map((char) => {
const emote = emotes[emoteKeys[emoteKeys.indexOf(char)]];
if (emote) {
return createElement('img', {
alt: emote,
src: `/assets/images/dota2/emoticons/${emote}.gif`,
className: 'emote',
});
}
return char;
});
// Join sequences of characters
let buffer = [];
message = [];
messageRaw.forEach((char) => {
if (typeof char === 'object') {
message.push(buffer.join(''), char)
buffer = [];
} else {
buffer.push(char);
}
})
message.push(buffer.join(''));
}
let target = strings.chat_filter_all;
if (msg.type === 'chatwheel' && !getChatWheel(msg.key)) {
target = strings.chat_filter_allies;
}
if (spec) {
target = strings.chat_filter_spectator;
}
let icon = (<img
src="/assets/images/blank-1x1.gif"
alt="???"
className="unknown"
/>);
if (!spec) {
if (rad) {
icon = <IconRadiant className="icon" />;
} else {
icon = <IconDire className="icon" />;
}
}
return (
<li
id={index}
className={`
${rad ? 'radiant' : 'dire'}
${msg.spam ? 'spam' : ''}
`.trim()}
>
{icon}
<time>
<a href={`#${index}`}>{formatSeconds(msg.time)}</a>
</time>
{hero ? <HeroImage id={hero.id} alt={hero && hero.localized_name} />
: <img src="/assets/images/blank-1x1.gif" alt="" />}
<span className="target">
[{target.toUpperCase()}]
</span>
<Link
to={`/players/${msg.accountID}`}
style={{ color: playerColors[msg.player_slot] || 'red' }}
className={`author ${msg.accountID ? '' : 'disabled'}`}
>
{msg.name || msg.unit}
</Link>
<article>
{message}
</article>
</li>
);
})}
</ul>
</div>
);
const Filters = ({ strings }) => {
const categories = Object.keys(this.filters).reduce((cats, name) => {
const c = cats;
const f = this.filters;
if (f[name].f().length > 0) {
c[f[name].type] = c[f[name].type] || [];
c[f[name].type].push({
name,
f: f[name].f,
disabled: f[name].disabled,
});
}
return c;
}, {});
return (
<ul className="Filters">
{Object.keys(categories).map(cat => (
<li key={cat}>
<div>{strings[`chat_category_${cat}`]}</div>
<ul>
{categories[cat].map((filter) => {
const len = filter.f().length;
const lenFiltered = filter.f(this.state.messages).length;
return (
<li key={filter.name}>
<Checkbox
label={
<span>
<div>
{strings[`chat_filter_${filter.name}`] || strings[`general_${filter.name}`]}
<b>{len}</b>
</div>
{len !== lenFiltered && <small>{strings.chat_filtered.toLowerCase()} <span>{lenFiltered}</span></small>}
</span>
}
checked={this.state[filter.name]}
onCheck={() => this.toggleFilter(filter.name)}
checkedIcon={<Visibility />}
uncheckedIcon={<VisibilityOff />}
disabled={filter.disabled()}
/>
</li>
);
})}
</ul>
</li>
))}
</ul>
);
};
return (
<StyledDiv>
<Filters strings={this.props.strings} />
<hr className="divider" />
<Messages strings={this.props.strings} />
</StyledDiv>
);
}
}
const mapStateToProps = state => ({
strings: state.app.strings,
});
export default connect(mapStateToProps)(Chat);
| odota/web/src/components/Match/Chat/Chat.jsx/0 | {
"file_path": "odota/web/src/components/Match/Chat/Chat.jsx",
"repo_id": "odota",
"token_count": 8625
} | 260 |
import React from 'react';
import { connect } from 'react-redux';
import { string, oneOfType, number, bool, shape } from 'prop-types';
import playerColors from 'dotaconstants/build/player_colors.json';
import heroes from 'dotaconstants/build/heroes.json';
import styled from 'styled-components';
import constants from '../../constants';
import config from '../../../config';
const StyledAside = styled.aside`
display: flex;
flex-direction: row;
align-items: center;
font-weight: ${constants.fontWeightMedium};
`;
const StyledImg = styled.img`
height: 24px;
margin-right: 4px;
`;
const PlayerThumb = (props) => {
const {
name,
personaname,
hideText,
strings,
} = props;
const playerSlot = props.player_slot;
const heroId = props.hero_id;
return (
<StyledAside style={{ color: playerColors[playerSlot] }}>
<StyledImg
src={heroes[heroId]
? `${config.VITE_IMAGE_CDN}${heroes[heroId].icon}`
: '/assets/images/blank-1x1.gif'
}
alt=""
/>
{!hideText && (name || personaname || strings.general_anonymous)}
</StyledAside>
);
};
PlayerThumb.propTypes = {
player_slot: oneOfType([string, number]),
hero_id: oneOfType([string, number]),
name: string,
personaname: string,
hideText: bool,
strings: shape({}),
};
const mapStateToProps = state => ({
strings: state.app.strings,
});
export default connect(mapStateToProps)(PlayerThumb);
| odota/web/src/components/Match/PlayerThumb/index.jsx/0 | {
"file_path": "odota/web/src/components/Match/PlayerThumb/index.jsx",
"repo_id": "odota",
"token_count": 550
} | 261 |
import heroData from 'dotaconstants/build/heroes.json';
import gameModeData from 'dotaconstants/build/game_mode.json';
import lobbyTypeData from 'dotaconstants/build/lobby_type.json';
// import patchData from 'dotaconstants/build/patch.json';
import store from '../../store';
import { formatTemplateToString } from '../../utility';
const getFields = () => {
const { strings } = store.getState().app;
/*
const mmrs = Array(20).fill().map((e, i) => i * 500).map(element => ({
text: String(element),
value: element,
key: String(element),
}));
*/
const rankTiers = Object.keys(strings).filter(str => str.indexOf('rank_tier_') === 0 && str !== 'rank_tier_0').map((str) => {
const num = str.substring('rank_tier_'.length);
return {
text: `[${num}] ${strings[str]}`,
value: num,
key: String(num),
};
});
const durations = Array(10).fill().map((e, i) => i * 10).map(duration => ({
text: `${formatTemplateToString(strings.time_mm, duration)}`,
searchText: formatTemplateToString(strings.time_mm, duration),
value: duration * 60,
key: String(duration),
}));
const having = Array(5).fill().map((e, i) => (i + 1) * 5).map(element => ({
text: String(element),
value: element,
key: String(element),
}));
const limit = [100, 200, 500, 1000].map(element => ({
text: String(element),
value: element,
key: String(element),
}));
const gameMode = Object.values(gameModeData).map(element => ({
text: strings[`game_mode_${element.id}`],
value: element.id,
key: String(element.id),
}));
const lobbyType = Object.values(lobbyTypeData).map(element => ({
text: strings[`lobby_type_${element.id}`],
value: element.id,
key: String(element.id),
}));
return ({
group: [{
text: strings.th_hero_id,
value: 'public_player_matches.hero_id',
key: 'hero',
groupSize: 10,
}, /* {
text: strings.match_avg_mmr,
value: 'avg_mmr/500*500',
alias: 'avg_mmr',
key: 'mmr',
}, */
{
text: strings.match_avg_rank_tier,
value: 'floor(avg_rank_tier)',
key: 'avg_rank_tier',
alias: 'avg_rank_tier',
},
{
text: strings.explorer_side,
value: '(public_player_matches.player_slot < 128)',
alias: 'is_radiant',
key: 'side',
groupSize: 5,
}, {
text: strings.th_result,
value: '((public_player_matches.player_slot < 128) = public_matches.radiant_win)',
alias: 'win',
key: 'result',
groupSize: 5,
}, {
text: strings.heading_duration,
value: 'duration/300*5',
alias: 'minutes',
key: 'duration',
}, {
text: strings.filter_game_mode,
value: 'game_mode',
key: 'game_mode',
}, {
text: strings.filter_lobby_type,
value: 'lobby_type',
key: 'lobby_type',
}, {
text: strings.th_primary_attr,
value: 'primary_attr',
key: 'primary_attr',
groupSize: 10,
}, {
text: strings.th_legs,
value: 'legs',
key: 'legs',
groupSize: 10,
}, {
text: strings.th_attack_type,
value: 'attack_type',
key: 'attack_type',
groupSize: 10,
}, /* {
text: strings.explorer_patch,
value: 'patch',
key: 'patch',
}, */],
// minMmr: mmrs,
// maxMmr: mmrs,
minRankTier: rankTiers,
maxRankTier: rankTiers,
hero: Object.keys(heroData).map(heroId => ({
text: `[${heroId}] ${heroData[heroId].localized_name}`,
searchText: heroData[heroId].localized_name,
value: heroData[heroId].id,
key: String(heroData[heroId].id),
})),
minDuration: durations,
maxDuration: durations,
side: [{
text: strings.general_radiant,
value: true,
key: 'radiant',
}, {
text: strings.general_dire,
value: false,
key: 'dire',
}],
result: [{
text: strings.td_win,
value: true,
key: 'win',
}, {
text: strings.td_loss,
value: false,
key: 'loss',
}],
gameMode,
lobbyType,
order: [{ text: strings.explorer_asc, value: 'ASC', key: 'asc' }, { text: strings.explorer_desc, value: 'DESC', key: 'desc' }],
having,
limit,
});
};
export default getFields;
| odota/web/src/components/Meta/fields.js/0 | {
"file_path": "odota/web/src/components/Meta/fields.js",
"repo_id": "odota",
"token_count": 1850
} | 262 |
import styled from 'styled-components';
import constants from '../../../constants';
export const Styled = styled.div`
position: relative;
text-align: center;
padding: 10px;
.tt-container {
white-space: nowrap;
text-align: center;
}
.result {
font-size: 16px;
font-weight: bold;
}
.win {
color: ${constants.colorGreen};
}
.loss {
color: ${constants.colorRed};
}
`;
export const Content = styled.div`
position: relative;
overflow-x: auto;
:not(:last-child) {
margin-bottom: 20px;
}
.innerContainer {
background-color: transparent !important;
}
`;
export const Week = styled.div`
position: relative;
display: inline-block;
`;
export const WeekDayLabels = styled.div`
position: relative;
bottom: 2px;
right: 10px;
font-size: 11px;
display: inline-block;
direction: rtl;
text-align: right;
color: ${constants.colorMutedLight};
div {
line-height: 15px;
margin-top: 2px;
}
`;
export const WeeksContainer = styled.div`
overflow-x: auto;
overflow-y: hidden;
position: relative;
white-space: nowrap;
padding-top: 30px;
padding-bottom: 10px;
width: 1000px;
margin: 0 auto;
background-color: rgba(0, 0, 0, 0.15);
border: 1px solid rgba(0, 0, 0, 0.13);
border-top-left-radius: 5px;
#hide-table {
line-height: 0px;
position: relative;
top: 107px;
right: 10px;
float: right;
color: ${constants.colorBlue};
font-size: 30px;
cursor: pointer;
&:hover {
opacity: 0.5;
}
}
table {
& .__react_component_tooltip {
display: none;
}
& tr,
th,
thead {
background-color: transparent !important;
border-style: none !important;
}
}
`;
export const DayContainer = styled.div`
height: 15px;
width: 15px;
margin: 2px 0 2px 2px;
line-height: 15px;
font-size: 8px;
transition: opacity 0.3s ease-in-out;
background-color: rgba(0, 0, 0, 0.03);
svg:hover {
opacity: 0.3;
}
&.active {
background-color: rgba(0, 0, 0, 0.2);
}
.weekDay {
position: absolute;
font-size: 11px;
right: 22px;
direction: rtl;
text-align: right;
color: ${constants.colorMutedLight};
}
.month {
position: absolute;
top: -20px;
margin-left: 1px;
font-size: 11px;
color: ${constants.colorMutedLight};
cursor: crosshair;
& .year {
display: inline-block;
color: #6192b9;
margin-left: 3px;
}
}
.circle {
position: relative;
top: 43%;
line-height: 0px;
color: #b72424;
}
`;
| odota/web/src/components/Player/Pages/Activity/Styled.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Activity/Styled.jsx",
"repo_id": "odota",
"token_count": 1083
} | 263 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getPlayerPros } from '../../../../actions';
import Table from '../../../Table';
import Container from '../../../Container';
import playerProsColumns from './playerProsColumns';
const Pros = ({
data, playerId, error, loading, strings,
}) => (
<Container title={strings.heading_pros} error={error} loading={loading}>
<Table paginated columns={playerProsColumns(playerId, strings)} data={data} />
</Container>
);
Pros.propTypes = {
data: PropTypes.arrayOf({}),
error: PropTypes.string,
playerId: PropTypes.string,
loading: PropTypes.bool,
strings: PropTypes.shape({}),
};
const getData = (props) => {
props.getPlayerPros(props.playerId, props.location.search);
};
class RequestLayer extends React.Component {
static propTypes = {
location: PropTypes.shape({
key: PropTypes.string,
}),
playerId: PropTypes.string,
strings: PropTypes.shape({}),
}
componentDidMount() {
getData(this.props);
}
componentDidUpdate(prevProps) {
if (this.props.playerId !== prevProps.playerId || this.props.location.key !== prevProps.location.key) {
getData(this.props);
}
}
render() {
return <Pros {...this.props} />;
}
}
const mapDispatchToProps = dispatch => ({
getPlayerPros: (playerId, options) => dispatch(getPlayerPros(playerId, options)),
});
const mapStateToProps = state => ({
data: state.app.playerPros.data,
error: state.app.playerPros.error,
loading: state.app.playerPros.loading,
strings: state.app.strings,
});
export default connect(mapStateToProps, mapDispatchToProps)(RequestLayer);
| odota/web/src/components/Player/Pages/Pros/Pros.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Pros/Pros.jsx",
"repo_id": "odota",
"token_count": 569
} | 264 |
export { default } from './Player';
export { default as AppBadge } from './Header/AppBadge';
| odota/web/src/components/Player/index.js/0 | {
"file_path": "odota/web/src/components/Player/index.js",
"repo_id": "odota",
"token_count": 28
} | 265 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import heroes from 'dotaconstants/build/heroes.json';
import {
transformations,
fromNow,
subTextStyle,
} from '../../utility';
import Table, { TableLink } from '../Table';
import Container from '../Container';
// import { List } from 'material-ui/List';
import { StyledTeamIconContainer } from '../../components/Match/StyledMatch';
import HeroImage from '../Visualizations/HeroImage';
const searchColumns = strings => [{
displayName: strings.th_name,
field: 'personaname',
displayFn: (row, col, field) => {
const subtitle = row.last_match_time ? fromNow(new Date(row.last_match_time) / 1000) : '';
return transformations.player({
...row,
subtitle,
}, col, field);
},
}];
const proColumns = strings => [{
displayName: strings.th_name,
field: 'name',
displayFn: (row, col, field) => transformations.player({
...row,
}, col, field),
}, {
displayName: strings.th_team_name,
field: 'team_name',
displayFn: (row, col, field) => (
<TableLink to={`/teams/${row.team_id}`}>{field || strings.general_unknown}</TableLink>
),
}];
const matchColumns = strings => [
{
displayName: strings.th_match_id,
field: 'match_id',
sortFn: true,
displayFn: (row, col, field) => (
<div>
<TableLink to={`/matches/${field}`}>{field}</TableLink>
<span style={{ ...subTextStyle, display: 'block', marginTop: 1 }}>
{row.skill && strings[`skill_${row.skill}`]}
</span>
</div>),
},
{
displayName: strings.th_duration,
tooltip: strings.tooltip_duration,
field: 'duration',
sortFn: true,
displayFn: transformations.duration,
},
{
displayName: <StyledTeamIconContainer>{strings.general_radiant}</StyledTeamIconContainer>,
field: 'players',
displayFn: (row, col, field) => [0, 1, 2, 3, 4].map(player =>
(heroes[field[player].hero_id] ? <HeroImage id={field[player].hero_id} key={field[player].hero_id} style={{ width: '50px' }} alt="" /> : null)),
},
{
displayName: <StyledTeamIconContainer >{strings.general_dire}</StyledTeamIconContainer>,
field: 'players',
displayFn: (row, col, field) => [5, 6, 7, 8, 9].map(player =>
(heroes[field[player].hero_id] ? <HeroImage id={field[player].hero_id} key={field[player].hero_id} style={{ width: '50px' }} alt="" /> : null)),
},
];
const Search = ({
players,
playersLoading,
playersError,
pros,
prosLoading,
prosError,
matchData,
matchLoading,
matchError,
strings,
}) => (
<div>
<Container
loading={matchLoading}
title={strings.explorer_match}
hide={!matchData || matchData.length === 0 || matchError}
>
<Table
data={[matchData]}
columns={matchColumns(strings)}
/>
</Container>
<Container
loading={prosLoading}
error={prosError}
title={strings.app_pro_players}
hide={!pros || pros.length === 0}
>
<Table
paginated
pageLength={5}
data={pros}
columns={proColumns(strings)}
/>
</Container>
<Container
loading={playersLoading}
error={playersError}
title={strings.app_public_players}
subtitle={`${players.length} ${strings.app_results}`}
>
<Table
paginated
data={players}
columns={searchColumns(strings)}
/>
</Container>
</div>
);
Search.propTypes = {
players: PropTypes.arrayOf(PropTypes.shape({})),
playersLoading: PropTypes.bool,
playersError: PropTypes.string,
pros: PropTypes.arrayOf(PropTypes.shape({})),
prosLoading: PropTypes.bool,
prosError: PropTypes.string,
matchData: PropTypes.arrayOf({}),
matchLoading: PropTypes.bool,
matchError: PropTypes.bool,
strings: PropTypes.shape({}),
};
const mapStateToProps = state => ({
strings: state.app.strings,
});
export default connect(mapStateToProps)(Search);
| odota/web/src/components/Search/SearchResult.jsx/0 | {
"file_path": "odota/web/src/components/Search/SearchResult.jsx",
"repo_id": "odota",
"token_count": 1547
} | 266 |
import Status from './Status';
export default Status;
| odota/web/src/components/Status/index.js/0 | {
"file_path": "odota/web/src/components/Status/index.js",
"repo_id": "odota",
"token_count": 14
} | 267 |
import React from 'react';
import styled from 'styled-components';
import propTypes from 'prop-types';
import ReactTooltip from 'react-tooltip';
import LevelGroup from './LevelGroup';
const Wrapper = styled.div`
.__react_component_tooltip {
opacity: 1 !important;
padding: 0px !important;
}
`;
const Content = styled.div`
position: relative;
width: 400px;
background: linear-gradient(135deg, #131519, #1f2228);
padding: 9px;
overflow: hidden;
border: 2px solid #27292b;
`;
const Background = styled.div`
position: absolute;
right: 0px;
bottom: 0px;
height: 100%;
width: 100%;
background-image: url('/assets/images/dota2/talent_tree.svg');
background-repeat: no-repeat;
background-position: center;
opacity: 0.08;
`;
const TalentsTooltip = ({ talents, ttId }) => (
<Wrapper>
<ReactTooltip id={ttId} effect="solid" place="left">
<Content>
<Background />
<LevelGroup talents={talents[3]} level="25" />
<LevelGroup talents={talents[2]} level="20" />
<LevelGroup talents={talents[1]} level="15" />
<LevelGroup talents={talents[0]} level="10" />
</Content>
</ReactTooltip>
</Wrapper>
);
TalentsTooltip.propTypes = {
talents: propTypes.oneOfType([
propTypes.object,
propTypes.array,
]).isRequired,
ttId: propTypes.string.isRequired,
};
export default TalentsTooltip;
| odota/web/src/components/TalentsTooltip/index.jsx/0 | {
"file_path": "odota/web/src/components/TalentsTooltip/index.jsx",
"repo_id": "odota",
"token_count": 517
} | 268 |
import styled from 'styled-components';
import constants from '../../constants';
export const StyledTooltip = styled.div`
position: relative;
width:auto;
display: block;
padding: 0.5em;
background-color: ${constants.darkPrimaryColor};
`;
export const StyledTooltipTeam = styled.span`
position: relative;
margin-right: 0.3em;
color: ${props => props.color};
`;
export const StyledRadiant = styled.span`
color: white;
position: absolute;
top: 52px;
left: 100px;
filter: drop-shadow(0 0 5px ${constants.colorSuccess});
`;
export const StyledDire = styled.span`
position: absolute;
bottom: 60px;
left: 100px;
color: white;
filter: drop-shadow(0 0 5px ${constants.colorDanger});
`;
export const StyledCustomizedTooltip = styled.div`
background-color: #131519;
border: 2px solid #27292b;
bottom: 25px;
position: relative;
div {
margin-bottom: 5px;
}
.label {
text-align: center;
border-bottom: 1px solid #505459;
}
.data {
line-height: 30px;
padding-right: 7px;
padding-left: 7px;
background: linear-gradient(to right, rgba(82, 51, 50, 0.8) ,transparent);
&.isRadiant {
background: linear-gradient(to right, rgba(50, 82, 51, 0.8) ,transparent);
}
}
`;
export const StyledHolder = styled.div`position: relative;`;
export const GoldSpan = styled.span`color: ${constants.golden};`;
export const XpSpan = styled.span`color: #acc9ed;`;
export const StyledTooltipGold = styled.div`display: inline-flex;`;
| odota/web/src/components/Visualizations/Graph/Styled.jsx/0 | {
"file_path": "odota/web/src/components/Visualizations/Graph/Styled.jsx",
"repo_id": "odota",
"token_count": 552
} | 269 |
import { useSelector } from 'react-redux';
export const useStrings = () => {
const strings = useSelector((state) => state.app.strings);
return strings;
};
export default useStrings;
| odota/web/src/hooks/useStrings.hook.js/0 | {
"file_path": "odota/web/src/hooks/useStrings.hook.js",
"repo_id": "odota",
"token_count": 58
} | 270 |
{
"yes": "si",
"no": "no",
"abbr_thousand": "k",
"abbr_million": "m",
"abbr_billion": "b",
"abbr_trillion": "t",
"abbr_quadrillion": "q",
"abbr_not_available": "Non disponibile",
"abbr_pick": "P",
"abbr_win": "W",
"abbr_number": "N.",
"analysis_eff": "Efficienza in lane",
"analysis_farm_drought": "GPM più basso in un intervallo di 5min",
"analysis_skillshot": "Skillshot a segno",
"analysis_late_courier": "Ritardo nell'aggiornamento del corriere",
"analysis_wards": "Guardiani piazzati",
"analysis_roshan": "Roshan uccisi",
"analysis_rune_control": "Rune ottenute",
"analysis_unused_item": "Oggetti attivi inutilizzati",
"analysis_expected": "di",
"announce_dismiss": "Annulla",
"announce_github_more": "Vedi su GitHub",
"api_meta_description": "The OpenDota API gives you access to all the advanced Dota 2 stats offered by the OpenDota platform. Access performance graphs, heatmaps, wordclouds, and more. Get started for free.",
"api_title": "The OpenDota API",
"api_subtitle": "Build on top of the OpenDota platform. Bring advanced stats to your app and deep insights to your users.",
"api_details_free_tier": "Free Tier",
"api_details_premium_tier": "Premium Tier",
"api_details_price": "Prezzo",
"api_details_price_free": "Gratis",
"api_details_price_prem": "$price per $unit calls",
"api_details_key_required": "Key Required?",
"api_details_key_required_free": "No",
"api_details_key_required_prem": "Sì -- Richiede un metodo di pagamento",
"api_details_call_limit": "Limite chiamate",
"api_details_call_limit_free": "$limit al mese",
"api_details_call_limit_prem": "Illimitate",
"api_details_rate_limit": "Rate Limit",
"api_details_rate_limit_val": "$num calls per minute",
"api_details_support": "Supporto",
"api_details_support_free": "Community support via Discord group",
"api_details_support_prem": "Priority support from core developers",
"api_get_key": "Get my key",
"api_docs": "Read the docs",
"api_header_details": "Details",
"api_charging": "You're charged $cost per call, rounded up to the nearest cent.",
"api_credit_required": "Getting an API key requires a linked payment method. We'll automatically charge the card at the beginning of the month for any fees owed.",
"api_failure": "500 errors don't count as usage, since that means we messed up!",
"api_error": "There was an error with the request. Please try again. If it continues, contact us at support@opendota.com.",
"api_login": "Login to access API Key",
"api_update_billing": "Update billing method",
"api_delete": "Elimina chiave",
"api_key_usage": "To use your key, add $param as a query parameter to your API request:",
"api_billing_cycle": "The current billing cycle ends on $date.",
"api_billed_to": "We'll automatically bill the $brand ending in $last4.",
"api_support": "Need support? Email $email.",
"api_header_usage": "Your Usage",
"api_usage_calls": "# API calls",
"api_usage_fees": "Estimated Fees",
"api_month": "Month",
"api_header_key": "Your Key",
"api_header_table": "Get started for free. Keep going at a ridiculously low price.",
"app_name": "OpenDota",
"app_language": "Lingua",
"app_localization": "Localizzazione",
"app_description": "Piattaforma open source di raccolta dati di Dota 2",
"app_about": "Su di noi",
"app_privacy_terms": "Privacy & Termini",
"app_api_docs": "Documenti API",
"app_blog": "Blog",
"app_translate": "Traduci",
"app_donate": "Effettua una donazione",
"app_gravitech": "Sito realizzato da Gravitech LLC",
"app_powered_by": "realizzato con",
"app_donation_goal": "Traguardo Mensile Donazioni",
"app_sponsorship": "Il tuo contributo aiuta a tenere il servizio gratis per tutti.",
"app_twitter": "Seguici su Twitter",
"app_github": "Sorgente su GitHub",
"app_discord": "Chat su Discord",
"app_steam_profile": "Profilo Steam",
"app_confirmed_as": "Confermato come",
"app_untracked": "Questo utente non ha attività recente, i replay dei nuovi match non verranno analizzati automaticamente.",
"app_tracked": "Questo utente è attivo. I replay dei nuovi match verranno analizzati automaticamente.",
"app_cheese_bought": "Formaggi comprati",
"app_contributor": "This user has contributed to the development of the OpenDota project",
"app_dotacoach": "Richiedi un Coach",
"app_pvgna": "Trova una guida",
"app_pvgna_alt": "Trova una guida su Pvgna",
"app_rivalry": "Bet on Pro Matches",
"app_rivalry_team": "Bet on {0} Matches",
"app_refresh": "Ricarica Storico Match: Mette in coda una scansione per trovare i match mancanti per colpa delle impostazioni della privacy",
"app_refresh_label": "Aggiorna",
"app_login": "Login",
"app_logout": "Logout",
"app_results": "risultato(i)",
"app_report_bug": "Segnala un bug",
"app_pro_players": "Giocatori Pro",
"app_public_players": "Giocatori visibili",
"app_my_profile": "Il mio profilo",
"barracks_value_1": "Dire Bot Mischia",
"barracks_value_2": "Dire Bot Distanza",
"barracks_value_4": "Dire Mid Mischia",
"barracks_value_8": "Dire Mid Distanza",
"barracks_value_16": "Dire Top Mischia",
"barracks_value_32": "Dire Top Distanza",
"barracks_value_64": "Radiant Bot Mischia",
"barracks_value_128": "Radiant Bot Distanza",
"barracks_value_256": "Radiant Mid Melee",
"barracks_value_512": "Radiant Mid Ranged",
"barracks_value_1024": "Radiant Top Melee",
"barracks_value_2048": "Radiant Top Ranged",
"benchmarks_description": "{0} {1} is equal or higher than {2}% of recent performances on this hero",
"fantasy_description": "{0} for {1} points",
"building_melee_rax": "Caserme da Mischia",
"building_range_rax": "Caserme a Distanza",
"building_lasthit": "ha ottenuto il last hit",
"building_damage": "ha ricevuto danno",
"building_hint": "Le icone sulla mappa hanno suggerimenti",
"building_denied": "negato",
"building_ancient": "Ancient",
"CHAT_MESSAGE_TOWER_KILL": "Torre",
"CHAT_MESSAGE_BARRACKS_KILL": "Caserme",
"CHAT_MESSAGE_ROSHAN_KILL": "Roshan",
"CHAT_MESSAGE_AEGIS": "Ha raccolto l'egida",
"CHAT_MESSAGE_FIRSTBLOOD": "Primo Sangue",
"CHAT_MESSAGE_TOWER_DENY": "Torre negata",
"CHAT_MESSAGE_AEGIS_STOLEN": "Ha rubato l'egida",
"CHAT_MESSAGE_DENIED_AEGIS": "Ha negato l'egida",
"distributions_heading_ranks": "Rank Tier Distribution",
"distributions_heading_mmr": "Distribuzione Solo MMR",
"distributions_heading_country_mmr": "Solo MMR medio per Paese",
"distributions_tab_ranks": "Rank Tiers",
"distributions_tab_mmr": "Solo MMR",
"distributions_tab_country_mmr": "Solo MMR per Paese",
"distributions_warning_1": "Questo tipo di dato è limitato ai giocatori che mostrano il loro MMR sul profilo e hanno la condivisione dei dati attiva.",
"distributions_warning_2": "I giocatori non devono accedere, ma a causa della natura opzionale dei dati raccolti le medie sono probabilmente più alte del previsto.",
"error": "Errore",
"error_message": "Ooops! Qualcosa è andato storto.",
"error_four_oh_four_message": "La pagina che stai cercando non è stata trovata.",
"explorer_title": "Esplora Partite",
"explorer_subtitle": "Professional Dota 2 Stats",
"explorer_description": "Run advanced queries on professional matches (excludes amateur leagues)",
"explorer_schema": "Schema",
"explorer_results": "Risultati",
"explorer_num_rows": "Riga/Righe",
"explorer_select": "Seleziona",
"explorer_group_by": "Raggruppa per",
"explorer_hero": "Eroe",
"explorer_patch": "Patch",
"explorer_min_patch": "Patch minima",
"explorer_max_patch": "Patch massima",
"explorer_min_mmr": "Min MMR",
"explorer_max_mmr": "Max MMR",
"explorer_min_rank_tier": "Min Tier",
"explorer_max_rank_tier": "Max Tier",
"explorer_player": "Giocatore",
"explorer_league": "Lega",
"explorer_player_purchased": "Oggetto acquistato",
"explorer_duration": "Durata",
"explorer_min_duration": "Durata minima",
"explorer_max_duration": "Durata massima",
"explorer_timing": "Timing",
"explorer_uses": "Uses",
"explorer_kill": "Kill Time",
"explorer_side": "Lato",
"explorer_toggle_sql": "Toggle SQL",
"explorer_team": "Current Team",
"explorer_lane_role": "Lane",
"explorer_min_date": "Data minima",
"explorer_max_date": "Data massima",
"explorer_hero_combos": "Hero Combos",
"explorer_hero_player": "Eroe giocatore",
"explorer_player_player": "Player-Player",
"explorer_sql": "SQL",
"explorer_postgresql_function": "PostgreSQL Function",
"explorer_table": "Tabella",
"explorer_column": "Colonna",
"explorer_query_button": "Table",
"explorer_cancel_button": "Annulla",
"explorer_table_button": "Tabella",
"explorer_api_button": "API",
"explorer_json_button": "JSON",
"explorer_csv_button": "CSV",
"explorer_donut_button": "Ciambella",
"explorer_bar_button": "A barre",
"explorer_timeseries_button": "Timeseries",
"explorer_chart_unavailable": "Chart not available, try adding a GROUP BY",
"explorer_value": "Valore",
"explorer_category": "Categoria",
"explorer_region": "Regione",
"explorer_picks_bans": "Pick/Ban",
"explorer_counter_picks_bans": "Counter Pick/Ban",
"explorer_organization": "Società",
"explorer_order": "Order",
"explorer_asc": "Crescente",
"explorer_desc": "Decrescente",
"explorer_tier": "Tier",
"explorer_having": "Almeno questo numero di partite",
"explorer_limit": "Limite",
"explorer_match": "Match",
"explorer_is_ti_team": "Is TI{number} Team",
"explorer_mega_comeback": "Won Against Mega Creeps",
"explorer_max_gold_adv": "Max Gold Advantage",
"explorer_min_gold_adv": "Min Gold Advantage",
"farm_heroes": "Eroi uccisi",
"farm_creeps": "Lane creeps uccisi",
"farm_neutrals": "Creeps neutrali uccisi (inclusi Antichi)",
"farm_ancients": "Creeps antichi uccisi",
"farm_towers": "Torri distrutte",
"farm_couriers": "Corrieri uccisi",
"farm_observers": "Guardiani Osservatori distrutti",
"farm_sentries": "Guardiani Sentinelle distrutti",
"farm_roshan": "Roshan uccisi",
"farm_necronomicon": "Unità necronomicon uccise",
"filter_button_text_open": "Filtra",
"filter_button_text_close": "Chiudi",
"filter_hero_id": "Eroe",
"filter_is_radiant": "Lato",
"filter_win": "Risultato",
"filter_lane_role": "Lane",
"filter_patch": "Patch",
"filter_game_mode": "Modalità di gioco",
"filter_lobby_type": "Tipo di Lobby",
"filter_date": "Data",
"filter_region": "Regione",
"filter_with_hero_id": "Eroi Alleati",
"filter_against_hero_id": "Eroi Avversari",
"filter_included_account_id": "Included Account ID",
"filter_excluded_account_id": "Excluded Account ID",
"filter_significant": "Insignificant",
"filter_significant_include": "Include",
"filter_last_week": "Ultima settimana",
"filter_last_month": "Ultimo mese",
"filter_last_3_months": "Ultimi 3 mesi",
"filter_last_6_months": "Ultimi 6 mesi",
"filter_error": "Please select an item from the dropdown",
"filter_party_size": "Party Size",
"game_mode_0": "Sconosciuto",
"game_mode_1": "All Pick",
"game_mode_2": "Captains Mode",
"game_mode_3": "Selezione casuale",
"game_mode_4": "Single Draft",
"game_mode_5": "Tutto casuale",
"game_mode_6": "Intro",
"game_mode_7": "Diretide",
"game_mode_8": "Captains Mode inversa",
"game_mode_9": "Greeviling",
"game_mode_10": "Tutorial",
"game_mode_11": "Solo Mid",
"game_mode_12": "Meno giocati",
"game_mode_13": "Eroi Limitati",
"game_mode_14": "Compendio",
"game_mode_15": "Personalizzata",
"game_mode_16": "Selezione dei capitani",
"game_mode_17": "Selezione equilibrata",
"game_mode_18": "Selezione delle abilità",
"game_mode_19": "Evento",
"game_mode_20": "Deathmatch casuale",
"game_mode_21": "1v1 All Pick",
"game_mode_22": "All Draft",
"game_mode_23": "Turbo",
"game_mode_24": "Mutazione",
"general_unknown": "Sconosciuto",
"general_no_hero": "Nessun eroe",
"general_anonymous": "Anonimo",
"general_radiant": "Radiant",
"general_dire": "Dire",
"general_standard_deviation": "Deviazione Standard",
"general_matches": "Partite",
"general_league": "Lega",
"general_randomed": "Casuale",
"general_repicked": "Riselezionato",
"general_predicted_victory": "Predetto la vittoria",
"general_show": "Show",
"general_hide": "Hide",
"gold_reasons_0": "Altro",
"gold_reasons_1": "Morte",
"gold_reasons_2": "Rientri in gioco",
"NULL_gold_reasons_5": "Abbandono",
"NULL_gold_reasons_6": "Vendita",
"gold_reasons_11": "Costruzione",
"gold_reasons_12": "Eroe",
"gold_reasons_13": "Creep",
"gold_reasons_14": "Roshan",
"NULL_gold_reasons_15": "Corriere",
"header_request": "Richiesta",
"header_distributions": "Grado",
"header_heroes": "Eroi",
"header_blog": "Blog",
"header_ingame": "In gioco",
"header_matches": "Partite",
"header_records": "Record",
"header_explorer": "Explorer",
"header_teams": "Squadre",
"header_meta": "Meta",
"header_scenarios": "Scenari",
"header_api": "API",
"heading_lhten": "Colpi di grazia @ 10",
"heading_lhtwenty": "Colpi di grazia @ 20",
"heading_lhthirty": "Colpi di grazia @ 30",
"heading_lhforty": "Colpi di grazia @ 40",
"heading_lhfifty": "Colpi di grazia @ 50",
"heading_courier": "Corriere",
"heading_roshan": "Roshan",
"heading_tower": "Torre",
"heading_barracks": "Caserme",
"heading_shrine": "Santuario",
"heading_item_purchased": "Oggetto acquistato",
"heading_ability_used": "Abilità utilizzate",
"heading_item_used": "Oggetti utilizzati",
"heading_damage_inflictor": "Damage Inflictor",
"heading_damage_inflictor_received": "Damage Inflictor Received",
"heading_damage_instances": "Istanze di danno",
"heading_camps_stacked": "Camps Stacked",
"heading_matches": "Partite Recenti",
"heading_heroes": "Eroi Giocati",
"heading_mmr": "Storico MMR",
"heading_peers": "Giocatori con cui ha giocato",
"heading_pros": "Giocatori Professionisti incontrati",
"heading_rankings": "Hero Rankings",
"heading_all_matches": "In All Matches",
"heading_parsed_matches": "In Parsed Matches",
"heading_records": "Record",
"heading_teamfights": "Teamfights",
"heading_graph_difference": "Vantaggio Radiant",
"heading_graph_gold": "Oro",
"heading_graph_xp": "Esperienza",
"heading_graph_lh": "Last Hits",
"heading_overview": "Panoramica",
"heading_ability_draft": "Abilities Drafted",
"heading_buildings": "Mappa Costruzioni",
"heading_benchmarks": "Benchmarks",
"heading_laning": "Fase di Lane",
"heading_overall": "Totale",
"heading_kills": "Uccisioni",
"heading_deaths": "Morti",
"heading_assists": "Assist",
"heading_damage": "Danno",
"heading_unit_kills": "Unità Uccise",
"heading_last_hits": "Last Hits",
"heading_gold_reasons": "Sorgenti Oro",
"heading_xp_reasons": "Sorgenti XP",
"heading_performances": "Prestazioni",
"heading_support": "Supporto",
"heading_purchase_log": "Log Acquisto",
"heading_casts": "Utilizzi",
"heading_objective_damage": "Danni agli Obiettivi",
"heading_runes": "Rune",
"heading_vision": "Visione",
"heading_actions": "Azioni",
"heading_analysis": "Analisi",
"heading_cosmetics": "Cosmetici",
"heading_log": "Log",
"heading_chat": "Chat",
"heading_story": "Storia",
"heading_fantasy": "Fantadota",
"heading_wardmap": "Mappa Guardiani",
"heading_wordcloud": "Wordcloud",
"heading_wordcloud_said": "Parole dette (chat globale)",
"heading_wordcloud_read": "Parole lette (chat globale)",
"heading_kda": "KLA",
"heading_gold_per_min": "Oro al minuto",
"heading_xp_per_min": "Esperienza al minuto",
"heading_denies": "Negazioni",
"heading_lane_efficiency_pct": "EFF@10",
"heading_duration": "Durata",
"heading_level": "Livello",
"heading_hero_damage": "Danno agli Eroi",
"heading_tower_damage": "Danno alle Torri",
"heading_hero_healing": "Guarigione ad Eroi",
"heading_tower_kills": "Torri distrutte",
"heading_stuns": "Stordimenti",
"heading_neutral_kills": "Neutrali uccisi",
"heading_courier_kills": "Corrieri uccisi",
"heading_purchase_tpscroll": "TPs Acquistati",
"heading_purchase_ward_observer": "Osservatori Acquistati",
"heading_purchase_ward_sentry": "Sentinelle Acquistate",
"heading_purchase_gem": "Gemme Acquistate",
"heading_purchase_rapier": "Stocchi Divini Acquistati",
"heading_pings": "Ping sulla Mappa",
"heading_throw": "Throw",
"heading_comeback": "Rimonta",
"heading_stomp": "Stomp",
"heading_loss": "Sconfitta",
"heading_actions_per_min": "Azioni al minuto",
"heading_leaver_status": "Stato dell'Abbandono",
"heading_game_mode": "Modalità di gioco",
"heading_lobby_type": "Tipo di Lobby",
"heading_lane_role": "Ruolo Lane",
"heading_region": "Regione",
"heading_patch": "Patch",
"heading_win_rate": "Percentuale di vittorie",
"heading_is_radiant": "Lato",
"heading_avg_and_max": "Medie/massimi",
"heading_total_matches": "Partite totali",
"heading_median": "Mediana",
"heading_distinct_heroes": "Distinct Heroes",
"heading_team_elo_rankings": "Team Elo Rankings",
"heading_ability_build": "Ability Build",
"heading_attack": "Attacco base",
"heading_attack_range": "Attack range",
"heading_attack_speed": "Attack speed",
"heading_projectile_speed": "Projectile speed",
"heading_base_health": "Health",
"heading_base_health_regen": "Health regen",
"heading_base_mana": "Mana",
"heading_base_mana_regen": "Mana regen",
"heading_base_armor": "Base armor",
"heading_base_mr": "Magic resistance",
"heading_move_speed": "Move speed",
"heading_turn_rate": "Turn speed",
"heading_legs": "Numero di gambe",
"heading_cm_enabled": "CM enabled",
"heading_current_players": "Current Players",
"heading_former_players": "Former Players",
"heading_damage_dealt": "Damage Dealt",
"heading_damage_received": "Damage Received",
"show_details": "Show details",
"hide_details": "Hide details",
"subheading_avg_and_max": "in last {0} displayed matches",
"subheading_records": "In partite classificate. I record si resettano ogni mese.",
"subheading_team_elo_rankings": "k=32, init=1000",
"hero_pro_tab": "Professionale",
"hero_public_tab": "Pubbliche",
"hero_pro_heading": "Eroi in partite professionali",
"hero_public_heading": "Heroes in Public Matches (Sampled)",
"hero_this_month": "partite negli ultimi 30 giorni",
"hero_pick_ban_rate": "Pro P+B%",
"hero_pick_rate": "Pro Pick%",
"hero_ban_rate": "Pro Ban%",
"hero_win_rate": "Pro Win%",
"hero_5000_pick_rate": ">5K P%",
"hero_5000_win_rate": ">5K W%",
"hero_4000_pick_rate": "4K P%",
"hero_4000_win_rate": "4K W%",
"hero_3000_pick_rate": "3K P%",
"hero_3000_win_rate": "3K W%",
"hero_2000_pick_rate": "2K P%",
"hero_2000_win_rate": "2K W%",
"hero_1000_pick_rate": "<2K P%",
"hero_1000_win_rate": "<2K W%",
"home_login": "Login",
"home_login_desc": "per analisi replay automatica",
"home_parse": "Richiedi",
"home_parse_desc": "una partita specifica",
"home_why": "",
"home_opensource_title": "Open Source",
"home_opensource_desc": "Tutto il codice sorgente è open source e disponibile per essere migliorato e modificato dai contributori.",
"home_indepth_title": "Informazioni Approfondite",
"home_indepth_desc": "L'analisi dei replay fornisce informazioni molto dettagliate sul match.",
"home_free_title": "Gratuito",
"home_free_desc": "I server sono finanziati dai nostri sponsor e dei volontari mantengono il codice, per cui il servizio è offerto gratuitamente.",
"home_background_by": "Sfondo realizzato da",
"home_sponsored_by": "Offerto da",
"home_become_sponsor": "Diventa uno Sponsor",
"items_name": "Nome dell'oggetto",
"items_built": "Numero di volte che questo oggetto è stato completato",
"items_matches": "Numero di match in cui questo oggetto è stato completato",
"items_uses": "Numero di volte che questo oggetto è stato usato",
"items_uses_per_match": "Numero medio di volte che questo oggetto è stato usato nelle partite dove è stato completato",
"items_timing": "Tempo medio di completamento dell'oggetto",
"items_build_pct": "Percentuale di partite in cui è stato completato questo oggetto",
"items_win_pct": "Percentuale di partite vinte in cui è stato completato questo oggetto",
"lane_role_0": "Sconosciuto",
"lane_role_1": "Safe",
"lane_role_2": "Mid",
"lane_role_3": "Off",
"lane_role_4": "Jungle",
"lane_pos_1": "Bot",
"lane_pos_2": "Mid",
"lane_pos_3": "Top",
"lane_pos_4": "Jungla dei radiant",
"lane_pos_5": "Jungla dei dire",
"leaver_status_0": "Nessuno",
"leaver_status_1": "Abbandonato tranquillamente",
"leaver_status_2": "Abbandonato (DC)",
"leaver_status_3": "Abbandonato",
"leaver_status_4": "Abbandonato (AFK)",
"leaver_status_5": "Mai connesso",
"leaver_status_6": "Mai connesso (Timeout)",
"lobby_type_0": "Normale",
"lobby_type_1": "Pratica",
"lobby_type_2": "Torneo",
"lobby_type_3": "Tutorial",
"lobby_type_4": "Co-Op Bots",
"lobby_type_5": "Ranked Team MM (Legacy)",
"lobby_type_6": "Ranked Solo MM (Legacy)",
"lobby_type_7": "Classificata",
"lobby_type_8": "1v1 All Pick",
"lobby_type_9": "Battle Cup",
"match_radiant_win": "Vittoria dei Radiant",
"match_dire_win": "Vittoria dei Dire",
"match_team_win": "Vittoria",
"match_ended": "Conclusa",
"match_id": "ID Partita",
"match_region": "Regione",
"match_avg_mmr": "MMR Medio",
"match_button_parse": "Analizza",
"match_button_reparse": "Ri-analizza",
"match_button_replay": "Replay",
"match_button_video": "Ottieni Video",
"match_first_tower": "Prima torre",
"match_first_barracks": "Prime caserme",
"match_pick": "Pick",
"match_ban": "Ban",
"matches_highest_mmr": "Top Public",
"matches_lowest_mmr": "MMR basso",
"meta_title": "Meta",
"meta_description": "Run advanced queries on data from sampled public matches in previous 24h",
"mmr_not_up_to_date": "Perché l'MMR non è aggiornato?",
"npc_dota_beastmaster_boar_#": "Cinghiale",
"npc_dota_lesser_eidolon": "Spettro minore",
"npc_dota_eidolon": "Spettro",
"npc_dota_greater_eidolon": "Spettro maggiore",
"npc_dota_dire_eidolon": "Spettro dei Dire",
"npc_dota_invoker_forged_spirit": "Spirito forgiato",
"npc_dota_furion_treant_large": "Albero animato maggiore",
"npc_dota_beastmaster_hawk_#": "Aquila",
"npc_dota_lycan_wolf#": "Lupo di Lycan",
"npc_dota_neutral_mud_golem_split_doom": "Frammento di Doom",
"npc_dota_broodmother_spiderling": "Ragno",
"npc_dota_broodmother_spiderite": "Ragnetto",
"npc_dota_furion_treant": "Albero animato",
"npc_dota_unit_undying_zombie": "Zombi di Undying",
"npc_dota_unit_undying_zombie_torso": "Zombi di Undying",
"npc_dota_brewmaster_earth_#": "Earth Brewling",
"npc_dota_brewmaster_fire_#": "Fire Brewling",
"npc_dota_lone_druid_bear#": "Spirito orso",
"npc_dota_brewmaster_storm_#": "Storm Brewling",
"npc_dota_visage_familiar#": "Famiglio",
"npc_dota_warlock_golem_#": "Golem di Warlock",
"npc_dota_warlock_golem_scepter_#": "Golem di Warlock",
"npc_dota_witch_doctor_death_ward": "Juju spargimorte",
"npc_dota_tusk_frozen_sigil#": "Sigillo glaciale",
"npc_dota_juggernaut_healing_ward": "Guardiano guaritore",
"npc_dota_techies_land_mine": "Mina",
"npc_dota_shadow_shaman_ward_#": "Guardiano serpente",
"npc_dota_pugna_nether_ward_#": "Guardiano oscuro",
"npc_dota_venomancer_plague_ward_#": "Guardiano pestilenziale",
"npc_dota_rattletrap_cog": "Ingranaggio elettrico",
"npc_dota_templar_assassin_psionic_trap": "Trappola psionica",
"npc_dota_techies_remote_mine": "Mina Remota",
"npc_dota_techies_stasis_trap": "Trappola Statica",
"npc_dota_phoenix_sun": "Supernova",
"npc_dota_unit_tombstone#": "Lapide",
"npc_dota_treant_eyes": "Eyes in the Forest",
"npc_dota_gyrocopter_homing_missile": "Missile autoguidato",
"npc_dota_weaver_swarm": "Lo Sciame",
"objective_tower1_top": "T1",
"objective_tower1_mid": "M1",
"objective_tower1_bot": "B1",
"objective_tower2_top": "T2",
"objective_tower2_mid": "M2",
"objective_tower2_bot": "B2",
"objective_tower3_top": "T3",
"objective_tower3_mid": "M3",
"objective_tower3_bot": "B3",
"objective_rax_top": "CasT",
"objective_rax_mid": "CasM",
"objective_rax_bot": "CasB",
"objective_tower4": "T4",
"objective_fort": "Ant",
"objective_shrine": "San",
"objective_roshan": "Rosh",
"tooltip_objective_tower1_top": "Damage dealt to top Tier 1 tower",
"tooltip_objective_tower1_mid": "Damage dealt to middle Tier 1 tower",
"tooltip_objective_tower1_bot": "Damage dealt to bottom Tier 1 tower",
"tooltip_objective_tower2_top": "Damage dealt to top Tier 2 tower",
"tooltip_objective_tower2_mid": "Damage dealt to middle Tier 2 tower",
"tooltip_objective_tower2_bot": "Damage dealt to bottom Tier 2 tower",
"tooltip_objective_tower3_top": "Damage dealt to top Tier 3 tower",
"tooltip_objective_tower3_mid": "Damage dealt to middle Tier 3 tower",
"tooltip_objective_tower3_bot": "Damage dealt to bottom Tier 3 tower",
"tooltip_objective_rax_top": "Damage dealt to top barracks",
"tooltip_objective_rax_mid": "Damage dealt to middle barracks",
"tooltip_objective_rax_bot": "Damage dealt to bottom barracks",
"tooltip_objective_tower4": "Damage dealt to middle Tier 4 towers",
"tooltip_objective_fort": "Damage dealt to ancient",
"tooltip_objective_shrine": "Damage dealt to shrines",
"tooltip_objective_roshan": "Damage dealt to Roshan",
"pagination_first": "Prima",
"pagination_last": "Ultimo",
"pagination_of": "di",
"peers_none": "This player has no peers.",
"rank_tier_0": "Non calibrato",
"rank_tier_1": "Araldo",
"rank_tier_2": "Guardiano",
"rank_tier_3": "Crociato",
"rank_tier_4": "Arconte",
"rank_tier_5": "Leggenda",
"rank_tier_6": "Antico",
"rank_tier_7": "Divine",
"rank_tier_8": "Immortale",
"request_title": "Analizza",
"request_match_id": "ID Partita",
"request_invalid_match_id": "Match ID non valido",
"request_error": "Dati partita non trovati",
"request_submit": "Invia",
"roaming": "Roaming",
"rune_0": "Doppio Danno",
"rune_1": "Velocità",
"rune_2": "Illusione",
"rune_3": "Invisibilità",
"rune_4": "Rigenerazione",
"rune_5": "Ricompensa",
"rune_6": "Arcana",
"rune_7": "Acqua",
"search_title": "Search by player name, match ID...",
"skill_0": "Unknown Skill",
"skill_1": "Normal Skill",
"skill_2": "High Skill",
"skill_3": "Very High Skill",
"story_invalid_template": "(template non valido)",
"story_error": "Si è verificato un errore compilando la storia di questa partita",
"story_intro": "on {date}, two teams decided to play {game_mode_article} {game_mode} game of Dota 2 in {region}. Little did they know, the game would last {duration_in_words}",
"story_invalid_hero": "Eroe non riconosciuto",
"story_fullstop": ".",
"story_list_2": "{1} e {2}",
"story_list_3": "{1}, {2} e {3}",
"story_list_n": "{i}, {rest}",
"story_firstblood": "Il primo sangue è stato sparso quando {killer} ha ucciso {victim} a {time}",
"story_chatmessage": "\"{message}\", {said_verb} {player}",
"story_teamfight": "{winning_team} hanno vinto un teamfight lasciando morire {win_dead} per riuscire ad uccidere {lose_dead}, ottenendo così un aumento di net worth di {net_change}",
"story_teamfight_none_dead": "{winning_team} hanno vinto un teamfight uccidendo {lose_dead}, ottenendo così un aumento di net worth di {net_change}",
"story_teamfight_none_dead_loss": "{winning_team} somehow won a teamfight without killing anyone, and losing {win_dead}, resulting in a net worth increase of {net_change}",
"story_lane_intro": "In 10 minuti di gioco, le lanes sono andate così:",
"story_lane_radiant_win": "{radiant_players} ha vinto la {lane} Lane contro {dire_players}",
"story_lane_radiant_lose": "{radiant_players} ha perso la {lane} Lane contro {dire_players}",
"story_lane_draw": "{radiant_players} ha pareggiato in {lane} Lane contro {dire_players}",
"story_lane_free": "{players} aveva la {lane} lane libera",
"story_lane_empty": "non c'era nessuno in {lane} lane",
"story_lane_jungle": "{players} ha farmato in giungla",
"story_lane_roam": "{players} è andato in giro ad aiutare i compagni",
"story_roshan": "I {team} hanno ucciso Roshan",
"story_aegis": "{player} {action} l'egida",
"story_gameover": "La partita è finita con la vittoria dei {winning_team} in {duration} con un punteggio di {radiant_score} a {dire_score}",
"story_during_teamfight": "durante il combattimento, {events}",
"story_after_teamfight": "dopo il combattimento, {events}",
"story_expensive_item": "a {time}, {player} ha acquistato {item}, che era il primo oggetto della partita con un prezzo superiore a {price_limit}",
"story_building_destroy": "{building} è stato/a distrutto/a",
"story_building_destroy_player": "{player} ha distrutto {building}",
"story_building_deny_player": "{player} ha negato {building}",
"story_building_list_destroy": "{buildings} sono stati/e distrutti/e",
"story_courier_kill": "{team}'s courier was killed",
"story_tower": "la torre tier {tier} della {lane} lane dei {team}",
"story_tower_simple": "una delle torri dei {team}",
"story_towers_n": "{n} torri dei {team}",
"story_barracks": "la {rax_type} della {lane} lane dei {team}",
"story_barracks_both": "entrambe le caserme della {lane} lane dei {team}",
"story_time_marker": "Dopo {minutes} minuti",
"story_item_purchase": "{player} ha acquistato l'oggetto: {item} a {time}",
"story_predicted_victory": "{players} aveva predetto la vittoria dei {team}",
"story_predicted_victory_empty": "Nessuno",
"story_networth_diff": "{percent}% / {gold} Diff",
"story_gold": "oro",
"story_chat_asked": "asked",
"story_chat_said": "said",
"tab_overview": "Panoramica",
"tab_matches": "Partite",
"tab_heroes": "Eroi",
"tab_peers": "Amici",
"tab_pros": "Professionisti",
"tab_activity": "Attività",
"tab_records": "Record",
"tab_totals": "Totali",
"tab_counts": "Conteggi",
"tab_histograms": "Istogrammi",
"tab_trends": "Tendenze",
"tab_items": "Oggetti",
"tab_wardmap": "Mappa Guardiani",
"tab_wordcloud": "Wordcloud",
"tab_mmr": "MMR",
"tab_rankings": "Classifiche",
"tab_drafts": "Draft",
"tab_benchmarks": "Benchmarks",
"tab_performances": "Prestazioni",
"tab_damage": "Danno",
"tab_purchases": "Acquisti",
"tab_farm": "Economia",
"tab_combat": "Combattimento",
"tab_graphs": "Grafici",
"tab_casts": "Utilizzi",
"tab_vision": "Visione",
"tab_objectives": "Obiettivi",
"tab_teamfights": "Teamfights",
"tab_actions": "Azioni",
"tab_analysis": "Analisi",
"tab_cosmetics": "Oggetti Cosmetici",
"tab_log": "Log",
"tab_chat": "Chat",
"tab_story": "Storia",
"tab_fantasy": "Fantasy",
"tab_laning": "Laning",
"tab_recent": "Recenti",
"tab_matchups": "Matchups",
"tab_durations": "Durate",
"tab_players": "Giocatori",
"placeholder_filter_heroes": "Filtra Eroi",
"td_win": "Won Match",
"td_loss": "Lost Match",
"td_no_result": "Nessun Risultato",
"th_hero_id": "Eroe",
"th_match_id": "ID",
"th_account_id": "Account ID",
"th_result": "Risultato",
"th_skill": "Abilità",
"th_duration": "Durata",
"th_games": "MP",
"th_games_played": "Partite",
"th_win": "Vittorie %",
"th_advantage": "Vantaggio",
"th_with_games": "Con",
"th_with_win": "% Vittorie con",
"th_against_games": "Contro",
"th_against_win": "% Vittorie contro",
"th_gpm_with": "GPM con",
"th_xpm_with": "GPM con",
"th_avatar": "Giocatore",
"th_last_played": "Ultimo",
"th_record": "Record",
"th_title": "Titolo",
"th_category": "Categoria",
"th_matches": "Partite",
"th_percentile": "Percentuale",
"th_rank": "Classifica",
"th_items": "Oggetti",
"th_stacked": "Stacked",
"th_multikill": "Uccisione multipla",
"th_killstreak": "Serie di uccisioni",
"th_stuns": "Stordimenti",
"th_dead": "Morto",
"th_buybacks": "Rientri",
"th_biggest_hit": "Colpo più grande",
"th_lane": "Lane",
"th_map": "Mappa",
"th_lane_efficiency": "EFF@10",
"th_lhten": "LH@10",
"th_dnten": "DN@10",
"th_tpscroll": "TP",
"th_ward_observer": "Guardiano Osservatore",
"th_ward_sentry": "Guardiano Sentinella",
"th_smoke_of_deceit": "Fumo",
"th_dust": "Polvere",
"th_gem": "Gemma",
"th_time": "Tempo",
"th_message": "Messaggio",
"th_heroes": "Eroi",
"th_creeps": "Creeps",
"th_neutrals": "Neutrali",
"th_ancients": "Antichi",
"th_towers": "Torri",
"th_couriers": "Corrieri",
"th_roshan": "Roshan",
"th_necronomicon": "Necronomicon",
"th_other": "Altro",
"th_cosmetics": "Oggetti Cosmetici",
"th_damage_received": "Ricevuto",
"th_damage_dealt": "Inflitto",
"th_players": "Giocatori",
"th_analysis": "Analisi",
"th_death": "Morte",
"th_damage": "Danno",
"th_healing": "Cura",
"th_gold": "G",
"th_xp": "XP",
"th_abilities": "Abilità",
"th_target_abilities": "Ability Targets",
"th_mmr": "MMR",
"th_level": "LVL",
"th_kills": "K",
"th_kills_per_min": "KPM",
"th_deaths": "D",
"th_assists": "A",
"th_last_hits": "LH",
"th_last_hits_per_min": "LHM",
"th_denies": "DN",
"th_gold_per_min": "GPM",
"th_xp_per_min": "XPM",
"th_stuns_per_min": "S/m",
"th_hero_damage": "HD",
"th_hero_damage_per_min": "HDM",
"th_hero_healing": "HH",
"th_hero_healing_per_min": "HHM",
"th_tower_damage": "TD",
"th_tower_damage_per_min": "TDM",
"th_kda": "KLA",
"th_actions_per_min": "APM",
"th_pings": "PNG (M)",
"th_DOTA_UNIT_ORDER_MOVE_TO_POSITION": "MV (P)",
"th_DOTA_UNIT_ORDER_MOVE_TO_TARGET": "MV (T)",
"th_DOTA_UNIT_ORDER_ATTACK_TARGET": "ATK (T)",
"th_DOTA_UNIT_ORDER_ATTACK_MOVE": "ATK (P)",
"th_DOTA_UNIT_ORDER_CAST_POSITION": "CST (P)",
"th_DOTA_UNIT_ORDER_CAST_TARGET": "CST (T)",
"th_DOTA_UNIT_ORDER_CAST_NO_TARGET": "CST (N)",
"th_DOTA_UNIT_ORDER_HOLD_POSITION": "HLD",
"th_DOTA_UNIT_ORDER_GLYPH": "GLYPH",
"th_DOTA_UNIT_ORDER_RADAR": "SCN",
"th_ability_builds": "AB",
"th_purchase_shorthand": "ACQ",
"th_use_shorthand": "USO",
"th_duration_shorthand": "DUR",
"th_country": "Paese",
"th_count": "Conteggio",
"th_sum": "Somma",
"th_average": "Media",
"th_name": "Nome",
"th_team_name": "Nome squadra",
"th_score": "Punteggio",
"th_casts": "Utilizzi",
"th_hits": "Colpi",
"th_wins": "Vittorie",
"th_losses": "Sconfitte",
"th_winrate": "Percentuale di Vittorie",
"th_solo_mmr": "Solo MMR",
"th_party_mmr": "MMR di Gruppo",
"th_estimated_mmr": "MMR Stimato",
"th_permanent_buffs": "Buffs",
"th_winner": "Vincitore",
"th_played_with": "My Record With",
"th_obs_placed": "Observer Wards Placed",
"th_sen_placed": "Sentry Wards Placed",
"th_obs_destroyed": "Observer Wards Destroyed",
"th_sen_destroyed": "Sentry Wards Destroyed",
"th_scans_used": "Scans Used",
"th_glyphs_used": "Glyphs Used",
"th_legs": "Legs",
"th_fantasy_points": "Fantasy Pts",
"th_rating": "Rating",
"th_teamfight_participation": "Participation",
"th_firstblood_claimed": "First Blood",
"th_observers_placed": "Observers",
"th_camps_stacked": "Stacks",
"th_league": "League",
"th_attack_type": "Attack Type",
"th_primary_attr": "Primary Attribute",
"th_opposing_team": "Opposing Team",
"ward_log_type": "Tipo",
"ward_log_owner": "Proprietario",
"ward_log_entered_at": "Piazzati",
"ward_log_left_at": "Rimasti",
"ward_log_duration": "Durata",
"ward_log_killed_by": "Ucciso da",
"log_detail": "Detail",
"log_heroes": "Specify Heroes",
"tier_professional": "Professional",
"tier_premium": "Premium",
"time_past": "{0} ago",
"time_just_now": "adesso",
"time_s": "a second",
"time_abbr_s": "{0}s",
"time_ss": "{0} seconds",
"time_abbr_ss": "{0}s",
"time_m": "a minute",
"time_abbr_m": "{0}m",
"time_mm": "{0} minutes",
"time_abbr_mm": "{0}m",
"time_h": "an hour",
"time_abbr_h": "{0}h",
"time_hh": "{0} hours",
"time_abbr_hh": "{0}h",
"time_d": "un giorno",
"time_abbr_d": "{0}d",
"time_dd": "{0} days",
"time_abbr_dd": "{0}d",
"time_M": "un mese",
"time_abbr_M": "{0}mo",
"time_MM": "{0} months",
"time_abbr_MM": "{0}mo",
"time_y": "a year",
"time_abbr_y": "{0}y",
"time_yy": "{0} years",
"time_abbr_yy": "{0}y",
"timeline_firstblood": "ha segnato il primo sangue",
"timeline_firstblood_key": "ha segnato il primo sangue uccidendo",
"timeline_aegis_picked_up": "raccolto",
"timeline_aegis_snatched": "rubato",
"timeline_aegis_denied": "negato",
"timeline_teamfight_deaths": "Morti",
"timeline_teamfight_gold_delta": "differenza oro",
"title_default": "OpenDota - Dota 2 Statistics",
"title_template": "%s - OpenDota - Dota 2 Statistics",
"title_matches": "Partite",
"title_request": "Request a Parse",
"title_search": "Search",
"title_status": "Status",
"title_explorer": "Data Explorer",
"title_meta": "Meta",
"title_records": "Record",
"title_api": "The Opendota API: Advanced Dota 2 stats for your app",
"tooltip_mmr": "Solo MMR del giocatore",
"tooltip_abilitydraft": "Ability Drafted",
"tooltip_level": "Livello ottenuto dall'eroe",
"tooltip_kills": "Numero di uccisioni dell'eroe",
"tooltip_deaths": "Numero di morti dell'eroe",
"tooltip_assists": "Numero di assists dell'eroe",
"tooltip_last_hits": "Numero di colpi di grazia dell'eroe",
"tooltip_denies": "Numero di creep negati",
"tooltip_gold": "Totale oro guadagnato",
"tooltip_gold_per_min": "Oro guadagnato al minuto",
"tooltip_xp_per_min": "Esperienza ottenuta al minuto",
"tooltip_stuns_per_min": "Seconds of hero stuns per minute",
"tooltip_last_hits_per_min": "Colpi di grazia al minuto",
"tooltip_kills_per_min": "Uccisioni al minuto",
"tooltip_hero_damage_per_min": "Danno a eroi al minuto",
"tooltip_hero_healing_per_min": "Guarigione eroi al minuto",
"tooltip_tower_damage_per_min": "Danno torri al minuto",
"tooltip_actions_per_min": "Azioni al minuto",
"tooltip_hero_damage": "Danno inflitto agli eroi al minuto",
"tooltip_tower_damage": "Danno inflitto alle torri",
"tooltip_hero_healing": "Salute ripristinata ad eroi alleati",
"tooltip_duration": "Lunghezza match",
"tooltip_first_blood_time": "Tempo primo sangue",
"tooltip_kda": "(Uccisioni + Assist) / (Morti + 1)",
"tooltip_stuns": "Secondi di disable su eroi",
"tooltip_dead": "Tempo morto",
"tooltip_buybacks": "Number of buybacks",
"tooltip_camps_stacked": "Campi ammassati",
"tooltip_tower_kills": "Numero di torri distrutte",
"tooltip_neutral_kills": "Numero di creep neutrali uccisi",
"tooltip_courier_kills": "Numero di corrieri uccisi",
"tooltip_purchase_tpscroll": "Teletrasporti comprati",
"tooltip_purchase_ward_observer": "Guardiani Osservatori comprati",
"tooltip_purchase_ward_sentry": "Guardiani Sentinella comprati",
"tooltip_purchase_smoke_of_deceit": "Fumi del Raggiro comprati",
"tooltip_purchase_dust": "Polveri dell'apparizione comprate",
"tooltip_purchase_gem": "Gemme della Vera Visione comprate",
"tooltip_purchase_rapier": "Stocchi Divini comprati",
"tooltip_purchase_buyback": "Buyback usati",
"tooltip_duration_observer": "Average lifespan of Observer Wards",
"tooltip_duration_sentry": "Average lifespan of Sentry Wards",
"tooltip_used_ward_observer": "Numero di Guardiani Osservatori piazzati durante la partita",
"tooltip_used_ward_sentry": "Numero di Guardiani Sentinella piazzati durante la partita",
"tooltip_used_dust": "Number of times Dust of Appearance was used during the game",
"tooltip_used_smoke_of_deceit": "Number of times Smoke of Deceit was used during the game",
"tooltip_parsed": "Il replay è stato analizzato per informazioni dettagliate",
"tooltip_unparsed": "Il replay di questa partita non è stato ancora analizzato. Non tutte le informazioni sono già disponibili.",
"tooltip_hero_id": "The hero played",
"tooltip_result": "Se il giocatore ha vinto o perso",
"tooltip_match_id": "L'ID della partita",
"tooltip_game_mode": "La modalità della partita",
"tooltip_skill": "I tagli di MMR approssimativi per le bracket sono 0, 3200 e 3700",
"tooltip_ended": "Orario in cui è finita la partita",
"tooltip_pick_order": "Ordine di selezione del giocatore",
"tooltip_throw": "Massimo vantaggio di oro in una partita persa",
"tooltip_comeback": "Massimo svantaggio di oro in una partita vinta",
"tooltip_stomp": "Massimo vantaggio di oro in una partita vinta",
"tooltip_loss": "Massimo svantaggio di oro in una partita persa",
"tooltip_items": "Oggetti completati",
"tooltip_permanent_buffs": "Permanent buffs such as Flesh Heap stacks or Tomes of Knowledge used",
"tooltip_lane": "Lane basata sulle posizioni ad inizio partita",
"tooltip_map": "Mappa di calore basata sulle posizioni dei giocatori ad inizio partita",
"tooltip_lane_efficiency": "Percentuale di oro in lane (creeps+passivo+iniziale) ottenuto a 10 minuti",
"tooltip_lane_efficiency_pct": "Percentuale di oro in lane (creeps+passivo+iniziale) ottenuto a 10 minuti",
"tooltip_pings": "Numero di volte che il giocatore ha pingato la mappa",
"tooltip_DOTA_UNIT_ORDER_MOVE_TO_POSITION": "Numero di comandi direzionali",
"tooltip_DOTA_UNIT_ORDER_MOVE_TO_TARGET": "Numero di volte che il giocatore si è mosso su un bersaglio",
"tooltip_DOTA_UNIT_ORDER_ATTACK_MOVE": "Numero di volte che il giocatore ha attaccato una posizione (A+click)",
"tooltip_DOTA_UNIT_ORDER_ATTACK_TARGET": "Numero di volte che il giocatore ha attaccato un bersaglio",
"tooltip_DOTA_UNIT_ORDER_CAST_POSITION": "Numero di volte che il giocatore ha effettuato un cast su una posizione",
"tooltip_DOTA_UNIT_ORDER_CAST_TARGET": "Numero di volte che il giocatore ha effettuato un cast su un bersaglio",
"tooltip_DOTA_UNIT_ORDER_CAST_NO_TARGET": "Numero di volte che il giocatore ha castato su nessun bersaglio",
"tooltip_DOTA_UNIT_ORDER_HOLD_POSITION": "Numero di volte che il giocatore ha mantenuto la posizione",
"tooltip_DOTA_UNIT_ORDER_GLYPH": "Numero di volte che il giocatore ha usato il glifo",
"tooltip_DOTA_UNIT_ORDER_RADAR": "Numero di volte che il giocatore ha usato lo scan",
"tooltip_last_played": "Ultima partita giocata con questo giocatore/eroe",
"tooltip_matches": "Partite giocate con/contro questo giocatore",
"tooltip_played_as": "Numero di partite giocate con questo eroe",
"tooltip_played_with": "Numero di partite con questo giocatore/eroe nel team",
"tooltip_played_against": "Numero di partite con questo giocatore/eroe nel team avversario",
"tooltip_tombstone_victim": "Qui Riposa",
"tooltip_tombstone_killer": "ucciso da",
"tooltip_win_pct_as": "Percentuale di vittorie con questo eroe",
"tooltip_win_pct_with": "Percentuale di vittorie con questo giocatore/eroe",
"tooltip_win_pct_against": "Percentuale di vittorie contro questo giocatore/eroe",
"tooltip_lhten": "Last hits a 10 minuti",
"tooltip_dnten": "Negazioni a 10 minuti",
"tooltip_biggest_hit": "Istanza di danno più alta su un eroe",
"tooltip_damage_dealt": "Danno inflitto ad eroi da oggetti/abilità",
"tooltip_damage_received": "Danno ricevuto da oggetti/abilità di eroi",
"tooltip_registered_user": "Utente registrato",
"tooltip_ability_builds": "Builds Abilità",
"tooltip_ability_builds_expired": "L'abilità di aggiornare le informazioni è scaduta per questo match. Utilizza il modulo di richiesta per ricaricare i dati.",
"tooltip_multikill": "Multi-uccisioni più lunga",
"tooltip_killstreak": "Serie di uccisioni più lunga",
"tooltip_casts": "Numero di volte che questo item/abilità è stata utilizzata",
"tooltip_target_abilities": "How many times each hero was targeted by this hero's abilities",
"tooltip_hits": "Istanze di danno agli eroi causate da questo item/abilità",
"tooltip_damage": "Ammontare di danno inflitto agli eroi da questo item/abilità",
"tooltip_autoattack_other": "Auto attacco/Altro",
"tooltip_estimated_mmr": "MMR stimato in base agli MMR visibili delle partite giocate di recente da questo giocatore",
"tooltip_backpack": "Backpack",
"tooltip_others_tracked_deaths": "tracked deaths",
"tooltip_others_track_gold": "oro guadagnato da Traccia",
"tooltip_others_greevils_gold": "oro guadagnato da Avidità del greevil",
"tooltip_advantage": "Calculated by Wilson score",
"tooltip_winrate_samplesize": "Win rate and sample size",
"tooltip_teamfight_participation": "Amount of participation in teamfights",
"histograms_name": "Istogrammi",
"histograms_description": "Percentages indicate win rates for the labeled bin",
"histograms_actions_per_min_description": "Actions performed by player per minute",
"histograms_comeback_description": "Maximum gold disadvantage in a won game",
"histograms_lane_efficiency_pct_description": "Percentage of lane gold (creeps+passive+starting) obtained at 10 minutes",
"histograms_gold_per_min_description": "Gold farmed per minute",
"histograms_hero_damage_description": "Amount of damage dealt to heroes",
"histograms_hero_healing_description": "Amount of health restored to heroes",
"histograms_level_description": "Level achieved in a game",
"histograms_loss_description": "Maximum gold disadvantage in a lost game",
"histograms_pings_description": "Number of times the player pinged the map",
"histograms_stomp_description": "Maximum gold advantage in a won game",
"histograms_stuns_description": "Seconds of disable on heroes",
"histograms_throw_description": "Maximum gold advantage in a lost game",
"histograms_purchase_tpscroll_description": "Town Portal Scroll purchases",
"histograms_xp_per_min_description": "Experience gained per minute",
"trends_name": "Tendenze",
"trends_description": "Cumulative average over last 500 games",
"trends_tooltip_average": "Media",
"trends_no_data": "Sorry, no data for this graph",
"xp_reasons_0": "Altro",
"xp_reasons_1": "Eroe",
"xp_reasons_2": "Creep",
"xp_reasons_3": "Roshan",
"rankings_description": "",
"rankings_none": "This player is not ranked on any heroes.",
"region_0": "Automatica",
"region_1": "Stati Uniti ovest",
"region_2": "Stati Uniti est",
"region_3": "Lussemburgo",
"region_5": "Singapore",
"region_6": "Dubai",
"region_7": "Australia",
"region_8": "Stoccolma",
"region_9": "Austria",
"region_10": "Brasile",
"region_11": "Sud Africa",
"region_12": "Cina TC Shanghai",
"region_13": "Cina UC",
"region_14": "Cile",
"region_15": "Perù",
"region_16": "India",
"region_17": "Cina TC Guangdong",
"region_18": "Cina TC Zhejiang",
"region_19": "Giappone",
"region_20": "Cina TC Wuhan",
"region_25": "Cina UC 2",
"vision_expired": "Scaduto/a dopo",
"vision_destroyed": "Distrutto/a dopo",
"vision_all_time": "Di sempre",
"vision_placed_observer": "placed Observer at",
"vision_placed_sentry": "placed Sentry at",
"vision_ward_log": "Ward Log",
"chat_category_faction": "Faction",
"chat_category_type": "Type",
"chat_category_target": "Target",
"chat_category_other": "Other",
"chat_filter_text": "Text",
"chat_filter_phrases": "Phrases",
"chat_filter_audio": "Audio",
"chat_filter_spam": "Spam",
"chat_filter_all": "All",
"chat_filter_allies": "Allies",
"chat_filter_spectator": "Spectator",
"chat_filtered": "Filtered",
"advb_almost": "almost",
"advb_over": "over",
"advb_about": "about",
"article_before_consonant_sound": "a",
"article_before_vowel_sound": "an",
"statement_long": "hypothesised",
"statement_shouted": "shouted",
"statement_excited": "exclaimed",
"statement_normal": "said",
"statement_laughed": "laughed",
"question_long": "raised, in need of answers",
"question_shouted": "inquired",
"question_excited": "interrogated",
"question_normal": "asked",
"question_laughed": "laughed mockingly",
"statement_response_long": "advised",
"statement_response_shouted": "responded in frustration",
"statement_response_excited": "exclaimed",
"statement_response_normal": "replied",
"statement_response_laughed": "laughed",
"statement_continued_long": "ranted",
"statement_continued_shouted": "continued furiously",
"statement_continued_excited": "continued",
"statement_continued_normal": "added",
"statement_continued_laughed": "continued",
"question_response_long": "advised",
"question_response_shouted": "asked back, out of frustration",
"question_response_excited": "disputed",
"question_response_normal": "countered",
"question_response_laughed": "laughed",
"question_continued_long": "propositioned",
"question_continued_shouted": "asked furiously",
"question_continued_excited": "lovingly asked",
"question_continued_normal": "asked",
"question_continued_laughed": "asked joyfully",
"hero_disclaimer_pro": "Data from professional matches",
"hero_disclaimer_public": "Data from public matches",
"hero_duration_x_axis": "Minutes",
"top_tower": "Top Tower",
"bot_tower": "Bottom Tower",
"mid_tower": "Mid Tower",
"top_rax": "Top Barracks",
"bot_rax": "Bottom Barracks",
"mid_rax": "Mid Barracks",
"tier1": "Tier 1",
"tier2": "Tier 2",
"tier3": "Tier 3",
"tier4": "Tier 4",
"show_consumables_items": "Show consumables",
"activated": "Activated",
"rune": "Rune",
"placement": "Placement",
"exclude_turbo_matches": "Exclude Turbo matches",
"scenarios_subtitle": "Explore win rates of combinations of factors that happen in matches",
"scenarios_info": "Data compiled from matches in the last {0} weeks",
"scenarios_item_timings": "Item Timings",
"scenarios_misc": "Misc",
"scenarios_time": "Time",
"scenarios_item": "Item",
"scenarios_game_duration": "Game Duration",
"scenarios_scenario": "Scenario",
"scenarios_first_blood": "Team drew First Blood",
"scenarios_courier_kill": "Team sniped the enemy courier before the 3-minute mark",
"scenarios_pos_chat_1min": "Team all chatted positive words before the 1-minute mark",
"scenarios_neg_chat_1min": "Team all chatted negative words before the 1-minute mark",
"gosu_default": "Get personal recommendations",
"gosu_benchmarks": "Get detailed benchmarks for your hero, lane and role",
"gosu_performances": "Get your map control performance",
"gosu_laning": "Get why you missed last hits",
"gosu_combat": "Get why kills attempts were unsuccessful",
"gosu_farm": "Get why you missed last hits",
"gosu_vision": "Get how many heroes were killed under your wards",
"gosu_actions": "Get your lost time from mouse usage vs hotkeys",
"gosu_teamfights": "Get who to target during teamfights",
"gosu_analysis": "Get your real MMR bracket",
"back2Top": "Back to Top",
"activity_subtitle": "Click on a day for detailed information"
} | odota/web/src/lang/it-IT.json/0 | {
"file_path": "odota/web/src/lang/it-IT.json",
"repo_id": "odota",
"token_count": 19932
} | 271 |
{
"yes": "так",
"no": "ні",
"abbr_thousand": "тис",
"abbr_million": "міл",
"abbr_billion": "м",
"abbr_trillion": "т",
"abbr_quadrillion": "к",
"abbr_not_available": "Н/Д",
"abbr_pick": "В",
"abbr_win": "П",
"abbr_number": "Ні.",
"analysis_eff": "Ефективність на лінії",
"analysis_farm_drought": "Найменше ДВХ за 5 хвилин",
"analysis_skillshot": "Успішних скілшотів",
"analysis_late_courier": "Затримка апгрейда кур'єра",
"analysis_wards": "Вардів розсташовано",
"analysis_roshan": "Рошанів вбито",
"analysis_rune_control": "Рун отримано",
"analysis_unused_item": "Невикористані активні речі",
"analysis_expected": "з",
"announce_dismiss": "Відхиляти",
"announce_github_more": "Вид на GitHub",
"api_meta_description": "OpenDota API надає доступ до розширенної статистики Dota 2, яку надає OpenDota платформа. Доступ до графіків, діаграм та хмарин слів і багато іншому. Спробуйте безкоштовно.",
"api_title": "OpenDota API",
"api_subtitle": "Розроблена на платформі OpenDota. Надає розширену статистику для вашого додатку і глибоке розуміння для ваших користувачів.",
"api_details_free_tier": "Безоплатний рівень",
"api_details_premium_tier": "Розширений рівень",
"api_details_price": "Ціна",
"api_details_price_free": "Безоплатно",
"api_details_price_prem": "$price за $unit викликів",
"api_details_key_required": "Потрібно ключ?",
"api_details_key_required_free": "Ні",
"api_details_key_required_prem": "Так -- потрібен спосіб оплати",
"api_details_call_limit": "Ліміт запитів",
"api_details_call_limit_free": "$limit в місяць",
"api_details_call_limit_prem": "Без обмежень",
"api_details_rate_limit": "Частота запитів",
"api_details_rate_limit_val": "$num запитів за хвилину",
"api_details_support": "Підтримка",
"api_details_support_free": "Спільнота підтримки в Discord",
"api_details_support_prem": "Пріоритетна підтримка від головних розробників",
"api_get_key": "Отримати свій ключ",
"api_docs": "Документація",
"api_header_details": "Деталі",
"api_charging": "You're charged $cost per call, rounded up to the nearest cent.",
"api_credit_required": "Для отримання API ключа, потрібно мати активний метод оплати. Ми атоматично знімемо кошти з карти на початку місяця за поточну заборгованість.",
"api_failure": "500 errors don't count as usage, since that means we messed up!",
"api_error": "There was an error with the request. Please try again. If it continues, contact us at support@opendota.com.",
"api_login": "Login to access API Key",
"api_update_billing": "Update billing method",
"api_delete": "Delete key",
"api_key_usage": "To use your key, add $param as a query parameter to your API request:",
"api_billing_cycle": "The current billing cycle ends on $date.",
"api_billed_to": "We'll automatically bill the $brand ending in $last4.",
"api_support": "Need support? Email $email.",
"api_header_usage": "Your Usage",
"api_usage_calls": "# API calls",
"api_usage_fees": "Estimated Fees",
"api_month": "Month",
"api_header_key": "Your Key",
"api_header_table": "Get started for free. Keep going at a ridiculously low price.",
"app_name": "OpenDota",
"app_language": "Мова",
"app_localization": "Локалізація",
"app_description": "Платформа данних Dota 2 з відкритим початковим кодом",
"app_about": "Про проект",
"app_privacy_terms": "Конфіденційність і Умови",
"app_api_docs": "Документація API",
"app_blog": "Блог",
"app_translate": "Переклад",
"app_donate": "Підтримати проект",
"app_gravitech": "A Gravitech LLC Site",
"app_powered_by": "працює на",
"app_donation_goal": "Ціль щомісячного пожертвування",
"app_sponsorship": "Ваше спонсорство допомагає зберегти послугу безкоштовно для всіх.",
"app_twitter": "Слідкуйте за нами в Twitter",
"app_github": "Початковий код на GitHub",
"app_discord": "Чат в Discord",
"app_steam_profile": "Профіль в Steam",
"app_confirmed_as": "Підтверджений як",
"app_untracked": "Цей користувач не відвідував сервіс останнім часом, тому повтори нових матчів не будуть автоматично аналізуватися.",
"app_tracked": "Цей користувач відвідував сервіс останнім часом, тому повтори нових матчів будуть автоматично аналізуватися.",
"app_cheese_bought": "Куплено сиру",
"app_contributor": "This user has contributed to the development of the OpenDota project",
"app_dotacoach": "Запитати Тренера",
"app_pvgna": "Шукати керівництво",
"app_pvgna_alt": "Знайти гайд на Дота 2 від Pvgna",
"app_rivalry": "Ставки на професійні матчі",
"app_rivalry_team": "Bet on {0} Matches",
"app_refresh": "Оновити історії матчів: Запитати чергу на сканування матчів втрачених через параметри конфіденційності",
"app_refresh_label": "Оновити",
"app_login": "Увійти",
"app_logout": "Вийти",
"app_results": "результат(-ів) всього",
"app_report_bug": "Звіт про помилку",
"app_pro_players": "Професійні гравці",
"app_public_players": "Громадські гравці",
"app_my_profile": "Мій обліковий запис",
"barracks_value_1": "Темрява, низ, ближній бій",
"barracks_value_2": "Темрява, низ, дальній бій",
"barracks_value_4": "Темрява, середина, ближній бій",
"barracks_value_8": "Темрява, середина, дальній бій",
"barracks_value_16": "Темрява, верх, ближній бій",
"barracks_value_32": "Темрява, верх, дальній бій",
"barracks_value_64": "Нижній кріп Сяйва ближнього бою",
"barracks_value_128": "Нижній кріп Сяйва дальнього бою",
"barracks_value_256": "Середній кріп Сяйва ближнього бою",
"barracks_value_512": "Середній кріп Сяйва дальнього бою",
"barracks_value_1024": "Верхній кріп Сяйва ближнього бою",
"barracks_value_2048": "Верхній кріп Сяйва дальнього бою",
"benchmarks_description": "{0} {1} is equal or higher than {2}% of recent performances on this hero",
"fantasy_description": "{0} for {1} points",
"building_melee_rax": "Казарми ближнього бою",
"building_range_rax": "Казарми дальнього бою",
"building_lasthit": "добив",
"building_damage": "отримано пошкодженнь",
"building_hint": "Значки на мапі мають спливаючі підказки",
"building_denied": "не віддав",
"building_ancient": "Ancient",
"CHAT_MESSAGE_TOWER_KILL": "Вежа",
"CHAT_MESSAGE_BARRACKS_KILL": "Казарми",
"CHAT_MESSAGE_ROSHAN_KILL": "Рошан",
"CHAT_MESSAGE_AEGIS": "Взяв егіду",
"CHAT_MESSAGE_FIRSTBLOOD": "Перша кров",
"CHAT_MESSAGE_TOWER_DENY": "Добиття вежі",
"CHAT_MESSAGE_AEGIS_STOLEN": "Вкрав егіду",
"CHAT_MESSAGE_DENIED_AEGIS": "Знищив егіду",
"distributions_heading_ranks": "Rank Tier Distribution",
"distributions_heading_mmr": "Розподіл сольного MMR",
"distributions_heading_country_mmr": "Середній сольний MMR по країнам",
"distributions_tab_ranks": "Рейтингові рівні",
"distributions_tab_mmr": "Сольний MMR",
"distributions_tab_country_mmr": "Сольний MMR по країнам",
"distributions_warning_1": "Цей набір даних обмежується гравцями які відображають MMR у профілі та обмінюються загальними даними матчів.",
"distributions_warning_2": "Гравці не повинні реєструватися, але через характер зібраних даних, середні показники, ймовірно, вище, ніж насправді.",
"error": "Помилка",
"error_message": "Дідько.. щось пішло не так.",
"error_four_oh_four_message": "Сторінку не знайдено.",
"explorer_title": "Огляд Даних",
"explorer_subtitle": " Статистика Професійної Dota 2",
"explorer_description": "Run advanced queries on professional matches (excludes amateur leagues)",
"explorer_schema": "Схема",
"explorer_results": "Результати",
"explorer_num_rows": "рядок(-и)",
"explorer_select": "Вибір",
"explorer_group_by": "Групувати за",
"explorer_hero": "Герой",
"explorer_patch": "Патч",
"explorer_min_patch": "Мінімальний Патч",
"explorer_max_patch": "Максимальний Патч",
"explorer_min_mmr": "Мінімальний ММР",
"explorer_max_mmr": "Макс MMR",
"explorer_min_rank_tier": "Мінімальний Ранг",
"explorer_max_rank_tier": "Максимальний Ранг",
"explorer_player": "Гравець",
"explorer_league": "Ліга",
"explorer_player_purchased": "Придбань",
"explorer_duration": "Тривалість",
"explorer_min_duration": "Мінімальна Тривалість",
"explorer_max_duration": "Максимальна тривалість",
"explorer_timing": "Таймінг",
"explorer_uses": "Використовує",
"explorer_kill": "Убивство за хвилину",
"explorer_side": "Сторона",
"explorer_toggle_sql": "Перемкнути SQL",
"explorer_team": "Поточна команда",
"explorer_lane_role": "Лінія",
"explorer_min_date": "Min Date",
"explorer_max_date": "Max Date",
"explorer_hero_combos": "Hero Combos",
"explorer_hero_player": "Герой-Гравець",
"explorer_player_player": "Гравець-гравець",
"explorer_sql": "SQL",
"explorer_postgresql_function": "Функція PostgreSQL",
"explorer_table": "Таблиця",
"explorer_column": "Колонка",
"explorer_query_button": "Таблиця",
"explorer_cancel_button": "Cancel",
"explorer_table_button": "Таблиця",
"explorer_api_button": "API",
"explorer_json_button": "JSON",
"explorer_csv_button": "CSV",
"explorer_donut_button": "Пончик",
"explorer_bar_button": "Bar",
"explorer_timeseries_button": "Timeseries",
"explorer_chart_unavailable": "Chart not available, try adding a GROUP BY",
"explorer_value": "Цінність",
"explorer_category": "Категорія",
"explorer_region": "Регіон",
"explorer_picks_bans": "Вибори/заборони",
"explorer_counter_picks_bans": "Контр-піки/бани",
"explorer_organization": "Organization",
"explorer_order": "Замовити",
"explorer_asc": "За зростанням",
"explorer_desc": "За спаданням",
"explorer_tier": "Ранг",
"explorer_having": "Як мінімум таку кількість матчів",
"explorer_limit": "Limit",
"explorer_match": "Match",
"explorer_is_ti_team": "Is TI{number} Team",
"explorer_mega_comeback": "Won Against Mega Creeps",
"explorer_max_gold_adv": "Max Gold Advantage",
"explorer_min_gold_adv": "Min Gold Advantage",
"farm_heroes": "Героїв вбито",
"farm_creeps": "Вбито кріпів на лінії",
"farm_neutrals": "Нейтральних істот вбито (включно древніх)",
"farm_ancients": "Древніх істот вбито",
"farm_towers": "Веж знищено",
"farm_couriers": "Кур'єрів вбито",
"farm_observers": "Знищено Observer Ward",
"farm_sentries": "Знищено Sentry Ward",
"farm_roshan": "Рошанів вбито",
"farm_necronomicon": "Вбито істот Некрономікону",
"filter_button_text_open": "Фільтр",
"filter_button_text_close": "Закрити",
"filter_hero_id": "Герой",
"filter_is_radiant": "Сторона",
"filter_win": "Результат",
"filter_lane_role": "Лінія",
"filter_patch": "Патч",
"filter_game_mode": "Режим гри",
"filter_lobby_type": "Тип лобі",
"filter_date": "Дата",
"filter_region": "Регіон",
"filter_with_hero_id": "Союзні герої",
"filter_against_hero_id": "Ворожі герої",
"filter_included_account_id": "Включення акаунту ID",
"filter_excluded_account_id": "Виключення акаунту ID",
"filter_significant": "Незначний",
"filter_significant_include": "Включати",
"filter_last_week": "Минулий тиждень",
"filter_last_month": "Останній місяць",
"filter_last_3_months": "Останні 3 місяці",
"filter_last_6_months": "Останні 6 місяців",
"filter_error": "Будь ласка, виберіть пункт зі списку",
"filter_party_size": "Розмір групи",
"game_mode_0": "Невідомо",
"game_mode_1": "All Pick",
"game_mode_2": "Captains Mode",
"game_mode_3": "Random Draft",
"game_mode_4": "Single Draft",
"game_mode_5": "All Random",
"game_mode_6": "Intro",
"game_mode_7": "Пора Пітьми",
"game_mode_8": "Обернений капітанський режим",
"game_mode_9": "Жаднування",
"game_mode_10": "Навчання",
"game_mode_11": "Mid Only",
"game_mode_12": "Least Played",
"game_mode_13": "Обмежений вибір героїв",
"game_mode_14": "Compendium",
"game_mode_15": "Власний",
"game_mode_16": "Captains Draft",
"game_mode_17": "Balanced Draft",
"game_mode_18": "Вибір здібностей",
"game_mode_19": "Захід",
"game_mode_20": "All Random Deathmatch",
"game_mode_21": "1v1 Solo Mid",
"game_mode_22": "All Draft",
"game_mode_23": "Turbo",
"game_mode_24": "Mutation",
"general_unknown": "Невідомо",
"general_no_hero": "Немає героя",
"general_anonymous": "Анонім",
"general_radiant": "Radiant",
"general_dire": "Dire",
"general_standard_deviation": "Стандартне відхилення",
"general_matches": "Матчі",
"general_league": "Ліга",
"general_randomed": "Обрано випадково",
"general_repicked": "Перевибраний",
"general_predicted_victory": "Передбачив перемогу",
"general_show": "Show",
"general_hide": "Hide",
"gold_reasons_0": "Інші",
"gold_reasons_1": "Смерть",
"gold_reasons_2": "Викуп",
"NULL_gold_reasons_5": "Покинуто",
"NULL_gold_reasons_6": "Продано",
"gold_reasons_11": "Будівля",
"gold_reasons_12": "Герой",
"gold_reasons_13": "Кріп",
"gold_reasons_14": "Рошан",
"NULL_gold_reasons_15": "Кур'єр",
"header_request": "Запитати",
"header_distributions": "Ranks",
"header_heroes": "Герої",
"header_blog": "Блог",
"header_ingame": "В грі",
"header_matches": "Матчі",
"header_records": "Рекорди",
"header_explorer": "Огляд",
"header_teams": "Команди",
"header_meta": "Meta",
"header_scenarios": "Scenarios",
"header_api": "API",
"heading_lhten": "Добито @ 10",
"heading_lhtwenty": "Добито @ 20",
"heading_lhthirty": "Добито @ 30",
"heading_lhforty": "Добито @ 40",
"heading_lhfifty": "Добито @ 50",
"heading_courier": "Кур'єр",
"heading_roshan": "Рошан",
"heading_tower": "Вежа",
"heading_barracks": "Бараки",
"heading_shrine": "Святиня",
"heading_item_purchased": "Куплений предмет",
"heading_ability_used": "Здатність використовувати",
"heading_item_used": "Використання предмету",
"heading_damage_inflictor": "Заподіяна шкода",
"heading_damage_inflictor_received": "Damage Inflictor Received",
"heading_damage_instances": "Джерела ушкоджень",
"heading_camps_stacked": "Таборів стакнуто",
"heading_matches": "Нещодавні матчі",
"heading_heroes": "Зіграно не героях",
"heading_mmr": "Історія MMR",
"heading_peers": "Зіграно з гравцями",
"heading_pros": "Зіграно з професійними гравцями",
"heading_rankings": "Рейтинг героїв",
"heading_all_matches": "У всіх матчах",
"heading_parsed_matches": "В аналізованих матчах",
"heading_records": "Рекорди",
"heading_teamfights": "Командні бої",
"heading_graph_difference": "Перевага Radiant",
"heading_graph_gold": "Золото",
"heading_graph_xp": "Досвід",
"heading_graph_lh": "Останні удари",
"heading_overview": "Огляд",
"heading_ability_draft": "Вибрані здатності",
"heading_buildings": "Мапа будівель",
"heading_benchmarks": "Контрольні показники",
"heading_laning": "Лейнінг",
"heading_overall": "Загальні",
"heading_kills": "Вбивства",
"heading_deaths": "Смерті",
"heading_assists": "Підмоги",
"heading_damage": "Пошкодження",
"heading_unit_kills": "Істот вбито",
"heading_last_hits": "Останні удари",
"heading_gold_reasons": "Джерела золота",
"heading_xp_reasons": "- Джерела очок досвіду",
"heading_performances": "Результативність",
"heading_support": "Підтримка",
"heading_purchase_log": "Журнал придбань",
"heading_casts": "Використано здібностей",
"heading_objective_damage": "- Пошкодження по цілям",
"heading_runes": "Руни",
"heading_vision": "Бачення",
"heading_actions": "Дії",
"heading_analysis": "Аналіз",
"heading_cosmetics": "Косметика",
"heading_log": "Журнал подій",
"heading_chat": "Балачка",
"heading_story": "Історія",
"heading_fantasy": "Fantasy",
"heading_wardmap": "Мапа вардів",
"heading_wordcloud": "Хмара повідомлень",
"heading_wordcloud_said": "Сказані слова (чат для всіх)",
"heading_wordcloud_read": "Прочитані слова (чат для всіх)",
"heading_kda": "ВСД",
"heading_gold_per_min": "Золото за хв",
"heading_xp_per_min": "Досвід за хв",
"heading_denies": "Добито",
"heading_lane_efficiency_pct": "EFF@10",
"heading_duration": "Тривалість",
"heading_level": "Рівень",
"heading_hero_damage": "Шкода по героях",
"heading_tower_damage": "Шкода вежам",
"heading_hero_healing": "Лікування героїв",
"heading_tower_kills": "Башт зруйновано",
"heading_stuns": "Приголомшень",
"heading_neutral_kills": "Нейтралів вбито",
"heading_courier_kills": "Вбито курєрів",
"heading_purchase_tpscroll": "Сувоїв Телепортації придбано",
"heading_purchase_ward_observer": "Обсерверів придбано",
"heading_purchase_ward_sentry": "Сентрів придбано",
"heading_purchase_gem": "Гемів придбано",
"heading_purchase_rapier": "Рапір придбано",
"heading_pings": "Сигналів на мапі",
"heading_throw": "Закинута",
"heading_comeback": "Повертатися",
"heading_stomp": "Розгром",
"heading_loss": "Поразка",
"heading_actions_per_min": "Дії в хвилину",
"heading_leaver_status": "Статус покинутих ігор",
"heading_game_mode": "Режим гри",
"heading_lobby_type": "Тип лобі",
"heading_lane_role": "Роль на лінії",
"heading_region": "Регіон",
"heading_patch": "Патч",
"heading_win_rate": "Частка перемог",
"heading_is_radiant": "Сторона",
"heading_avg_and_max": "Середні/Максимальні",
"heading_total_matches": "Всього матчів",
"heading_median": "Медіана",
"heading_distinct_heroes": "Відмінних героїв",
"heading_team_elo_rankings": "ELO рейтинг команд",
"heading_ability_build": "Ability Build",
"heading_attack": "Базова атака",
"heading_attack_range": "Дальність атаки",
"heading_attack_speed": "Швидкість атаки",
"heading_projectile_speed": "Швидкість снаряду",
"heading_base_health": "Health",
"heading_base_health_regen": "Health regen",
"heading_base_mana": "Мана",
"heading_base_mana_regen": "Регенерація мани",
"heading_base_armor": "Base armor",
"heading_base_mr": "Magic resistance",
"heading_move_speed": "Швидкість переміщення",
"heading_turn_rate": "Швидкість повороту",
"heading_legs": "Кількість ніг",
"heading_cm_enabled": "CM enabled",
"heading_current_players": "Current Players",
"heading_former_players": "Former Players",
"heading_damage_dealt": "Damage Dealt",
"heading_damage_received": "Damage Received",
"show_details": "Show details",
"hide_details": "Hide details",
"subheading_avg_and_max": "in last {0} displayed matches",
"subheading_records": "У рейтингових матчах. Записи оновлюються щомісяця.",
"subheading_team_elo_rankings": "k=32, init=1000",
"hero_pro_tab": "Професійний",
"hero_public_tab": "Публічний",
"hero_pro_heading": "Герої в професійних матчах",
"hero_public_heading": "Герої в публічних матчах (проби)",
"hero_this_month": "матчів за останні 30 днів",
"hero_pick_ban_rate": "Pro P+B%",
"hero_pick_rate": "Pro Pick%",
"hero_ban_rate": "Pro Ban%",
"hero_win_rate": "Pro Win%",
"hero_5000_pick_rate": ">5K P%",
"hero_5000_win_rate": ">5K W%",
"hero_4000_pick_rate": "4K P%",
"hero_4000_win_rate": "4K W%",
"hero_3000_pick_rate": "3K P%",
"hero_3000_win_rate": "3K W%",
"hero_2000_pick_rate": "2K P%",
"hero_2000_win_rate": "2K W%",
"hero_1000_pick_rate": "<2K P%",
"hero_1000_win_rate": "<2K W%",
"home_login": "Увійти",
"home_login_desc": "для автоматичного розбіру повтора",
"home_parse": "Запитати",
"home_parse_desc": "конкретний матч",
"home_why": "",
"home_opensource_title": "Відкритий початковий код",
"home_opensource_desc": "Увесь код проекту є відкритим початковим кодом і є доступним для вкладників для поліпшення та модифікування.",
"home_indepth_title": "Поглиблені данні",
"home_indepth_desc": "Розбір файлів повтору надає докладні данні по матчу.",
"home_free_title": "Безкоштовно",
"home_free_desc": "Сервери фінансуються спонсорами, а також добровольці підтримують код, так що послуга надається безкоштовно.",
"home_background_by": "Фоновий малюнок:",
"home_sponsored_by": "За підтримки",
"home_become_sponsor": "Стати спонсором",
"items_name": "Назва речі",
"items_built": "Кількість разів, що ця річ була зібрана",
"items_matches": "Кількість матчів, де ця річ була зібрана",
"items_uses": "Кількість разів, що ця річ була використана",
"items_uses_per_match": "Середня кількість використань цієї річі, у матчах де вона була зібрана",
"items_timing": "У середньому ця річ була побудована за",
"items_build_pct": "Відсоток матчів, коли ця річ була зібрана",
"items_win_pct": "Кількість виграшних матчів, де ця річ була зібрана",
"lane_role_0": "Невідомо",
"lane_role_1": "Легка",
"lane_role_2": "Середня",
"lane_role_3": "Важка",
"lane_role_4": "Ліс",
"lane_pos_1": "Низ",
"lane_pos_2": "Середня",
"lane_pos_3": "Верхня",
"lane_pos_4": "Ліс Сяйва",
"lane_pos_5": "Ліс Пітьми",
"leaver_status_0": "Немає",
"leaver_status_1": "Безпечне покидання",
"leaver_status_2": "Покинуті (відключено)",
"leaver_status_3": "Покинуто",
"leaver_status_4": "Покинуті (бездіяльність)",
"leaver_status_5": "Ніколи не підключено",
"leaver_status_6": "Ніколи не підключений (тайм-аут)",
"lobby_type_0": "Звичайний",
"lobby_type_1": "Тренування",
"lobby_type_2": "Турнір",
"lobby_type_3": "Навчання",
"lobby_type_4": "Кооператив з ботами",
"lobby_type_5": "Групова рангова гра (традиційна)",
"lobby_type_6": "Самітня рангова гра (традиційна)",
"lobby_type_7": "Рейтинговий",
"lobby_type_8": "Сам-на-сам на середині",
"lobby_type_9": "Бойовий кубок",
"match_radiant_win": "Перемога Radiant",
"match_dire_win": "Перемога Dire",
"match_team_win": "Перемога",
"match_ended": "Закінчився",
"match_id": "ID матчу",
"match_region": "Регіон",
"match_avg_mmr": "Середній MMR",
"match_button_parse": "Обробити",
"match_button_reparse": "Повторно обробити",
"match_button_replay": "Повтор",
"match_button_video": "Отримати відео",
"match_first_tower": "Перша вежа",
"match_first_barracks": "Перші казарми",
"match_pick": "Вибір",
"match_ban": "Бан",
"matches_highest_mmr": "Top Public",
"matches_lowest_mmr": "Низький MMR",
"meta_title": "Мета",
"meta_description": "Run advanced queries on data from sampled public matches in previous 24h",
"mmr_not_up_to_date": "Чому MMR не відповідає сучасним вимогам?",
"npc_dota_beastmaster_boar_#": "Кабан",
"npc_dota_lesser_eidolon": "Малий ейдолон",
"npc_dota_eidolon": "Ейдолон",
"npc_dota_greater_eidolon": "Кремезний ейдолон",
"npc_dota_dire_eidolon": "Зловісний ейдолон",
"npc_dota_invoker_forged_spirit": "Палаючий дух",
"npc_dota_furion_treant_large": "Великий ент",
"npc_dota_beastmaster_hawk_#": "Сокіл",
"npc_dota_lycan_wolf#": "Вовк Лікана",
"npc_dota_neutral_mud_golem_split_doom": "Думеня",
"npc_dota_broodmother_spiderling": "Павученя",
"npc_dota_broodmother_spiderite": "Павучатко",
"npc_dota_furion_treant": "Ент",
"npc_dota_unit_undying_zombie": "Зомбі",
"npc_dota_unit_undying_zombie_torso": "Зомбі",
"npc_dota_brewmaster_earth_#": "Earth Brewling",
"npc_dota_brewmaster_fire_#": "Fire Brewling",
"npc_dota_lone_druid_bear#": "Ведмідь-дух",
"npc_dota_brewmaster_storm_#": "Storm Brewling",
"npc_dota_visage_familiar#": "Фамільяр",
"npc_dota_warlock_golem_#": "Ґолем",
"npc_dota_warlock_golem_scepter_#": "Ґолем",
"npc_dota_witch_doctor_death_ward": "Смертевард",
"npc_dota_tusk_frozen_sigil#": "Знак морозу",
"npc_dota_juggernaut_healing_ward": "Цілющий вард",
"npc_dota_techies_land_mine": "Proximity Mine",
"npc_dota_shadow_shaman_ward_#": "Змієвард",
"npc_dota_pugna_nether_ward_#": "Потойбічний вард",
"npc_dota_venomancer_plague_ward_#": "Чумний вард",
"npc_dota_rattletrap_cog": "Шестерня",
"npc_dota_templar_assassin_psionic_trap": "Псіонна пастка",
"npc_dota_techies_remote_mine": "Міна дистанційної дії",
"npc_dota_techies_stasis_trap": "Стазисна пастка",
"npc_dota_phoenix_sun": "Наднова",
"npc_dota_unit_tombstone#": "Надгробний камінь",
"npc_dota_treant_eyes": "Очі в лісі",
"npc_dota_gyrocopter_homing_missile": "Самонавідна ракета",
"npc_dota_weaver_swarm": "Рій",
"objective_tower1_top": "T1",
"objective_tower1_mid": "М1",
"objective_tower1_bot": "B1",
"objective_tower2_top": "T2",
"objective_tower2_mid": "М2",
"objective_tower2_bot": "B2",
"objective_tower3_top": "T3",
"objective_tower3_mid": "М3",
"objective_tower3_bot": "B3",
"objective_rax_top": "RaxT",
"objective_rax_mid": "RaxM",
"objective_rax_bot": "RaxB",
"objective_tower4": "Т4",
"objective_fort": "Древній",
"objective_shrine": "Святині",
"objective_roshan": "Рошан",
"tooltip_objective_tower1_top": "Damage dealt to top Tier 1 tower",
"tooltip_objective_tower1_mid": "Damage dealt to middle Tier 1 tower",
"tooltip_objective_tower1_bot": "Damage dealt to bottom Tier 1 tower",
"tooltip_objective_tower2_top": "Damage dealt to top Tier 2 tower",
"tooltip_objective_tower2_mid": "Damage dealt to middle Tier 2 tower",
"tooltip_objective_tower2_bot": "Damage dealt to bottom Tier 2 tower",
"tooltip_objective_tower3_top": "Damage dealt to top Tier 3 tower",
"tooltip_objective_tower3_mid": "Damage dealt to middle Tier 3 tower",
"tooltip_objective_tower3_bot": "Damage dealt to bottom Tier 3 tower",
"tooltip_objective_rax_top": "Damage dealt to top barracks",
"tooltip_objective_rax_mid": "Damage dealt to middle barracks",
"tooltip_objective_rax_bot": "Damage dealt to bottom barracks",
"tooltip_objective_tower4": "Damage dealt to middle Tier 4 towers",
"tooltip_objective_fort": "Damage dealt to ancient",
"tooltip_objective_shrine": "Damage dealt to shrines",
"tooltip_objective_roshan": "Damage dealt to Roshan",
"pagination_first": "Перший",
"pagination_last": "Остання",
"pagination_of": "з",
"peers_none": "This player has no peers.",
"rank_tier_0": "Невідкалібровано",
"rank_tier_1": "Вісник",
"rank_tier_2": "Охоронець",
"rank_tier_3": "Хрестоносець",
"rank_tier_4": "Архонт",
"rank_tier_5": "Легенда",
"rank_tier_6": "Древній",
"rank_tier_7": "Божественний",
"rank_tier_8": "Immortal",
"request_title": "Запит на аналізу маніфесту",
"request_match_id": "ID матчу",
"request_invalid_match_id": "Invalid Match ID",
"request_error": "Не вдалося отримати дані матчу",
"request_submit": "Підтвердити",
"roaming": "Пересування",
"rune_0": "Подвійна шкода",
"rune_1": "Прискорення",
"rune_2": "Іллюзії",
"rune_3": "Невидимість",
"rune_4": "Регенерація",
"rune_5": "Достаток",
"rune_6": "Аркана",
"rune_7": "Вода",
"search_title": "Search by player name, match ID...",
"skill_0": "Unknown Skill",
"skill_1": "Normal Skill",
"skill_2": "High Skill",
"skill_3": "Very High Skill",
"story_invalid_template": "(Неприпустимий шаблон)",
"story_error": "Сталася помилка при компіляції матеріалу для цього матчу",
"story_intro": "on {date}, two teams decided to play {game_mode_article} {game_mode} game of Dota 2 in {region}. Little did they know, the game would last {duration_in_words}",
"story_invalid_hero": "Неопізнаний герой",
"story_fullstop": ".",
"story_list_2": "{1} і {2}",
"story_list_3": "{1}, {2} і {3}",
"story_list_n": "{i}, {rest}",
"story_firstblood": "перша кров була пролита {killer} вбивши {victim} в {time}",
"story_chatmessage": "\"{message}\", {player} {said_verb}",
"story_teamfight": "{winning_team} won a teamfight by trading {win_dead} for {lose_dead}, resulting in a net worth increase of {net_change}",
"story_teamfight_none_dead": "{winning_team} виграла битву вбивши {lose_dead} без втрати будь-яких героїв, в результаті чого чиста вартістю збільшена на {net_change}",
"story_teamfight_none_dead_loss": "{winning_team} якось виграли битву, не вбиваючи всіх і втратили {win_dead}, в результаті чого чиста вартість збільшена на {net_change}",
"story_lane_intro": "At 10 minutes into the game, the lanes had gone as follows:",
"story_lane_radiant_win": "{radiant_players} won {lane} Lane against {dire_players}",
"story_lane_radiant_lose": "{radiant_players} lost {lane} Lane to {dire_players}",
"story_lane_draw": "{radiant_players} drew even in {lane} Lane with {dire_players}",
"story_lane_free": "{players} had a free {lane} lane",
"story_lane_empty": "there was nobody in {lane} lane",
"story_lane_jungle": "{players} farmed the jungle",
"story_lane_roam": "{players} roamed",
"story_roshan": "{team} killed Roshan",
"story_aegis": "{player} {action} the aegis",
"story_gameover": "The match ended in a {winning_team} victory at {duration} with a score of {radiant_score} to {dire_score}",
"story_during_teamfight": "during the fight, {events}",
"story_after_teamfight": "after the fight, {events}",
"story_expensive_item": "at {time}, {player} purchased {item}, which was the first item in the game with a price greater than {price_limit}",
"story_building_destroy": "{building} was destroyed",
"story_building_destroy_player": "{player} destroyed {building}",
"story_building_deny_player": "{player} denied {building}",
"story_building_list_destroy": "{buildings} were destroyed",
"story_courier_kill": "{team}'s courier was killed",
"story_tower": "{team}'s Tier {tier} {lane} tower",
"story_tower_simple": "one of {team}'s towers",
"story_towers_n": "{n} of {team}'s Towers",
"story_barracks": "{team}'s {lane} {rax_type}",
"story_barracks_both": "both of {team}'s {lane} Barracks",
"story_time_marker": "{minutes} Minutes In",
"story_item_purchase": "{player} purchased a {item} at {time}",
"story_predicted_victory": "{players} predicted {team} would win",
"story_predicted_victory_empty": "No one",
"story_networth_diff": "{percent}% / {gold} Diff",
"story_gold": "золото",
"story_chat_asked": "запитав",
"story_chat_said": "сказав",
"tab_overview": "Огляд",
"tab_matches": "Матчі",
"tab_heroes": "Герої",
"tab_peers": "Вузли",
"tab_pros": "Профі",
"tab_activity": "Активність",
"tab_records": "Рекорди",
"tab_totals": "Загалом",
"tab_counts": "Лічильники",
"tab_histograms": "Гістограма",
"tab_trends": "Тенденції",
"tab_items": "Предмети",
"tab_wardmap": "Мапа вардів",
"tab_wordcloud": "Хмара повідомлень",
"tab_mmr": "MMR",
"tab_rankings": "Рейтинги",
"tab_drafts": "Draft",
"tab_benchmarks": "Контрольні показники",
"tab_performances": "Результативність",
"tab_damage": "Пошкодження",
"tab_purchases": "Purchases",
"tab_farm": "Заробіток",
"tab_combat": "Бойові показники",
"tab_graphs": "Графіки",
"tab_casts": "Використано здібностей",
"tab_vision": "Бачення",
"tab_objectives": "Цілі",
"tab_teamfights": "Командні бої",
"tab_actions": "Дії",
"tab_analysis": "Аналіз",
"tab_cosmetics": "Косметика",
"tab_log": "Журнал подій",
"tab_chat": "Балачка",
"tab_story": "Історія",
"tab_fantasy": "Фентезі",
"tab_laning": "Лейнінг",
"tab_recent": "Recent",
"tab_matchups": "Matchups",
"tab_durations": "Durations",
"tab_players": "Players",
"placeholder_filter_heroes": "Фільтр героїв",
"td_win": "Won Match",
"td_loss": "Lost Match",
"td_no_result": "Немає результатів",
"th_hero_id": "Герой",
"th_match_id": "ID",
"th_account_id": "Account ID",
"th_result": "Результат",
"th_skill": "Майстерність",
"th_duration": "Тривалість",
"th_games": "MP",
"th_games_played": "Games",
"th_win": "Відсоток перемог",
"th_advantage": "Advantage",
"th_with_games": "З",
"th_with_win": "% перемог з",
"th_against_games": "Проти",
"th_against_win": "% перемог проти",
"th_gpm_with": "ЗЗХ з",
"th_xpm_with": "ДЗХ з",
"th_avatar": "Гравець",
"th_last_played": "Остання",
"th_record": "Рекорд",
"th_title": "Заголовок",
"th_category": "Категорія",
"th_matches": "Матчі",
"th_percentile": "Процентиль",
"th_rank": "Ранг",
"th_items": "Предмети",
"th_stacked": "Зроблено відводів",
"th_multikill": "Вбивств поспіль",
"th_killstreak": "Череда вбивств",
"th_stuns": "Приголомшень",
"th_dead": "Мертвий",
"th_buybacks": "Викупи",
"th_biggest_hit": "Найбільші пошкодження",
"th_lane": "Лінія",
"th_map": "Мапа",
"th_lane_efficiency": "EFF@10",
"th_lhten": "ДІ@10",
"th_dnten": "Д@10",
"th_tpscroll": "TP",
"th_ward_observer": "Observer",
"th_ward_sentry": "Sentry",
"th_smoke_of_deceit": "Smoke",
"th_dust": "Dust",
"th_gem": "Gem",
"th_time": "Час",
"th_message": "Повідомлення",
"th_heroes": "Герої",
"th_creeps": "Кріп",
"th_neutrals": "Нейтральні",
"th_ancients": "Древні",
"th_towers": "Вежі",
"th_couriers": "Кур'єри",
"th_roshan": "Рошан",
"th_necronomicon": "Некрономікон",
"th_other": "Інші",
"th_cosmetics": "Косметика",
"th_damage_received": "Отримано",
"th_damage_dealt": "Нанесено",
"th_players": "Гравці",
"th_analysis": "Аналіз",
"th_death": "Смерть",
"th_damage": "Пошкодження",
"th_healing": "Зцілення",
"th_gold": "З",
"th_xp": "ОД",
"th_abilities": "Здібності",
"th_target_abilities": "Ability Targets",
"th_mmr": "Матчмейкінг",
"th_level": "Рівень",
"th_kills": "В",
"th_kills_per_min": "В/Х",
"th_deaths": "С",
"th_assists": "Д",
"th_last_hits": "ОУ",
"th_last_hits_per_min": "ОУ/Хв",
"th_denies": "НВ",
"th_gold_per_min": "З/Хв",
"th_xp_per_min": "Д/Хв",
"th_stuns_per_min": "SPM",
"th_hero_damage": "ШГ",
"th_hero_damage_per_min": "ШГ/Хв",
"th_hero_healing": "ЛГ",
"th_hero_healing_per_min": "ЛГ/Хв",
"th_tower_damage": "ШБ",
"th_tower_damage_per_min": "ШБ/Хв",
"th_kda": "ВСД",
"th_actions_per_min": "Д/Хв",
"th_pings": "Сиг (M)",
"th_DOTA_UNIT_ORDER_MOVE_TO_POSITION": "Рух (П)",
"th_DOTA_UNIT_ORDER_MOVE_TO_TARGET": "Рух (Ц)",
"th_DOTA_UNIT_ORDER_ATTACK_TARGET": "АТК (Ц)",
"th_DOTA_UNIT_ORDER_ATTACK_MOVE": "АТК (П)",
"th_DOTA_UNIT_ORDER_CAST_POSITION": "ЗДБ (П)",
"th_DOTA_UNIT_ORDER_CAST_TARGET": "ЗДБ (Ц)",
"th_DOTA_UNIT_ORDER_CAST_NO_TARGET": "ЗДБ (Б)",
"th_DOTA_UNIT_ORDER_HOLD_POSITION": "УТП",
"th_DOTA_UNIT_ORDER_GLYPH": "ЗМІЦНЕННЯ",
"th_DOTA_UNIT_ORDER_RADAR": "СКАН",
"th_ability_builds": "ПЗ",
"th_purchase_shorthand": "PUR",
"th_use_shorthand": "ВИКОРИСТАННЯ",
"th_duration_shorthand": "DUR",
"th_country": "Країна",
"th_count": "Кількість",
"th_sum": "Всього",
"th_average": "Середньо",
"th_name": "Ім’я",
"th_team_name": "Назва команди",
"th_score": "Рахунок",
"th_casts": "Використано здібностей",
"th_hits": "Влучення",
"th_wins": "Перемоги",
"th_losses": "Поразки",
"th_winrate": "Частка перемог",
"th_solo_mmr": "Сольний MMR",
"th_party_mmr": "Груповий MMR",
"th_estimated_mmr": "Орієнтовний MMR",
"th_permanent_buffs": "Позитивні ефекти",
"th_winner": "Переможець",
"th_played_with": "Мій рекорд з",
"th_obs_placed": "Розташовано оглядових вардів",
"th_sen_placed": "Розташовано вартових вардів",
"th_obs_destroyed": "Знищено оглядових вардів",
"th_sen_destroyed": "Знищено вартових вардів",
"th_scans_used": "Використано сканів",
"th_glyphs_used": "Використано гліфів",
"th_legs": "Legs",
"th_fantasy_points": "Fantasy Pts",
"th_rating": "Рейтинг",
"th_teamfight_participation": "Участь",
"th_firstblood_claimed": "Перша кров",
"th_observers_placed": "Спостерігачі",
"th_camps_stacked": "Зроблено відводів",
"th_league": "League",
"th_attack_type": "Attack Type",
"th_primary_attr": "Primary Attribute",
"th_opposing_team": "Opposing Team",
"ward_log_type": "Тип",
"ward_log_owner": "Власник",
"ward_log_entered_at": "Розміщено",
"ward_log_left_at": "Left",
"ward_log_duration": "Lifespan",
"ward_log_killed_by": "Був вбитий",
"log_detail": "Detail",
"log_heroes": "Specify Heroes",
"tier_professional": "Professional",
"tier_premium": "Преміум",
"time_past": "{0} ago",
"time_just_now": "щойно",
"time_s": "секунда",
"time_abbr_s": "{0}s",
"time_ss": "{0} seconds",
"time_abbr_ss": "{0}s",
"time_m": "хвилина",
"time_abbr_m": "{0}m",
"time_mm": "{0} minutes",
"time_abbr_mm": "{0}m",
"time_h": "an hour",
"time_abbr_h": "{0}h",
"time_hh": "{0} hours",
"time_abbr_hh": "{0}h",
"time_d": "a day",
"time_abbr_d": "{0}d",
"time_dd": "{0} days",
"time_abbr_dd": "{0}d",
"time_M": "a month",
"time_abbr_M": "{0}mo",
"time_MM": "{0} months",
"time_abbr_MM": "{0}mo",
"time_y": "a year",
"time_abbr_y": "{0}y",
"time_yy": "{0} years",
"time_abbr_yy": "{0}y",
"timeline_firstblood": "drew first blood",
"timeline_firstblood_key": "drew first blood by killing",
"timeline_aegis_picked_up": "picked up",
"timeline_aegis_snatched": "snatched",
"timeline_aegis_denied": "не віддав",
"timeline_teamfight_deaths": "Смерті",
"timeline_teamfight_gold_delta": "gold delta",
"title_default": "OpenDota - Dota 2 Statistics",
"title_template": "%s - OpenDota - Dota 2 Statistics",
"title_matches": "Матчі",
"title_request": "Request a Parse",
"title_search": "Search",
"title_status": "Status",
"title_explorer": "Data Explorer",
"title_meta": "Meta",
"title_records": "Рекорди",
"title_api": "The Opendota API: Advanced Dota 2 stats for your app",
"tooltip_mmr": "Соло MMR гравця",
"tooltip_abilitydraft": "Ability Drafted",
"tooltip_level": "Рівень, досягнутий героєм",
"tooltip_kills": "Кількість вбивств героєм",
"tooltip_deaths": "Кількість смертей героя",
"tooltip_assists": "Кількість допомог героєм",
"tooltip_last_hits": "Кількість добитих істот героєм",
"tooltip_denies": "Кількість не відданих істот",
"tooltip_gold": "Всього золота зароблено",
"tooltip_gold_per_min": "Зароблено золота за хвилину",
"tooltip_xp_per_min": "Здобуто досвіду за хвилину",
"tooltip_stuns_per_min": "Seconds of hero stuns per minute",
"tooltip_last_hits_per_min": "Останніх ударів за хвилину",
"tooltip_kills_per_min": "Вбивств за хвилину",
"tooltip_hero_damage_per_min": "Пошкоджень героям за хвилину",
"tooltip_hero_healing_per_min": "Зцілення героїв за хвилину",
"tooltip_tower_damage_per_min": "Пошкодження вежам за хвилину",
"tooltip_actions_per_min": "Виконаних дій в хвилину",
"tooltip_hero_damage": "Кількість ушкоджень по героям",
"tooltip_tower_damage": "Кількість ушкоджень по вежам",
"tooltip_hero_healing": "Кількість здоров'я відновленого героям",
"tooltip_duration": "Тривалість матчу",
"tooltip_first_blood_time": "Час пролиття першої крові",
"tooltip_kda": "(Вбивства + Допомога) / (Смерті + 1)",
"tooltip_stuns": "Секунд знешкоджень героїв",
"tooltip_dead": "Час у таверні",
"tooltip_buybacks": "Number of buybacks",
"tooltip_camps_stacked": "Зроблено отводів",
"tooltip_tower_kills": "Кількість знищених веж",
"tooltip_neutral_kills": "Кількість вбитих нейтральних істот",
"tooltip_courier_kills": "Кількість вбитих кур'єрів",
"tooltip_purchase_tpscroll": "Куплено Town Portal Scroll",
"tooltip_purchase_ward_observer": "Куплено Observer Ward",
"tooltip_purchase_ward_sentry": "Куплено Sentry Ward",
"tooltip_purchase_smoke_of_deceit": "Куплено Smoke of Deceit",
"tooltip_purchase_dust": "Куплено Dust of Appearance",
"tooltip_purchase_gem": "Куплено Gem of True Sight",
"tooltip_purchase_rapier": "Куплено Divine Rapier",
"tooltip_purchase_buyback": "Зроблено викупів",
"tooltip_duration_observer": "Average lifespan of Observer Wards",
"tooltip_duration_sentry": "Average lifespan of Sentry Wards",
"tooltip_used_ward_observer": "Кількість встановлених Observer Wards",
"tooltip_used_ward_sentry": "Кількість встановлених Sentry Wards",
"tooltip_used_dust": "Number of times Dust of Appearance was used during the game",
"tooltip_used_smoke_of_deceit": "Number of times Smoke of Deceit was used during the game",
"tooltip_parsed": "Повтор було проаналізовано для додаткових даних",
"tooltip_unparsed": "Повтор для цього матчу ще не було проаналізовано. Не всі дані можуть бути доступні.",
"tooltip_hero_id": "The hero played",
"tooltip_result": "Чи гравець виграв або програв",
"tooltip_match_id": "ID матчу",
"tooltip_game_mode": "Режим гри матчу",
"tooltip_skill": "Приблизний крайній MMR рангу здібностей – 0, 3200 та 3700",
"tooltip_ended": "Час закінчення матчу",
"tooltip_pick_order": "Порядок у якому гравці обирали",
"tooltip_throw": "Максимальна перевага по золоту у програній грі",
"tooltip_comeback": "Максимальний недолік по золоту у виграній грі",
"tooltip_stomp": "Максимальна перевага по золоту у виграній грі",
"tooltip_loss": "Максимальний недолік по золоту у програній грі",
"tooltip_items": "Побудування речей",
"tooltip_permanent_buffs": "Permanent buffs such as Flesh Heap stacks or Tomes of Knowledge used",
"tooltip_lane": "Лінія, згідно з позицією на початку гри",
"tooltip_map": "Теплова карта положення гравця на початку гри",
"tooltip_lane_efficiency": "Відсоток золота з лінії (кріпи+пасивно+стартове) отриманий за 10 хвилин",
"tooltip_lane_efficiency_pct": "Відсоток золота з лінії (кріпи+пасивно+стартове) отриманий за 10 хвилин",
"tooltip_pings": "Кількість поданих сигналів гравцем на карті",
"tooltip_DOTA_UNIT_ORDER_MOVE_TO_POSITION": "Кількість рухів зроблених гравцем до позиції",
"tooltip_DOTA_UNIT_ORDER_MOVE_TO_TARGET": "Кількість рухів зроблених гравцем до цілі",
"tooltip_DOTA_UNIT_ORDER_ATTACK_MOVE": "Кількість рухів з атакою зроблених гравцем до позіції",
"tooltip_DOTA_UNIT_ORDER_ATTACK_TARGET": "Кількість атак зроблених гравцем по цілі",
"tooltip_DOTA_UNIT_ORDER_CAST_POSITION": "Кількість використаних гравцем здібностей по позиції",
"tooltip_DOTA_UNIT_ORDER_CAST_TARGET": "Кількість використаних гравцем здібностей по цілі",
"tooltip_DOTA_UNIT_ORDER_CAST_NO_TARGET": "Кількість використаних гравцем здібностей не в ціль",
"tooltip_DOTA_UNIT_ORDER_HOLD_POSITION": "Кількість відданих гравцем розпоряджень утримувати позицію",
"tooltip_DOTA_UNIT_ORDER_GLYPH": "Кількість використаних гравцем зміцнень будівель",
"tooltip_DOTA_UNIT_ORDER_RADAR": "Кількість використаних гравцем сканувань",
"tooltip_last_played": "Останній матч зіграний з цим гравцем/героєм",
"tooltip_matches": "Матчі зіграні з/проти цього гравця",
"tooltip_played_as": "Кількість матчів зіграних на цьому герої",
"tooltip_played_with": "Кількість матчів з цим гравцем/героєм в команді",
"tooltip_played_against": "Кількість матчів з цим гравцем/героєм в команді суперника",
"tooltip_tombstone_victim": "Here Lies",
"tooltip_tombstone_killer": "killed by",
"tooltip_win_pct_as": "Відсоток перемог на цьому герої",
"tooltip_win_pct_with": "Відсоток перемог з цім гравцем/героєм",
"tooltip_win_pct_against": "Відсоток перемог проти цього гравця/героя",
"tooltip_lhten": "Останніх ударів за 10 хвилин",
"tooltip_dnten": "Не віддав кріпів за 10 хвилин",
"tooltip_biggest_hit": "Найбільші миттєві пошкодження по герою",
"tooltip_damage_dealt": "Пошкодження зроблені героєм за допомоги здібностей/речей",
"tooltip_damage_received": "Пошкодження отримані героєм за допомоги здібностей/речей",
"tooltip_registered_user": "Зареєстрований користувач",
"tooltip_ability_builds": "Порядок отримання здібностей",
"tooltip_ability_builds_expired": "Для цього матчу, минула здатність оновлення даних. Використайте форму запиту для перезавантаження даних.",
"tooltip_multikill": "Найдовша кількість вбивств поспіль",
"tooltip_killstreak": "Найдовша череда вбивств",
"tooltip_casts": "Кількість разів, що ця річ/здатність була використана",
"tooltip_target_abilities": "How many times each hero was targeted by this hero's abilities",
"tooltip_hits": "Кількість випадків пошкодження героїв, викликаних цією здатністю/речью",
"tooltip_damage": "Кількість пошкоджень викликаних цією здатністю/речью",
"tooltip_autoattack_other": "Авто напад / інше",
"tooltip_estimated_mmr": "MMR приблизно засновано на середньому MMR цього гравця з останніх матчів",
"tooltip_backpack": "Backpack",
"tooltip_others_tracked_deaths": "tracked deaths",
"tooltip_others_track_gold": "gold earned from Track",
"tooltip_others_greevils_gold": "gold earned from Greevil's Greed",
"tooltip_advantage": "Calculated by Wilson score",
"tooltip_winrate_samplesize": "Win rate and sample size",
"tooltip_teamfight_participation": "Amount of participation in teamfights",
"histograms_name": "Гістограма",
"histograms_description": "Percentages indicate win rates for the labeled bin",
"histograms_actions_per_min_description": "Actions performed by player per minute",
"histograms_comeback_description": "Maximum gold disadvantage in a won game",
"histograms_lane_efficiency_pct_description": "Percentage of lane gold (creeps+passive+starting) obtained at 10 minutes",
"histograms_gold_per_min_description": "Gold farmed per minute",
"histograms_hero_damage_description": "Amount of damage dealt to heroes",
"histograms_hero_healing_description": "Amount of health restored to heroes",
"histograms_level_description": "Level achieved in a game",
"histograms_loss_description": "Maximum gold disadvantage in a lost game",
"histograms_pings_description": "Number of times the player pinged the map",
"histograms_stomp_description": "Maximum gold advantage in a won game",
"histograms_stuns_description": "Seconds of disable on heroes",
"histograms_throw_description": "Maximum gold advantage in a lost game",
"histograms_purchase_tpscroll_description": "Town Portal Scroll purchases",
"histograms_xp_per_min_description": "Experience gained per minute",
"trends_name": "Тенденції",
"trends_description": "Cumulative average over last 500 games",
"trends_tooltip_average": "Avg.",
"trends_no_data": "Sorry, no data for this graph",
"xp_reasons_0": "Інші",
"xp_reasons_1": "Hero",
"xp_reasons_2": "Creep",
"xp_reasons_3": "Рошан",
"rankings_description": "",
"rankings_none": "This player is not ranked on any heroes.",
"region_0": "Автоматично",
"region_1": "Захід США",
"region_2": "Схід США",
"region_3": "Люксембурґ",
"region_5": "Сінгапур",
"region_6": "Дубай",
"region_7": "Австралія",
"region_8": "Стокгольм",
"region_9": "Австрія",
"region_10": "Бразилія",
"region_11": "ПАР",
"region_12": "China TC (Шанхай)",
"region_13": "China UC",
"region_14": "Чилі",
"region_15": "Перу",
"region_16": "Індія",
"region_17": "China TC (Ґуандун)",
"region_18": "China TC (Чженьцзян)",
"region_19": "Японія",
"region_20": "China TC (Вухань)",
"region_25": "China UC II",
"vision_expired": "Expired after",
"vision_destroyed": "Destroyed after",
"vision_all_time": "All time",
"vision_placed_observer": "placed Observer at",
"vision_placed_sentry": "placed Sentry at",
"vision_ward_log": "Ward Log",
"chat_category_faction": "Faction",
"chat_category_type": "Type",
"chat_category_target": "Target",
"chat_category_other": "Other",
"chat_filter_text": "Text",
"chat_filter_phrases": "Фрази",
"chat_filter_audio": "Звук",
"chat_filter_spam": "Спам",
"chat_filter_all": "Усі",
"chat_filter_allies": "Союзники",
"chat_filter_spectator": "Глядач",
"chat_filtered": "Відфільтровано",
"advb_almost": "almost",
"advb_over": "over",
"advb_about": "about",
"article_before_consonant_sound": "a",
"article_before_vowel_sound": "an",
"statement_long": "hypothesised",
"statement_shouted": "shouted",
"statement_excited": "exclaimed",
"statement_normal": "said",
"statement_laughed": "laughed",
"question_long": "raised, in need of answers",
"question_shouted": "inquired",
"question_excited": "interrogated",
"question_normal": "asked",
"question_laughed": "laughed mockingly",
"statement_response_long": "advised",
"statement_response_shouted": "responded in frustration",
"statement_response_excited": "exclaimed",
"statement_response_normal": "replied",
"statement_response_laughed": "laughed",
"statement_continued_long": "ranted",
"statement_continued_shouted": "continued furiously",
"statement_continued_excited": "continued",
"statement_continued_normal": "added",
"statement_continued_laughed": "continued",
"question_response_long": "advised",
"question_response_shouted": "asked back, out of frustration",
"question_response_excited": "disputed",
"question_response_normal": "countered",
"question_response_laughed": "laughed",
"question_continued_long": "propositioned",
"question_continued_shouted": "asked furiously",
"question_continued_excited": "lovingly asked",
"question_continued_normal": "asked",
"question_continued_laughed": "asked joyfully",
"hero_disclaimer_pro": "Data from professional matches",
"hero_disclaimer_public": "Data from public matches",
"hero_duration_x_axis": "Minutes",
"top_tower": "Top Tower",
"bot_tower": "Bottom Tower",
"mid_tower": "Mid Tower",
"top_rax": "Top Barracks",
"bot_rax": "Bottom Barracks",
"mid_rax": "Mid Barracks",
"tier1": "Tier 1",
"tier2": "Tier 2",
"tier3": "Tier 3",
"tier4": "Tier 4",
"show_consumables_items": "Show consumables",
"activated": "Activated",
"rune": "Rune",
"placement": "Placement",
"exclude_turbo_matches": "Exclude Turbo matches",
"scenarios_subtitle": "Explore win rates of combinations of factors that happen in matches",
"scenarios_info": "Data compiled from matches in the last {0} weeks",
"scenarios_item_timings": "Item Timings",
"scenarios_misc": "Misc",
"scenarios_time": "Time",
"scenarios_item": "Item",
"scenarios_game_duration": "Game Duration",
"scenarios_scenario": "Scenario",
"scenarios_first_blood": "Team drew First Blood",
"scenarios_courier_kill": "Team sniped the enemy courier before the 3-minute mark",
"scenarios_pos_chat_1min": "Team all chatted positive words before the 1-minute mark",
"scenarios_neg_chat_1min": "Team all chatted negative words before the 1-minute mark",
"gosu_default": "Get personal recommendations",
"gosu_benchmarks": "Get detailed benchmarks for your hero, lane and role",
"gosu_performances": "Get your map control performance",
"gosu_laning": "Get why you missed last hits",
"gosu_combat": "Get why kills attempts were unsuccessful",
"gosu_farm": "Get why you missed last hits",
"gosu_vision": "Get how many heroes were killed under your wards",
"gosu_actions": "Get your lost time from mouse usage vs hotkeys",
"gosu_teamfights": "Get who to target during teamfights",
"gosu_analysis": "Get your real MMR bracket",
"back2Top": "Back to Top",
"activity_subtitle": "Click on a day for detailed information"
} | odota/web/src/lang/uk-UA.json/0 | {
"file_path": "odota/web/src/lang/uk-UA.json",
"repo_id": "odota",
"token_count": 30175
} | 272 |
{
"command": "SELECT",
"rowCount": 116,
"oid": null,
"rows": [
{
"hero_id": 14,
"games": 44316,
"pickrate": 0.438390313390313,
"winrate": 0.522362126545717
},
{
"hero_id": 74,
"games": 27551,
"pickrate": 0.272544713516936,
"winrate": 0.493085550433741
},
{
"hero_id": 67,
"games": 24561,
"pickrate": 0.242966524216524,
"winrate": 0.567485037254183
},
{
"hero_id": 7,
"games": 23709,
"pickrate": 0.234538224121557,
"winrate": 0.505588595048294
},
{
"hero_id": 121,
"games": 23519,
"pickrate": 0.232658673630896,
"winrate": 0.481610612696118
},
{
"hero_id": 22,
"games": 23168,
"pickrate": 0.229186451408674,
"winrate": 0.56824067679558
},
{
"hero_id": 35,
"games": 21898,
"pickrate": 0.216623140234251,
"winrate": 0.482418485706457
},
{
"hero_id": 17,
"games": 21241,
"pickrate": 0.210123852484964,
"winrate": 0.498846570312132
},
{
"hero_id": 42,
"games": 20915,
"pickrate": 0.206898939537828,
"winrate": 0.581400908438919
},
{
"hero_id": 44,
"games": 20852,
"pickrate": 0.206275720164609,
"winrate": 0.495300211010934
},
{
"hero_id": 32,
"games": 19855,
"pickrate": 0.196413026274137,
"winrate": 0.587257617728532
},
{
"hero_id": 5,
"games": 19785,
"pickrate": 0.195720560303894,
"winrate": 0.533737680060652
},
{
"hero_id": 2,
"games": 17423,
"pickrate": 0.172354779993669,
"winrate": 0.534064168053722
},
{
"hero_id": 9,
"games": 17037,
"pickrate": 0.168536324786325,
"winrate": 0.501496742384223
},
{
"hero_id": 21,
"games": 16758,
"pickrate": 0.165776353276353,
"winrate": 0.461391574173529
},
{
"hero_id": 4,
"games": 16669,
"pickrate": 0.164895932257043,
"winrate": 0.51958725778391
},
{
"hero_id": 8,
"games": 16182,
"pickrate": 0.160078347578348,
"winrate": 0.497095538252379
},
{
"hero_id": 70,
"games": 15454,
"pickrate": 0.152876701487813,
"winrate": 0.553060696259868
},
{
"hero_id": 63,
"games": 15221,
"pickrate": 0.150571779044001,
"winrate": 0.510347546153341
},
{
"hero_id": 75,
"games": 14470,
"pickrate": 0.143142608420386,
"winrate": 0.528472702142364
},
{
"hero_id": 26,
"games": 14448,
"pickrate": 0.14292497625831,
"winrate": 0.482696566998893
},
{
"hero_id": 71,
"games": 14131,
"pickrate": 0.139789094650206,
"winrate": 0.536621612058595
},
{
"hero_id": 56,
"games": 14128,
"pickrate": 0.139759417537195,
"winrate": 0.519818799546999
},
{
"hero_id": 104,
"games": 13909,
"pickrate": 0.137592988287433,
"winrate": 0.468401754259832
},
{
"hero_id": 36,
"games": 13832,
"pickrate": 0.136831275720165,
"winrate": 0.535425101214575
},
{
"hero_id": 1,
"games": 13697,
"pickrate": 0.135495805634695,
"winrate": 0.519748850113164
},
{
"hero_id": 6,
"games": 13480,
"pickrate": 0.133349161126939,
"winrate": 0.521884272997033
},
{
"hero_id": 99,
"games": 13460,
"pickrate": 0.133151313706869,
"winrate": 0.508766716196137
},
{
"hero_id": 41,
"games": 13193,
"pickrate": 0.13051005064894,
"winrate": 0.469415599181384
},
{
"hero_id": 34,
"games": 12853,
"pickrate": 0.127146644507756,
"winrate": 0.468606550999767
},
{
"hero_id": 27,
"games": 12635,
"pickrate": 0.124990107628997,
"winrate": 0.527107241788682
},
{
"hero_id": 12,
"games": 12459,
"pickrate": 0.123249050332384,
"winrate": 0.489445380849185
},
{
"hero_id": 114,
"games": 12269,
"pickrate": 0.121369499841722,
"winrate": 0.454641780096177
},
{
"hero_id": 11,
"games": 12025,
"pickrate": 0.118955761316872,
"winrate": 0.445072765072765
},
{
"hero_id": 23,
"games": 11340,
"pickrate": 0.112179487179487,
"winrate": 0.465520282186949
},
{
"hero_id": 20,
"games": 11134,
"pickrate": 0.11014165875277,
"winrate": 0.544278785701455
},
{
"hero_id": 93,
"games": 11029,
"pickrate": 0.109102959797404,
"winrate": 0.473841690089763
},
{
"hero_id": 106,
"games": 10551,
"pickrate": 0.10437440645774,
"winrate": 0.475784285849683
},
{
"hero_id": 31,
"games": 10217,
"pickrate": 0.101070354542577,
"winrate": 0.522462562396007
},
{
"hero_id": 119,
"games": 10119,
"pickrate": 0.100100902184236,
"winrate": 0.499752940013835
},
{
"hero_id": 84,
"games": 10062,
"pickrate": 0.099537037037037,
"winrate": 0.508944543828265
},
{
"hero_id": 110,
"games": 9768,
"pickrate": 0.0966286799620133,
"winrate": 0.516482391482392
},
{
"hero_id": 86,
"games": 9375,
"pickrate": 0.0927409781576448,
"winrate": 0.4496
},
{
"hero_id": 73,
"games": 8894,
"pickrate": 0.0879827477049699,
"winrate": 0.508769957274567
},
{
"hero_id": 25,
"games": 8251,
"pickrate": 0.0816219531497309,
"winrate": 0.414374015270876
},
{
"hero_id": 30,
"games": 7606,
"pickrate": 0.075241373852485,
"winrate": 0.475940047331054
},
{
"hero_id": 48,
"games": 7302,
"pickrate": 0.0722340930674264,
"winrate": 0.498082717063818
},
{
"hero_id": 59,
"games": 7198,
"pickrate": 0.0712052864830643,
"winrate": 0.47707696582384
},
{
"hero_id": 47,
"games": 7007,
"pickrate": 0.0693158436213992,
"winrate": 0.465249036677608
},
{
"hero_id": 101,
"games": 7004,
"pickrate": 0.0692861665083887,
"winrate": 0.479011993146773
},
{
"hero_id": 58,
"games": 6674,
"pickrate": 0.0660216840772396,
"winrate": 0.478423733892718
},
{
"hero_id": 19,
"games": 6484,
"pickrate": 0.064142133586578,
"winrate": 0.415484268969772
},
{
"hero_id": 96,
"games": 6448,
"pickrate": 0.0637860082304527,
"winrate": 0.563895781637717
},
{
"hero_id": 64,
"games": 6372,
"pickrate": 0.063034188034188,
"winrate": 0.490269930947897
},
{
"hero_id": 81,
"games": 6363,
"pickrate": 0.0629451566951567,
"winrate": 0.554455445544555
},
{
"hero_id": 18,
"games": 6266,
"pickrate": 0.0619855967078189,
"winrate": 0.481487392275774
},
{
"hero_id": 40,
"games": 6147,
"pickrate": 0.0608084045584046,
"winrate": 0.473889702293802
},
{
"hero_id": 69,
"games": 6138,
"pickrate": 0.0607193732193732,
"winrate": 0.434506353861193
},
{
"hero_id": 85,
"games": 6005,
"pickrate": 0.0594036878759101,
"winrate": 0.54571190674438
},
{
"hero_id": 88,
"games": 6001,
"pickrate": 0.0593641183918962,
"winrate": 0.493751041493084
},
{
"hero_id": 95,
"games": 5974,
"pickrate": 0.0590970243748022,
"winrate": 0.470371610311349
},
{
"hero_id": 39,
"games": 5961,
"pickrate": 0.0589684235517569,
"winrate": 0.462338533803053
},
{
"hero_id": 62,
"games": 5662,
"pickrate": 0.0560106046217157,
"winrate": 0.440657011656658
},
{
"hero_id": 94,
"games": 5632,
"pickrate": 0.0557138334916113,
"winrate": 0.461292613636364
},
{
"hero_id": 45,
"games": 5552,
"pickrate": 0.0549224438113327,
"winrate": 0.461455331412104
},
{
"hero_id": 53,
"games": 5506,
"pickrate": 0.0544673947451725,
"winrate": 0.403196512895024
},
{
"hero_id": 49,
"games": 5505,
"pickrate": 0.054457502374169,
"winrate": 0.500090826521344
},
{
"hero_id": 28,
"games": 5498,
"pickrate": 0.0543882557771447,
"winrate": 0.478719534376137
},
{
"hero_id": 100,
"games": 5209,
"pickrate": 0.0515293605571383,
"winrate": 0.445382990977155
},
{
"hero_id": 68,
"games": 5129,
"pickrate": 0.0507379708768598,
"winrate": 0.52115422109573
},
{
"hero_id": 109,
"games": 4866,
"pickrate": 0.048136277302944,
"winrate": 0.534319769831484
},
{
"hero_id": 10,
"games": 4858,
"pickrate": 0.0480571383349161,
"winrate": 0.459036640592837
},
{
"hero_id": 16,
"games": 4764,
"pickrate": 0.0471272554605888,
"winrate": 0.442905121746432
},
{
"hero_id": 37,
"games": 4681,
"pickrate": 0.0463061886672998,
"winrate": 0.527237769707327
},
{
"hero_id": 97,
"games": 4675,
"pickrate": 0.0462468344412789,
"winrate": 0.475935828877005
},
{
"hero_id": 112,
"games": 4574,
"pickrate": 0.0452477049699272,
"winrate": 0.482728465238303
},
{
"hero_id": 54,
"games": 4545,
"pickrate": 0.0449608262108262,
"winrate": 0.442684268426843
},
{
"hero_id": 82,
"games": 4509,
"pickrate": 0.0446047008547008,
"winrate": 0.52051452650255
},
{
"hero_id": 51,
"games": 4412,
"pickrate": 0.0436451408673631,
"winrate": 0.501133272892112
},
{
"hero_id": 87,
"games": 4405,
"pickrate": 0.0435758942703387,
"winrate": 0.459704880817253
},
{
"hero_id": 83,
"games": 4392,
"pickrate": 0.0434472934472934,
"winrate": 0.525273224043716
},
{
"hero_id": 105,
"games": 4155,
"pickrate": 0.0411028015194682,
"winrate": 0.450782190132371
},
{
"hero_id": 120,
"games": 4051,
"pickrate": 0.040073994935106,
"winrate": 0.432238953344853
},
{
"hero_id": 33,
"games": 4047,
"pickrate": 0.0400344254510921,
"winrate": 0.494687422782308
},
{
"hero_id": 98,
"games": 4012,
"pickrate": 0.0396881924659702,
"winrate": 0.448404785643071
},
{
"hero_id": 29,
"games": 3895,
"pickrate": 0.0385307850585628,
"winrate": 0.488831835686778
},
{
"hero_id": 72,
"games": 3855,
"pickrate": 0.0381350902184236,
"winrate": 0.41219195849546
},
{
"hero_id": 46,
"games": 3644,
"pickrate": 0.0360477999366888,
"winrate": 0.418221734357849
},
{
"hero_id": 61,
"games": 3536,
"pickrate": 0.0349794238683128,
"winrate": 0.486425339366516
},
{
"hero_id": 50,
"games": 3406,
"pickrate": 0.0336934156378601,
"winrate": 0.474163241338814
},
{
"hero_id": 76,
"games": 3385,
"pickrate": 0.033485675846787,
"winrate": 0.43397341211226
},
{
"hero_id": 108,
"games": 3350,
"pickrate": 0.0331394428616651,
"winrate": 0.510746268656716
},
{
"hero_id": 90,
"games": 3093,
"pickrate": 0.0305971035137702,
"winrate": 0.469770449401875
},
{
"hero_id": 57,
"games": 3057,
"pickrate": 0.0302409781576448,
"winrate": 0.481190709846255
},
{
"hero_id": 3,
"games": 2832,
"pickrate": 0.0280151946818613,
"winrate": 0.455861581920904
},
{
"hero_id": 102,
"games": 2614,
"pickrate": 0.0258586578031022,
"winrate": 0.523335883703137
},
{
"hero_id": 13,
"games": 2410,
"pickrate": 0.0238406141183919,
"winrate": 0.395435684647303
},
{
"hero_id": 80,
"games": 2315,
"pickrate": 0.0229008388730611,
"winrate": 0.339092872570194
},
{
"hero_id": 78,
"games": 2294,
"pickrate": 0.022693099081988,
"winrate": 0.511333914559721
},
{
"hero_id": 113,
"games": 2293,
"pickrate": 0.0226832067109845,
"winrate": 0.478412559965111
},
{
"hero_id": 107,
"games": 2280,
"pickrate": 0.0225546058879392,
"winrate": 0.453508771929825
},
{
"hero_id": 15,
"games": 2107,
"pickrate": 0.0208432257043368,
"winrate": 0.424774560987186
},
{
"hero_id": 103,
"games": 2075,
"pickrate": 0.0205266698322254,
"winrate": 0.511325301204819
},
{
"hero_id": 111,
"games": 2035,
"pickrate": 0.0201309749920861,
"winrate": 0.461425061425061
},
{
"hero_id": 79,
"games": 2022,
"pickrate": 0.0200023741690408,
"winrate": 0.477250247279921
},
{
"hero_id": 60,
"games": 1877,
"pickrate": 0.0185679803735359,
"winrate": 0.46723494938732
},
{
"hero_id": 43,
"games": 1675,
"pickrate": 0.0165697214308325,
"winrate": 0.423283582089552
},
{
"hero_id": 52,
"games": 1672,
"pickrate": 0.0165400443178221,
"winrate": 0.449162679425837
},
{
"hero_id": 91,
"games": 1567,
"pickrate": 0.0155013453624565,
"winrate": 0.400765794511806
},
{
"hero_id": 55,
"games": 1356,
"pickrate": 0.0134140550807217,
"winrate": 0.499262536873156
},
{
"hero_id": 65,
"games": 1336,
"pickrate": 0.0132162076606521,
"winrate": 0.413922155688623
},
{
"hero_id": 92,
"games": 1261,
"pickrate": 0.0124742798353909,
"winrate": 0.528152260111023
},
{
"hero_id": 77,
"games": 1220,
"pickrate": 0.0120686926242482,
"winrate": 0.492622950819672
},
{
"hero_id": 89,
"games": 1217,
"pickrate": 0.0120390155112377,
"winrate": 0.453574363188168
},
{
"hero_id": 38,
"games": 1078,
"pickrate": 0.0106639759417537,
"winrate": 0.456400742115028
},
{
"hero_id": 66,
"games": 691,
"pickrate": 0.00683562836340614,
"winrate": 0.451519536903039
}
],
"fields": [
{
"name": "hero_id",
"tableID": 930986209,
"columnID": 3,
"dataTypeID": 23,
"dataTypeSize": 4,
"dataTypeModifier": -1,
"format": "text"
},
{
"name": "games",
"tableID": 0,
"columnID": 0,
"dataTypeID": 20,
"dataTypeSize": 8,
"dataTypeModifier": -1,
"format": "text"
},
{
"name": "pickrate",
"tableID": 0,
"columnID": 0,
"dataTypeID": 701,
"dataTypeSize": 8,
"dataTypeModifier": -1,
"format": "text"
},
{
"name": "winrate",
"tableID": 0,
"columnID": 0,
"dataTypeID": 701,
"dataTypeSize": 8,
"dataTypeModifier": -1,
"format": "text"
}
],
"_parsers": [
null,
null,
null,
null
],
"RowCtor": null,
"rowAsArray": false,
"err": null
} | odota/web/testcafe/cachedAjax/explorer_sql=%0Aselect%20hero_id%20%2C%20%0Ac.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/explorer_sql=%0Aselect%20hero_id%20%2C%20%0Ac.json",
"repo_id": "odota",
"token_count": 7766
} | 273 |
[
{
"match_id": "4096961695",
"start_time": "1535907490",
"hero_id": "",
"score": "10597"
},
{
"match_id": "4110934266",
"start_time": "1536589185",
"hero_id": "",
"score": "9682"
},
{
"match_id": "4097603620",
"start_time": "1535950875",
"hero_id": "",
"score": "9552"
},
{
"match_id": "4105040390",
"start_time": "1536328751",
"hero_id": "",
"score": "9394"
},
{
"match_id": "4097747426",
"start_time": "1535959957",
"hero_id": "",
"score": "9336"
},
{
"match_id": "4107969037",
"start_time": "1536460023",
"hero_id": "",
"score": "9023"
},
{
"match_id": "4096548697",
"start_time": "1535894053",
"hero_id": "",
"score": "8808"
},
{
"match_id": "4105605248",
"start_time": "1536349063",
"hero_id": "",
"score": "8733"
},
{
"match_id": "4095161024",
"start_time": "1535830634",
"hero_id": "",
"score": "8686"
},
{
"match_id": "4098382763",
"start_time": "1535986027",
"hero_id": "",
"score": "8616"
},
{
"match_id": "4094107092",
"start_time": "1535795703",
"hero_id": "",
"score": "8491"
},
{
"match_id": "4093966776",
"start_time": "1535790482",
"hero_id": "",
"score": "8478"
},
{
"match_id": "4111106349",
"start_time": "1536594830",
"hero_id": "",
"score": "8460"
},
{
"match_id": "4094581881",
"start_time": "1535811058",
"hero_id": "",
"score": "8398"
},
{
"match_id": "4109516621",
"start_time": "1536513166",
"hero_id": "",
"score": "8333"
},
{
"match_id": "4104401072",
"start_time": "1536303948",
"hero_id": "",
"score": "8329"
},
{
"match_id": "4107428490",
"start_time": "1536429084",
"hero_id": "",
"score": "8324"
},
{
"match_id": "4103959575",
"start_time": "1536272694",
"hero_id": "",
"score": "8274"
},
{
"match_id": "4095165732",
"start_time": "1535830849",
"hero_id": "",
"score": "8255"
},
{
"match_id": "4095209522",
"start_time": "1535832907",
"hero_id": "",
"score": "8186"
},
{
"match_id": "4108577813",
"start_time": "1536483768",
"hero_id": "",
"score": "8165"
},
{
"match_id": "4111210931",
"start_time": "1536598991",
"hero_id": "",
"score": "8077"
},
{
"match_id": "4107217031",
"start_time": "1536421932",
"hero_id": "",
"score": "8071"
},
{
"match_id": "4108306366",
"start_time": "1536474880",
"hero_id": "",
"score": "8063"
},
{
"match_id": "4104323228",
"start_time": "1536299697",
"hero_id": "",
"score": "8003"
},
{
"match_id": "4100326227",
"start_time": "1536087371",
"hero_id": "",
"score": "7948"
},
{
"match_id": "4103530752",
"start_time": "1536248944",
"hero_id": "",
"score": "7936"
},
{
"match_id": "4107565742",
"start_time": "1536434619",
"hero_id": "",
"score": "7928"
},
{
"match_id": "4097429965",
"start_time": "1535937768",
"hero_id": "",
"score": "7925"
},
{
"match_id": "4093549914",
"start_time": "1535771517",
"hero_id": "",
"score": "7910"
},
{
"match_id": "4093276145",
"start_time": "1535751387",
"hero_id": "",
"score": "7909"
},
{
"match_id": "4103324774",
"start_time": "1536240797",
"hero_id": "",
"score": "7908"
},
{
"match_id": "4104405699",
"start_time": "1536304198",
"hero_id": "",
"score": "7901"
},
{
"match_id": "4099151334",
"start_time": "1536033140",
"hero_id": "",
"score": "7900"
},
{
"match_id": "4110659090",
"start_time": "1536580430",
"hero_id": "",
"score": "7864"
},
{
"match_id": "4093398795",
"start_time": "1535761305",
"hero_id": "",
"score": "7859"
},
{
"match_id": "4109230959",
"start_time": "1536503441",
"hero_id": "",
"score": "7856"
},
{
"match_id": "4111029028",
"start_time": "1536592167",
"hero_id": "",
"score": "7802"
},
{
"match_id": "4108268580",
"start_time": "1536473528",
"hero_id": "",
"score": "7797"
},
{
"match_id": "4096958652",
"start_time": "1535907374",
"hero_id": "",
"score": "7794"
},
{
"match_id": "4111411777",
"start_time": "1536608940",
"hero_id": "",
"score": "7772"
},
{
"match_id": "4107634491",
"start_time": "1536437773",
"hero_id": "",
"score": "7765"
},
{
"match_id": "4097602716",
"start_time": "1535950814",
"hero_id": "",
"score": "7762"
},
{
"match_id": "4109244318",
"start_time": "1536503815",
"hero_id": "",
"score": "7746"
},
{
"match_id": "4104451645",
"start_time": "1536306520",
"hero_id": "",
"score": "7732"
},
{
"match_id": "4106616279",
"start_time": "1536401045",
"hero_id": "",
"score": "7713"
},
{
"match_id": "4103154102",
"start_time": "1536235232",
"hero_id": "",
"score": "7704"
},
{
"match_id": "4110603026",
"start_time": "1536578303",
"hero_id": "",
"score": "7685"
},
{
"match_id": "4096822108",
"start_time": "1535902241",
"hero_id": "",
"score": "7574"
},
{
"match_id": "4109703174",
"start_time": "1536521672",
"hero_id": "",
"score": "7569"
},
{
"match_id": "4105200000",
"start_time": "1536333575",
"hero_id": "",
"score": "7567"
},
{
"match_id": "4096363515",
"start_time": "1535888508",
"hero_id": "",
"score": "7558"
},
{
"match_id": "4094470192",
"start_time": "1535807940",
"hero_id": "",
"score": "7545"
},
{
"match_id": "4100752610",
"start_time": "1536120889",
"hero_id": "",
"score": "7537"
},
{
"match_id": "4101502084",
"start_time": "1536152202",
"hero_id": "",
"score": "7535"
},
{
"match_id": "4107402924",
"start_time": "1536428131",
"hero_id": "",
"score": "7501"
},
{
"match_id": "4095830201",
"start_time": "1535869931",
"hero_id": "",
"score": "7494"
},
{
"match_id": "4101897117",
"start_time": "1536164241",
"hero_id": "",
"score": "7481"
},
{
"match_id": "4105418840",
"start_time": "1536340908",
"hero_id": "",
"score": "7477"
},
{
"match_id": "4099053332",
"start_time": "1536025052",
"hero_id": "",
"score": "7474"
},
{
"match_id": "4094970789",
"start_time": "1535822949",
"hero_id": "",
"score": "7474"
},
{
"match_id": "4106153395",
"start_time": "1536383812",
"hero_id": "",
"score": "7464"
},
{
"match_id": "4110713675",
"start_time": "1536582335",
"hero_id": "",
"score": "7451"
},
{
"match_id": "4103926054",
"start_time": "1536269828",
"hero_id": "",
"score": "7435"
},
{
"match_id": "4111040731",
"start_time": "1536592553",
"hero_id": "",
"score": "7414"
},
{
"match_id": "4107509406",
"start_time": "1536432212",
"hero_id": "",
"score": "7404"
},
{
"match_id": "4109537131",
"start_time": "1536513983",
"hero_id": "",
"score": "7395"
},
{
"match_id": "4104929871",
"start_time": "1536325690",
"hero_id": "",
"score": "7390"
},
{
"match_id": "4111160040",
"start_time": "1536596891",
"hero_id": "",
"score": "7382"
},
{
"match_id": "4096818968",
"start_time": "1535902133",
"hero_id": "",
"score": "7381"
},
{
"match_id": "4107828571",
"start_time": "1536450428",
"hero_id": "",
"score": "7371"
},
{
"match_id": "4109378333",
"start_time": "1536508007",
"hero_id": "",
"score": "7367"
},
{
"match_id": "4107104026",
"start_time": "1536418413",
"hero_id": "",
"score": "7365"
},
{
"match_id": "4105765526",
"start_time": "1536359208",
"hero_id": "",
"score": "7351"
},
{
"match_id": "4108381729",
"start_time": "1536477485",
"hero_id": "",
"score": "7350"
},
{
"match_id": "4096933077",
"start_time": "1535906323",
"hero_id": "",
"score": "7340"
},
{
"match_id": "4097277415",
"start_time": "1535924089",
"hero_id": "",
"score": "7322"
},
{
"match_id": "4098570423",
"start_time": "1535992994",
"hero_id": "",
"score": "7320"
},
{
"match_id": "4108516351",
"start_time": "1536481821",
"hero_id": "",
"score": "7307"
},
{
"match_id": "4104317381",
"start_time": "1536299397",
"hero_id": "",
"score": "7290"
},
{
"match_id": "4103657272",
"start_time": "1536254077",
"hero_id": "",
"score": "7286"
},
{
"match_id": "4099161917",
"start_time": "1536033986",
"hero_id": "",
"score": "7280"
},
{
"match_id": "4104167709",
"start_time": "1536290164",
"hero_id": "",
"score": "7276"
},
{
"match_id": "4095278567",
"start_time": "1535837067",
"hero_id": "",
"score": "7276"
},
{
"match_id": "4095173781",
"start_time": "1535831198",
"hero_id": "",
"score": "7270"
},
{
"match_id": "4103479771",
"start_time": "1536247095",
"hero_id": "",
"score": "7254"
},
{
"match_id": "4094804193",
"start_time": "1535817435",
"hero_id": "",
"score": "7252"
},
{
"match_id": "4105546694",
"start_time": "1536346021",
"hero_id": "",
"score": "7249"
},
{
"match_id": "4109316931",
"start_time": "1536506017",
"hero_id": "",
"score": "7247"
},
{
"match_id": "4105551526",
"start_time": "1536346275",
"hero_id": "",
"score": "7229"
},
{
"match_id": "4108506373",
"start_time": "1536481507",
"hero_id": "",
"score": "7227"
},
{
"match_id": "4098173025",
"start_time": "1535979354",
"hero_id": "",
"score": "7215"
},
{
"match_id": "4109165638",
"start_time": "1536501598",
"hero_id": "",
"score": "7198"
},
{
"match_id": "4097391879",
"start_time": "1535934289",
"hero_id": "",
"score": "7197"
},
{
"match_id": "4107389154",
"start_time": "1536427618",
"hero_id": "",
"score": "7193"
},
{
"match_id": "4105233697",
"start_time": "1536334641",
"hero_id": "",
"score": "7186"
},
{
"match_id": "4099725485",
"start_time": "1536064482",
"hero_id": "",
"score": "7183"
},
{
"match_id": "4102119444",
"start_time": "1536174203",
"hero_id": "",
"score": "7179"
},
{
"match_id": "4108860943",
"start_time": "1536492881",
"hero_id": "",
"score": "7177"
},
{
"match_id": "4100837831",
"start_time": "1536125757",
"hero_id": "",
"score": "7173"
}
] | odota/web/testcafe/cachedAjax/records_duration_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/records_duration_.json",
"repo_id": "odota",
"token_count": 5474
} | 274 |
package pawndex
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"path/filepath"
"strings"
"time"
"github.com/Southclaws/sampctl/pawnpackage"
"github.com/Southclaws/sampctl/versioning"
"github.com/google/go-github/github"
"github.com/pkg/errors"
"go.uber.org/zap"
"gopkg.in/yaml.v2"
)
// Scraper is responsible for taking a repo and checking its contents for the qualifying
// properties of a Pawn Package. This includes the presence of one or more .inc files and optionally
// a pawn.json or pawn.yaml file. If one of these files exists, additional information is extracted.
type Scraper interface {
Scrape(context.Context, string) (*Package, error)
}
type GitHubScraper struct {
GitHub *github.Client
}
func NewGitHubScraper(gh *github.Client) Scraper {
return &GitHubScraper{gh}
}
func (g *GitHubScraper) Scrape(ctx context.Context, name string) (*Package, error) {
splitname := strings.Split(name, "/")
repo, resp, err := g.GitHub.Repositories.Get(ctx, splitname[0], splitname[1])
if err != nil {
return nil, errors.Wrap(err, "failed to get repo metadata from github")
}
if resp.Rate.Remaining < 100 {
time.Sleep(time.Hour)
}
meta := versioning.DependencyMeta{
User: repo.Owner.GetLogin(),
Repo: repo.GetName(),
}
if meta.User == "" || meta.Repo == "" {
return nil, errors.New("repository details empty")
}
var processedPackage Package // the result - a package with some additional metadata
pkg, err := packageFromRepo(repo, meta)
if err != nil {
processedPackage, err = g.findPawnSource(ctx, repo, meta)
if err != nil {
return nil, err
}
} else {
processedPackage = Package{
Package: pkg,
Classification: ClassificationPawnPackage,
}
}
if processedPackage.User == "" {
processedPackage.User = meta.User
}
if processedPackage.Repo == "" {
processedPackage.Repo = meta.Repo
}
if processedPackage.Classification == ClassificationInvalid {
return nil, nil
}
// add some generic info
processedPackage.Stars = repo.GetStargazersCount()
processedPackage.Updated = repo.GetUpdatedAt().Time
processedPackage.Topics = repo.Topics
tags, _, err := g.GitHub.Repositories.ListTags(ctx, meta.User, meta.Repo, nil)
if err != nil {
return nil, errors.Wrap(err, "failed to list repo tags")
}
for _, tag := range tags {
processedPackage.Tags = append(processedPackage.Tags, tag.GetName())
}
return &processedPackage, nil
}
// packageFromRepo attempts to get a package from the given package definition's public repo
func packageFromRepo(
repo *github.Repository,
meta versioning.DependencyMeta,
) (pkg pawnpackage.Package, err error) {
client := http.Client{Timeout: time.Second * 10}
body := bytes.NewBuffer(nil)
request, err := http.NewRequest(http.MethodGet, fmt.Sprintf(
"https://raw.githubusercontent.com/%s/%s/%s/pawn.json",
meta.User, meta.Repo, *repo.DefaultBranch,
), body)
if err != nil {
return
}
resp, err := client.Do(request)
if err != nil {
return
}
if resp.StatusCode == 200 {
var contents []byte
contents, err = ioutil.ReadAll(resp.Body)
if err != nil {
return
}
err = json.Unmarshal(contents, &pkg)
return
}
zap.L().Debug("repo does not contain a pawn.json",
zap.String("meta", meta.String()))
resp, err = http.Get(fmt.Sprintf(
"https://raw.githubusercontent.com/%s/%s/%s/pawn.yaml",
meta.User, meta.Repo, *repo.DefaultBranch,
))
if err != nil {
return
}
if resp.StatusCode == 200 {
var contents []byte
contents, err = ioutil.ReadAll(resp.Body)
if err != nil {
return
}
err = yaml.Unmarshal(contents, &pkg)
return
}
zap.L().Debug("repo does not contain a pawn.yaml",
zap.String("meta", meta.String()))
return pkg, errors.New("package does not point to a valid remote package")
}
func (g *GitHubScraper) findPawnSource(ctx context.Context, repo *github.Repository, meta versioning.DependencyMeta) (pkg Package, err error) {
ref, _, err := g.GitHub.Git.GetRef(ctx, meta.User, meta.Repo,
fmt.Sprintf("heads/%s", repo.GetDefaultBranch()))
if err != nil {
err = errors.Wrap(err, "failed to get HEAD ref from default branch")
return
}
sha := ref.GetObject().GetSHA()
tree, _, err := g.GitHub.Git.GetTree(ctx, meta.User, meta.Repo, sha, true)
if err != nil {
err = errors.Wrap(err, "failed to get git tree")
return
}
pkg = Package{Package: pawnpackage.Package{DependencyMeta: meta}}
for _, file := range tree.Entries {
ext := filepath.Ext(file.GetPath())
if ext == ".inc" || ext == ".pwn" {
if filepath.Dir(file.GetPath()) == "." {
pkg.Classification = ClassificationBarebones
break
} else {
pkg.Classification = ClassificationBuried
// no break, keep searching
}
}
}
return
}
| openmultiplayer/web/app/resources/pawndex/scraper.go/0 | {
"file_path": "openmultiplayer/web/app/resources/pawndex/scraper.go",
"repo_id": "openmultiplayer",
"token_count": 1767
} | 275 |
package authentication
import (
"context"
"fmt"
"time"
"github.com/google/go-github/v28/github"
"github.com/patrickmn/go-cache"
"github.com/pkg/errors"
"github.com/thanhpk/randstr"
"golang.org/x/oauth2"
githuboa "golang.org/x/oauth2/github"
"github.com/openmultiplayer/web/app/resources/user"
"github.com/openmultiplayer/web/internal/config"
)
var _ OAuthProvider = &GitHubProvider{}
var (
ErrStateMismatch = errors.New("state nonce mismatch")
ErrOAuthNoEmail = errors.New("missing email address on OAuth provider account")
)
type GitHubProvider struct {
repo user.Repository
as *State
cache *cache.Cache
oaconf *oauth2.Config
}
func NewGitHubProvider(repo user.Repository, as *State, cfg config.Config) *GitHubProvider {
return &GitHubProvider{
repo: repo,
as: as,
cache: cache.New(10*time.Minute, 20*time.Minute),
oaconf: &oauth2.Config{
ClientID: cfg.GithubClientID,
ClientSecret: cfg.GithubClientSecret,
Scopes: []string{"read:user", "user:email"},
Endpoint: githuboa.Endpoint,
},
}
}
func (p *GitHubProvider) Link() string {
state := randstr.String(16)
//nolint:errcheck // because the key is random, it cannot collide
p.cache.Add(state, struct{}{}, 10*time.Minute)
return p.oaconf.AuthCodeURL(state, oauth2.AccessTypeOffline)
}
// Login is called when the callback URL is hit by a user who has successfully
// authenticated against GitHub. `code` is the query parameter passed back by
// the provider. It is exchanged for a token which is used to look up the user
// in our DB or create their account if it doesn't exist.
func (p *GitHubProvider) Login(ctx context.Context, state, code string) (*user.User, error) {
// check if the state is one this API sent out.
if _, ok := p.cache.Get(state); !ok {
return nil, ErrStateMismatch
}
// Exchange the code for a token, this makes an API call to GitHub.
token, err := p.oaconf.Exchange(ctx, code)
if err != nil {
return nil, errors.Wrap(err, "failed to perform OAuth2 token exchange")
}
// Use the token to create a GitHub client and request the user's account.
client := github.NewClient(oauth2.NewClient(ctx, oauth2.StaticTokenSource(&oauth2.Token{AccessToken: token.AccessToken})))
githubUser, _, err := client.Users.Get(ctx, "")
if err != nil {
return nil, errors.Wrap(err, "failed to get GitHub user data")
}
email := githubUser.GetEmail()
if email == "" {
// this should probably never happen!
return nil, errors.New("email missing from GitHub account data")
}
u, err := p.repo.GetUserByEmail(ctx, email, false)
if err != nil {
return nil, err
}
if u != nil {
// This user account may exist but not be linked to GitHub yet.
if u.Github == nil {
if err := p.repo.LinkGitHub(ctx, u.ID, fmt.Sprint(githubUser.GetID()), githubUser.GetLogin(), githubUser.GetEmail()); err != nil {
return nil, errors.Wrap(err, "failed to create user GitHub relationship")
}
}
return u, err
}
// Check if this request came from a user who was already logged in. If they
// are, get their existing account. If not, create a new account.
u, err = p.as.GetOrCreateFromContext(ctx, email, "GITHUB", githubUser.GetLogin())
if err != nil {
return nil, err
}
if err := p.repo.LinkGitHub(ctx, u.ID, fmt.Sprint(githubUser.GetID()), githubUser.GetLogin(), githubUser.GetEmail()); err != nil {
return nil, errors.Wrap(err, "failed to create user GitHub relationship")
}
return u, nil
}
| openmultiplayer/web/app/services/authentication/github.go/0 | {
"file_path": "openmultiplayer/web/app/services/authentication/github.go",
"repo_id": "openmultiplayer",
"token_count": 1237
} | 276 |
package github
import (
"net/http"
"github.com/go-chi/chi"
"github.com/pkg/errors"
"github.com/openmultiplayer/web/app/services/authentication"
"github.com/openmultiplayer/web/internal/web"
)
type service struct {
auth *authentication.State
oa2 *authentication.GitHubProvider
}
func New(auth *authentication.State, oa2 *authentication.GitHubProvider) *chi.Mux {
rtr := chi.NewRouter()
svc := service{auth, oa2}
rtr.Get("/link", http.HandlerFunc(svc.link))
rtr.Post("/callback", http.HandlerFunc(svc.callback))
return rtr
}
type Link struct {
URL string `json:"url"`
}
func (s *service) link(w http.ResponseWriter, r *http.Request) {
web.Write(w, Link{URL: s.oa2.Link()}) //nolint:errcheck
}
type Callback struct {
State string `json:"state"`
Code string `json:"code"`
}
func (s *service) callback(w http.ResponseWriter, r *http.Request) {
var payload Callback
if err := web.DecodeBody(r, &payload); err != nil {
web.StatusBadRequest(w, errors.Wrap(err, "failed to decode callback payload"))
return
}
user, err := s.oa2.Login(r.Context(), payload.State, payload.Code)
if err != nil {
web.StatusBadRequest(w, err)
return
}
s.auth.EncodeAuthCookie(w, *user)
web.Write(w, user) //nolint:errcheck
}
| openmultiplayer/web/app/transports/api/auth/github/api.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/auth/github/api.go",
"repo_id": "openmultiplayer",
"token_count": 479
} | 277 |
package servers
import (
"net/http"
"github.com/go-chi/chi"
"github.com/pkg/errors"
"github.com/openmultiplayer/web/internal/db"
"github.com/openmultiplayer/web/internal/web"
)
func (s *service) get(w http.ResponseWriter, r *http.Request) {
// This used to be for getting servers from database directly
// result, err := s.storer.GetByAddress(r.Context(), chi.URLParam(r, "address"))
// Let's use cached servers, instead of getting them directly from database
// This way we can save a lot DB processing
result, err := s.storer.GetByAddressCached(r.Context(), chi.URLParam(r, "address"))
if err != nil {
if errors.Is(err, db.ErrNotFound) {
web.StatusNotFound(w, err)
} else {
web.StatusInternalServerError(w, errors.Wrap(err, "failed to get server"))
}
return
}
w.Header().Add("Content-Type", "application/json")
web.Write(w, result)
}
| openmultiplayer/web/app/transports/api/servers/h_get.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/servers/h_get.go",
"repo_id": "openmultiplayer",
"token_count": 310
} | 278 |
---
title: Changelog
description: open.mp development progress and changelog.
---
## **[v1.2.0.2670](https://github.com/openmultiplayer/open.mp/releases/tag/v1.2.0.2670) (Latest)**
We encourage every open.mp server to update to this version. There has been not only noticeable performance improvements, but also **critical security fixes**.
### Server
**Added:**
- New config variables to set banners and discord invite link to be shown in [open.mp launcher](https://github.com/openmultiplayer/launcher/releases/latest).
- New config variable for join messages. (`logging.log_connection_messages`)
- New config variable for animation validation. (`game.validate_animations`)
- New definition to allow mixed spelling functions in your code. (`#define MIXED_SPELLINGS`)
**Fixes:**
- A few security fixes.
- Announcer system now uses IPv4 by default, instead of using IPv6 when it's available.
- Fix `Get(Player)ObjectMaterial(Text)` returning colours in the wrong format and modelid.
- Fix `Get(Player)Gravity` returning integer instead of float.
- Validate damage reasons (weapons) in various places.
- Synchronize bans so multiple players are banned at once if needed.
<br />
<hr />
## [v1.1.0.2612](https://github.com/openmultiplayer/open.mp/releases/tag/v1.1.0.2612)
<details>
<summary>Click here</summary>
open.mp is now out of RC phase, and we are happy to announce we are finally stable enough to go down the consistent development road. with v1.1.0.2612, we fixed a lot of bugs and issues, and resolved so many behavior differences. so make sure you update to latest builds and run your server smoothly.
open.mp launcher is finally out, you can now reliably browse servers, select a server you want to play on, and join it!
Bringing a lot of new features into it, you're going to have a much better experience compared to old experience you always had to have with samp launcher.
It can be found at https://github.com/openmultiplayer/launcher/releases
### Server
**Added:**
- x64 version of omp-server.
- Add `.so` to plugin names automatically.
**Changes:**
- Return `estimatedTime` in `Move(Player)Object` functions.
**Fixes:**
- Fixed `GetVehicleLastDriver` returning 0 when invalid `vehicleid` is passed.
</details>
<br />
<hr />
## [RC2](https://github.com/openmultiplayer/open.mp/releases/tag/v1-RC2)
<details>
<summary>Click here</summary>
Release Candidate 2 (RC2) of the open.mp server.
### Server
**New functions:**
- [GetPlayerMarkerForPlayer](scripting/functions/GetPlayerMarkerForPlayer)
**Deprecated functions:**
- GetPlayer3DTextLabelVirtualW
- SetPlayer3DTextLabelDrawDist
- GetPlayer3DTextLabelDrawDist
- SendClientMessagef
- GameTextForPlayerf
- SendPlayerMessageToPlayerf
- SendClientMessageToAllf
- GameTextForAllf
- SendPlayerMessageToAllf
- SendRconCommandf
- AllowAdminTeleport
- GetPlayerPoolSize
- GetVehiclePoolSize
- GetActorPoolSize
- GetServerVarAsString
- GetServerVarAsFloat
- TextDrawColor
- TextDrawBoxColor
- TextDrawBackgroundColor
- TextDrawSetPreviewVehCol
- PlayerTextDrawColor
- PlayerTextDrawBoxColor
- PlayerTextDrawBackgroundColor
- PlayerTextDrawSetPreviewVehCol
- TextDrawGetColor
- TextDrawGetBoxColor
- TextDrawGetBackgroundColor
- TextDrawGetPreviewVehCol
- PlayerTextDrawGetColor
- PlayerTextDrawGetBoxColor
- PlayerTextDrawGetBackgroundCol
- PlayerTextDrawGetPreviewVehCol
- db_num_rows
- db_get_mem_handle
- db_get_result_mem_handle
- SelectObject
- EditObject
- EditPlayerObject
- CancelEdit
- SetObjectsDefaultCameraCol
- SetObjectNoCameraCol
- IsObjectNoCameraCol
- SetPlayerObjectNoCameraCol
- IsPlayerObjectNoCameraCol
- GetPlayerCameraTargetPlayerObj
- GetObjectTarget
- GetPlayerObjectTarget
- GetPlayerDialog
- fmkdir
- dcreate
- GetVehicleTower
- ChangeVehicleColor
**Fixes:**
- Fix `.so` being required on Linux legacy plugins.
- Attached objects are correctly shown to other players.
- Fix a crash when loading invalid pawn memory.
</details>
<br />
<hr />
## [RC1](https://github.com/openmultiplayer/open.mp/releases/tag/v1-RC1)
<details>
<summary>Click here</summary>
[Release Candidate 1 (RC1)](https://www.open.mp/blog/release-candidate-1) of the open.mp server! We're now out of beta.
### Server
**Added:**
- Added `{Float,_}:...` to `AddMenuItem`, `Create3DTextLabel`, `CreateMenu`, `CreatePlayer3DTextLabel`, `CreatePlayerTextDraw`, `GameTextForAll`, `GameTextForPlayer`, `PlayerTextDrawSetString`, `SendClientMessage`, `SendClientMessageToAll`, `SendRconCommand`, `SetMenuColumnHeader`, `SetObjectMaterialText`, `SetPlayerObjectMaterialText`, `SetPVarString`, `SetSVarString`, `ShowPlayerDialog`, `TextDrawCreate`, `TextDrawSetString`, `Update3DTextLabelText`, `UpdatePlayer3DTextLabelText` functions. They all format now.
**Fixes:**
- Memory reduction.
</details>
<br />
<hr />
## [Beta v0.0.11.2331](https://github.com/openmultiplayer/open.mp/releases/tag/v0.0.11.2331)
<details>
<summary>Click here</summary>
### Server
**New functions:**
- [TogglePlayerWidescreen](scripting/functions/TogglePlayerWidescreen)
- [IsPlayerWidescreenToggled](scripting/functions/IsPlayerWidescreenToggled)
- [GetSpawnInfo](scripting/functions/GetSpawnInfo)
- [GetPlayerSkillLevel](scripting/functions/GetPlayerSkillLevel)
- [GetPlayerWeather](scripting/functions/GetPlayerWeather)
- [IsPlayerCheckpointActive](scripting/functions/IsPlayerCheckpointActive)
- [GetPlayerCheckpoint](scripting/functions/GetPlayerCheckpoint)
- [IsPlayerRaceCheckpointActive](scripting/functions/IsPlayerRaceCheckpointActive)
- [GetPlayerRaceCheckpoint](scripting/functions/GetPlayerRaceCheckpoint)
- [GetPlayerWorldBounds](scripting/functions/GetPlayerWorldBounds)
- [IsPlayerInModShop](scripting/functions/IsPlayerInModShop)
- [GetPlayerSirenState](scripting/functions/GetPlayerSirenState)
- [GetPlayerLandingGearState](scripting/functions/GetPlayerLandingGearState)
- [GetPlayerHydraReactorAngle](scripting/functions/GetPlayerHydraReactorAngle)
- [GetPlayerTrainSpeed](scripting/functions/GetPlayerTrainSpeed)
- [GetPlayerZAim](scripting/functions/GetPlayerZAim)
- [GetPlayerSurfingOffsets](scripting/functions/GetPlayerSurfingOffsets)
- [GetPlayerRotationQuat](scripting/functions/GetPlayerRotationQuat)
- [GetPlayerDialogID](scripting/functions/GetPlayerDialogID)
- [GetPlayerSpectateID](scripting/functions/GetPlayerSpectateID)
- [GetPlayerSpectateType](scripting/functions/GetPlayerSpectateType)
- [GetPlayerRawIp](scripting/functions/GetPlayerRawIp)
- [SetPlayerGravity](scripting/functions/SetPlayerGravity)
- [GetPlayerGravity](scripting/functions/GetPlayerGravity)
- [SetPlayerAdmin](scripting/functions/SetPlayerAdmin)
- [IsPlayerSpawned](scripting/functions/IsPlayerSpawned)
- [IsPlayerControllable](scripting/functions/IsPlayerControllable)
- [IsPlayerCameraTargetEnabled](scripting/functions/IsPlayerCameraTargetEnabled)
- [TogglePlayerGhostMode](scripting/functions/TogglePlayerGhostMode)
- [GetPlayerGhostMode](scripting/functions/GetPlayerGhostMode)
- [GetPlayerBuildingsRemoved](scripting/functions/GetPlayerBuildingsRemoved)
- [GetPlayerAttachedObject](scripting/functions/GetPlayerAttachedObject)
- [SendClientMessagef](scripting/functions/SendClientMessagef)
- [GameTextForPlayerf](scripting/functions/GameTextForPlayerf)
- [SendPlayerMessageToPlayerf](scripting/functions/SendPlayerMessageToPlayerf)
- [RemovePlayerWeapon](scripting/functions/RemovePlayerWeapon)
- [HidePlayerDialog](scripting/functions/HidePlayerDialog)
- [IsPlayerUsingOfficialClient](scripting/functions/IsPlayerUsingOfficialClient)
- [AllowPlayerTeleport](scripting/functions/AllowPlayerTeleport)
- [IsPlayerTeleportAllowed](scripting/functions/IsPlayerTeleportAllowed)
- [AllowPlayerWeapons](scripting/functions/AllowPlayerWeapons)
- [ArePlayerWeaponsAllowed](scripting/functions/ArePlayerWeaponsAllowed)
- [IsValidTextDraw](scripting/functions/IsValidTextDraw)
- [IsTextDrawVisibleForPlayer](scripting/functions/IsTextDrawVisibleForPlayer)
- [TextDrawGetString](scripting/functions/TextDrawGetString)
- [TextDrawSetPos](scripting/functions/TextDrawSetPos)
- [TextDrawGetLetterSize](scripting/functions/TextDrawGetLetterSize)
- [TextDrawGetTextSize](scripting/functions/TextDrawGetTextSize)
- [TextDrawGetPos](scripting/functions/TextDrawGetPos)
- [TextDrawGetColor](scripting/functions/TextDrawGetColor)
- [TextDrawGetBoxColor](scripting/functions/TextDrawGetBoxColor)
- [TextDrawGetBackgroundColor](scripting/functions/TextDrawGetBackgroundColor)
- [TextDrawGetShadow](scripting/functions/TextDrawGetShadow)
- [TextDrawGetOutline](scripting/functions/TextDrawGetOutline)
- [TextDrawGetFont](scripting/functions/TextDrawGetFont)
- [TextDrawIsBox](scripting/functions/TextDrawIsBox)
- [TextDrawIsProportional](scripting/functions/TextDrawIsProportional)
- [TextDrawIsSelectable](scripting/functions/TextDrawIsSelectable)
- [TextDrawGetAlignment](scripting/functions/TextDrawGetAlignment)
- [TextDrawGetPreviewModel](scripting/functions/TextDrawGetPreviewModel)
- [TextDrawGetPreviewRot](scripting/functions/TextDrawGetPreviewRot)
- [TextDrawGetPreviewVehCol](scripting/functions/TextDrawGetPreviewVehCol)
- [TextDrawSetStringForPlayer](scripting/functions/TextDrawSetStringForPlayer)
- [IsValidPlayerTextDraw](scripting/functions/IsValidPlayerTextDraw)
- [IsPlayerTextDrawVisible](scripting/functions/IsPlayerTextDrawVisible)
- [PlayerTextDrawGetString](scripting/functions/PlayerTextDrawGetString)
- [PlayerTextDrawSetPos](scripting/functions/PlayerTextDrawSetPos)
- [PlayerTextDrawGetLetterSize](scripting/functions/PlayerTextDrawGetLetterSize)
- [PlayerTextDrawGetTextSize](scripting/functions/PlayerTextDrawGetTextSize)
- [PlayerTextDrawGetPos](scripting/functions/PlayerTextDrawGetPos)
- [PlayerTextDrawGetColor](scripting/functions/PlayerTextDrawGetColor)
- [PlayerTextDrawGetBoxColor](scripting/functions/PlayerTextDrawGetBoxColor)
- [PlayerTextDrawGetBackgroundCol](scripting/functions/PlayerTextDrawGetBackgroundCol)
- [PlayerTextDrawGetShadow](scripting/functions/PlayerTextDrawGetShadow)
- [PlayerTextDrawGetOutline](scripting/functions/PlayerTextDrawGetOutline)
- [PlayerTextDrawGetFont](scripting/functions/PlayerTextDrawGetFont)
- [PlayerTextDrawIsBox](scripting/functions/PlayerTextDrawIsBox)
- [PlayerTextDrawIsProportional](scripting/functions/PlayerTextDrawIsProportional)
- [PlayerTextDrawIsSelectable](scripting/functions/PlayerTextDrawIsSelectable)
- [PlayerTextDrawGetAlignment](scripting/functions/PlayerTextDrawGetAlignment)
- [PlayerTextDrawGetPreviewModel](scripting/functions/PlayerTextDrawGetPreviewModel)
- [PlayerTextDrawGetPreviewRot](scripting/functions/PlayerTextDrawGetPreviewRot)
- [PlayerTextDrawGetPreviewVehCol](scripting/functions/PlayerTextDrawGetPreviewVehCol)
- [IsValidGangZone](scripting/functions/IsValidGangZone)
- [IsPlayerInGangZone](scripting/functions/IsPlayerInGangZone)
- [IsGangZoneVisibleForPlayer](scripting/functions/IsGangZoneVisibleForPlayer)
- [GangZoneGetColorForPlayer](scripting/functions/GangZoneGetColorForPlayer)
- [GangZoneGetFlashColorForPlayer](scripting/functions/GangZoneGetFlashColorForPlayer)
- [IsGangZoneFlashingForPlayer](scripting/functions/IsGangZoneFlashingForPlayer)
- [GangZoneGetPos](scripting/functions/GangZoneGetPos)
- [UseGangZoneCheck](scripting/functions/UseGangZoneCheck)
- [CreatePlayerGangZone](scripting/functions/CreatePlayerGangZone)
- [PlayerGangZoneDestroy](scripting/functions/PlayerGangZoneDestroy)
- [PlayerGangZoneShow](scripting/functions/PlayerGangZoneShow)
- [PlayerGangZoneHide](scripting/functions/PlayerGangZoneHide)
- [PlayerGangZoneFlash](scripting/functions/PlayerGangZoneFlash)
- [PlayerGangZoneStopFlash](scripting/functions/PlayerGangZoneStopFlash)
- [IsValidPlayerGangZone](scripting/functions/IsValidPlayerGangZone)
- [IsPlayerInPlayerGangZone](scripting/functions/IsPlayerInPlayerGangZone)
- [IsPlayerGangZoneVisible](scripting/functions/IsPlayerGangZoneVisible)
- [PlayerGangZoneGetColor](scripting/functions/PlayerGangZoneGetColor)
- [PlayerGangZoneGetFlashColor](scripting/functions/PlayerGangZoneGetFlashColor)
- [IsPlayerGangZoneFlashing](scripting/functions/IsPlayerGangZoneFlashing)
- [PlayerGangZoneGetPos](scripting/functions/PlayerGangZoneGetPos)
- [UsePlayerGangZoneCheck](scripting/functions/UsePlayerGangZoneCheck)
- [GetObjectDrawDistance](scripting/functions/GetObjectDrawDistance)
- [GetObjectMoveSpeed](scripting/functions/GetObjectMoveSpeed)
- [GetObjectTarget](scripting/functions/GetObjectTarget)
- [GetObjectMovingTargetPos](scripting/functions/GetObjectMovingTargetPos)
- [GetObjectMovingTargetRot](scripting/functions/GetObjectMovingTargetRot)
- [GetObjectAttachedData](scripting/functions/GetObjectAttachedData)
- [GetObjectAttachedOffset](scripting/functions/GetObjectAttachedOffset)
- [GetObjectSyncRotation](scripting/functions/GetObjectSyncRotation)
- [IsObjectMaterialSlotUsed](scripting/functions/IsObjectMaterialSlotUsed)
- [GetObjectMaterial](scripting/functions/GetObjectMaterial)
- [GetObjectMaterialText](scripting/functions/GetObjectMaterialText)
- [IsObjectNoCameraCol](scripting/functions/IsObjectNoCameraCol)
- [GetPlayerObjectDrawDistance](scripting/functions/GetPlayerObjectDrawDistance)
- [SetPlayerObjectMoveSpeed](scripting/functions/SetPlayerObjectMoveSpeed)
- [GetPlayerObjectMoveSpeed](scripting/functions/GetPlayerObjectMoveSpeed)
- [GetPlayerObjectTarget](scripting/functions/GetPlayerObjectTarget)
- [GetPlayerObjectMovingTargetPos](scripting/functions/GetPlayerObjectMovingTargetPos)
- [GetPlayerObjectMovingTargetRot](scripting/functions/GetPlayerObjectMovingTargetRot)
- [GetPlayerObjectAttachedData](scripting/functions/GetPlayerObjectAttachedData)
- [GetPlayerObjectAttachedOffset](scripting/functions/GetPlayerObjectAttachedOffset)
- [GetPlayerObjectSyncRotation](scripting/functions/GetPlayerObjectSyncRotation)
- [IsPlayerObjectMaterialSlotUsed](scripting/functions/IsPlayerObjectMaterialSlotUsed)
- [GetPlayerObjectMaterial](scripting/functions/GetPlayerObjectMaterial)
- [GetPlayerObjectMaterialText](scripting/functions/GetPlayerObjectMaterialText)
- [IsPlayerObjectNoCameraCol](scripting/functions/IsPlayerObjectNoCameraCol)
- [GetPlayerSurfingPlayerObjectID](scripting/functions/GetPlayerSurfingPlayerObjectID)
- [GetPlayerCameraTargetPlayerObj](scripting/functions/GetPlayerCameraTargetPlayerObj)
- [GetObjectType](scripting/functions/GetObjectType)
- [IsValidPickup](scripting/functions/IsValidPickup)
- [IsPickupStreamedIn](scripting/functions/IsPickupStreamedIn)
- [GetPickupPos](scripting/functions/GetPickupPos)
- [GetPickupModel](scripting/functions/GetPickupModel)
- [GetPickupType](scripting/functions/GetPickupType)
- [GetPickupVirtualWorld](scripting/functions/GetPickupVirtualWorld)
- [SetPickupPos](scripting/functions/SetPickupPos)
- [SetPickupModel](scripting/functions/SetPickupModel)
- [SetPickupType](scripting/functions/SetPickupType)
- [SetPickupVirtualWorld](scripting/functions/SetPickupVirtualWorld)
- [ShowPickupForPlayer](scripting/functions/ShowPickupForPlayer)
- [HidePickupForPlayer](scripting/functions/HidePickupForPlayer)
- [IsPickupHiddenForPlayer](scripting/functions/IsPickupHiddenForPlayer)
- [IsMenuDisabled](scripting/functions/IsMenuDisabled)
- [IsMenuRowDisabled](scripting/functions/IsMenuRowDisabled)
- [GetMenuColumns](scripting/functions/GetMenuColumns)
- [GetMenuItems](scripting/functions/GetMenuItems)
- [GetMenuPos](scripting/functions/GetMenuPos)
- [GetMenuColumnWidth](scripting/functions/GetMenuColumnWidth)
- [GetMenuColumnHeader](scripting/functions/GetMenuColumnHeader)
- [GetMenuItem](scripting/functions/GetMenuItem)
- [IsValid3DTextLabel](scripting/functions/IsValid3DTextLabel)
- [Is3DTextLabelStreamedIn](scripting/functions/Is3DTextLabelStreamedIn)
- [Get3DTextLabelText](scripting/functions/Get3DTextLabelText)
- [Get3DTextLabelColor](scripting/functions/Get3DTextLabelColor)
- [Get3DTextLabelPos](scripting/functions/Get3DTextLabelPos)
- [Set3DTextLabelDrawDistance](scripting/functions/Set3DTextLabelDrawDistance)
- [Get3DTextLabelDrawDistance](scripting/functions/Get3DTextLabelDrawDistance)
- [Get3DTextLabelLOS](scripting/functions/Get3DTextLabelLOS)
- [Set3DTextLabelLOS](scripting/functions/Set3DTextLabelLOS)
- [Set3DTextLabelVirtualWorld](scripting/functions/Set3DTextLabelVirtualWorld)
- [Get3DTextLabelVirtualWorld](scripting/functions/Get3DTextLabelVirtualWorld)
- [Get3DTextLabelAttachedData](scripting/functions/Get3DTextLabelAttachedData)
- [IsValidPlayer3DTextLabel](scripting/functions/IsValidPlayer3DTextLabel)
- [GetPlayer3DTextLabelText](scripting/functions/GetPlayer3DTextLabelText)
- [GetPlayer3DTextLabelColor](scripting/functions/GetPlayer3DTextLabelColor)
- [GetPlayer3DTextLabelPos](scripting/functions/GetPlayer3DTextLabelPos)
- [SetPlayer3DTextLabelDrawDist](scripting/functions/SetPlayer3DTextLabelDrawDist)
- [GetPlayer3DTextLabelDrawDist](scripting/functions/GetPlayer3DTextLabelDrawDist)
- [GetPlayer3DTextLabelLOS](scripting/functions/GetPlayer3DTextLabelLOS)
- [SetPlayer3DTextLabelLOS](scripting/functions/SetPlayer3DTextLabelLOS)
- [GetPlayer3DTextLabelVirtualW](scripting/functions/GetPlayer3DTextLabelVirtualW)
- [GetPlayer3DTextLabelAttached](scripting/functions/GetPlayer3DTextLabelAttached)
- [GetVehicleSpawnInfo](scripting/functions/GetVehicleSpawnInfo)
- [SetVehicleSpawnInfo](scripting/functions/SetVehicleSpawnInfo)
- [GetVehicleColor](scripting/functions/GetVehicleColor)
- [GetVehiclePaintjob](scripting/functions/GetVehiclePaintjob)
- [GetVehicleInterior](scripting/functions/GetVehicleInterior)
- [GetVehicleNumberPlate](scripting/functions/GetVehicleNumberPlate)
- [SetVehicleRespawnDelay](scripting/functions/SetVehicleRespawnDelay)
- [GetVehicleRespawnDelay](scripting/functions/GetVehicleRespawnDelay)
- [GetVehicleTower](scripting/functions/GetVehicleTower)
- [GetVehicleCab](scripting/functions/GetVehicleCab)
- [GetVehicleOccupiedTick](scripting/functions/GetVehicleOccupiedTick)
- [HasVehicleBeenOccupied](scripting/functions/HasVehicleBeenOccupied)
- [IsVehicleOccupied](scripting/functions/IsVehicleOccupied)
- [GetVehicleRespawnTick](scripting/functions/GetVehicleRespawnTick)
- [IsVehicleDead](scripting/functions/IsVehicleDead)
- [ToggleVehicleSirenEnabled](scripting/functions/ToggleVehicleSirenEnabled)
- [IsVehicleSirenEnabled](scripting/functions/IsVehicleSirenEnabled)
- [GetVehicleModelCount](scripting/functions/GetVehicleModelCount)
- [GetVehicleLastDriver](scripting/functions/GetVehicleLastDriver)
- [GetVehicleDriver](scripting/functions/GetVehicleDriver)
- [GetVehicleModelsUsed](scripting/functions/GetVehicleModelsUsed)
- [GetVehicleSirenState](scripting/functions/GetVehicleSirenState)
- [GetVehicleLandingGearState](scripting/functions/GetVehicleLandingGearState)
- [GetVehicleHydraReactorAngle](scripting/functions/GetVehicleHydraReactorAngle)
- [GetVehicleTrainSpeed](scripting/functions/GetVehicleTrainSpeed)
- [GetVehicleMatrix](scripting/functions/GetVehicleMatrix)
- [GetActorSkin](scripting/functions/GetActorSkin)
- [SetActorSkin](scripting/functions/SetActorSkin)
- [GetActorSpawnInfo](scripting/functions/GetActorSpawnInfo)
- [GetActorAnimation](scripting/functions/GetActorAnimation)
- [ToggleChatTextReplacement](scripting/functions/ToggleChatTextReplacement)
- [ChatTextReplacementToggled](scripting/functions/ChatTextReplacementToggled)
- [GetAvailableClasses](scripting/functions/GetAvailableClasses)
- [GetPlayerClass](scripting/functions/GetPlayerClass)
- [EditPlayerClass](scripting/functions/EditPlayerClass)
- [GetWeaponSlot](scripting/functions/GetWeaponSlot)
- [ClearBanList](scripting/functions/ClearBanList)
- [IsBanned](scripting/functions/IsBanned)
- [IsValidNickName](scripting/functions/IsValidNickName)
- [AllowNickNameCharacter](scripting/functions/AllowNickNameCharacter)
- [IsNickNameCharacterAllowed](scripting/functions/IsNickNameCharacterAllowed)
- [AddServerRule](scripting/functions/AddServerRule)
- [SetServerRule](scripting/functions/SetServerRule)
- [IsValidServerRule](scripting/functions/IsValidServerRule)
- [RemoveServerRule](scripting/functions/RemoveServerRule)
- [SendClientMessageToAllf](scripting/functions/SendClientMessageToAllf)
- [GameTextForAllf](scripting/functions/GameTextForAllf)
- [SendPlayerMessageToAllf](scripting/functions/SendPlayerMessageToAllf)
- [SendRconCommandf](scripting/functions/SendRconCommandf)
- [GetRunningTimers](scripting/functions/GetRunningTimers)
- [GetVehicles](scripting/functions/GetVehicles)
- [GetPlayers](scripting/functions/GetPlayers)
- [GetActors](scripting/functions/GetActors)
- [AllowAdminTeleport](scripting/functions/AllowAdminTeleport)
- [IsAdminTeleportAllowed](scripting/functions/IsAdminTeleportAllowed)
- [AllowInteriorWeapons](scripting/functions/AllowInteriorWeapons)
- [AreInteriorWeaponsAllowed](scripting/functions/AreInteriorWeaponsAllowed)
- [AreAllAnimationsEnabled](scripting/functions/AreAllAnimationsEnabled)
- [EnableAllAnimations](scripting/functions/EnableAllAnimations)
- [GetWeather](scripting/functions/GetWeather)
**New callbacks:**
- [OnPlayerEnterGangZone](scripting/callbacks/OnPlayerEnterGangZone)
- [OnPlayerLeaveGangZone](scripting/callbacks/OnPlayerLeaveGangZone)
- [OnPlayerClickGangZone](scripting/callbacks/OnPlayerClickGangZone)
- [OnPlayerEnterPlayerGangZone](scripting/callbacks/OnPlayerEnterPlayerGangZone)
- [OnPlayerLeavePlayerGangZone](scripting/callbacks/OnPlayerLeavePlayerGangZone)
- [OnPlayerClickPlayerGangZone](scripting/callbacks/OnPlayerClickPlayerGangZone)
- [OnPickupStreamIn](../scripting/callbacks/OnPickupStreamIn)
- [OnPickupStreamOut](../scripting/callbacks/OnPickupStreamOut)
- [OnPlayerPickUpPlayerPickup](../scripting/callbacks/OnPlayerPickUpPlayerPickup)
- [OnPlayerPickupStreamIn](../scripting/callbacks/OnPlayerPickupStreamIn)
- [OnPlayerPickupStreamOut](../scripting/callbacks/OnPlayerPickupStreamOut)
</details>
| openmultiplayer/web/docs/changelog.md/0 | {
"file_path": "openmultiplayer/web/docs/changelog.md",
"repo_id": "openmultiplayer",
"token_count": 6842
} | 279 |
---
title: OnGameModeExit
description: This callback is called when a gamemode ends, either through 'gmx', the server being shut down, or GameModeExit.
tags: []
---
## Description
This callback is called when a gamemode ends, either through 'gmx', the server being shut down, or GameModeExit.
## Examples
```c
public OnGameModeExit()
{
print("Gamemode ended.");
return 1;
}
```
## Notes
:::tip
This function can also be used in a filterscript to detect if the gamemode changes with RCON commands like changemode or gmx, as changing the gamemode does not reload a filterscript.
:::
:::warning
When using OnGameModeExit in conjunction with the 'rcon gmx' console command keep in mind there is a potential for client bugs to occur.
An example of this is excessive [RemoveBuildingForPlayer](RemoveBuildingForPlayer) calls during [OnGameModeInit](OnGameModeInit) which could result in a client crash. This callback will NOT be called if the server crashes or the process is killed by other means, such as using the Linux kill command or pressing the close-button on the Windows console.
:::
## Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- [OnGameModeInit](OnGameModeInit): This callback is called when a gamemode starts.
- [OnFilterScriptInit](OnFilterScriptInit): This callback is called when a filterscript is loaded.
- [OnFilterSciptExit](OnFilterScriptExit): This callback is called when a filterscript is unloaded.
## Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- [GameModeExit](../functions/GameModeExit): Exit the current gamemode.
| openmultiplayer/web/docs/scripting/callbacks/OnGameModeExit.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnGameModeExit.md",
"repo_id": "openmultiplayer",
"token_count": 456
} | 280 |
---
title: OnPlayerClickPlayerGangZone
description: This callback is called when a player clicked a player gangzone on the pause menu map (by right-clicking).
tags: ["player", "gangzone"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
This callback is called when a player clicked a player gangzone on the pause menu map (by right-clicking).
| Name | Description |
| -------- | ------------------------------------------------------------------------------------ |
| playerid | The ID of the player that clicked a player gangzone |
| zoneid | The ID of the player gangzone the player clicked |
## Returns
This callback does not handle returns.
It is always called first in gamemode.
## Examples
```c
public OnPlayerClickPlayerGangZone(playerid, zoneid)
{
new string[128];
format(string, sizeof(string), "You are click player gangzone %i", zoneid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
```
## Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- [CreatePlayerGangZone](../functions/CreatePlayerGangZone): Create a player gangzone.
- [PlayerGangZoneDestroy](../functions/PlayerGangZoneDestroy): Destroy a player gangzone. | openmultiplayer/web/docs/scripting/callbacks/OnPlayerClickPlayerGangZone.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerClickPlayerGangZone.md",
"repo_id": "openmultiplayer",
"token_count": 490
} | 281 |
---
title: OnPlayerFinishedDownloading
description: This callback is called when a player finishes downloading custom models.
tags: ["player"]
---
<VersionWarn name='callback' version='SA-MP 0.3.DL R1' />
## Description
This callback is called when a player finishes downloading custom models. For more information on how to add custom models to your server, see the [release thread](https://sampforum.blast.hk/showthread.php?tid=644105) and [this tutorial](https://sampforum.blast.hk/showthread.php?tid=644123).
| Name | Description |
| ------------ | ------------------------------------------------------------------------------ |
| playerid | The ID of the player that finished downloading custom models. |
| virtualworld | The ID of the virtual world the player finished downloading custom models for. |
## Returns
This callback does not handle returns.
## Examples
```c
public OnPlayerFinishedDownloading(playerid, virtualworld)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Downloads finished.");
return 1;
}
```
## Notes
:::tip
This callback is called every time a player changes virtual worlds, even if there are no custom models present in that world.
:::
## Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- [OnPlayerConnect](OnPlayerConnect): This callback is called when a player connects to the server.
- [OnPlayerDisconnect](OnPlayerDisconnect): This callback is called when a player leaves the server.
- [OnIncomingConnection](OnIncomingConnection): This callback is called when a player is attempting to connect to the server.
| openmultiplayer/web/docs/scripting/callbacks/OnPlayerFinishedDownloading.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerFinishedDownloading.md",
"repo_id": "openmultiplayer",
"token_count": 511
} | 282 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.