diff --git a/.gitignore b/.gitignore index d4eaff1..0b3c176 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ # Ignore NPM debug .npm-debug.log npm-debug.log +yarn-error.log # Ignore temp directory .tmp @@ -24,7 +25,6 @@ npm-debug.log /bower_components # Ignore compiled/copied files -/source/css /source/js /source/fonts @@ -46,6 +46,13 @@ npm-debug.log # Ignore others s3.conf +bin /bower_components/ /node_modules/ /vendor/ + +# Temp +gulpfile_old.js + +# Docker +docker-compose.yml \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index faff7f5..bb4e3dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ before_script: - composer install --prefer-source --no-interaction --dev script: + - php bin/phpunit tests - php vendor/bin/sculpin generate -vvv -n --env=prod > build_output.log - if grep -iq "notice\|error\|warning" build_output.log ; then return 1; fi diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9c06c90 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM php:7.1-cli + +RUN apt-get update \ + && apt-get install -y git libssl-dev zlib1g-dev libicu-dev g++ build-essential\ + && docker-php-ext-install zip mbstring intl + +# Composer +RUN cd /tmp/ && curl -sS https://getcomposer.org/installer | php && mv /tmp/composer.phar /usr/local/bin/composer + +CMD ["php", "-a"] \ No newline at end of file diff --git a/Dockerfile-node b/Dockerfile-node new file mode 100644 index 0000000..10433b7 --- /dev/null +++ b/Dockerfile-node @@ -0,0 +1,10 @@ +FROM node:8.9 + +# Yarn +RUN curl -o- -L https://yarnpkg.com/install.sh | bash + +# Don't regenerate `yarn.lock` on build +COPY package.json yarn.lock ./ +RUN yarn --pure-lockfile + +CMD ["bash"] \ No newline at end of file diff --git a/README.md b/README.md index 0bc5e33..bdb392f 100644 --- a/README.md +++ b/README.md @@ -3,28 +3,50 @@ website PHPers website -======= +Requirements +==================== + +You must have + - [Node.js](https://nodejs.org/en/) - The version should be higher than **8.9**. + - [Yarn](https://yarnpkg.com/en/docs/install) - The version should be higher than **1.3.2**. + - [php intl extension](http://php.net/manual/en/intl.setup.php) - **Intl** php extension is required + +If you use docker and docker-compose: + - Please copy `docker-compose.yml.dist` into `docker-compose.yml` + - Run `docker-compose up -d` + Installing ==================== -Install node dependencies +Install dependencies ```bash -$ npm install +$ composer install ``` -Run default gulp task. It download dependencies using Bower, compile SCSS and do some other stuff. +```bash +$ yarn install +``` + +Run build and watch webpack server. It compile SCSS and do some other stuff. ```bash -$ node_modules/gulp/bin/gulp.js +$ yarn start ``` -> If You have Gulp.js installed globally You can use 'gulp' instead +Running +==================== -First make sure you have [sculpin installed](https://sculpin.io/getstarted/) on your system ```bash -$ sculpin generate --watch --server +$ bin/sculpin generate --watch --server --port=8080 ``` -http://localhost:8000 +and development server should run at [http://localhost:8080](http://localhost:8080) + +Running Tests +============== + +```bash +$ php bin/phpunit tests +``` diff --git a/app/SculpinKernel.php b/app/SculpinKernel.php index 1378c89..9cf57b2 100644 --- a/app/SculpinKernel.php +++ b/app/SculpinKernel.php @@ -1,11 +1,15 @@ + Programista, architekt i team leader. + Na co dzień gorący orędownik BDD i pasjonat usprawniania pracy w zespołach. + Odpowiedzialny za spotkania w Trójmieście. + image: /images/staff/karol_sojko.jpg + leszekPrabucki: + firstName: Leszek + lastName: Prabucki + title: PHP developer + twitter: l3l0 + speakerDeck: https://speakerdeck.com/l3l0 + linkedIn: https://www.linkedin.com/in/l3l0able + description: > + Leszek jest programistą PHP od 2007 roku. + Uczestnik ruchu Open Source i ruchu w kierunku dobrego piwa. + Zainteresowany jest standardami i technologiami związanymi z jakością oprogamowania które zazwyczaj kończą się dwiema literami DD. + Czasem występuje jako prelegent albo zorganizuje jakieś szkolenie. Mieszka i pracuje w Gdańsku. Jeden z cocodersów. + Odpowiedzialny za spotkania w Trójmieście. + image: /images/staff/leszek_prabucki.jpg + mariuszGil: + firstName: Mariusz + lastName: Gil + title: PHP developer & architect + twitter: mariuszgil + speakerDeck: https://speakerdeck.com/mariuszgil + linkedIn: http://pl.linkedin.com/in/mariuszgil/ + description: > + Architekt, tech-lead i developer z wieloletnim doświadczeniem w projektowaniu i implementacji skalowalnych + i wydajnych aplikacji webowych, także z wykorzystaniem PHP. + Odpowiedzialny za spotkania we Wrocławiu. + image: /images/staff/mariusz_gil.jpeg + leszekKurpiński: + firstName: Leszek + lastName: Kurpiński + title: PHP developer + twitter: mariuszgil + blog: http://devplant.net/ + linkedIn: http://www.linkedin.com/in/leszekkrupinski + description: > + Programista PHP od roku 2000, autor kursu PHP i kilku artykułów na tematy związane z PHP. + Organizator i prelegent konferencji WebClusters (pierwsza polska konferencja na temat web scalability). + Uczestnik kilku projektów open-source. + Architekt rozwiązań wysokowydajnych, analityk bezpieczeństwa aplikacji sieciowych, konsultant. + Odpowiedzialny za spotkania w Warszawie. + image: /images/staff/leszek_krupinski.jpg + tytusCiunelis: + firstName: Tytus + lastName: Ciunelis + title: PHP developer + twitter: tciunelis + speakerDeck: https://speakerdeck.com/tciunelis + linkedIn: http://www.linkedin.com/in/tciunelis + description: > + Tytus jest pasjonatem kawy i programowania. Pracuje jako starszy programista PHP w firmie Polcode. + Odpowiedzialny za spotkania w Warszawie. + image: /images/staff/tytus_ciunelis.png + alicjaGil: + firstName: Alicja + lastName: Gil + title: Organizatorka eventów + description: > + Organizatorka, wysłanniczka do zadań specjalnych. + Koordynuje wszystkie aspekty PHPers, abyśmy mieli gdzie, kiedy i przy czym się spotkać. + image: /images/staff/alicja_gil.jpg + michalPipa: + firstName: Michał + lastName: Pipa + title: PHP developer & consultant + twitter: michalpipa + linkedIn: https://www.linkedin.com/in/michalpipa + description: > + Programista PHP od zawsze. Współinicjator spotkań PHPowych na Śląsku. + Prelegent na wielu meetupach i konferencjach krajowych i zagranicznych. + Skarbnica wiedzy na temat PHP i Symfony, które zna od podszewki i z ich zakresu prowadzi szkolenia. + Zawsze skory do pomocy i służenia radą potrzbującym tego kolegom po fachu. + Dba o kwestie merytoryczne na śląskich spotkaniach. + image: /images/staff/michal_pipa.jpg + dariuszDrobisz: + firstName: Dariusz + lastName: Drobisz + title: PHP developer + twitter: daryush_d + linkedIn: https://www.linkedin.com/in/dariuszdrobisz + description: > + Jeden z organizatorów spotkań na Śląsku. + Dba o aspekty lokalowe i gastronomiczne podczas śląskich spotkań. + Od początku związany ze śląskimi spotkaniami środowiska PHP, po wyjeździe pierwszego organizatora przejął jego pałeczkę. + Programista PHP i pasjonat rajdów samochodowych. + image: /images/staff/darek_drobisz.jpg + pawelSkotnicki: + firstName: Paweł + lastName: Skotnicki + title: PHP developer + twitter: pawelskotnicki + linkedIn: https://www.linkedin.com/pub/pawe%C5%82-skotnicki/88/36/2ab + description: > + Śląski chop od kamery ;) Jego przygoda z PHPers zaczęła się od roli prelegenta, + ale szybko zagościł na stałe zajmując się realizacją nagrań i streamingu. + Dba o to, aby każda prezentacja się zachowała i poszła w świat. + Raz się nie udało - kiedy sam miał prezentację :-D + Programista PHP oraz entuzjasta górskich wędrówek. + image: /images/staff/pawel_skotnikci.jpg + kacperGunia: + firstName: Kacper + lastName: Gunia + title: PHP developer + twitter: cakper + linkedIn: https://www.linkedin.com/in/cakper/pl + blog: http://kacper.gunia.me/ + description: > + Praojciec śląskich spotkań PHP. + Programista PHP z wieloletnim doświadczeniem, a z krajowego podwórka szybko wyszedł na szerokie, + zagraniczne wody, zarówno jako programista jak i prelegent. + Od pewnego czasu wspiera nas zdalnie jako developer i założyciel w SourceMinistry oraz szerzy wieść o PHPers + jako prelegent na licznych międzynarodowych konferencjach. Z zamiłowania fotograf. + image: /images/staff/kacper_gunia.jpeg + norbertOrzechowicz: + firstName: Norbert + lastName: Orzechowicz + title: PHP developer + twitter: norzechowicz + description: > + Organizator krakowskich PHPersów. + Programista PHP. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip + ex ea commodo consequat. + image: /images/staff/norbert_orzechowicz.jpg + filipGolonka: + firstName: Filip + lastName: Golonka + title: PHP developer & Team Leader + twitter: FilipGolonka + description: > + Organizator krakowskich PHPersów. + Programista PHP. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip + ex ea commodo consequat. + image: /images/staff/filip_golonka.jpg + sebastianDudek: + firstName: Sebastian + lastName: Dudek + title: PHP developer + twitter: d3dik_pl + description: > + Organizator poznańskich PHPersów. + Programista PHP. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip + ex ea commodo consequat. + image: /images/staff/sebastian_dudek.jpg + szymonSkowronski: + firstName: Szymon + lastName: Skowroński + title: PHP developer + twitter: skowii + description: > + Organizator PHPersów w Toruniu. + Programista PHP. Na co dzień udowadnia, że projektowanie kodu poprzez „Test Driven Development” jest bardzo skuteczne i efektywne. + Zainteresowainteresowany technikami programowania obiektowego, wzorcami projektowymi oraz technikami BDD i DDD. + image: /images/staff/szymon_skowronski.jpg + diff --git a/bower.json b/bower.json deleted file mode 100644 index 0736399..0000000 --- a/bower.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "phpers", - "description": "PHPers website", - "homepage": "http://phpers.pl/", - "dependencies": { - "foundation": "~5.5.3", - "html5shiv": "~3.7.3", - "fontawesome": "~4.4.0", - "jquery.countdown": "~2.1.0", - "viewport-units-buggyfill": "~0.5.5", - "gmaps": "~0.4.21", - "mixitup": "~2.1.11", - "spinkit": "~1.2.2", - "owlcarousel": "~1.3.2", - "jquery-countTo": "~1.2.0", - "mobile-detect": "~1.3.0", - "bourbon": "~4.2.6", - "history.js": "~1.8.0" - }, - "keywords": [ - "PHPers", - "website" - ], - "authors": [ - { - "name": "Paweł Tekliński", - "email": "pawel@teklinski.info", - "homepage": "http://teklinski.info" - } - ], - "overrides": { - "foundation": { - "main": [ - "js/foundation.js" - ] - }, - "owlcarousel": { - "main": [ - "owl-carousel/owl.carousel.js", - "owl-carousel/owl.carousel.css", - "owl-carousel/owl.theme.css" - ] - }, - "mobile-detect": { - "main": [ - "mobile-detect.js", - "mobile-detect-modernizr.js" - ] - }, - "history.js": { - "main": [ - "scripts/bundled/html4+html5/jquery.history.js" - ] - } - }, - "repository": { - "type": "git", - "url": "git@github.com:PHPers/website.git" - }, - "license": "MIT", - "ignore": [ - "node_modules", - "bower_components", - "test", - "tests" - ], - "private": true -} diff --git a/composer.json b/composer.json index b8204e1..48b1c98 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,29 @@ { - "require": { - "sculpin/sculpin": "^2.1@dev", - "dflydev/embedded-composer": "^1.0@dev" + "name": "phpers/website", + "description": "Phpers.pl website", + "license": "MIT", + "authors": [ + { + "name": "Phpers", + "homepage": "https://github.com/PHPers/website/graphs/contributors" } -} + ], + "require": { + "mavimo/sculpin-redirect-bundle": "@dev", + "ext-intl": "*", + "sculpin/sculpin": "^2.1@dev", + "dflydev/embedded-composer": "^1.0@dev" + }, + "require-dev": { + "phpunit/phpunit": "~5.3" + }, + "autoload": { + "psr-4": { + "Phpers\\": ["src/Phpers/", "tests/Phpers/"] + } + }, + "config": { + "component-dir": "source/components", + "bin-dir": "bin" + } +} \ No newline at end of file diff --git a/composer.lock b/composer.lock index 97561c6..340812c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "1600159cd9638c3097bf5895e470cc0d", + "content-hash": "951c16ba25267aea4f3428797a1f9496", "packages": [ { "name": "composer/ca-bundle", - "version": "1.0.7", + "version": "1.0.8", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "b17e6153cb7f33c7e44eb59578dc12eee5dc8e12" + "reference": "9dd73a03951357922d8aee6cc084500de93e2343" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/b17e6153cb7f33c7e44eb59578dc12eee5dc8e12", - "reference": "b17e6153cb7f33c7e44eb59578dc12eee5dc8e12", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/9dd73a03951357922d8aee6cc084500de93e2343", + "reference": "9dd73a03951357922d8aee6cc084500de93e2343", "shasum": "" }, "require": { @@ -63,20 +63,20 @@ "ssl", "tls" ], - "time": "2017-03-06T11:59:08+00:00" + "time": "2017-09-11T07:24:36+00:00" }, { "name": "composer/composer", - "version": "1.4.2", + "version": "1.5.2", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "489e09ee6c3ba431fbeeef9147afdaeb6f91b647" + "reference": "c639623fa2178b404ed4bab80f0d1263853fa4ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/489e09ee6c3ba431fbeeef9147afdaeb6f91b647", - "reference": "489e09ee6c3ba431fbeeef9147afdaeb6f91b647", + "url": "https://api.github.com/repos/composer/composer/zipball/c639623fa2178b404ed4bab80f0d1263853fa4ae", + "reference": "c639623fa2178b404ed4bab80f0d1263853fa4ae", "shasum": "" }, "require": { @@ -109,7 +109,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } }, "autoload": { @@ -140,7 +140,7 @@ "dependency", "package" ], - "time": "2017-05-17T06:17:53+00:00" + "time": "2017-09-11T14:59:26+00:00" }, { "name": "composer/semver", @@ -608,7 +608,7 @@ "embedded", "extensibility" ], - "time": "2016-05-21 00:49:42" + "time": "2016-05-21T00:49:42+00:00" }, { "name": "dflydev/placeholder-resolver", @@ -784,21 +784,24 @@ }, { "name": "evenement/evenement", - "version": "v2.0.0", + "version": "v2.1.0", "source": { "type": "git", "url": "https://github.com/igorw/evenement.git", - "reference": "f6e843799fd4f4184d54d8fc7b5b3551c9fa803e" + "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/igorw/evenement/zipball/f6e843799fd4f4184d54d8fc7b5b3551c9fa803e", - "reference": "f6e843799fd4f4184d54d8fc7b5b3551c9fa803e", + "url": "https://api.github.com/repos/igorw/evenement/zipball/6ba9a777870ab49f417e703229d53931ed40fd7a", + "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a", "shasum": "" }, "require": { "php": ">=5.4.0" }, + "require-dev": { + "phpunit/phpunit": "^6.0||^5.7||^4.8.35" + }, "type": "library", "extra": { "branch-alias": { @@ -817,8 +820,7 @@ "authors": [ { "name": "Igor Wiedler", - "email": "igor@wiedler.ch", - "homepage": "http://wiedler.ch/igor/" + "email": "igor@wiedler.ch" } ], "description": "Événement is a very simple event dispatching library for PHP", @@ -826,20 +828,20 @@ "event-dispatcher", "event-emitter" ], - "time": "2012-11-02T14:49:47+00:00" + "time": "2017-07-17T17:39:19+00:00" }, { "name": "justinrainbow/json-schema", - "version": "5.2.1", + "version": "5.2.6", "source": { "type": "git", "url": "https://github.com/justinrainbow/json-schema.git", - "reference": "429be236f296ca249d61c65649cdf2652f4a5e80" + "reference": "d283e11b6e14c6f4664cf080415c4341293e5bbd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/429be236f296ca249d61c65649cdf2652f4a5e80", - "reference": "429be236f296ca249d61c65649cdf2652f4a5e80", + "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/d283e11b6e14c6f4664cf080415c4341293e5bbd", + "reference": "d283e11b6e14c6f4664cf080415c4341293e5bbd", "shasum": "" }, "require": { @@ -848,7 +850,6 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^2.1", "json-schema/json-schema-test-suite": "1.2.0", - "phpdocumentor/phpdocumentor": "^2.7", "phpunit/phpunit": "^4.8.22" }, "bin": [ @@ -893,7 +894,53 @@ "json", "schema" ], - "time": "2017-05-16T21:06:09+00:00" + "time": "2017-10-21T13:15:38+00:00" + }, + { + "name": "mavimo/sculpin-redirect-bundle", + "version": "dev-master", + "target-dir": "Mavimo/Sculpin/Bundle/RedirectBundle", + "source": { + "type": "git", + "url": "https://github.com/mavimo/sculpin-redirect-bundle.git", + "reference": "5c42c401942008de04aa1e1d64161ca105568e2a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mavimo/sculpin-redirect-bundle/zipball/5c42c401942008de04aa1e1d64161ca105568e2a", + "reference": "5c42c401942008de04aa1e1d64161ca105568e2a", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "type": "library", + "autoload": { + "psr-0": { + "Mavimo\\Sculpin\\Bundle\\RedirectBundle": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Vito Moscaritolo", + "email": "marco@mavimo.org", + "homepage": "http://www.mavimo.org" + } + ], + "description": "Sculpin Redirect Bundle", + "homepage": "https://sculpin.io", + "keywords": [ + "blog", + "blogging", + "redirect", + "site", + "static" + ], + "time": "2014-01-04T14:40:02+00:00" }, { "name": "michelf/php-markdown", @@ -1466,7 +1513,7 @@ "site", "static" ], - "time": "2017-07-10 16:36:06" + "time": "2017-07-10T16:36:06+00:00" }, { "name": "sculpin/sculpin-theme-composer-plugin", @@ -1646,16 +1693,16 @@ }, { "name": "symfony/config", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "0b8541d18507d10204a08384640ff6df3c739ebe" + "reference": "1dbeaa8e2db4b29159265867efff075ad961558c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/0b8541d18507d10204a08384640ff6df3c739ebe", - "reference": "0b8541d18507d10204a08384640ff6df3c739ebe", + "url": "https://api.github.com/repos/symfony/config/zipball/1dbeaa8e2db4b29159265867efff075ad961558c", + "reference": "1dbeaa8e2db4b29159265867efff075ad961558c", "shasum": "" }, "require": { @@ -1698,20 +1745,20 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2017-04-12T14:07:15+00:00" + "time": "2017-10-04T18:56:36+00:00" }, { "name": "symfony/console", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "46e65f8d98c9ab629bbfcc16a4ff023f61c37fb2" + "reference": "f81549d2c5fdee8d711c9ab3c7e7362353ea5853" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/46e65f8d98c9ab629bbfcc16a4ff023f61c37fb2", - "reference": "46e65f8d98c9ab629bbfcc16a4ff023f61c37fb2", + "url": "https://api.github.com/repos/symfony/console/zipball/f81549d2c5fdee8d711c9ab3c7e7362353ea5853", + "reference": "f81549d2c5fdee8d711c9ab3c7e7362353ea5853", "shasum": "" }, "require": { @@ -1759,20 +1806,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2017-07-03T08:04:30+00:00" + "time": "2017-10-01T21:00:16+00:00" }, { "name": "symfony/debug", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "8470d7701177a88edeb0cec59b44d50ef4477e9b" + "reference": "eaaec993ca5e8067e204b2ee653cdd142961f33e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/8470d7701177a88edeb0cec59b44d50ef4477e9b", - "reference": "8470d7701177a88edeb0cec59b44d50ef4477e9b", + "url": "https://api.github.com/repos/symfony/debug/zipball/eaaec993ca5e8067e204b2ee653cdd142961f33e", + "reference": "eaaec993ca5e8067e204b2ee653cdd142961f33e", "shasum": "" }, "require": { @@ -1816,20 +1863,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2017-06-01T20:52:29+00:00" + "time": "2017-10-01T21:00:16+00:00" }, { "name": "symfony/dependency-injection", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "66d2e252262749e0f3c735c183e4562c72ffb8c8" + "reference": "2562562610dbdabbb98c6ceb60459a351811c734" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/66d2e252262749e0f3c735c183e4562c72ffb8c8", - "reference": "66d2e252262749e0f3c735c183e4562c72ffb8c8", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/2562562610dbdabbb98c6ceb60459a351811c734", + "reference": "2562562610dbdabbb98c6ceb60459a351811c734", "shasum": "" }, "require": { @@ -1879,20 +1926,20 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2017-06-14T00:55:24+00:00" + "time": "2017-10-02T07:17:52+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "1377400fd641d7d1935981546aaef780ecd5bf6d" + "reference": "7fe089232554357efb8d4af65ce209fc6e5a2186" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1377400fd641d7d1935981546aaef780ecd5bf6d", - "reference": "1377400fd641d7d1935981546aaef780ecd5bf6d", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7fe089232554357efb8d4af65ce209fc6e5a2186", + "reference": "7fe089232554357efb8d4af65ce209fc6e5a2186", "shasum": "" }, "require": { @@ -1939,20 +1986,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2017-06-02T07:47:27+00:00" + "time": "2017-10-01T21:00:16+00:00" }, { "name": "symfony/filesystem", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "b8c9c18eacc525c980d27c7a2c8fd1e09e0ed4c7" + "reference": "5e3af878f144089faddd4060a48cadae4fc44dee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/b8c9c18eacc525c980d27c7a2c8fd1e09e0ed4c7", - "reference": "b8c9c18eacc525c980d27c7a2c8fd1e09e0ed4c7", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/5e3af878f144089faddd4060a48cadae4fc44dee", + "reference": "5e3af878f144089faddd4060a48cadae4fc44dee", "shasum": "" }, "require": { @@ -1988,20 +2035,20 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2017-06-20T23:27:56+00:00" + "time": "2017-10-02T08:46:46+00:00" }, { "name": "symfony/finder", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "4f4e84811004e065a3bb5ceeb1d9aa592630f9ad" + "reference": "a945724b201f74d543e356f6059c930bb8d10c92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/4f4e84811004e065a3bb5ceeb1d9aa592630f9ad", - "reference": "4f4e84811004e065a3bb5ceeb1d9aa592630f9ad", + "url": "https://api.github.com/repos/symfony/finder/zipball/a945724b201f74d543e356f6059c930bb8d10c92", + "reference": "a945724b201f74d543e356f6059c930bb8d10c92", "shasum": "" }, "require": { @@ -2037,7 +2084,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2017-06-01T20:52:29+00:00" + "time": "2017-10-01T21:00:16+00:00" }, { "name": "symfony/http-foundation", @@ -2094,16 +2141,16 @@ }, { "name": "symfony/http-kernel", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "658cf693cb1fcb6f357a3e4e01656920ac60f19d" + "reference": "d912b76d7db324f7650da9d1132be78c5f7ceb93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/658cf693cb1fcb6f357a3e4e01656920ac60f19d", - "reference": "658cf693cb1fcb6f357a3e4e01656920ac60f19d", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/d912b76d7db324f7650da9d1132be78c5f7ceb93", + "reference": "d912b76d7db324f7650da9d1132be78c5f7ceb93", "shasum": "" }, "require": { @@ -2173,20 +2220,20 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2017-07-05T08:52:59+00:00" + "time": "2017-10-05T23:24:02+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.4.0", + "version": "v1.6.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "f29dca382a6485c3cbe6379f0c61230167681937" + "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f29dca382a6485c3cbe6379f0c61230167681937", - "reference": "f29dca382a6485c3cbe6379f0c61230167681937", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", + "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", "shasum": "" }, "require": { @@ -2198,7 +2245,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.6-dev" } }, "autoload": { @@ -2232,20 +2279,20 @@ "portable", "shim" ], - "time": "2017-06-09T14:24:12+00:00" + "time": "2017-10-11T12:05:26+00:00" }, { "name": "symfony/process", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "57e52a0a6a80ea0aec4fc1b785a7920a95cb88a8" + "reference": "26c9fb02bf06bd6b90f661a5bd17e510810d0176" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/57e52a0a6a80ea0aec4fc1b785a7920a95cb88a8", - "reference": "57e52a0a6a80ea0aec4fc1b785a7920a95cb88a8", + "url": "https://api.github.com/repos/symfony/process/zipball/26c9fb02bf06bd6b90f661a5bd17e510810d0176", + "reference": "26c9fb02bf06bd6b90f661a5bd17e510810d0176", "shasum": "" }, "require": { @@ -2281,20 +2328,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2017-07-03T08:04:30+00:00" + "time": "2017-10-01T21:00:16+00:00" }, { "name": "symfony/yaml", - "version": "v2.8.24", + "version": "v2.8.28", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "4c29dec8d489c4e37cf87ccd7166cd0b0e6a45c5" + "reference": "842fb6df22180244b4c65935ce1a88d324e5ff9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/4c29dec8d489c4e37cf87ccd7166cd0b0e6a45c5", - "reference": "4c29dec8d489c4e37cf87ccd7166cd0b0e6a45c5", + "url": "https://api.github.com/repos/symfony/yaml/zipball/842fb6df22180244b4c65935ce1a88d324e5ff9e", + "reference": "842fb6df22180244b4c65935ce1a88d324e5ff9e", "shasum": "" }, "require": { @@ -2330,7 +2377,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2017-06-01T20:52:29+00:00" + "time": "2017-10-05T14:38:30+00:00" }, { "name": "twig/extensions", @@ -2390,16 +2437,16 @@ }, { "name": "twig/twig", - "version": "v1.34.4", + "version": "v1.35.0", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "f878bab48edb66ad9c6ed626bf817f60c6c096ee" + "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/f878bab48edb66ad9c6ed626bf817f60c6c096ee", - "reference": "f878bab48edb66ad9c6ed626bf817f60c6c096ee", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/daa657073e55b0a78cce8fdd22682fddecc6385f", + "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f", "shasum": "" }, "require": { @@ -2413,7 +2460,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.34-dev" + "dev-master": "1.35-dev" } }, "autoload": { @@ -2451,7 +2498,7 @@ "keywords": [ "templating" ], - "time": "2017-07-04T13:19:31+00:00" + "time": "2017-09-27T18:06:46+00:00" }, { "name": "webignition/disallowed-character-terminated-string", @@ -2639,15 +2686,1280 @@ "time": "2017-05-11T10:04:12+00:00" } ], - "packages-dev": [], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": { - "sculpin/sculpin": 20, - "dflydev/embedded-composer": 20 - }, - "prefer-stable": false, - "prefer-lowest": false, - "platform": [], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "^6.2.3", + "squizlabs/php_codesniffer": "^3.0.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2017-07-22T11:58:36+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", + "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^4.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "time": "2017-10-19T19:58:43+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2017-09-11T18:02:19+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "4.1.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "2d3d238c433cf69caeb4842e97a3223a116f94b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/2d3d238c433cf69caeb4842e97a3223a116f94b2", + "reference": "2d3d238c433cf69caeb4842e97a3223a116f94b2", + "shasum": "" + }, + "require": { + "php": "^7.0", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.4.0", + "webmozart/assert": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2017-08-30T18:51:59+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.4.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "time": "2017-07-14T14:27:02+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.7.2", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6", + "reference": "c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "sebastian/comparator": "^1.1|^2.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5|^3.2", + "phpunit/phpunit": "^4.8 || ^5.6.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.7.x-dev" + } + }, + "autoload": { + "psr-0": { + "Prophecy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2017-09-04T11:05:03+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^5.6 || ^7.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", + "sebastian/environment": "^1.3.2 || ^2.0", + "sebastian/version": "^1.0 || ^2.0" + }, + "require-dev": { + "ext-xdebug": "^2.1.4", + "phpunit/phpunit": "^5.7" + }, + "suggest": { + "ext-xdebug": "^2.5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2017-04-02T07:44:40+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2016-10-03T07:40:28+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9a02332089ac48e704c70f6cefed30c224e3c0b0", + "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.2.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "time": "2017-08-20T05:47:52+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "5.7.23", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "78532d5269d984660080d8e0f4c99c5c2ea65ffe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/78532d5269d984660080d8e0f4c99c5c2ea65ffe", + "reference": "78532d5269d984660080d8e0f4c99c5c2ea65ffe", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "~1.3", + "php": "^5.6 || ^7.0", + "phpspec/prophecy": "^1.6.2", + "phpunit/php-code-coverage": "^4.0.4", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "^3.2", + "sebastian/comparator": "^1.2.4", + "sebastian/diff": "^1.4.3", + "sebastian/environment": "^1.3.4 || ^2.0", + "sebastian/exporter": "~2.0", + "sebastian/global-state": "^1.1", + "sebastian/object-enumerator": "~2.0", + "sebastian/resource-operations": "~1.0", + "sebastian/version": "~1.0.3|~2.0", + "symfony/yaml": "~2.1|~3.0" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-xdebug": "*", + "phpunit/php-invoker": "~1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.7.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2017-10-15T06:13:55+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "3.4.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.6 || ^7.0", + "phpunit/php-text-template": "^1.2", + "sebastian/exporter": "^1.2 || ^2.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.4" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "time": "2017-06-30T09:13:00+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "time": "2017-03-04T06:30:41+00:00" + }, + { + "name": "sebastian/comparator", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2 || ~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2017-01-29T09:50:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2017-05-22T07:24:03+00:00" + }, + { + "name": "sebastian/environment", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2016-11-26T07:53:53+00:00" + }, + { + "name": "sebastian/exporter", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2016-11-19T08:54:04+00:00" + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7", + "shasum": "" + }, + "require": { + "php": ">=5.6", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-02-18T15:18:39+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2016-11-19T07:33:16+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", + "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2016-11-23T20:04:58+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": { + "mavimo/sculpin-redirect-bundle": 20, + "sculpin/sculpin": 20, + "dflydev/embedded-composer": 20 + }, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "ext-intl": "*" + }, "platform-dev": [] } diff --git a/docker-compose.yml.dist b/docker-compose.yml.dist new file mode 100644 index 0000000..ad0bb47 --- /dev/null +++ b/docker-compose.yml.dist @@ -0,0 +1,18 @@ +version: "3" +services: + php: + build: . + tty: true + ports: + - "8080:8080" + volumes: + - .:/app + working_dir: /app + node: + build: + context: . + dockerfile: Dockerfile-node + tty: true + volumes: + - .:/app + working_dir: /app \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index c03cd55..fffa808 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,152 +1,129 @@ -'use strict'; - -var gulp = require('gulp'); -var gutil = require('gulp-util'); -var bower = require('gulp-bower'); -var mainBowerFiles = require('main-bower-files'); -var concat = require('gulp-concat'); -var minifyCss = require('gulp-minify-css'); -var sourcemaps = require('gulp-sourcemaps'); +var browserSync = require('browser-sync'); +var watchify = require('watchify'); +var browserify = require('browserify'); +var source = require('vinyl-source-stream'); +var buffer = require('vinyl-buffer'); +var gulp = require('gulp'); +var gutil = require('gulp-util'); +var gulpSequence = require('gulp-sequence'); +var sass = require('gulp-sass'); +var autoprefixer = require('gulp-autoprefixer'); +var cleancss = require('gulp-clean-css'); +var uglify = require('gulp-uglify'); +var streamify = require('gulp-streamify'); +var sourcemaps = require('gulp-sourcemaps'); +var concat = require('gulp-concat'); +var babel = require('gulp-babel'); +var prod = gutil.env.prod; + +var onError = function(err) { + console.log(err.message); + this.emit('end'); +}; var options = { - src: '.', + src: './src/Assets', dist: './source', tmp: '.tmp', - test: 'test/spec', - e2e: 'test/e2e', - errorHandler: function (title) { - return function (err) { - gutil.log(gutil.colors.red('[' + title + ']'), err.toString()); - this.emit('end'); - }; - }, - bower: { - directory: './bower_components' - } + vendor: "./node_modules" }; -var $ = require('gulp-load-plugins')({ - pattern: ['gulp-*', 'main-bower-files'] -}); - -// Bower -gulp.task('bower-dep', function() { - return bower() -}); - -gulp.task('bower', ['bower-dep'], function() { - return gulp.src(mainBowerFiles()) - .pipe(gulp.dest(options.tmp + "/vendor")) -}); - -// Javascript -gulp.task('earlyJS', function() { - return gulp.src([options.bower.directory + "/modernizr/modernizr.js"]) - .pipe(sourcemaps.init()) - .pipe(concat('early.js')) - .pipe(sourcemaps.write()) - .pipe(gulp.dest(options.tmp + '/js')); -}); - -gulp.task('vendorJS', function() { - return gulp.src([options.tmp + "/vendor/**/*.js", options.src + '/js/libs/**/*.js', '!' + options.src + '/vendor/jquery.js']) - .pipe(gulp.dest(options.tmp + '/js')); -}); - -//gulp.task('vendorJS', function() { -// return gulp.src([options.tmp + "/vendor/**/*.js", options.src + '/js/libs/**/*.js', '!' + options.src + '/vendor/jquery.js']) -// .pipe(sourcemaps.init()) -// .pipe(concat('vendor.js')) -// .pipe(sourcemaps.write()) -// .pipe(gulp.dest(options.tmp + '/js')); -//}); - -gulp.task('concatJs', function() { - return gulp.src([options.src + "/js/**/*.js", '!' + options.src + '/js/libs/**/*.js']) - .pipe(sourcemaps.init()) +// bundling js with browserify and watchify +var b = watchify(browserify(options.src + '/js/main', { + cache: {}, + packageCache: {}, + fullPaths: true +})); + +gulp.task('js', bundle); +b.on('update', bundle); +b.on('log', gutil.log); + +function bundle() { + return b.bundle() + .on('error', onError) + .pipe(source('bundle.js')) + .pipe(buffer()) + .pipe(!prod ? sourcemaps.init() : gutil.noop()) + .pipe(prod ? babel({ + presets: ['env'] + }) : gutil.noop()) .pipe(concat('main.js')) - .pipe(sourcemaps.write()) - .pipe(gulp.dest(options.tmp + '/js')); -}); - -gulp.task('javascript', ['earlyJS', 'vendorJS', 'concatJs'], function() { - return gulp.src([ - options.tmp + '/js/**/*.js', - options.bower.directory + "/html5shiv/dist/html5shiv.js", - options.bower.directory + "/jquery/dist/jquery.js" - ]) - .pipe(gulp.dest(options.dist + '/js')); -}); - -// CSS -gulp.task('sass', function () { + .pipe(!prod ? sourcemaps.write('.') : gutil.noop()) + .pipe(prod ? streamify(uglify()) : gutil.noop()) + .pipe(gulp.dest(options.dist + '/js')) + .pipe(browserSync.stream()); +} + +// sass +gulp.task('sass', function() { return gulp.src(options.src + '/scss/**/*.scss') - .pipe($.sass().on('error', $.sass.logError)) - .pipe($.sass({ - outputStyle: 'expanded', - sourceComments: 'normal' + .pipe(sass({ + includePaths: [].concat(require('node-bourbon').includePaths, [ + 'node_modules/foundation-sites/scss', + 'node_modules/spinkit/scss', + 'node_modules/font-awesome/scss', + options.vendor + "/owl.carousel/src/scss/" + ]) })) + .on('error', onError) + .pipe(prod ? cleancss() : gutil.noop()) + .pipe(prod ? autoprefixer({ + browsers: ['last 2 versions'], + cascade: false + }) : gutil.noop()) .pipe(gulp.dest(options.tmp + '/css')); }); -gulp.task('concatCss', ['sass'], function() { +// concat css +gulp.task('css', ['sass'], function() { return gulp.src([ - options.tmp + "/css/reset.css", - options.tmp + "/vendor/owl.carousel.css", - options.tmp + "/vendor/owl.theme.css", - options.src + "/css/libs/**/*.css", - options.tmp + "/css/main.css" - ]) + options.tmp + "/css/main.css" + ]) .pipe(sourcemaps.init()) - .pipe(concat('styles.css')) + .pipe(concat('main.css')) .pipe(sourcemaps.write()) - .pipe(gulp.dest(options.tmp + '/css')); + .pipe(gulp.dest(options.dist + '/css')) + .pipe(browserSync.stream()); }); -gulp.task('styles', ['concatCss'], function () { - gulp.src(options.tmp + '/css/styles.css') - .pipe(gulp.dest(options.dist + '/css')); - gulp.src(options.src + '/css/libs/device-mockups/**/*') - .pipe(gulp.dest(options.dist + '/css')); +// Others scripts +gulp.task('scripts', function() { + return gulp.src([options.vendor + '/html5shiv/dist/html5shiv.min.js' + ]) + .on('error', onError) + .pipe(!prod ? sourcemaps.init() : gutil.noop()) + .pipe(concat('plugins.js')) + .pipe(!prod ? sourcemaps.write('.') : gutil.noop()) + .pipe(gulp.dest(options.dist + '/js/')); }); - // Fonts gulp.task('fonts', function() { - return gulp.src([ - options.bower.directory + '/fontawesome/fonts/*.*', - './fonts/*.*' - ]) - .pipe(gulp.dest(options.dist + '/fonts/')); + gulp.src(options.vendor + '/font-awesome/fonts/*.{eot,svg,ttf,woff,woff2}') + .pipe(gulp.dest(options.dist + '/fonts')); }); -// -//// Images -//gulp.task('images', function() { -// gulp.src('./images/**/*.{jpg,png,jpeg}') -// .pipe(gulp.dest(options.dist + '/images')); -//}); -// -gulp.task('sass:watch', function () { - return gulp.watch(options.src + '/scss/**/*.scss', ['styles']); +// // images +// gulp.task('img', function() { +// return gulp.src(options.src + './src/images/**/*') +// .pipe(gulp.dest('./build/img')) +// .pipe(browserSync.stream()); +// }); + +// browser sync server for live reload +gulp.task('serve', function() { + browserSync.init({ + server: { + baseDir: './output_dev' + } + }); + + gulp.watch(options.src + '/scss/**/*.scss', ['css']); + gulp.watch(options.src + '/js/**/*.js', ['js']); }); -gulp.task('js:watch', function () { - return gulp.watch(options.src + '/js/**/*.js', ['javascript']); -}); - -gulp.task('watch', [ - 'js:watch', - 'sass:watch' -]); - -gulp.task('build', [ - 'bower', - 'fonts', - 'javascript', - 'styles', -]); - -gulp.task('default', function () { - gulp.start('build'); -}); \ No newline at end of file +// use gulp-sequence to finish building html, sass and js before first page load +gulp.task('build', gulpSequence(['css', 'js', 'scripts', 'fonts'])); +gulp.task('watch', gulpSequence(['build'], 'serve')); +gulp.task('default', gulpSequence(['build'])); \ No newline at end of file diff --git a/js/event.js b/js/event.js deleted file mode 100644 index ac56719..0000000 --- a/js/event.js +++ /dev/null @@ -1,22 +0,0 @@ -(function() { - //set the height of your section which makes sticky sit below it - // windowHeight alone will push it outside the window so do - //window height - 60 - var winHeight = $(window).height(); - var headerHeight = $('header').outerHeight(true); - - //Your sticky relocate code - function event_height_relocate() { - var winWidth = $(window).width(); - if (winWidth > 1024) { - $(".js-full-height").css({'height': winHeight - headerHeight}); - } else { - $(".js-full-height").css({'height': 'auto'}); - } - } - - - event_height_relocate(); - $(window).scroll(event_height_relocate); - -})(); \ No newline at end of file diff --git a/js/libs/jquery-jvectormap-pl-merc-en.js b/js/libs/jquery-jvectormap-pl-merc-en.js deleted file mode 100644 index d10da2c..0000000 --- a/js/libs/jquery-jvectormap-pl-merc-en.js +++ /dev/null @@ -1 +0,0 @@ -jQuery.fn.vectorMap('addMap', 'pl_merc_en',{"insets": [{"width": 900, "top": 0, "height": 852.6892635024514, "bbox": [{"y": -7334269.233805945, "x": 1573065.3698407183}, {"y": -6277027.717506956, "x": 2688967.0299140476}], "left": 0}], "paths": {"PL-WP": {"path": "M253.42,192.4l4.22,5.22l3.71,6.55l5.39,3.36l18.39,0.8l4.65,2.56l3.78,4.54l-2.37,5.28l-6.51,8.83l1.17,4.73l7.55,5.91l4.16,9.41l-8.12,7.11l0.78,6.34l2.77,5.38l-1.25,9.12l-4.02,9.27l0.23,0.54l7.25,2.62l6.68,5.02l4.31,9.51l-1.89,10.33l-0.97,1.84l-1.22,0.44l-1.79,-0.01l-1.51,1.16l-0.76,4.09l3.29,3.4l1.38,3.41l1.82,2.95l4.11,0.86l3.6,-1.2l1.46,-1.29l2.46,2.08l0.73,1.85l0.38,2.42l0.9,1.17l6.81,2.56l6.26,0.36l6.65,3.61l9.24,8.48l3.2,1.66l3.42,0.27l2.88,1.17l2.57,3.21l3.08,2.84l9.37,2.39l3.21,-1.5l5.06,-5.96l1.41,0.39l1.11,0.78l0.66,2.56l1.13,2.45l1.94,2.76l2.5,0.65l1.51,-0.96l0.8,-1.51l1.47,-0.63l1.56,-0.16l2.94,1.37l2.69,3.18l14.79,12.15l2.42,5.47l0.4,0.24l3.36,-0.28l9.37,-3.96l2.97,-0.42l8.26,6.33l0.18,4.69l1.73,3.68l1.34,0.53l0.16,0.97l-5.36,5.16l-9.12,4.09l-0.95,4.15l-0.81,9.02l-4.38,5.18l-5.82,1.38l-3.11,-0.35l-2.84,0.25l-0.35,0.29l-1.25,4.54l-0.64,4.98l1.02,5.25l1.68,4.66l-0.35,4.41l-4.25,7.51l-0.85,0.93l-13.02,-1.36l-5.14,2.44l-2.47,3.31l-4.22,10.08l-2.33,8.88l-0.46,9.67l0.89,7.95l0.15,7.58l-2.44,6.67l-3.98,2.85l-4.68,-2.31l-4.78,1.33l-1.74,4.73l-2.14,3.4l-6.41,1.42l-1.73,3.42l0.22,4.83l1.71,4.11l5.15,4.67l0.88,3.78l0.54,6.41l-10.02,5.99l-10.53,3.87l-5.51,-0.31l-4.49,-3.64l-0.51,-3.43l-1.39,-3.29l-2.96,-1.53l-2.96,0.11l-1.11,-6.76l-1.01,-14.61l2.5,-5.97l-0.12,-0.47l-3.24,-2.61l-3.56,-1.03l-5.61,1.09l-5.02,-1.17l-1.99,-5.03l-0.48,-6.08l1.12,-2.87l2.23,-1.57l1.26,-3.61l0.89,-4.16l-0.17,-0.42l-8.92,-5.79l-10.14,-2.79l-10.56,-0.04l-3.84,0.79l-3.6,7.77l-18.24,3.22l-10.16,-3.63l-4.95,-5.44l-8.61,-4.81l-3.79,-6.71l-0.32,-4.75l-1.76,-3.85l-10.13,-5.52l-3.74,-1.01l-7.66,1.44l-2.71,-10.45l-5.95,-6.65l-0.52,-0.06l-6.41,4.36l-3.83,-1.27l-3.71,-2.55l-1.26,-3.68l0.4,-4.9l0.82,-2.9l-0.33,-3.24l-1.86,-0.96l-1.47,0.64l-3.1,-0.06l-3.03,-3.04l-2.03,-3.72l-1.6,-4.52l-5.08,-2.83l-2.39,-2.49l-2.04,-3.02l-0.69,-4.49l0.05,-4.86l1.69,-8.6l2.91,-8.63l-0.17,-9.17l-1.84,-4.56l-3.64,-6.46l1.52,-1.06l2.29,0.01l0.4,-0.4l0.01,-4.43l-0.71,-5.44l-1.1,-5.19l-3.17,-8.72l-0.34,-8.16l0.48,-6.39l0.47,-1.05l1.24,0.11l8.5,-2.7l1.99,-1.37l0.88,-2.57l-1.93,-7.31l-2.6,-2.51l8.51,-10.96l-0.21,-9.72l1.69,-8.11l4.5,1.5l5.72,3.32l5.7,-0.78l5.51,-2.16l8.85,-8.38l7.22,-11.36l12.88,-7.54l6.58,-2.05l2.76,-2.56l2.17,-3.83l2.74,-3.4l-0.56,-4.81l-2.93,-3.71l-3.42,-1.79l-6.67,-1.71l-5.48,-5.34l-1.35,-5.21l-0.09,-5.83l1.83,-2.6l16.32,0.43l2.8,-0.53l0.31,-0.3l2.29,-9.61l1.72,-4.92l2.28,-3.98l3.01,-1.33l3.28,-0.09l3.18,1.01Z", "name": "Greater Poland"}, "PL-SK": {"path": "M633.57,666.12l-1.11,0.24l-1.64,-1.76l-1.33,-0.53l-1.14,0.2l-3.86,1.87l-2.62,2.45l-1.23,0.34l-6.75,0.24l-1.05,0.42l-2.33,2.23l-2.37,0.23l-1.19,0.73l-1.61,-0.77l-2.43,2.06l-1.16,0.54l-3.25,-3.1l-0.61,0.07l-0.64,1.0l-0.54,2.3l-1.78,1.8l-1.09,0.21l-0.51,0.43l-0.66,2.86l-1.14,1.11l-3.01,1.52l-1.1,1.73l-0.38,1.51l-2.5,2.67l-11.51,-0.31l-6.41,-3.85l-1.68,-3.55l-4.06,-5.72l-1.52,-3.21l-1.54,-6.52l-4.24,-8.29l-6.92,-4.63l-7.54,-2.4l-2.96,-3.11l-3.63,-1.97l-8.59,-0.06l-2.53,-0.98l-6.04,-0.91l-2.75,-1.44l1.61,-3.49l6.04,-5.1l3.49,-0.52l0.25,-0.65l-4.23,-5.18l-2.61,-5.7l-3.23,-2.43l-6.65,-1.91l-2.22,-2.65l3.16,-6.0l5.96,-0.98l0.76,-1.52l-0.03,-1.83l-0.53,-1.85l-1.24,-0.66l-7.13,-1.39l1.77,-2.97l2.53,-2.35l3.24,-2.28l1.55,-4.44l-0.36,-4.48l0.06,-4.49l1.08,-4.3l2.76,-0.5l11.73,8.61l0.54,-0.06l2.03,-2.41l0.8,-4.86l-0.87,-4.91l-2.87,-2.43l-3.97,-6.03l2.16,-8.38l2.08,-2.74l2.6,-0.95l9.83,1.37l3.05,-0.84l6.36,-5.99l2.74,-1.34l3.03,-0.49l2.98,-1.37l3.47,-8.28l2.31,-1.73l4.58,1.65l2.76,6.79l14.74,9.07l2.03,2.32l1.89,3.01l2.57,1.94l11.02,2.26l12.48,-2.0l3.23,-1.86l2.61,-3.65l2.62,-2.48l2.25,0.78l0.71,4.58l2.71,3.15l1.11,4.71l6.33,4.06l6.86,0.59l15.03,4.66l28.33,-5.9l0.26,1.4l-0.29,0.65l-2.2,1.36l0.16,1.3l1.52,1.13l0.26,2.57l-0.65,6.1l-0.57,1.16l-0.09,1.03l0.32,1.02l0.91,0.93l2.45,10.02l0.74,4.94l0.1,5.2l-0.73,5.53l-1.66,4.69l-1.3,1.97l-1.46,0.78l-2.46,0.45l-1.65,1.24l-2.56,4.27l-4.25,5.05l-1.17,5.07l-1.08,2.11l-2.71,3.26l-1.56,1.32l-5.73,1.49l-8.59,3.85l-0.19,0.55l1.11,2.62l-1.49,1.57l-2.19,1.29l-2.09,0.46l-2.0,-0.64l-5.46,4.76l-1.64,0.03l-0.51,0.62l0.09,1.47l-0.77,0.57l-1.07,-0.64l-0.65,0.21l-0.45,1.88l-2.08,1.49l-0.53,0.92l-0.1,1.02l-1.39,0.76l-1.61,2.35Z", "name": "\u015awi\u0119tokrzyskie"}, "PL-ZP": {"path": "M7.21,147.62l-0.64,-2.1l-1.26,-1.61l1.28,-0.84l1.38,-3.71l2.09,1.33l2.86,1.07l8.89,0.74l3.68,-0.75l3.64,-1.93l6.41,-4.74l23.7,-10.57l20.52,-5.4l24.97,-10.57l33.88,-9.13l17.43,-7.92l14.41,-1.81l7.97,-2.67l-3.83,1.72l-0.07,0.69l2.25,1.46l7.92,-1.39l0.33,-0.39l0.0,-0.95l-0.61,-0.4l0.0,-0.34l3.88,0.0l0.4,-0.42l-0.11,-0.96l-0.48,-0.28l0.16,-2.26l-0.38,-0.43l-2.9,0.14l2.95,-1.94l1.1,-1.27l0.46,0.31l3.89,-1.22l1.35,-1.55l3.2,-1.55l1.21,-1.77l-1.07,-2.24l-2.26,-0.22l2.16,-3.73l9.52,-12.29l-0.31,0.97l0.23,0.49l1.21,0.39l1.61,-0.67l1.15,-1.34l0.57,-2.59l-0.99,-0.75l-1.06,0.45l0.88,-1.77l3.04,-3.06l6.02,-3.77l19.05,-2.9l6.25,12.65l7.41,10.77l2.73,5.58l0.64,7.24l-0.92,3.96l-2.3,2.38l-0.75,2.93l1.01,2.48l1.68,2.35l0.32,3.58l-1.27,1.95l-12.37,3.06l-0.28,0.51l5.7,17.39l0.7,8.37l0.03,8.39l3.95,3.06l2.1,2.51l3.38,6.86l2.58,2.35l2.02,2.92l1.37,2.94l-4.46,-0.54l-4.51,2.12l-0.23,0.38l0.1,3.0l1.92,1.15l1.46,2.45l0.94,3.0l-2.56,4.56l-3.83,4.13l1.51,15.84l-2.92,-0.9l-3.43,0.09l-3.54,1.62l-2.4,4.19l-1.74,4.98l-2.24,9.42l-2.41,0.47l-16.49,-0.44l-2.43,3.29l0.11,6.1l1.5,5.55l5.64,5.49l6.91,1.82l3.22,1.69l2.68,3.45l0.53,4.03l-2.69,3.35l-2.09,3.71l-2.49,2.37l-6.61,2.08l-13.01,7.61l-7.38,11.53l-8.57,8.13l-5.4,2.12l-5.42,0.73l-5.38,-3.21l-4.7,-1.58l1.54,-6.96l-2.37,-7.32l-4.81,-1.27l-5.03,0.68l-4.98,3.89l-8.02,10.29l-4.38,3.21l-18.38,-0.05l-15.3,5.24l-5.02,0.27l-0.3,0.64l1.77,2.42l2.17,0.48l-3.14,5.98l-5.39,6.27l-4.51,0.64l-15.14,-4.9l-8.96,5.06l-5.7,12.51l-6.95,9.82l-4.39,1.85l-7.86,1.39l-2.02,3.08l-2.0,7.2l-4.72,-5.33l-5.42,-2.2l-2.51,-3.45l-1.8,-0.9l-0.84,-0.81l-3.04,-6.02l-1.51,-1.78l-9.54,-7.06l-2.43,-1.31l-3.03,-3.53l-1.8,-0.8l-2.08,-0.18l-1.77,-0.56l-1.43,-1.13l-0.85,-1.73l2.25,-2.0l0.97,-1.93l0.37,-2.82l-1.83,-9.43l4.16,-3.1l5.5,-2.9l5.29,-4.23l2.87,-3.05l1.21,-2.7l2.96,-9.76l-1.03,-6.85l0.24,-1.9l0.61,-1.74l2.47,-2.79l2.36,-4.67l-0.08,-0.47l-3.34,-3.89l-0.46,-5.38l-2.49,-11.62l-0.94,-7.79l-1.91,-3.3l-0.97,-3.21l-2.14,-3.32l-0.63,-3.01l0.01,-10.38l-1.9,-5.96l-1.32,-2.9l0.36,-2.31l-0.1,-3.91l2.25,-0.79l1.42,-1.43l-0.05,-1.6l-1.07,-0.75l0.49,-0.36l0.29,-0.91l-1.01,-1.0l0.14,-0.3l2.77,1.85l1.14,3.0l1.34,1.03l2.39,1.15l2.77,2.75l4.12,0.76l4.73,1.7l1.58,1.24l1.32,1.9l2.98,5.72l1.03,1.34l0.59,0.05l0.6,-0.72l0.1,-2.38l0.37,-1.29l2.03,-2.14l0.0,-1.97l-0.29,-0.42l-3.26,-0.5l-0.83,-0.44l-2.69,-6.49l0.56,-3.21l2.0,-5.99l0.96,0.6l1.88,-0.83l1.3,-0.07l0.37,-0.46l-0.63,-3.78l1.24,-8.58l-0.4,-0.44l-0.61,0.0l-0.4,0.35l-0.21,1.74l-0.63,1.09l-2.11,2.14l-0.06,0.44l-0.98,-1.13l1.61,-1.86l0.08,-0.46l-1.4,-2.76l-2.29,-1.26l-9.81,-1.03l-1.14,-1.26l1.05,-2.74l-0.09,-0.42l-0.47,-0.88l-0.73,-0.09l-0.81,1.39l-0.39,0.12l-1.77,-0.66l-1.03,0.32l-2.15,2.86l0.24,0.64l2.64,0.51l1.33,0.61l0.6,0.78l-0.15,1.58l-0.81,1.17l-0.83,0.38l-1.07,-0.48l-2.41,1.53l-2.38,0.49l-0.36,0.4l0.0,1.04l0.74,0.56l-0.35,0.07l-3.16,-1.02l-1.36,-0.92l-4.28,-6.21l-2.34,-1.12Z", "name": "West Pomeranian"}, "PL-SL": {"path": "M350.31,707.08l0.11,-1.93l5.21,-10.23l11.14,-2.33l5.52,-4.14l8.87,-4.34l0.98,-4.17l0.07,-7.2l-1.52,-18.02l0.73,-2.58l1.78,-0.36l2.21,-1.27l0.18,-2.53l-0.97,-2.52l1.06,-2.85l2.37,-0.57l13.0,0.12l0.4,-0.48l-1.11,-5.28l-2.89,-3.09l-2.9,-2.26l-2.31,-3.15l-1.68,-5.19l2.11,-5.72l1.59,-8.84l2.33,-4.92l7.1,-4.76l0.65,-5.04l-1.22,-2.81l-0.53,-3.09l0.62,-2.03l1.15,-1.43l3.05,-10.79l4.27,-2.09l12.76,-0.46l2.99,-1.41l2.71,-1.87l2.87,0.57l2.77,2.79l11.85,6.4l5.91,1.22l7.17,-0.04l3.21,-2.67l5.74,1.07l5.29,4.87l8.58,13.52l3.17,0.94l8.89,-0.49l9.67,4.93l7.73,1.52l0.91,0.5l0.31,3.0l-0.32,0.84l-6.22,1.18l-3.38,6.42l0.05,0.44l2.67,3.07l6.7,1.93l2.96,2.26l2.52,5.59l3.82,4.68l-3.11,0.52l-6.19,5.23l-1.91,4.06l0.18,0.52l3.15,1.64l6.19,0.95l2.27,0.89l0.76,5.09l-11.08,6.96l-2.71,0.43l-5.09,-0.4l-5.1,0.85l-7.89,6.15l-2.15,0.49l-2.15,0.01l-4.88,-2.82l-0.53,0.12l-2.44,3.66l-2.48,5.0l-3.74,5.35l-5.75,-0.83l-3.13,2.29l-0.04,0.6l4.75,4.75l3.98,5.53l-21.09,23.72l-2.03,3.0l-2.03,4.2l-0.95,5.0l1.81,2.37l2.49,0.38l1.74,2.2l0.24,4.7l2.68,4.83l4.64,1.92l1.73,3.19l1.35,4.24l3.02,2.9l3.56,1.63l5.71,1.01l-0.27,3.21l-1.5,3.04l-0.79,2.97l1.16,2.77l2.14,1.52l0.23,0.79l-0.79,0.42l-8.66,9.72l-2.02,0.61l-2.73,-0.03l-1.82,0.38l-1.66,0.82l-1.31,1.25l-1.33,2.13l-1.44,4.49l0.59,1.36l-0.16,0.68l-1.49,0.23l-0.3,0.3l-0.86,4.37l-0.54,0.92l-2.61,1.05l-2.17,0.43l-0.79,-0.05l-2.52,-1.68l-1.15,-0.35l-2.07,0.51l-3.39,1.98l-2.13,0.17l-1.47,-0.27l-0.4,-1.25l0.36,-4.54l-0.76,-5.79l0.76,-2.26l-0.17,-0.47l-2.77,-1.65l-8.47,-0.78l0.31,-1.99l-0.27,-2.91l-1.3,-5.94l-1.86,-4.97l-0.99,-5.9l-1.79,-1.27l-3.95,0.95l-0.97,-0.58l-2.94,-3.05l-1.5,-0.48l-2.66,-0.23l-1.03,-0.72l-0.49,-0.91l-0.92,-4.08l-2.11,-4.35l-1.53,-4.14l-0.03,-3.51l2.37,-2.76l-0.11,-0.61l-2.23,-1.2l-0.33,-1.47l0.21,-2.2l-0.74,-2.79l-1.75,-0.8l-3.44,2.21l-1.87,0.01l-6.58,-3.65l-3.72,-1.29l-3.62,0.45l-0.35,0.42l0.45,0.38l-2.18,1.9l-1.01,0.2l-1.57,-1.29l-1.58,-3.94l-1.22,-0.86l-3.03,-0.87l-2.79,-2.41l-1.43,-0.8l-5.72,-1.11l-0.95,-1.1l0.54,-2.38l-0.17,-0.42l-5.25,-3.44l-1.07,-0.29Z", "name": "Silesian"}, "PL-WN": {"path": "M470.79,94.8l1.58,-1.38l1.58,-4.16l3.4,-5.14l2.21,-2.07l2.27,-1.01l6.96,-4.42l1.4,-0.58l3.67,-0.55l5.77,-4.27l2.6,-0.76l0.88,-0.96l1.08,-2.98l1.21,-0.25l0.31,-0.49l-0.43,-2.52l0.92,-0.14l263.99,14.08l6.46,-2.14l1.79,-1.5l1.73,-3.21l-2.19,7.23l-5.03,5.27l-5.85,3.98l-19.95,2.81l-8.72,12.21l0.01,0.47l9.01,12.08l0.49,4.5l1.07,4.44l4.53,4.46l9.43,13.23l-0.31,6.88l-3.63,6.97l-3.1,8.79l-5.07,5.37l-24.98,15.55l-8.78,9.93l-15.39,10.58l-6.72,1.02l-2.93,1.27l-2.58,2.05l-5.51,1.95l-12.77,-0.75l-6.66,2.88l-10.95,0.89l-2.38,1.37l-2.53,5.01l-3.51,2.49l-3.93,0.61l-8.28,-0.61l-6.74,8.04l-7.91,2.53l-8.73,0.02l-6.53,3.77l-5.59,1.17l-6.65,0.01l-3.3,2.7l-2.93,3.5l-12.46,7.22l-3.16,0.95l-3.66,-0.27l-2.91,2.37l-1.5,4.97l-2.22,2.61l-2.59,1.31l-6.64,1.22l-28.15,-4.35l-1.36,-2.22l-1.4,-0.97l-1.68,-0.39l-3.77,1.12l-2.52,4.74l-2.46,2.05l-2.56,0.65l-1.33,-13.34l-4.77,-11.94l-5.13,-3.58l-10.19,-2.68l-9.64,-5.8l-6.89,-2.28l-1.73,-0.09l-1.93,-0.84l-1.32,-1.91l-2.69,-5.11l-2.24,-6.51l-7.68,-15.01l13.13,-24.52l3.11,-3.39l3.6,-2.28l7.12,0.47l5.27,-2.27l0.41,-2.7l1.07,-1.68l1.38,-4.25l1.65,-1.69l1.12,-2.21l0.36,-4.96l-0.29,-0.44l-4.63,-1.25l-8.78,0.72l-2.79,-1.37l1.59,-6.03l-2.61,-3.35l-4.53,-0.6l-4.18,-2.47l-2.92,-4.84l-1.61,-6.48l-0.22,-2.83l1.33,-1.99l3.95,-4.04l1.43,-2.54l1.03,-3.04l-0.95,-3.84l-1.86,-3.34l-1.94,-5.78l0.6,-5.02l1.95,-2.24l7.78,1.01l1.76,-0.21l0.0,0.52l-0.81,0.79l-0.67,1.49l-0.43,4.19l0.39,0.35Z", "name": "Warmian-Masurian"}, "PL-MZ": {"path": "M804.0,386.49l-2.1,3.95l-8.52,12.61l-2.59,6.03l-2.87,3.68l-3.23,1.21l-10.37,-5.35l-4.08,-0.83l-1.7,1.15l-1.49,1.58l-1.08,4.1l-4.76,3.88l-9.71,-0.92l-3.54,0.4l-8.72,6.48l-2.99,0.97l-4.61,-0.84l-12.26,2.45l-13.08,-0.06l-6.96,2.04l-6.38,4.76l0.43,4.13l1.45,4.09l1.76,3.78l0.38,3.9l2.18,5.4l2.96,4.54l-4.71,2.9l-3.46,4.88l-0.01,0.45l4.44,6.84l-0.55,3.02l-2.08,1.98l-6.19,2.19l-6.4,-1.0l-3.17,-1.3l-3.5,0.85l-1.22,4.12l0.18,1.66l1.18,1.98l1.47,1.69l2.5,1.16l4.83,1.02l1.7,-0.2l2.11,-0.94l0.65,0.06l1.18,0.81l0.4,4.76l1.63,2.63l0.26,1.52l-1.24,1.47l-0.09,1.25l0.36,0.4l2.4,0.24l-0.09,5.41l-2.07,2.88l-2.21,1.96l-0.09,3.78l3.48,4.17l-0.52,3.93l-1.09,4.32l0.14,2.77l-0.82,0.19l-0.84,0.72l-1.2,2.42l-2.9,14.04l1.04,3.82l0.72,4.65l2.02,5.06l-28.16,5.87l-14.77,-4.63l-6.89,-0.61l-5.93,-3.86l-1.0,-4.57l-2.61,-2.95l-1.0,-5.01l-3.12,-0.85l-2.87,2.73l-2.59,3.61l-2.83,1.62l-12.33,1.98l-10.71,-2.23l-2.18,-1.66l-1.9,-3.02l-2.18,-2.47l-14.68,-9.03l-2.62,-6.64l-4.95,-1.93l-0.28,-3.9l1.09,-3.74l5.78,-5.47l1.53,-4.1l0.01,-4.63l-1.39,-1.68l-3.15,-1.52l-0.62,-2.12l-0.33,-4.56l-0.89,-4.5l-2.64,-6.37l2.21,-7.71l6.6,-0.01l5.43,2.91l6.53,0.9l0.41,-0.22l1.2,-2.53l0.21,-3.62l-1.46,-3.83l-4.76,-4.96l-0.79,-3.94l0.43,-1.68l1.69,-2.99l-0.62,-2.8l-5.29,-7.09l-6.66,-5.18l-6.18,-2.79l-9.44,1.08l-2.96,-0.96l-0.69,-2.09l0.15,-2.92l-2.14,-3.21l-2.39,-2.74l-0.65,-2.71l2.94,-1.9l0.85,-7.61l-1.33,-1.65l-3.58,-2.4l-6.17,-2.49l-1.49,0.29l-1.03,-0.55l-1.73,-3.88l-0.31,-5.07l-1.15,-3.83l-2.63,-1.94l-3.25,-0.99l-2.68,-1.39l-2.1,-3.67l-2.47,-3.17l-3.69,0.15l-3.02,2.97l-18.36,3.81l-8.24,-6.65l-4.7,-2.2l-9.37,-1.99l-8.37,-5.78l0.89,-4.67l6.6,-10.91l-0.31,-2.99l-1.83,-1.99l0.45,-5.41l2.37,-4.86l5.97,-17.43l3.65,-0.98l0.3,-0.39l-0.1,-5.05l-2.59,-6.26l-1.5,-2.8l-0.95,-2.96l0.71,-2.79l1.83,-2.15l0.45,-5.61l-1.26,-5.55l4.13,0.41l3.75,-3.17l1.73,-2.59l1.68,-1.62l3.26,1.84l1.71,0.2l0.43,-0.27l0.88,-2.61l0.74,-5.88l-1.28,-9.97l4.41,-2.09l4.24,-3.44l3.17,-0.85l2.69,-2.29l2.24,-4.46l3.3,-1.03l1.36,0.29l1.24,0.86l0.6,1.31l1.03,1.08l28.36,4.38l7.0,-1.28l2.84,-1.47l2.33,-2.73l1.56,-5.08l2.55,-1.99l3.45,0.33l3.37,-1.02l12.56,-7.28l3.06,-3.62l3.11,-2.53l6.29,0.08l5.79,-1.2l6.61,-3.79l8.6,0.02l8.08,-2.59l6.86,-8.09l7.77,0.74l4.17,-0.63l3.84,-2.67l2.64,-5.13l2.02,-1.1l10.43,-0.82l1.12,4.9l2.07,4.92l1.43,5.87l2.28,17.34l5.01,12.64l3.47,6.56l4.77,2.61l4.97,0.74l3.77,2.93l-1.34,2.63l0.42,3.95l2.29,4.11l3.53,2.01l2.1,2.17l1.27,3.6l1.23,5.44l2.42,4.46l6.82,3.54l6.81,-1.01l4.47,-4.72l3.86,2.93l-1.38,7.97l2.42,3.57l3.21,1.99l5.03,-2.53l4.76,-1.34l1.31,6.53l0.56,7.7l1.09,5.25l0.28,5.47l-0.28,3.18l5.11,5.66l1.85,2.57l2.55,2.49l0.2,1.28l-0.77,3.68l0.33,1.98l0.55,1.47l0.96,0.79l1.02,0.17l-0.37,5.37l0.68,1.66l1.51,2.16l1.9,1.49l1.63,-0.47l1.12,1.61l2.19,0.54l4.8,-0.24l13.93,2.89l7.06,-0.96l2.45,0.79l1.92,1.87l0.82,3.23l0.57,0.26l1.72,-0.91l1.38,0.81l2.31,2.8l-1.06,2.81l0.16,0.49l1.49,0.93l1.9,-0.47Z", "name": "Masovian"}, "PL-PD": {"path": "M780.79,69.21l2.0,-0.94l1.73,0.24l5.46,2.8l3.78,-0.12l0.82,0.84l1.59,3.5l1.19,0.76l2.9,0.34l0.37,0.56l-0.8,3.01l-0.03,1.74l1.69,2.5l2.39,0.16l3.9,-1.3l1.46,0.71l5.58,4.69l3.43,2.11l7.24,2.76l3.36,2.87l3.3,5.64l1.15,0.79l2.58,0.94l1.41,2.1l2.2,6.4l1.98,10.35l0.03,3.31l-1.25,2.19l-2.03,2.23l-0.1,1.96l0.43,1.5l2.19,2.55l0.21,0.63l-0.42,1.68l0.12,4.56l3.03,11.04l0.84,8.14l1.0,3.24l2.12,3.13l0.21,9.26l2.14,10.57l7.63,23.55l4.25,8.87l1.79,4.73l3.59,14.19l1.6,4.32l1.64,2.24l2.63,6.59l3.2,3.07l0.86,1.63l-0.19,3.46l-2.73,5.95l-0.15,3.06l0.79,2.67l2.76,3.6l0.99,2.11l0.13,1.03l-0.2,2.75l0.8,5.29l-1.51,4.18l0.1,1.71l0.88,2.7l0.93,22.4l-1.21,6.19l-3.47,4.3l-11.83,8.09l-15.04,4.31l-8.01,4.69l-7.92,6.61l-11.0,16.95l-3.59,4.41l-1.68,2.62l-4.19,8.58l0.64,0.77l-0.19,0.13l-1.37,0.02l-2.72,-1.65l-1.75,-0.46l-4.07,1.88l-1.05,-0.65l0.98,-3.1l-2.53,-3.06l-1.74,-1.05l-1.85,0.76l-0.83,-3.03l-2.23,-2.11l-2.8,-0.86l-6.95,0.96l-13.91,-2.89l-4.78,0.25l-1.97,-0.48l-0.96,-1.59l-0.5,-0.16l-1.33,0.57l-1.59,-1.22l-1.45,-2.07l-0.58,-1.44l0.53,-4.78l-0.25,-0.87l-1.46,-0.46l-0.59,-0.54l-0.38,-1.12l-0.31,-1.81l0.77,-3.56l-0.28,-1.78l-2.64,-2.61l-1.87,-2.6l-4.9,-5.24l0.26,-3.09l-0.29,-5.53l-1.09,-5.26l-0.56,-7.75l-1.4,-6.98l-0.5,-0.31l-5.21,1.47l-4.92,2.46l-2.55,-1.78l-2.12,-2.99l1.39,-8.04l-0.15,-0.39l-4.34,-3.3l-0.54,0.05l-4.39,4.76l-6.55,0.97l-6.18,-3.22l-2.29,-4.2l-1.22,-5.41l-1.32,-3.75l-2.38,-2.49l-3.33,-1.83l-2.2,-3.94l-0.35,-3.59l1.4,-2.59l-0.11,-0.51l-4.12,-3.2l-5.06,-0.78l-4.6,-2.52l-3.24,-6.27l-4.97,-12.54l-2.26,-17.26l-1.44,-5.92l-2.07,-4.91l-1.12,-4.88l6.15,-2.7l12.91,0.73l5.64,-2.0l2.71,-2.12l2.74,-1.17l6.83,-1.06l15.5,-10.66l8.76,-9.92l24.97,-15.54l5.24,-5.53l3.21,-8.98l3.64,-6.98l0.37,-7.28l-9.61,-13.62l-4.52,-4.46l-0.93,-4.1l-0.57,-4.74l-8.9,-11.94l8.18,-11.66l19.87,-2.8l6.13,-4.12l5.28,-5.59l2.27,-7.46l-0.19,-1.22Z", "name": "Podlachian"}, "PL-LB": {"path": "M62.64,501.31l-2.01,-1.43l-5.77,-1.95l-1.84,-1.93l-0.45,-2.36l0.69,-2.66l1.75,-2.8l1.08,-3.05l-0.15,-3.81l-0.89,-3.75l-1.29,-2.72l-4.34,-3.62l-1.94,-2.29l-0.9,-3.57l-0.43,-4.0l-1.24,-1.67l-1.65,-1.17l-1.38,-2.11l-0.25,-2.87l1.1,-2.36l5.14,-5.26l1.69,-2.27l1.38,-2.62l0.81,-3.02l0.31,-8.84l2.41,-4.92l0.83,-3.99l2.27,-3.2l-0.07,-0.57l-5.75,-4.33l-0.81,-1.9l0.53,-3.64l0.95,-2.62l0.36,-2.16l-1.29,-2.22l0.0,-0.66l1.75,-2.46l-0.02,-3.19l-1.58,-2.75l-2.52,-1.1l-2.57,-0.61l-2.93,-1.51l-1.83,-2.07l0.47,-2.72l-1.88,-4.26l-2.11,-6.36l-0.48,-5.6l4.57,-4.07l2.17,-3.46l1.51,-3.52l-0.4,-1.84l-1.62,-1.57l0.64,-3.16l2.5,-5.26l-0.11,-0.48l-3.12,-2.68l2.12,-7.64l1.84,-2.76l7.47,-1.2l4.8,-2.08l7.07,-10.01l5.66,-12.43l8.52,-4.73l14.74,4.91l4.94,-0.66l5.76,-6.56l3.47,-6.58l-0.29,-0.58l-2.3,-0.39l-1.24,-1.69l4.45,-0.26l15.16,-5.21l18.68,-0.03l4.61,-3.4l8.03,-10.29l4.59,-3.64l4.7,-0.66l4.22,0.94l2.26,7.0l-3.4,15.59l0.28,9.46l-8.65,11.14l0.04,0.54l2.67,2.49l1.87,7.08l-0.77,2.09l-1.58,1.03l-8.37,2.65l-1.28,-0.15l-0.41,0.23l-0.66,1.54l-0.48,6.5l0.34,8.26l3.19,8.82l1.09,5.11l0.7,5.35l-0.01,4.0l-2.24,0.07l-1.92,1.34l-0.12,0.52l3.8,6.76l1.75,4.28l0.19,8.89l-2.9,8.62l-1.71,8.74l-0.06,4.94l0.71,4.68l2.17,3.29l2.5,2.61l4.91,2.64l1.55,4.41l2.1,3.85l3.25,3.29l3.63,0.18l1.52,-0.62l1.13,0.71l0.13,2.64l-0.81,2.82l-0.41,5.02l1.5,4.25l3.86,2.65l4.18,1.4l6.64,-4.33l5.56,6.15l2.74,10.55l-4.28,6.95l-5.36,4.7l-6.76,1.51l-4.75,-6.09l-0.29,-4.9l-2.5,-2.83l-13.85,-2.67l-0.4,0.16l-1.82,2.54l-1.29,3.67l-2.57,2.62l-3.06,1.01l-2.16,1.63l-8.82,17.28l-9.84,13.02l-6.07,1.51l-12.81,-6.93l-6.76,2.42l-3.03,3.64l-4.41,7.62l-2.24,-0.18l-5.18,-4.5l-2.86,-0.05l-15.71,8.24l-0.27,-3.06l0.72,-2.04l-1.0,-2.09l-3.18,-2.94l-2.09,-1.0l-4.17,-1.24l-1.97,-1.13Z", "name": "Lubusz"}, "PL-LD": {"path": "M464.45,379.47l8.57,5.91l9.55,2.06l4.53,2.13l8.6,6.77l18.66,-3.87l2.96,-2.94l2.98,-0.27l2.29,2.93l2.31,3.91l2.89,1.49l3.11,0.93l2.31,1.61l1.08,3.56l0.35,5.23l2.0,4.26l1.29,0.69l1.55,-0.27l6.02,2.43l3.42,2.3l1.1,1.39l-0.89,6.95l-2.83,1.66l-0.19,0.44l0.83,3.27l2.41,2.76l2.04,3.07l-0.21,2.61l0.8,2.51l3.66,1.32l9.41,-1.08l5.83,2.69l6.43,4.99l5.21,6.98l0.52,2.17l-1.66,2.94l-0.47,1.84l0.83,4.32l4.88,5.19l1.32,3.53l-0.22,3.28l-1.0,2.05l-6.17,-0.85l-5.51,-2.93l-7.0,0.01l-0.38,0.29l-2.32,8.4l2.66,6.39l0.87,4.38l0.33,4.58l0.69,2.42l3.45,1.81l1.01,1.14l-0.01,4.4l-1.45,3.8l-5.8,5.51l-1.14,3.91l0.28,4.15l-2.53,1.96l-3.25,8.03l-2.79,1.28l-3.05,0.5l-2.85,1.39l-6.27,5.94l-2.71,0.77l-9.85,-1.38l-3.18,1.18l-2.27,3.04l-2.23,8.63l4.16,6.55l2.74,2.23l0.83,4.56l-0.69,4.48l-1.72,2.04l-11.56,-8.49l-3.49,0.5l-0.32,0.3l-1.16,4.69l-0.06,4.56l0.36,4.45l-1.46,4.07l-3.0,2.03l-2.65,2.45l-1.97,3.27l-9.43,-4.81l-9.13,0.45l-2.82,-0.85l-8.3,-13.27l-5.68,-5.17l-6.04,-1.12l-3.32,2.7l-6.98,0.04l-5.72,-1.2l-11.64,-6.3l-2.72,-2.77l-3.36,-0.74l-3.13,2.02l-2.83,1.33l-12.61,0.42l-4.44,2.13l-6.48,-5.24l-2.05,-4.0l-2.46,-3.03l-0.51,-0.1l-1.07,0.61l-0.94,1.57l-1.01,0.89l-6.15,0.17l-19.95,-5.15l-2.52,-2.02l-1.93,-3.49l-0.56,-6.6l-0.93,-3.99l-5.2,-4.76l-1.62,-3.83l-0.24,-4.48l1.33,-2.93l6.63,-1.59l2.3,-3.67l1.43,-4.32l4.13,-1.25l5.16,2.31l4.41,-3.25l2.53,-7.0l-0.15,-7.71l-0.89,-7.87l0.44,-9.52l2.29,-8.76l4.15,-9.93l2.23,-3.06l4.95,-2.34l12.89,1.41l1.41,-1.32l4.37,-7.8l0.34,-4.75l-1.68,-4.66l-0.99,-5.03l0.63,-4.89l1.15,-4.19l2.52,-0.22l3.2,0.35l6.02,-1.42l4.76,-5.5l0.92,-9.34l0.89,-3.87l8.77,-3.76l5.68,-5.43l-0.12,-1.78l-1.44,-0.65l-1.61,-3.44l-0.14,-4.5l1.41,-2.34l1.37,-0.76l11.09,-0.24l3.4,-1.02l2.06,-3.35l3.1,-0.21Z", "name": "\u0141\u00f3d\u017a"}, "PL-KP": {"path": "M449.34,197.46l7.59,14.84l2.24,6.51l2.72,5.16l1.43,2.06l2.28,1.05l1.79,0.1l6.79,2.25l9.68,5.81l10.18,2.68l4.85,3.41l4.57,11.59l1.32,13.42l-4.1,3.33l-4.56,2.15l-0.22,0.44l1.33,10.1l-0.72,5.74l-0.75,2.2l-1.28,-0.15l-1.66,-1.17l-1.74,-0.72l-0.43,0.08l-1.96,1.9l-1.65,2.49l-3.57,3.02l-4.22,-0.55l-0.44,0.49l1.38,6.05l-0.44,5.29l-1.79,2.06l-0.75,3.22l0.99,3.1l1.52,2.85l2.55,6.17l0.07,4.52l-3.83,1.21l-6.04,17.61l-2.38,4.86l-0.51,5.81l1.87,2.11l0.33,2.46l-6.57,10.86l-0.93,4.78l-3.23,0.26l-2.15,3.39l-3.18,0.96l-11.22,0.28l-1.74,1.04l-1.22,2.11l-8.52,-6.38l-3.28,0.48l-9.35,3.96l-2.88,0.23l-2.46,-5.45l-14.84,-12.19l-2.81,-3.27l-3.12,-1.45l-1.94,0.14l-1.77,0.74l-1.01,1.72l-1.1,0.65l-1.87,-0.59l-1.6,-2.4l-1.08,-2.32l-0.85,-2.9l-1.41,-0.96l-1.73,-0.47l-0.41,0.13l-5.17,6.09l-2.86,1.3l-8.86,-2.35l-2.81,-2.66l-2.74,-3.35l-3.04,-1.24l-3.36,-0.26l-3.08,-1.6l-9.23,-8.47l-6.77,-3.67l-6.36,-0.39l-6.55,-2.44l-0.59,-0.75l-0.37,-2.36l-0.8,-2.07l-2.92,-2.53l-0.53,0.01l-1.52,1.39l-3.42,1.14l-3.37,-0.64l-1.68,-2.71l-1.4,-3.45l-3.17,-3.1l0.55,-3.47l1.27,-0.97l1.62,0.07l1.45,-0.52l1.29,-2.22l1.93,-10.86l-4.52,-9.87l-6.81,-5.12l-7.01,-2.55l3.87,-8.93l1.3,-9.41l-2.79,-5.54l-0.74,-6.05l8.04,-6.81l0.11,-0.47l-4.33,-9.78l-7.64,-6.04l-0.96,-4.18l6.36,-8.39l2.48,-5.51l2.59,-1.71l2.7,-9.46l2.15,-4.73l2.38,-3.29l3.06,-0.33l12.39,3.24l5.85,-2.27l0.25,-0.37l0.05,-3.17l0.82,-3.95l2.73,-2.56l6.31,-2.46l3.62,-6.66l2.21,-1.72l11.37,2.19l15.17,-2.28l2.94,0.26l2.59,3.32l3.14,2.91l16.09,2.68l7.59,4.53l0.43,-0.01l3.31,-2.18l5.03,-1.8l7.15,1.01l1.64,0.92l1.17,1.41l1.5,1.0l5.95,6.15l2.85,1.82l4.89,1.95l10.41,-0.59l4.66,-2.04Z", "name": "Kuyavian-Pomeranian"}, "PL-LU": {"path": "M813.11,386.79l1.29,1.65l0.26,1.76l-0.69,2.53l0.17,0.44l2.14,1.35l6.46,1.75l1.39,-0.46l1.14,1.1l5.58,2.1l1.63,0.19l-0.62,1.73l0.35,0.71l1.55,-0.36l1.87,1.3l0.85,0.16l1.24,-1.18l1.6,1.64l0.58,0.03l1.04,-1.01l-0.1,1.96l-0.34,0.84l2.5,5.0l2.12,0.78l4.14,-0.13l1.49,0.91l1.54,3.17l1.93,1.18l0.44,3.29l0.73,1.79l1.26,5.48l0.93,2.27l-1.26,0.97l-1.18,1.87l-1.73,4.1l-0.62,2.83l-0.06,4.65l-0.56,1.58l0.58,0.9l-1.06,0.78l-0.36,3.04l-0.93,1.11l-0.04,0.44l1.41,2.63l1.56,2.13l-0.92,3.09l-1.62,1.61l-1.94,1.21l-1.6,1.89l-1.25,6.01l1.07,2.51l-0.67,0.36l-0.43,0.79l1.16,2.43l-0.92,1.14l-1.49,0.75l0.11,1.35l0.93,1.01l-0.36,5.09l0.32,2.19l0.83,2.15l1.65,2.85l-0.52,-0.05l-0.4,0.58l1.11,2.26l2.65,1.36l1.26,4.92l4.03,2.26l-1.25,2.57l0.1,1.13l3.7,5.54l0.57,1.34l-0.86,0.47l-0.7,1.19l-0.1,1.62l0.46,1.59l-1.45,0.61l-1.65,1.77l-1.28,2.22l-0.49,2.09l0.58,3.06l1.62,1.01l1.8,0.08l1.34,0.88l4.98,10.91l2.02,2.47l4.62,2.96l4.2,4.3l0.77,1.33l-1.32,0.84l-0.31,1.58l1.35,2.88l2.34,3.63l0.75,1.84l1.04,5.9l-0.25,2.27l2.87,1.79l0.91,1.39l0.82,4.27l1.39,2.34l6.14,5.71l7.47,4.15l0.99,1.51l-0.93,2.09l-2.49,0.53l-2.94,0.02l-1.8,0.77l-2.45,-1.29l-2.67,0.41l-2.18,1.73l-1.14,2.63l0.17,2.72l1.4,2.02l2.28,1.12l2.28,0.3l-1.13,2.84l1.28,2.54l2.58,1.68l2.17,0.55l-0.48,3.02l0.73,3.04l2.23,5.38l-2.03,3.69l0.91,6.73l1.03,2.34l-2.71,3.3l-5.93,3.3l-0.26,6.24l-2.29,5.93l-4.5,1.87l-16.2,0.2l-3.22,1.0l-1.71,0.89l-1.3,1.31l-1.01,2.12l-0.98,3.25l-8.53,-5.0l-2.98,-4.41l-5.65,-3.63l-6.79,-0.8l-5.21,0.49l-2.49,1.07l-7.52,8.48l-5.71,4.63l-6.65,1.41l-20.09,-0.65l-12.06,-3.43l-0.62,-1.46l2.6,-0.65l1.52,-0.86l0.03,-0.68l-2.72,-1.72l-12.39,2.46l-2.93,-1.37l-2.22,-3.43l-0.61,-3.29l1.43,-2.78l2.12,-2.83l2.62,-0.87l2.95,0.28l2.46,-1.43l0.18,-0.46l-1.06,-3.51l-2.09,-3.91l-0.12,-3.74l-0.89,-1.53l-14.38,-7.8l-20.78,-5.29l-1.47,-2.56l3.98,-7.53l1.28,-3.66l-0.11,-0.43l-2.87,-2.53l-3.24,-2.02l-3.66,-1.37l-3.75,0.23l-5.83,4.1l-6.48,-0.33l-11.63,-7.93l-0.44,-2.93l-2.47,-10.08l-1.04,-1.2l-0.15,-0.62l0.66,-1.97l0.66,-6.24l-0.28,-2.79l-1.66,-1.39l0.0,-0.45l1.99,-1.14l0.51,-1.22l-0.37,-2.0l-2.18,-5.46l-0.7,-4.55l-1.02,-3.65l0.13,-1.56l1.08,-3.33l1.62,-8.88l1.04,-2.17l1.9,-1.14l-0.16,-2.95l1.08,-4.28l0.56,-4.18l-3.58,-4.49l0.17,-3.17l2.04,-1.67l2.17,-3.02l0.17,-6.13l-0.36,-0.4l-2.41,-0.24l0.0,-0.48l1.36,-1.82l-0.36,-1.93l-1.56,-2.44l-0.12,-3.65l-0.49,-1.51l-1.39,-0.95l-1.04,-0.15l-2.35,0.99l-1.45,0.15l-4.52,-0.96l-2.38,-1.1l-1.25,-1.49l-1.08,-1.82l-0.11,-1.33l0.86,-3.41l2.89,-0.77l3.18,1.29l6.74,1.01l6.37,-2.25l2.5,-2.43l0.55,-3.59l-4.38,-6.75l3.26,-4.59l4.88,-2.96l0.13,-0.56l-3.13,-4.79l-2.15,-5.31l-0.36,-3.8l-3.23,-7.96l-0.52,-3.4l6.13,-4.57l6.71,-1.94l12.95,0.08l12.31,-2.45l4.68,0.83l3.26,-1.08l8.49,-6.37l3.3,-0.39l10.12,0.85l4.99,-4.07l1.1,-4.15l1.39,-1.48l1.45,-0.97l3.46,0.8l10.48,5.4l3.82,-1.3l3.15,-3.94l2.61,-6.07l8.51,-12.59l2.83,-5.33l0.96,-0.42l1.45,0.36l2.98,1.73l1.61,-0.02l0.69,-0.4Z", "name": "Lublin"}, "PL-PM": {"path": "M239.62,40.88l6.23,-2.49l3.78,-0.64l3.46,-1.24l8.72,-9.52l26.97,-12.69l33.93,-6.44l15.26,-5.25l23.91,-2.21l14.69,0.0l1.9,0.7l3.28,2.87l1.29,0.66l1.82,0.42l3.53,2.11l-1.26,0.49l-0.79,1.05l-1.28,4.49l-0.18,3.37l0.72,0.94l2.06,0.93l1.46,2.34l1.27,2.77l-0.36,3.17l1.01,1.22l-0.43,3.15l1.42,1.43l1.71,-0.36l0.67,-0.71l-0.17,1.1l0.72,2.06l1.13,1.78l2.92,8.44l-0.34,3.49l0.07,6.12l0.63,5.96l1.49,2.79l1.35,0.45l2.8,2.13l4.07,1.06l1.14,0.74l0.55,1.31l1.72,2.28l15.15,4.91l3.44,0.27l2.76,-1.45l1.7,1.21l2.72,0.79l33.69,-5.04l7.51,-3.63l3.49,-0.82l1.48,-0.67l-6.9,5.28l-3.79,2.01l-3.7,1.07l-7.76,0.68l-3.81,1.43l-0.26,0.37l0.08,1.19l2.53,3.06l-0.57,0.82l-0.27,2.25l2.04,1.44l-1.97,2.36l-0.6,5.41l1.98,5.9l1.84,3.3l0.9,3.67l-0.97,2.66l-1.36,2.4l-3.88,3.94l-1.54,2.45l0.24,3.07l1.63,6.58l3.05,5.09l4.47,2.7l4.6,0.65l2.12,2.9l-1.69,5.82l0.21,0.47l3.4,1.6l8.82,-0.73l4.08,1.12l-0.31,4.63l-1.0,1.88l-1.7,1.78l-1.4,4.29l-1.11,1.82l-0.16,2.23l-4.77,2.1l-7.39,-0.41l-3.84,2.45l-3.24,3.55l-13.19,24.63l-4.67,2.08l-10.08,0.6l-4.77,-1.9l-2.71,-1.74l-8.53,-8.48l-2.02,-1.14l-7.52,-1.02l-5.17,1.85l-3.23,2.11l-7.57,-4.49l-16.04,-2.67l-2.82,-2.7l-2.92,-3.54l-3.25,-0.28l-15.15,2.27l-11.34,-2.21l-2.85,2.09l-3.59,6.6l-6.03,2.25l-3.01,2.78l-0.98,4.36l-0.05,3.0l-5.23,2.11l-12.33,-3.22l-3.74,0.5l-2.55,3.54l-2.18,4.79l-2.69,9.4l-2.09,1.28l-3.77,-4.53l-4.91,-2.74l-18.36,-0.79l-5.08,-3.11l-3.67,-6.49l-4.28,-5.3l-1.54,-16.14l3.68,-3.8l2.71,-5.07l-1.0,-3.21l-1.59,-2.68l-1.75,-0.91l-0.08,-2.49l4.17,-1.96l4.85,0.65l0.42,-0.57l-1.7,-3.63l-2.1,-3.05l-2.53,-2.27l-3.42,-6.92l-2.24,-2.65l-3.66,-2.65l-0.03,-8.23l-0.71,-8.43l-5.6,-17.12l12.11,-3.0l1.67,-2.37l-0.28,-4.08l-1.75,-2.53l-0.91,-2.07l0.59,-2.5l2.4,-2.57l0.96,-4.13l-0.64,-7.5l-2.84,-5.87l-7.38,-10.72l-6.21,-12.56ZM390.56,8.47l20.0,11.99l-3.31,-0.82l-1.0,-1.52l-2.49,-0.87l-5.32,-3.67l-5.24,-2.53l-0.87,-1.22l-1.77,-1.37ZM412.32,21.52l3.11,1.87l5.53,7.19l1.77,3.98l0.07,1.78l-1.05,0.51l-1.15,-2.45l-1.67,-1.24l-1.11,-2.9l-1.46,-1.87l-4.04,-6.87ZM487.58,64.32l3.89,-4.07l1.23,-0.54l0.44,0.36l-5.56,4.25Z", "name": "Pomeranian"}, "PL-OP": {"path": "M253.77,654.37l0.31,-1.37l6.43,-16.06l4.54,-3.49l5.62,-1.07l3.23,-5.57l2.1,-8.01l6.42,-12.26l7.47,-11.09l3.23,-7.49l4.2,-5.45l2.95,-2.08l1.45,-4.33l0.59,-3.75l0.93,-3.44l5.19,-11.96l2.21,-2.4l2.75,-0.92l3.13,0.2l3.24,-0.82l2.89,-1.77l2.9,-0.17l2.73,1.41l1.13,2.89l0.65,3.7l4.72,3.82l5.95,0.41l10.8,-3.94l9.98,-5.96l1.81,3.27l2.9,2.32l20.09,5.19l6.46,-0.16l1.42,-1.13l0.86,-1.48l0.68,-0.38l2.17,2.66l2.17,4.16l6.53,5.29l-3.01,10.63l-1.14,1.42l-0.67,2.2l0.55,3.42l1.19,2.63l-0.61,4.74l-7.01,4.6l-2.44,5.17l-1.59,8.86l-2.13,5.74l1.8,5.76l2.39,3.24l2.95,2.31l2.79,2.98l0.89,4.49l-12.56,-0.12l-3.01,0.89l-1.19,3.19l0.97,2.69l-0.15,2.21l-1.72,0.81l-1.88,0.37l-1.12,3.17l1.51,18.18l-0.07,7.13l-0.91,3.85l-8.52,4.0l-5.39,4.08l-11.51,2.56l-5.34,10.48l-0.15,2.02l-1.02,-0.26l-0.49,0.44l0.4,3.17l0.71,0.52l1.42,-0.18l0.47,0.71l0.13,1.14l-0.28,0.38l-2.75,0.82l-3.55,0.11l-1.72,0.44l-2.75,2.4l-3.08,0.94l-3.05,-0.65l-5.71,-5.7l-0.97,-1.34l-1.8,-4.89l-2.06,-2.69l1.07,-1.35l0.01,-0.72l-5.17,-2.08l-2.68,0.8l-1.2,-0.54l-4.24,-5.38l-0.15,-0.8l0.55,-1.17l0.78,-0.4l4.25,-0.16l2.53,-0.97l3.88,-2.33l1.99,-1.78l0.83,-2.46l-1.4,-2.6l-0.92,-0.94l-0.18,-1.23l1.35,-4.29l0.02,-0.91l-2.63,-3.36l-1.52,-0.57l-0.94,0.42l-0.87,2.24l-2.61,3.62l-1.43,1.17l-1.91,0.5l-7.94,-1.41l-4.39,0.39l-2.87,3.31l-0.66,0.3l-0.6,-0.26l-0.92,-2.67l-1.96,-1.59l-2.27,0.06l-1.13,2.33l-0.69,-0.52l-0.56,-1.29l-0.06,-3.48l-1.2,-1.58l1.26,-0.51l0.01,-0.74l-2.03,-0.82l-4.15,0.12l-2.02,-0.58l-3.07,-1.95l-1.3,-2.01l-0.93,-3.98l-1.25,-0.33l-3.79,0.55l-4.22,-2.96l-9.23,-2.59l-2.1,0.22l-0.96,-0.58Z", "name": "Opole"}, "PL-DS": {"path": "M75.0,573.21l-0.2,0.26l0.38,1.61l1.55,1.34l1.26,1.85l0.1,3.94l-1.36,2.1l-0.13,0.94l0.14,6.74l-9.89,-0.73l-3.33,0.91l-1.46,-0.05l0.01,-2.15l1.2,-1.98l3.24,-3.65l8.54,-21.01l0.46,-5.83l1.78,-2.68l0.29,-5.46l0.72,-3.97l1.2,-3.76l1.53,-3.01l-0.64,-1.14l0.41,-4.22l-1.31,-2.82l-2.07,-2.46l-1.62,-2.85l-1.13,-9.44l15.74,-8.33l2.34,-0.04l5.17,4.49l2.85,0.31l0.38,-0.2l4.52,-7.81l2.9,-3.47l6.31,-2.2l12.47,6.89l6.65,-1.54l10.2,-13.37l8.8,-17.23l1.8,-1.34l3.26,-1.12l2.7,-2.75l1.39,-3.85l1.58,-2.18l13.25,2.48l2.21,2.38l0.37,5.1l4.99,6.39l0.4,0.14l7.29,-1.68l5.55,-4.9l4.31,-6.99l7.58,-1.46l3.51,0.94l9.97,5.43l1.5,3.46l0.34,4.81l4.04,7.04l8.65,4.83l5.03,5.49l10.35,3.7l18.76,-3.26l3.61,-7.78l3.52,-0.73l10.46,0.04l9.81,2.7l8.64,5.61l-0.83,3.86l-1.19,3.41l-2.22,1.56l-1.22,3.25l0.49,6.24l2.12,5.39l5.59,1.48l5.58,-1.09l3.24,0.9l2.94,2.37l-2.45,5.96l1.02,14.72l1.13,6.91l-2.7,1.65l-3.01,0.75l-3.17,-0.19l-2.92,0.97l-2.5,2.64l-5.32,12.21l-0.96,3.53l-0.57,3.67l-1.39,4.17l-2.83,1.92l-4.27,5.54l-3.25,7.52l-7.48,11.12l-6.45,12.32l-2.09,7.99l-3.11,5.35l-5.43,0.94l-4.71,3.62l-6.88,17.55l-2.06,-1.24l-2.21,-0.32l-2.89,1.89l0.08,2.19l2.85,4.22l0.99,2.51l1.55,5.73l1.77,1.89l2.22,1.32l1.54,1.7l0.9,2.39l0.13,3.35l1.18,1.69l0.16,1.63l-0.37,0.77l-0.62,-0.24l-1.41,-2.29l-0.76,-0.44l-1.32,-0.02l-0.66,0.79l-0.08,1.83l-3.0,-0.53l-1.39,0.91l-2.21,2.71l-1.94,0.5l-1.82,-0.12l-1.99,0.35l-2.09,1.82l-3.64,5.84l-2.03,1.5l-2.66,3.64l-3.35,0.25l-3.62,-1.88l-3.03,-2.8l-1.53,-2.01l-0.81,-1.67l-1.01,-4.74l-1.08,-2.85l-2.68,-2.81l-6.01,-9.82l-2.18,-1.55l-3.89,-1.43l-1.47,-1.96l-0.2,-3.67l-0.67,-1.46l-1.21,-0.5l-4.09,0.0l-2.25,1.02l-1.31,-1.47l-1.15,-3.6l-2.99,-0.75l-0.73,-2.17l0.56,-1.76l1.43,0.33l0.46,-0.53l-0.46,-1.5l1.61,-0.82l4.31,-3.26l0.74,-1.81l1.11,-0.36l2.96,0.78l1.78,-0.5l3.46,-4.1l-0.07,-2.01l0.78,-1.99l-0.25,-1.31l2.48,-1.02l0.23,-0.49l-0.91,-2.86l-7.65,-8.13l-2.95,-1.68l-3.03,-0.77l-3.35,-0.06l-1.44,0.47l-1.3,3.2l-0.97,1.22l-1.24,0.29l-1.2,-0.57l-2.81,-2.15l-3.99,-0.47l-5.8,5.43l-3.38,0.62l0.1,-1.09l1.35,-1.25l0.2,-1.83l-0.51,-2.01l-2.04,-4.28l-1.21,-1.17l-1.71,-0.32l-5.45,2.01l-2.71,-0.06l-4.44,-7.59l-0.46,-1.75l-0.35,-0.32l-2.36,-0.2l-7.36,1.79l-0.75,-0.24l-1.72,-2.34l-1.22,-0.84l-18.14,-6.33l-3.74,0.32l-2.77,3.55l-0.87,-0.28l-0.45,-0.93l0.29,-4.08l-1.11,-2.81l-1.48,-1.29l-1.67,-0.76l-1.7,-1.37l-1.95,-3.78l-0.82,-2.45l-0.25,-1.91l0.6,-2.5l0.8,-1.61l0.03,-1.61l-1.44,-2.34l-2.56,-1.34l-5.02,-0.12l-1.35,-4.22l-1.46,-0.5l-1.16,0.82l-1.21,3.32l-0.62,0.13l-1.08,-0.54l-0.97,-0.96l-1.0,-1.56l-4.44,-0.98l-1.63,-1.5l-0.66,0.21l-0.57,1.64l-2.28,1.28l-0.8,1.01Z", "name": "Lower Silesian"}, "PL-MA": {"path": "M478.66,768.88l-0.41,-1.43l-2.18,-1.59l-1.04,-2.27l0.71,-2.72l1.55,-3.21l0.31,-3.65l-0.33,-0.43l-6.02,-1.07l-3.25,-1.48l-2.79,-2.62l-1.33,-4.17l-1.85,-3.42l-4.65,-1.92l-2.57,-4.62l-0.28,-4.79l-1.92,-2.44l-2.49,-0.38l-1.59,-2.09l0.97,-4.44l1.96,-4.04l1.94,-2.87l21.29,-23.94l0.03,-0.5l-4.19,-5.82l-4.49,-4.5l2.34,-1.82l5.83,0.84l0.38,-0.17l3.9,-5.58l2.52,-5.06l2.19,-3.28l4.65,2.69l2.59,0.03l2.44,-0.59l7.87,-6.14l4.77,-0.75l4.99,0.41l2.94,-0.46l11.5,-7.19l-0.05,-2.9l-0.52,-2.62l7.89,0.01l3.38,1.82l3.15,3.25l7.48,2.37l6.78,4.54l4.03,8.0l1.5,6.42l1.58,3.36l4.09,5.78l1.84,3.74l6.8,4.03l11.8,0.32l3.0,-3.0l0.43,-1.6l1.01,-1.58l2.8,-1.35l1.36,-1.3l0.72,-2.94l1.35,-0.39l1.98,-1.98l0.93,-2.95l3.1,2.96l0.45,0.07l1.48,-0.69l2.23,-1.94l1.61,0.77l1.14,-0.76l2.51,-0.28l0.96,-0.59l1.52,-1.73l0.8,-0.3l6.6,-0.22l1.46,-0.38l2.8,-2.56l3.62,-1.75l0.73,-0.18l1.11,0.45l1.67,1.79l1.93,-0.25l1.77,-2.56l1.42,-0.76l0.61,-1.92l2.1,-1.51l0.45,-1.57l0.58,0.38l0.87,-0.04l1.15,-0.96l-0.02,-1.66l0.8,0.02l-0.97,11.38l-2.71,6.56l-3.39,5.95l-0.55,7.95l2.41,21.09l-0.73,6.14l-0.08,5.44l1.55,3.66l1.98,2.4l2.76,0.34l3.13,1.69l1.07,3.57l-8.7,6.75l-1.67,3.6l0.09,0.46l2.77,2.52l9.59,4.11l5.29,5.71l3.07,9.55l0.3,4.84l-0.49,4.88l1.65,10.08l3.26,9.32l-1.18,0.48l-1.38,-0.36l-3.29,0.73l-1.39,0.01l-8.66,-2.46l-4.99,-2.67l-1.34,-0.34l-2.05,1.29l-2.78,4.13l-1.42,1.33l-1.65,0.27l-2.52,-2.29l-1.82,-1.19l-1.51,-0.12l-3.65,0.74l-1.59,0.78l-1.82,2.04l-0.0,0.53l1.19,1.33l1.98,1.2l0.94,1.79l-0.53,0.91l-4.99,0.73l-1.9,1.86l-2.9,4.27l-1.84,1.6l-1.93,0.7l-1.46,-0.28l-4.53,-3.79l-5.04,-0.49l-1.3,-0.95l-8.18,-9.66l-1.54,-0.25l-3.34,0.54l-2.96,-0.18l-1.03,0.62l-2.36,2.65l-1.93,0.69l-1.81,-0.44l-7.55,-3.87l-1.67,0.29l-0.31,0.39l0.02,1.99l-4.17,0.16l-3.6,-1.36l-1.22,-0.0l-1.28,0.95l-1.0,4.13l-0.92,2.25l-6.92,0.65l-1.48,0.86l-2.67,3.01l-2.38,-0.27l-2.27,4.62l-1.11,3.12l-1.16,1.52l-0.51,4.77l-0.89,3.28l-1.45,1.12l-2.7,-1.33l-4.59,-4.33l-2.82,-1.41l-3.07,0.4l-1.67,1.25l-2.95,3.06l-1.83,0.68l-4.0,-0.3l-2.1,-0.77l-0.99,-1.36l0.31,-1.57l3.33,-5.44l1.39,-0.72l0.4,-1.01l-0.26,-0.98l-2.31,-2.33l0.87,-2.1l-0.54,-6.71l-1.3,-4.95l-1.36,-0.88l-2.96,1.19l-1.72,0.18l-1.87,-0.2l-4.81,-1.65l0.11,-3.52l0.52,-1.48l-0.36,-0.57l-3.54,-0.04l-1.75,-0.47l-1.4,-1.08l-1.85,-5.24l-1.63,-6.96l-1.1,-2.84l-2.22,-1.56l-2.1,-3.29l-0.78,-0.41Z", "name": "Lesser Poland"}, "PL-PK": {"path": "M664.13,793.97l-3.22,-9.18l-1.64,-10.0l0.5,-4.82l-0.31,-4.92l-3.13,-9.78l-5.63,-6.09l-9.6,-4.12l-2.39,-2.2l1.39,-3.09l8.83,-6.86l0.14,-0.43l-1.39,-4.22l-3.35,-1.81l-2.56,-0.24l-1.76,-2.11l-1.47,-3.4l0.07,-5.28l0.73,-6.26l-2.41,-21.1l0.54,-7.75l3.33,-5.77l2.74,-6.65l1.02,-11.7l5.51,-4.74l1.7,0.68l2.4,-0.55l2.38,-1.42l1.71,-1.79l0.08,-0.42l-1.04,-2.56l8.17,-3.66l5.72,-1.48l1.81,-1.49l2.81,-3.37l1.18,-2.27l1.1,-4.93l4.22,-5.01l2.57,-4.28l1.4,-1.02l2.39,-0.41l1.75,-0.99l1.41,-2.15l1.73,-4.9l0.74,-5.64l-0.26,-6.33l11.31,7.65l6.98,0.27l5.85,-4.11l3.34,-0.15l3.32,1.27l3.12,1.94l2.64,2.33l-1.16,3.32l-4.07,7.7l1.67,3.28l21.14,5.51l14.0,7.55l0.7,1.1l0.18,3.96l2.11,3.94l0.93,3.1l-2.07,1.2l-2.83,-0.31l-2.82,0.94l-2.41,3.1l-1.58,3.24l0.71,3.65l2.33,3.6l3.32,1.62l12.6,-2.42l1.75,1.21l-0.82,0.48l-3.0,0.75l-0.27,0.55l1.14,2.29l12.39,3.51l20.28,0.65l6.96,-1.52l5.86,-4.76l7.34,-8.33l2.23,-0.97l5.02,-0.49l6.48,0.72l5.5,3.54l3.0,4.42l8.73,5.12l-1.1,1.6l-7.04,7.67l-11.6,9.06l-20.53,22.35l-2.71,4.19l-3.28,2.59l-3.57,3.96l-9.75,14.34l-3.82,3.97l-1.59,4.87l-0.66,0.67l-2.38,1.13l-0.96,1.15l-5.55,10.07l-1.42,1.44l-2.76,0.76l-1.28,1.07l-2.21,5.63l-6.78,9.14l-2.29,5.43l2.3,7.2l0.55,5.84l0.6,2.42l3.61,4.96l1.6,14.69l-0.33,1.91l-1.51,4.19l-1.26,4.83l-1.43,3.0l-0.42,2.02l0.55,0.73l0.54,0.09l1.46,-1.56l0.72,0.51l-0.08,0.41l2.86,2.02l2.67,3.5l5.65,3.48l0.95,1.22l-0.92,5.55l0.44,1.51l1.66,3.03l-0.81,1.68l-1.41,-0.61l-2.02,-1.81l-2.54,-1.15l-1.58,-2.23l-1.19,-1.03l-1.14,-0.1l-1.95,0.59l-6.91,-0.27l-2.09,-1.43l-3.52,-3.81l-2.2,-0.47l-1.69,1.63l-3.02,-1.45l-6.98,-0.3l-3.15,-0.97l-4.48,-4.52l-2.05,-0.85l-5.06,0.16l-4.07,-1.25l-0.51,-0.44l-0.15,-0.64l0.13,-2.13l-1.21,-1.23l-3.78,0.06l-3.99,-2.35l-6.27,-1.2l-2.33,-1.71l-0.58,-4.25l-1.13,-4.86l-2.63,-4.3l-3.31,-3.14l-4.88,-2.46l-3.33,-3.06l-1.64,-0.94l-2.08,0.29l-3.66,3.47l-1.11,-0.9l-2.98,-4.61l-1.56,-1.62l-1.06,-0.37l-2.03,0.22l-3.54,-2.89l-1.83,-0.45l-6.43,0.73l-1.05,0.41Z", "name": "Subcarpathian"}}, "height": 852.6892635024514, "projection": {"type": "merc", "centralMeridian": 0.0}, "width": 900.0}); \ No newline at end of file diff --git a/js/libs/jquery-jvectormap.js b/js/libs/jquery-jvectormap.js deleted file mode 100755 index 16e12f1..0000000 --- a/js/libs/jquery-jvectormap.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * jVectorMap version 2.0.4 - * - * Copyright 2011-2014, Kirill Lebedev - * - */ - -(function( $ ){ - var apiParams = { - set: { - colors: 1, - values: 1, - backgroundColor: 1, - scaleColors: 1, - normalizeFunction: 1, - focus: 1 - }, - get: { - selectedRegions: 1, - selectedMarkers: 1, - mapObject: 1, - regionName: 1 - } - }; - - $.fn.vectorMap = function(options) { - var map, - methodName, - map = this.children('.jvectormap-container').data('mapObject'); - - if (options === 'addMap') { - jvm.Map.maps[arguments[1]] = arguments[2]; - } else if ((options === 'set' || options === 'get') && apiParams[options][arguments[1]]) { - methodName = arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1); - return map[options+methodName].apply(map, Array.prototype.slice.call(arguments, 2)); - } else { - options = options || {}; - options.container = this; - map = new jvm.Map(options); - } - - return this; - }; -})( jQuery ); diff --git a/js/libs/jquery.jvectormap.min.js b/js/libs/jquery.jvectormap.min.js deleted file mode 100644 index 38a2b5b..0000000 --- a/js/libs/jquery.jvectormap.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function($){var apiParams={set:{colors:1,values:1,backgroundColor:1,scaleColors:1,normalizeFunction:1,focus:1},get:{selectedRegions:1,selectedMarkers:1,mapObject:1,regionName:1}};$.fn.vectorMap=function(options){var map,methodName,map=this.children(".jvectormap-container").data("mapObject");if("addMap"===options)jvm.Map.maps[arguments[1]]=arguments[2];else{if(("set"===options||"get"===options)&&apiParams[options][arguments[1]])return methodName=arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1),map[options+methodName].apply(map,Array.prototype.slice.call(arguments,2));options=options||{},options.container=this,map=new jvm.Map(options)}return this}}(jQuery),function(factory){"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof exports?module.exports=factory:factory(jQuery)}(function($){function handler(event){var orgEvent=event||window.event,args=slice.call(arguments,1),delta=0,deltaX=0,deltaY=0,absDelta=0;if(event=$.event.fix(orgEvent),event.type="mousewheel","detail"in orgEvent&&(deltaY=-1*orgEvent.detail),"wheelDelta"in orgEvent&&(deltaY=orgEvent.wheelDelta),"wheelDeltaY"in orgEvent&&(deltaY=orgEvent.wheelDeltaY),"wheelDeltaX"in orgEvent&&(deltaX=-1*orgEvent.wheelDeltaX),"axis"in orgEvent&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS&&(deltaX=-1*deltaY,deltaY=0),delta=0===deltaY?deltaX:deltaY,"deltaY"in orgEvent&&(deltaY=-1*orgEvent.deltaY,delta=deltaY),"deltaX"in orgEvent&&(deltaX=orgEvent.deltaX,0===deltaY&&(delta=-1*deltaX)),0!==deltaY||0!==deltaX){if(1===orgEvent.deltaMode){var lineHeight=$.data(this,"mousewheel-line-height");delta*=lineHeight,deltaY*=lineHeight,deltaX*=lineHeight}else if(2===orgEvent.deltaMode){var pageHeight=$.data(this,"mousewheel-page-height");delta*=pageHeight,deltaY*=pageHeight,deltaX*=pageHeight}return absDelta=Math.max(Math.abs(deltaY),Math.abs(deltaX)),(!lowestDelta||lowestDelta>absDelta)&&(lowestDelta=absDelta,shouldAdjustOldDeltas(orgEvent,absDelta)&&(lowestDelta/=40)),shouldAdjustOldDeltas(orgEvent,absDelta)&&(delta/=40,deltaX/=40,deltaY/=40),delta=Math[delta>=1?"floor":"ceil"](delta/lowestDelta),deltaX=Math[deltaX>=1?"floor":"ceil"](deltaX/lowestDelta),deltaY=Math[deltaY>=1?"floor":"ceil"](deltaY/lowestDelta),event.deltaX=deltaX,event.deltaY=deltaY,event.deltaFactor=lowestDelta,event.deltaMode=0,args.unshift(event,delta,deltaX,deltaY),nullLowestDeltaTimeout&&clearTimeout(nullLowestDeltaTimeout),nullLowestDeltaTimeout=setTimeout(nullLowestDelta,200),($.event.dispatch||$.event.handle).apply(this,args)}}function nullLowestDelta(){lowestDelta=null}function shouldAdjustOldDeltas(orgEvent,absDelta){return special.settings.adjustOldDeltas&&"mousewheel"===orgEvent.type&&absDelta%120===0}var nullLowestDeltaTimeout,lowestDelta,toFix=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],toBind="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],slice=Array.prototype.slice;if($.event.fixHooks)for(var i=toFix.length;i;)$.event.fixHooks[toFix[--i]]=$.event.mouseHooks;var special=$.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener)for(var i=toBind.length;i;)this.addEventListener(toBind[--i],handler,!1);else this.onmousewheel=handler;$.data(this,"mousewheel-line-height",special.getLineHeight(this)),$.data(this,"mousewheel-page-height",special.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=toBind.length;i;)this.removeEventListener(toBind[--i],handler,!1);else this.onmousewheel=null},getLineHeight:function(elem){return parseInt($(elem)["offsetParent"in $.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(elem){return $(elem).height()},settings:{adjustOldDeltas:!0}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}})});var jvm={inherits:function(child,parent){function temp(){}temp.prototype=parent.prototype,child.prototype=new temp,child.prototype.constructor=child,child.parentClass=parent},mixin:function(target,source){var prop;for(prop in source.prototype)source.prototype.hasOwnProperty(prop)&&(target.prototype[prop]=source.prototype[prop])},min:function(values){var i,min=Number.MAX_VALUE;if(values instanceof Array)for(i=0;imax&&(max=values[i]);else for(i in values)values[i]>max&&(max=values[i]);return max},keys:function(object){var key,keys=[];for(key in object)keys.push(key);return keys},values:function(object){var key,i,values=[];for(i=0;i");return img.error(function(){deferred.reject()}).load(function(){deferred.resolve(img)}),img.attr("src",url),deferred},isImageUrl:function(s){return/\.\w{3,4}$/.test(s)}};jvm.$=jQuery,Array.prototype.indexOf||(Array.prototype.indexOf=function(searchElement,fromIndex){var k;if(null==this)throw new TypeError('"this" is null or not defined');var O=Object(this),len=O.length>>>0;if(0===len)return-1;var n=+fromIndex||0;if(Math.abs(n)===1/0&&(n=0),n>=len)return-1;for(k=Math.max(n>=0?n:len-Math.abs(n),0);len>k;){if(k in O&&O[k]===searchElement)return k;k++}return-1}),jvm.AbstractElement=function(name,config){this.node=this.createElement(name),this.name=name,this.properties={},config&&this.set(config)},jvm.AbstractElement.prototype.set=function(property,value){var key;if("object"==typeof property)for(key in property)this.properties[key]=property[key],this.applyAttr(key,property[key]);else this.properties[property]=value,this.applyAttr(property,value)},jvm.AbstractElement.prototype.get=function(property){return this.properties[property]},jvm.AbstractElement.prototype.applyAttr=function(property,value){this.node.setAttribute(property,value)},jvm.AbstractElement.prototype.remove=function(){jvm.$(this.node).remove()},jvm.AbstractCanvasElement=function(container,width,height){this.container=container,this.setSize(width,height),this.rootElement=new jvm[this.classPrefix+"GroupElement"],this.node.appendChild(this.rootElement.node),this.container.appendChild(this.node)},jvm.AbstractCanvasElement.prototype.add=function(element,group){group=group||this.rootElement,group.add(element),element.canvas=this},jvm.AbstractCanvasElement.prototype.addPath=function(config,style,group){var el=new jvm[this.classPrefix+"PathElement"](config,style);return this.add(el,group),el},jvm.AbstractCanvasElement.prototype.addCircle=function(config,style,group){var el=new jvm[this.classPrefix+"CircleElement"](config,style);return this.add(el,group),el},jvm.AbstractCanvasElement.prototype.addImage=function(config,style,group){var el=new jvm[this.classPrefix+"ImageElement"](config,style);return this.add(el,group),el},jvm.AbstractCanvasElement.prototype.addText=function(config,style,group){var el=new jvm[this.classPrefix+"TextElement"](config,style);return this.add(el,group),el},jvm.AbstractCanvasElement.prototype.addGroup=function(parentGroup){var el=new jvm[this.classPrefix+"GroupElement"];return parentGroup?parentGroup.node.appendChild(el.node):this.node.appendChild(el.node),el.canvas=this,el},jvm.AbstractShapeElement=function(name,config,style){this.style=style||{},this.style.current=this.style.current||{},this.isHovered=!1,this.isSelected=!1,this.updateStyle()},jvm.AbstractShapeElement.prototype.setStyle=function(property,value){var styles={};"object"==typeof property?styles=property:styles[property]=value,jvm.$.extend(this.style.current,styles),this.updateStyle()},jvm.AbstractShapeElement.prototype.updateStyle=function(){var attrs={};jvm.AbstractShapeElement.mergeStyles(attrs,this.style.initial),jvm.AbstractShapeElement.mergeStyles(attrs,this.style.current),this.isHovered&&jvm.AbstractShapeElement.mergeStyles(attrs,this.style.hover),this.isSelected&&(jvm.AbstractShapeElement.mergeStyles(attrs,this.style.selected),this.isHovered&&jvm.AbstractShapeElement.mergeStyles(attrs,this.style.selectedHover)),this.set(attrs)},jvm.AbstractShapeElement.mergeStyles=function(styles,newStyles){var key;newStyles=newStyles||{};for(key in newStyles)null===newStyles[key]?delete styles[key]:styles[key]=newStyles[key]},jvm.SVGElement=function(name,config){jvm.SVGElement.parentClass.apply(this,arguments)},jvm.inherits(jvm.SVGElement,jvm.AbstractElement),jvm.SVGElement.svgns="http://www.w3.org/2000/svg",jvm.SVGElement.prototype.createElement=function(tagName){return document.createElementNS(jvm.SVGElement.svgns,tagName)},jvm.SVGElement.prototype.addClass=function(className){this.node.setAttribute("class",className)},jvm.SVGElement.prototype.getElementCtr=function(ctr){return jvm["SVG"+ctr]},jvm.SVGElement.prototype.getBBox=function(){return this.node.getBBox()},jvm.SVGGroupElement=function(){jvm.SVGGroupElement.parentClass.call(this,"g")},jvm.inherits(jvm.SVGGroupElement,jvm.SVGElement),jvm.SVGGroupElement.prototype.add=function(element){this.node.appendChild(element.node)},jvm.SVGCanvasElement=function(container,width,height){this.classPrefix="SVG",jvm.SVGCanvasElement.parentClass.call(this,"svg"),this.defsElement=new jvm.SVGElement("defs"),this.node.appendChild(this.defsElement.node),jvm.AbstractCanvasElement.apply(this,arguments)},jvm.inherits(jvm.SVGCanvasElement,jvm.SVGElement),jvm.mixin(jvm.SVGCanvasElement,jvm.AbstractCanvasElement),jvm.SVGCanvasElement.prototype.setSize=function(width,height){this.width=width,this.height=height,this.node.setAttribute("width",width),this.node.setAttribute("height",height)},jvm.SVGCanvasElement.prototype.applyTransformParams=function(scale,transX,transY){this.scale=scale,this.transX=transX,this.transY=transY,this.rootElement.node.setAttribute("transform","scale("+scale+") translate("+transX+", "+transY+")")},jvm.SVGShapeElement=function(name,config,style){jvm.SVGShapeElement.parentClass.call(this,name,config),jvm.AbstractShapeElement.apply(this,arguments)},jvm.inherits(jvm.SVGShapeElement,jvm.SVGElement),jvm.mixin(jvm.SVGShapeElement,jvm.AbstractShapeElement),jvm.SVGShapeElement.prototype.applyAttr=function(attr,value){var patternEl,imageEl,that=this;"fill"===attr&&jvm.isImageUrl(value)?jvm.SVGShapeElement.images[value]?this.applyAttr("fill","url(#image"+jvm.SVGShapeElement.images[value]+")"):jvm.whenImageLoaded(value).then(function(img){imageEl=new jvm.SVGElement("image"),imageEl.node.setAttributeNS("http://www.w3.org/1999/xlink","href",value),imageEl.applyAttr("x","0"),imageEl.applyAttr("y","0"),imageEl.applyAttr("width",img[0].width),imageEl.applyAttr("height",img[0].height),patternEl=new jvm.SVGElement("pattern"),patternEl.applyAttr("id","image"+jvm.SVGShapeElement.imageCounter),patternEl.applyAttr("x",0),patternEl.applyAttr("y",0),patternEl.applyAttr("width",img[0].width/2),patternEl.applyAttr("height",img[0].height/2),patternEl.applyAttr("viewBox","0 0 "+img[0].width+" "+img[0].height),patternEl.applyAttr("patternUnits","userSpaceOnUse"),patternEl.node.appendChild(imageEl.node),that.canvas.defsElement.node.appendChild(patternEl.node),jvm.SVGShapeElement.images[value]=jvm.SVGShapeElement.imageCounter++,that.applyAttr("fill","url(#image"+jvm.SVGShapeElement.images[value]+")")}):jvm.SVGShapeElement.parentClass.prototype.applyAttr.apply(this,arguments)},jvm.SVGShapeElement.imageCounter=1,jvm.SVGShapeElement.images={},jvm.SVGPathElement=function(config,style){jvm.SVGPathElement.parentClass.call(this,"path",config,style),this.node.setAttribute("fill-rule","evenodd")},jvm.inherits(jvm.SVGPathElement,jvm.SVGShapeElement),jvm.SVGCircleElement=function(config,style){jvm.SVGCircleElement.parentClass.call(this,"circle",config,style)},jvm.inherits(jvm.SVGCircleElement,jvm.SVGShapeElement),jvm.SVGImageElement=function(config,style){jvm.SVGImageElement.parentClass.call(this,"image",config,style)},jvm.inherits(jvm.SVGImageElement,jvm.SVGShapeElement),jvm.SVGImageElement.prototype.applyAttr=function(attr,value){var that=this;"image"==attr?jvm.whenImageLoaded(value).then(function(img){that.node.setAttributeNS("http://www.w3.org/1999/xlink","href",value),that.width=img[0].width,that.height=img[0].height,that.applyAttr("width",that.width),that.applyAttr("height",that.height),that.applyAttr("x",that.cx-that.width/2),that.applyAttr("y",that.cy-that.height/2),jvm.$(that.node).trigger("imageloaded",[img])}):"cx"==attr?(this.cx=value,this.width&&this.applyAttr("x",value-this.width/2)):"cy"==attr?(this.cy=value,this.height&&this.applyAttr("y",value-this.height/2)):jvm.SVGImageElement.parentClass.prototype.applyAttr.apply(this,arguments)},jvm.SVGTextElement=function(config,style){jvm.SVGTextElement.parentClass.call(this,"text",config,style)},jvm.inherits(jvm.SVGTextElement,jvm.SVGShapeElement),jvm.SVGTextElement.prototype.applyAttr=function(attr,value){"text"===attr?this.node.textContent=value:jvm.SVGTextElement.parentClass.prototype.applyAttr.apply(this,arguments)},jvm.VMLElement=function(name,config){jvm.VMLElement.VMLInitialized||jvm.VMLElement.initializeVML(),jvm.VMLElement.parentClass.apply(this,arguments)},jvm.inherits(jvm.VMLElement,jvm.AbstractElement),jvm.VMLElement.VMLInitialized=!1,jvm.VMLElement.initializeVML=function(){try{document.namespaces.rvml||document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),jvm.VMLElement.prototype.createElement=function(tagName){return document.createElement("')}}catch(e){jvm.VMLElement.prototype.createElement=function(tagName){return document.createElement("<"+tagName+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"),jvm.VMLElement.VMLInitialized=!0},jvm.VMLElement.prototype.getElementCtr=function(ctr){return jvm["VML"+ctr]},jvm.VMLElement.prototype.addClass=function(className){jvm.$(this.node).addClass(className)},jvm.VMLElement.prototype.applyAttr=function(attr,value){this.node[attr]=value},jvm.VMLElement.prototype.getBBox=function(){var node=jvm.$(this.node);return{x:node.position().left/this.canvas.scale,y:node.position().top/this.canvas.scale,width:node.width()/this.canvas.scale,height:node.height()/this.canvas.scale}},jvm.VMLGroupElement=function(){jvm.VMLGroupElement.parentClass.call(this,"group"),this.node.style.left="0px",this.node.style.top="0px",this.node.coordorigin="0 0"},jvm.inherits(jvm.VMLGroupElement,jvm.VMLElement),jvm.VMLGroupElement.prototype.add=function(element){this.node.appendChild(element.node)},jvm.VMLCanvasElement=function(container,width,height){this.classPrefix="VML",jvm.VMLCanvasElement.parentClass.call(this,"group"),jvm.AbstractCanvasElement.apply(this,arguments),this.node.style.position="absolute"},jvm.inherits(jvm.VMLCanvasElement,jvm.VMLElement),jvm.mixin(jvm.VMLCanvasElement,jvm.AbstractCanvasElement),jvm.VMLCanvasElement.prototype.setSize=function(width,height){var paths,groups,i,l;if(this.width=width,this.height=height,this.node.style.width=width+"px",this.node.style.height=height+"px",this.node.coordsize=width+" "+height,this.node.coordorigin="0 0",this.rootElement){for(paths=this.rootElement.node.getElementsByTagName("shape"),i=0,l=paths.length;l>i;i++)paths[i].coordsize=width+" "+height,paths[i].style.width=width+"px",paths[i].style.height=height+"px";for(groups=this.node.getElementsByTagName("group"),i=0,l=groups.length;l>i;i++)groups[i].coordsize=width+" "+height,groups[i].style.width=width+"px",groups[i].style.height=height+"px"}},jvm.VMLCanvasElement.prototype.applyTransformParams=function(scale,transX,transY){this.scale=scale,this.transX=transX,this.transY=transY,this.rootElement.node.coordorigin=this.width-transX-this.width/100+","+(this.height-transY-this.height/100),this.rootElement.node.coordsize=this.width/scale+","+this.height/scale},jvm.VMLShapeElement=function(name,config){jvm.VMLShapeElement.parentClass.call(this,name,config),this.fillElement=new jvm.VMLElement("fill"),this.strokeElement=new jvm.VMLElement("stroke"),this.node.appendChild(this.fillElement.node),this.node.appendChild(this.strokeElement.node),this.node.stroked=!1,jvm.AbstractShapeElement.apply(this,arguments)},jvm.inherits(jvm.VMLShapeElement,jvm.VMLElement),jvm.mixin(jvm.VMLShapeElement,jvm.AbstractShapeElement),jvm.VMLShapeElement.prototype.applyAttr=function(attr,value){switch(attr){case"fill":this.node.fillcolor=value;break;case"fill-opacity":this.fillElement.node.opacity=Math.round(100*value)+"%";break;case"stroke":"none"===value?this.node.stroked=!1:this.node.stroked=!0,this.node.strokecolor=value;break;case"stroke-opacity":this.strokeElement.node.opacity=Math.round(100*value)+"%";break;case"stroke-width":0===parseInt(value,10)?this.node.stroked=!1:this.node.stroked=!0,this.node.strokeweight=value;break;case"d":this.node.path=jvm.VMLPathElement.pathSvgToVml(value);break;default:jvm.VMLShapeElement.parentClass.prototype.applyAttr.apply(this,arguments)}},jvm.VMLPathElement=function(config,style){var scale=new jvm.VMLElement("skew");jvm.VMLPathElement.parentClass.call(this,"shape",config,style),this.node.coordorigin="0 0",scale.node.on=!0,scale.node.matrix="0.01,0,0,0.01,0,0",scale.node.offset="0,0",this.node.appendChild(scale.node)},jvm.inherits(jvm.VMLPathElement,jvm.VMLShapeElement),jvm.VMLPathElement.prototype.applyAttr=function(attr,value){"d"===attr?this.node.path=jvm.VMLPathElement.pathSvgToVml(value):jvm.VMLShapeElement.prototype.applyAttr.call(this,attr,value)},jvm.VMLPathElement.pathSvgToVml=function(path){var ctrlx,ctrly,cx=0,cy=0;return path=path.replace(/(-?\d+)e(-?\d+)/g,"0"),path.replace(/([MmLlHhVvCcSs])\s*((?:-?\d*(?:\.\d+)?\s*,?\s*)+)/g,function(segment,letter,coords,index){coords=coords.replace(/(\d)-/g,"$1,-").replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g,",").split(","),coords[0]||coords.shift();for(var i=0,l=coords.length;l>i;i++)coords[i]=Math.round(100*coords[i]);switch(letter){case"m":return cx+=coords[0],cy+=coords[1],"t"+coords.join(",");case"M":return cx=coords[0],cy=coords[1],"m"+coords.join(",");case"l":return cx+=coords[0],cy+=coords[1],"r"+coords.join(",");case"L":return cx=coords[0],cy=coords[1],"l"+coords.join(",");case"h":return cx+=coords[0],"r"+coords[0]+",0";case"H":return cx=coords[0],"l"+cx+","+cy;case"v":return cy+=coords[0],"r0,"+coords[0];case"V":return cy=coords[0],"l"+cx+","+cy;case"c":return ctrlx=cx+coords[coords.length-4],ctrly=cy+coords[coords.length-3],cx+=coords[coords.length-2],cy+=coords[coords.length-1],"v"+coords.join(",");case"C":return ctrlx=coords[coords.length-4],ctrly=coords[coords.length-3],cx=coords[coords.length-2],cy=coords[coords.length-1],"c"+coords.join(",");case"s":return coords.unshift(cy-ctrly),coords.unshift(cx-ctrlx),ctrlx=cx+coords[coords.length-4],ctrly=cy+coords[coords.length-3],cx+=coords[coords.length-2],cy+=coords[coords.length-1],"v"+coords.join(",");case"S":return coords.unshift(cy+cy-ctrly),coords.unshift(cx+cx-ctrlx),ctrlx=coords[coords.length-4],ctrly=coords[coords.length-3],cx=coords[coords.length-2],cy=coords[coords.length-1],"c"+coords.join(",")}return""}).replace(/z/g,"e")},jvm.VMLCircleElement=function(config,style){jvm.VMLCircleElement.parentClass.call(this,"oval",config,style)},jvm.inherits(jvm.VMLCircleElement,jvm.VMLShapeElement),jvm.VMLCircleElement.prototype.applyAttr=function(attr,value){switch(attr){case"r":this.node.style.width=2*value+"px",this.node.style.height=2*value+"px",this.applyAttr("cx",this.get("cx")||0),this.applyAttr("cy",this.get("cy")||0);break;case"cx":if(!value)return;this.node.style.left=value-(this.get("r")||0)+"px";break;case"cy":if(!value)return;this.node.style.top=value-(this.get("r")||0)+"px";break;default:jvm.VMLCircleElement.parentClass.prototype.applyAttr.call(this,attr,value)}},jvm.VectorCanvas=function(container,width,height){return this.mode=window.SVGAngle?"svg":"vml","svg"==this.mode?this.impl=new jvm.SVGCanvasElement(container,width,height):this.impl=new jvm.VMLCanvasElement(container,width,height),this.impl.mode=this.mode,this.impl},jvm.SimpleScale=function(scale){this.scale=scale},jvm.SimpleScale.prototype.getValue=function(value){return value},jvm.OrdinalScale=function(scale){this.scale=scale},jvm.OrdinalScale.prototype.getValue=function(value){return this.scale[value]},jvm.OrdinalScale.prototype.getTicks=function(){var key,ticks=[];for(key in this.scale)ticks.push({label:key,value:this.scale[key]});return ticks},jvm.NumericScale=function(scale,normalizeFunction,minValue,maxValue){this.scale=[],normalizeFunction=normalizeFunction||"linear",scale&&this.setScale(scale),normalizeFunction&&this.setNormalizeFunction(normalizeFunction),"undefined"!=typeof minValue&&this.setMin(minValue),"undefined"!=typeof maxValue&&this.setMax(maxValue)},jvm.NumericScale.prototype={setMin:function(min){this.clearMinValue=min,"function"==typeof this.normalize?this.minValue=this.normalize(min):this.minValue=min},setMax:function(max){this.clearMaxValue=max,"function"==typeof this.normalize?this.maxValue=this.normalize(max):this.maxValue=max},setScale:function(scale){var i;for(this.scale=[],i=0;i=0;)value-=lengthes[i],i++;return value=i==this.scale.length-1?this.vectorToNum(this.scale[i]):this.vectorToNum(this.vectorAdd(this.scale[i],this.vectorMult(this.vectorSubtract(this.scale[i+1],this.scale[i]),value/lengthes[i])))},vectorToNum:function(vector){var i,num=0;for(i=0;i=err?step*=10:.35>=err?step*=5:.75>=err&&(step*=2),extent[0]=Math.floor(extent[0]/step)*step,extent[1]=Math.ceil(extent[1]/step)*step,tick=extent[0];tick<=extent[1];)v=tick==extent[0]?this.clearMinValue:tick==extent[1]?this.clearMaxValue:tick,ticks.push({label:tick,value:this.getValue(v)}),tick+=step;return ticks}},jvm.ColorScale=function(colors,normalizeFunction,minValue,maxValue){jvm.ColorScale.parentClass.apply(this,arguments)},jvm.inherits(jvm.ColorScale,jvm.NumericScale),jvm.ColorScale.prototype.setScale=function(scale){var i;for(i=0;i"),this.body.addClass("jvectormap-legend"),this.params.cssClass&&this.body.addClass(this.params.cssClass),params.vertical?this.map.legendCntVertical.append(this.body):this.map.legendCntHorizontal.append(this.body),this.render()},jvm.Legend.prototype.render=function(){var i,tick,sample,label,ticks=this.series.scale.getTicks(),inner=jvm.$("
").addClass("jvectormap-legend-inner");for(this.body.html(""),this.params.title&&this.body.append(jvm.$("
").addClass("jvectormap-legend-title").html(this.params.title)),this.body.append(inner),i=0;i").addClass("jvectormap-legend-tick"),sample=jvm.$("
").addClass("jvectormap-legend-tick-sample"),this.series.params.attribute){case"fill":jvm.isImageUrl(ticks[i].value)?sample.css("background","url("+ticks[i].value+")"):sample.css("background",ticks[i].value);break;case"stroke":sample.css("background",ticks[i].value);break;case"image":sample.css("background","url("+ticks[i].value+") no-repeat center center");break;case"r":jvm.$("
").css({"border-radius":ticks[i].value,border:this.map.params.markerStyle.initial["stroke-width"]+"px "+this.map.params.markerStyle.initial.stroke+" solid",width:2*ticks[i].value+"px",height:2*ticks[i].value+"px",background:this.map.params.markerStyle.initial.fill}).appendTo(sample)}tick.append(sample),label=ticks[i].label,this.params.labelRender&&(label=this.params.labelRender(label)),tick.append(jvm.$("
"+label+"
").addClass("jvectormap-legend-tick-text")),inner.append(tick)}inner.append(jvm.$("
").css("clear","both"))},jvm.DataSeries=function(params,elements,map){var scaleConstructor;params=params||{},params.attribute=params.attribute||"fill",this.elements=elements,this.params=params,this.map=map,params.attributes&&this.setAttributes(params.attributes),jvm.$.isArray(params.scale)?(scaleConstructor="fill"===params.attribute||"stroke"===params.attribute?jvm.ColorScale:jvm.NumericScale,this.scale=new scaleConstructor(params.scale,params.normalizeFunction,params.min,params.max)):params.scale?this.scale=new jvm.OrdinalScale(params.scale):this.scale=new jvm.SimpleScale(params.scale),this.values=params.values||{},this.setValues(this.values),this.params.legend&&(this.legend=new jvm.Legend($.extend({map:this.map,series:this},this.params.legend)))},jvm.DataSeries.prototype={setAttributes:function(key,attr){var code,attrs=key;if("string"==typeof key)this.elements[key]&&this.elements[key].setStyle(this.params.attribute,attr);else for(code in attrs)this.elements[code]&&this.elements[code].element.setStyle(this.params.attribute,attrs[code])},setValues:function(values){var val,cc,max=-Number.MAX_VALUE,min=Number.MAX_VALUE,attrs={};if(this.scale instanceof jvm.OrdinalScale||this.scale instanceof jvm.SimpleScale)for(cc in values)values[cc]?attrs[cc]=this.scale.getValue(values[cc]):attrs[cc]=this.elements[cc].element.style.initial[this.params.attribute];else{if("undefined"==typeof this.params.min||"undefined"==typeof this.params.max)for(cc in values)val=parseFloat(values[cc]),val>max&&(max=val),min>val&&(min=val);"undefined"==typeof this.params.min?(this.scale.setMin(min),this.params.min=min):this.scale.setMin(this.params.min),"undefined"==typeof this.params.max?(this.scale.setMax(max),this.params.max=max):this.scale.setMax(this.params.max);for(cc in values)"indexOf"!=cc&&(val=parseFloat(values[cc]),isNaN(val)?attrs[cc]=this.elements[cc].element.style.initial[this.params.attribute]:attrs[cc]=this.scale.getValue(val))}this.setAttributes(attrs),jvm.$.extend(this.values,values)},clear:function(){var key,attrs={};for(key in this.values)this.elements[key]&&(attrs[key]=this.elements[key].element.shape.style.initial[this.params.attribute]);this.setAttributes(attrs),this.values={}},setScale:function(scale){this.scale.setScale(scale),this.values&&this.setValues(this.values)},setNormalizeFunction:function(f){this.scale.setNormalizeFunction(f),this.values&&this.setValues(this.values)}},jvm.Proj={degRad:180/Math.PI,radDeg:Math.PI/180,radius:6381372,sgn:function(n){return n>0?1:0>n?-1:n},mill:function(lat,lng,c){return{x:this.radius*(lng-c)*this.radDeg,y:-this.radius*Math.log(Math.tan((45+.4*lat)*this.radDeg))/.8}},mill_inv:function(x,y,c){return{lat:(2.5*Math.atan(Math.exp(.8*y/this.radius))-5*Math.PI/8)*this.degRad,lng:(c*this.radDeg+x/this.radius)*this.degRad}},merc:function(lat,lng,c){return{x:this.radius*(lng-c)*this.radDeg,y:-this.radius*Math.log(Math.tan(Math.PI/4+lat*Math.PI/360))}},merc_inv:function(x,y,c){return{lat:(2*Math.atan(Math.exp(y/this.radius))-Math.PI/2)*this.degRad,lng:(c*this.radDeg+x/this.radius)*this.degRad}},aea:function(lat,lng,c){var fi0=0,lambda0=c*this.radDeg,fi1=29.5*this.radDeg,fi2=45.5*this.radDeg,fi=lat*this.radDeg,lambda=lng*this.radDeg,n=(Math.sin(fi1)+Math.sin(fi2))/2,C=Math.cos(fi1)*Math.cos(fi1)+2*n*Math.sin(fi1),theta=n*(lambda-lambda0),ro=Math.sqrt(C-2*n*Math.sin(fi))/n,ro0=Math.sqrt(C-2*n*Math.sin(fi0))/n;return{x:ro*Math.sin(theta)*this.radius,y:-(ro0-ro*Math.cos(theta))*this.radius}},aea_inv:function(xCoord,yCoord,c){var x=xCoord/this.radius,y=yCoord/this.radius,fi0=0,lambda0=c*this.radDeg,fi1=29.5*this.radDeg,fi2=45.5*this.radDeg,n=(Math.sin(fi1)+Math.sin(fi2))/2,C=Math.cos(fi1)*Math.cos(fi1)+2*n*Math.sin(fi1),ro0=Math.sqrt(C-2*n*Math.sin(fi0))/n,ro=Math.sqrt(x*x+(ro0-y)*(ro0-y)),theta=Math.atan(x/(ro0-y));return{lat:Math.asin((C-ro*ro*n*n)/(2*n))*this.degRad,lng:(lambda0+theta/n)*this.degRad}},lcc:function(lat,lng,c){var fi0=0,lambda0=c*this.radDeg,lambda=lng*this.radDeg,fi1=33*this.radDeg,fi2=45*this.radDeg,fi=lat*this.radDeg,n=Math.log(Math.cos(fi1)*(1/Math.cos(fi2)))/Math.log(Math.tan(Math.PI/4+fi2/2)*(1/Math.tan(Math.PI/4+fi1/2))),F=Math.cos(fi1)*Math.pow(Math.tan(Math.PI/4+fi1/2),n)/n,ro=F*Math.pow(1/Math.tan(Math.PI/4+fi/2),n),ro0=F*Math.pow(1/Math.tan(Math.PI/4+fi0/2),n);return{x:ro*Math.sin(n*(lambda-lambda0))*this.radius,y:-(ro0-ro*Math.cos(n*(lambda-lambda0)))*this.radius}},lcc_inv:function(xCoord,yCoord,c){var x=xCoord/this.radius,y=yCoord/this.radius,fi0=0,lambda0=c*this.radDeg,fi1=33*this.radDeg,fi2=45*this.radDeg,n=Math.log(Math.cos(fi1)*(1/Math.cos(fi2)))/Math.log(Math.tan(Math.PI/4+fi2/2)*(1/Math.tan(Math.PI/4+fi1/2))),F=Math.cos(fi1)*Math.pow(Math.tan(Math.PI/4+fi1/2),n)/n,ro0=F*Math.pow(1/Math.tan(Math.PI/4+fi0/2),n),ro=this.sgn(n)*Math.sqrt(x*x+(ro0-y)*(ro0-y)),theta=Math.atan(x/(ro0-y));return{lat:(2*Math.atan(Math.pow(F/ro,1/n))-Math.PI/2)*this.degRad,lng:(lambda0+theta/n)*this.degRad}}},jvm.MapObject=function(config){},jvm.MapObject.prototype.getLabelText=function(key){var text;return text=this.config.label?"function"==typeof this.config.label.render?this.config.label.render(key):key:null},jvm.MapObject.prototype.getLabelOffsets=function(key){var offsets;return this.config.label&&("function"==typeof this.config.label.offsets?offsets=this.config.label.offsets(key):"object"==typeof this.config.label.offsets&&(offsets=this.config.label.offsets[key])),offsets||[0,0]},jvm.MapObject.prototype.setHovered=function(isHovered){this.isHovered!==isHovered&&(this.isHovered=isHovered,this.shape.isHovered=isHovered,this.shape.updateStyle(),this.label&&(this.label.isHovered=isHovered,this.label.updateStyle()))},jvm.MapObject.prototype.setSelected=function(isSelected){this.isSelected!==isSelected&&(this.isSelected=isSelected,this.shape.isSelected=isSelected,this.shape.updateStyle(),this.label&&(this.label.isSelected=isSelected,this.label.updateStyle()),jvm.$(this.shape).trigger("selected",[isSelected]))},jvm.MapObject.prototype.setStyle=function(){this.shape.setStyle.apply(this.shape,arguments)},jvm.MapObject.prototype.remove=function(){this.shape.remove(),this.label&&this.label.remove()},jvm.Region=function(config){var bbox,text,offsets;this.config=config,this.map=this.config.map, -this.shape=config.canvas.addPath({d:config.path,"data-code":config.code},config.style,config.canvas.rootElement),this.shape.addClass("jvectormap-region jvectormap-element"),bbox=this.shape.getBBox(),text=this.getLabelText(config.code),this.config.label&&text&&(offsets=this.getLabelOffsets(config.code),this.labelX=bbox.x+bbox.width/2+offsets[0],this.labelY=bbox.y+bbox.height/2+offsets[1],this.label=config.canvas.addText({text:text,"text-anchor":"middle","alignment-baseline":"central",x:this.labelX,y:this.labelY,"data-code":config.code},config.labelStyle,config.labelsGroup),this.label.addClass("jvectormap-region jvectormap-element"))},jvm.inherits(jvm.Region,jvm.MapObject),jvm.Region.prototype.updateLabelPosition=function(){this.label&&this.label.set({x:this.labelX*this.map.scale+this.map.transX*this.map.scale,y:this.labelY*this.map.scale+this.map.transY*this.map.scale})},jvm.Marker=function(config){var text;this.config=config,this.map=this.config.map,this.isImage=!!this.config.style.initial.image,this.createShape(),text=this.getLabelText(config.index),this.config.label&&text&&(this.offsets=this.getLabelOffsets(config.index),this.labelX=config.cx/this.map.scale-this.map.transX,this.labelY=config.cy/this.map.scale-this.map.transY,this.label=config.canvas.addText({text:text,"data-index":config.index,dy:"0.6ex",x:this.labelX,y:this.labelY},config.labelStyle,config.labelsGroup),this.label.addClass("jvectormap-marker jvectormap-element"))},jvm.inherits(jvm.Marker,jvm.MapObject),jvm.Marker.prototype.createShape=function(){var that=this;this.shape&&this.shape.remove(),this.shape=this.config.canvas[this.isImage?"addImage":"addCircle"]({"data-index":this.config.index,cx:this.config.cx,cy:this.config.cy},this.config.style,this.config.group),this.shape.addClass("jvectormap-marker jvectormap-element"),this.isImage&&jvm.$(this.shape.node).on("imageloaded",function(){that.updateLabelPosition()})},jvm.Marker.prototype.updateLabelPosition=function(){this.label&&this.label.set({x:this.labelX*this.map.scale+this.offsets[0]+this.map.transX*this.map.scale+5+(this.isImage?(this.shape.width||0)/2:this.shape.properties.r),y:this.labelY*this.map.scale+this.map.transY*this.map.scale+this.offsets[1]})},jvm.Marker.prototype.setStyle=function(property,value){var isImage;jvm.Marker.parentClass.prototype.setStyle.apply(this,arguments),"r"===property&&this.updateLabelPosition(),isImage=!!this.shape.get("image"),isImage!=this.isImage&&(this.isImage=isImage,this.config.style=jvm.$.extend(!0,{},this.shape.style),this.createShape())},jvm.Map=function(params){var e,map=this;if(this.params=jvm.$.extend(!0,{},jvm.Map.defaultParams,params),!jvm.Map.maps[this.params.map])throw new Error("Attempt to use map which was not loaded: "+this.params.map);this.mapData=jvm.Map.maps[this.params.map],this.markers={},this.regions={},this.regionsColors={},this.regionsData={},this.container=jvm.$("
").addClass("jvectormap-container"),this.params.container&&this.params.container.append(this.container),this.container.data("mapObject",this),this.defaultWidth=this.mapData.width,this.defaultHeight=this.mapData.height,this.setBackgroundColor(this.params.backgroundColor),this.onResize=function(){map.updateSize()},jvm.$(window).resize(this.onResize);for(e in jvm.Map.apiEvents)this.params[e]&&this.container.bind(jvm.Map.apiEvents[e]+".jvectormap",this.params[e]);this.canvas=new jvm.VectorCanvas(this.container[0],this.width,this.height),this.params.bindTouchEvents&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch?this.bindContainerTouchEvents():window.MSGesture&&this.bindContainerPointerEvents()),this.bindContainerEvents(),this.bindElementEvents(),this.createTip(),this.params.zoomButtons&&this.bindZoomButtons(),this.createRegions(),this.createMarkers(this.params.markers||{}),this.updateSize(),this.params.focusOn&&("string"==typeof this.params.focusOn?this.params.focusOn={region:this.params.focusOn}:jvm.$.isArray(this.params.focusOn)&&(this.params.focusOn={regions:this.params.focusOn}),this.setFocus(this.params.focusOn)),this.params.selectedRegions&&this.setSelectedRegions(this.params.selectedRegions),this.params.selectedMarkers&&this.setSelectedMarkers(this.params.selectedMarkers),this.legendCntHorizontal=jvm.$("
").addClass("jvectormap-legend-cnt jvectormap-legend-cnt-h"),this.legendCntVertical=jvm.$("
").addClass("jvectormap-legend-cnt jvectormap-legend-cnt-v"),this.container.append(this.legendCntHorizontal),this.container.append(this.legendCntVertical),this.params.series&&this.createSeries()},jvm.Map.prototype={transX:0,transY:0,scale:1,baseTransX:0,baseTransY:0,baseScale:1,width:0,height:0,setBackgroundColor:function(backgroundColor){this.container.css("background-color",backgroundColor)},resize:function(){var curBaseScale=this.baseScale;this.width/this.height>this.defaultWidth/this.defaultHeight?(this.baseScale=this.height/this.defaultHeight,this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale)):(this.baseScale=this.width/this.defaultWidth,this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale)),this.scale*=this.baseScale/curBaseScale,this.transX*=this.baseScale/curBaseScale,this.transY*=this.baseScale/curBaseScale},updateSize:function(){this.width=this.container.width(),this.height=this.container.height(),this.resize(),this.canvas.setSize(this.width,this.height),this.applyTransform()},reset:function(){var key,i;for(key in this.series)for(i=0;imaxTransY?this.transY=maxTransY:this.transYmaxTransX?this.transX=maxTransX:this.transXtouches[1].pageX?touches[1].pageX+(touches[0].pageX-touches[1].pageX)/2:touches[0].pageX+(touches[1].pageX-touches[0].pageX)/2,centerTouchY=touches[0].pageY>touches[1].pageY?touches[1].pageY+(touches[0].pageY-touches[1].pageY)/2:touches[0].pageY+(touches[1].pageY-touches[0].pageY)/2,centerTouchX-=offset.left,centerTouchY-=offset.top,touchStartScale=map.scale,touchStartDistance=Math.sqrt(Math.pow(touches[0].pageX-touches[1].pageX,2)+Math.pow(touches[0].pageY-touches[1].pageY,2)))),lastTouchesLength=touches.length};jvm.$(this.container).bind("touchstart",handleTouchEvent),jvm.$(this.container).bind("touchmove",handleTouchEvent)},bindContainerPointerEvents:function(){var map=this,gesture=new MSGesture,element=this.container[0],handlePointerDownEvent=function(e){gesture.addPointer(e.pointerId)},handleGestureEvent=function(e){var transXOld,transYOld;(0!=e.translationX||0!=e.translationY)&&(transXOld=map.transX,transYOld=map.transY,map.transX+=e.translationX/map.scale,map.transY+=e.translationY/map.scale,map.applyTransform(),map.tip.hide(),(transXOld!=map.transX||transYOld!=map.transY)&&e.preventDefault()),1!=e.scale&&(map.setScale(map.scale*e.scale,e.offsetX,e.offsetY),map.tip.hide(),e.preventDefault())};gesture.target=element,element.addEventListener("MSGestureChange",handleGestureEvent,!1),element.addEventListener("pointerdown",handlePointerDownEvent,!1)},bindElementEvents:function(){var pageX,pageY,mouseMoved,map=this;this.container.mousemove(function(e){Math.abs(pageX-e.pageX)+Math.abs(pageY-e.pageY)>2&&(mouseMoved=!0)}),this.container.delegate("[class~='jvectormap-element']","mouseover mouseout",function(e){var baseVal=jvm.$(this).attr("class").baseVal||jvm.$(this).attr("class"),type=-1===baseVal.indexOf("jvectormap-region")?"marker":"region",code="region"==type?jvm.$(this).attr("data-code"):jvm.$(this).attr("data-index"),element="region"==type?map.regions[code].element:map.markers[code].element,tipText="region"==type?map.mapData.paths[code].name:map.markers[code].config.name||"",tipShowEvent=jvm.$.Event(type+"TipShow.jvectormap"),overEvent=jvm.$.Event(type+"Over.jvectormap");"mouseover"==e.type?(map.container.trigger(overEvent,[code]),overEvent.isDefaultPrevented()||element.setHovered(!0),map.tip.text(tipText),map.container.trigger(tipShowEvent,[map.tip,code]),tipShowEvent.isDefaultPrevented()||(map.tip.show(),map.tipWidth=map.tip.width(),map.tipHeight=map.tip.height())):(element.setHovered(!1),map.tip.hide(),map.container.trigger(type+"Out.jvectormap",[code]))}),this.container.delegate("[class~='jvectormap-element']","mousedown",function(e){pageX=e.pageX,pageY=e.pageY,mouseMoved=!1}),this.container.delegate("[class~='jvectormap-element']","mouseup",function(){var baseVal=jvm.$(this).attr("class").baseVal?jvm.$(this).attr("class").baseVal:jvm.$(this).attr("class"),type=-1===baseVal.indexOf("jvectormap-region")?"marker":"region",code="region"==type?jvm.$(this).attr("data-code"):jvm.$(this).attr("data-index"),clickEvent=jvm.$.Event(type+"Click.jvectormap"),element="region"==type?map.regions[code].element:map.markers[code].element;mouseMoved||(map.container.trigger(clickEvent,[code]),("region"===type&&map.params.regionsSelectable||"marker"===type&&map.params.markersSelectable)&&(clickEvent.isDefaultPrevented()||(map.params[type+"sSelectableOne"]&&map.clearSelected(type+"s"),element.setSelected(!element.isSelected))))})},bindZoomButtons:function(){var map=this;jvm.$("
").addClass("jvectormap-zoomin").text("+").appendTo(this.container),jvm.$("
").addClass("jvectormap-zoomout").html("−").appendTo(this.container),this.container.find(".jvectormap-zoomin").click(function(){map.setScale(map.scale*map.params.zoomStep,map.width/2,map.height/2,!1,map.params.zoomAnimate)}),this.container.find(".jvectormap-zoomout").click(function(){map.setScale(map.scale/map.params.zoomStep,map.width/2,map.height/2,!1,map.params.zoomAnimate)})},createTip:function(){var map=this;this.tip=jvm.$("
").addClass("jvectormap-tip").appendTo(jvm.$("body")),this.container.mousemove(function(e){var left=e.pageX-15-map.tipWidth,top=e.pageY-15-map.tipHeight;5>left&&(left=e.pageX+15),5>top&&(top=e.pageY+15),map.tip.css({left:left,top:top})})},setScale:function(scale,anchorX,anchorY,isCentered,animate){var interval,scaleStart,scaleDiff,transXStart,transXDiff,transYStart,transYDiff,transX,transY,viewportChangeEvent=jvm.$.Event("zoom.jvectormap"),that=this,i=0,count=Math.abs(Math.round(60*(scale-this.scale)/Math.max(scale,this.scale))),deferred=new jvm.$.Deferred;return scale>this.params.zoomMax*this.baseScale?scale=this.params.zoomMax*this.baseScale:scale0?(scaleStart=this.scale,scaleDiff=(scale-scaleStart)/count,transXStart=this.transX*this.scale,transYStart=this.transY*this.scale,transXDiff=(transX*scale-transXStart)/count,transYDiff=(transY*scale-transYStart)/count,interval=setInterval(function(){i+=1,that.scale=scaleStart+scaleDiff*i,that.transX=(transXStart+transXDiff*i)/that.scale,that.transY=(transYStart+transYDiff*i)/that.scale,that.applyTransform(),i==count&&(clearInterval(interval),that.container.trigger(viewportChangeEvent,[scale/that.baseScale]),deferred.resolve())},10)):(this.transX=transX,this.transY=transY,this.scale=scale,this.applyTransform(),this.container.trigger(viewportChangeEvent,[scale/this.baseScale]),deferred.resolve()),deferred},setFocus:function(config){var bbox,itemBbox,newBbox,codes,i,point;if(config=config||{},config.region?codes=[config.region]:config.regions&&(codes=config.regions),codes){for(i=0;ilng&&(lng+=360),point=jvm.Proj[proj.type](lat,lng,centralMeridian),inset=this.getInsetForPoint(point.x,point.y),inset?(bbox=inset.bbox,point.x=(point.x-bbox[0].x)/(bbox[1].x-bbox[0].x)*inset.width*this.scale,point.y=(point.y-bbox[0].y)/(bbox[1].y-bbox[0].y)*inset.height*this.scale,{x:point.x+this.transX*this.scale+inset.left*this.scale,y:point.y+this.transY*this.scale+inset.top*this.scale}):!1},pointToLatLng:function(x,y){var i,inset,bbox,nx,ny,proj=jvm.Map.maps[this.params.map].projection,centralMeridian=proj.centralMeridian,insets=jvm.Map.maps[this.params.map].insets;for(i=0;ibbox[0].x&&nxbbox[0].y&&nybbox[0].x&&xbbox[0].y&&y").addClass("jvectormap-goback").text("Back").appendTo(this.params.container),this.backButton.hide(),this.backButton.click(function(){that.goBack()}),this.spinner=jvm.$("
").addClass("jvectormap-spinner").appendTo(this.params.container),this.spinner.hide()},jvm.MultiMap.prototype={addMap:function(name,config){var cnt=jvm.$("
").css({width:"100%",height:"100%"});return this.params.container.append(cnt),this.maps[name]=new jvm.Map(jvm.$.extend(config,{container:cnt})),this.params.maxLevel>config.multiMapLevel&&this.maps[name].container.on("regionClick.jvectormap",{scope:this},function(e,code){var multimap=e.data.scope,mapName=multimap.params.mapNameByCode(code,multimap);multimap.drillDownPromise&&"pending"===multimap.drillDownPromise.state()||multimap.drillDown(mapName,code)}),this.maps[name]},downloadMap:function(code){var that=this,deferred=jvm.$.Deferred();return this.mapsLoaded[code]?deferred.resolve():jvm.$.get(this.params.mapUrlByCode(code,this)).then(function(){that.mapsLoaded[code]=!0,deferred.resolve()},function(){deferred.reject()}),deferred},drillDown:function(name,code){var currentMap=this.history[this.history.length-1],that=this,focusPromise=currentMap.setFocus({region:code,animate:!0}),downloadPromise=this.downloadMap(code);focusPromise.then(function(){"pending"===downloadPromise.state()&&that.spinner.show()}),downloadPromise.always(function(){that.spinner.hide()}),this.drillDownPromise=jvm.$.when(downloadPromise,focusPromise),this.drillDownPromise.then(function(){currentMap.params.container.hide(),that.maps[name]?that.maps[name].params.container.show():that.addMap(name,{map:name,multiMapLevel:currentMap.params.multiMapLevel+1}),that.history.push(that.maps[name]),that.backButton.show()})},goBack:function(){var currentMap=this.history.pop(),prevMap=this.history[this.history.length-1],that=this;currentMap.setFocus({scale:1,x:.5,y:.5,animate:!0}).then(function(){currentMap.params.container.hide(),prevMap.params.container.show(),prevMap.updateSize(),1===that.history.length&&that.backButton.hide(),prevMap.setFocus({scale:1,x:.5,y:.5,animate:!0})})}},jvm.MultiMap.defaultParams={mapNameByCode:function(code,multiMap){return code.toLowerCase()+"_"+multiMap.defaultProjection+"_en"},mapUrlByCode:function(code,multiMap){return"jquery-jvectormap-data-"+code.toLowerCase()+"-"+multiMap.defaultProjection+"-en.js"}}; \ No newline at end of file diff --git a/js/main.js b/js/main.js deleted file mode 100644 index 088c8a6..0000000 --- a/js/main.js +++ /dev/null @@ -1,109 +0,0 @@ -(function() { - //set the height of your section which makes sticky sit below it - // windowHeight alone will push it outside the window so do - //window height - 60 - var winHeight = $(window).height(); - var headerHeight = $('header').outerHeight(true); - $('.intro').css('marginBottom', '-' + headerHeight + 'px'); - $('main').css('paddingTop', headerHeight + 'px'); - - var $eventSidebar = $('.location'); - if ($eventSidebar.length) { - $eventSidebar.css('paddingTop', headerHeight + 'px'); - } - - - //Your sticky relocate code - function sticky_relocate() { - var window_top = $(window).scrollTop(); - var div_top = $('#sticky-anchor').offset().top; - if (div_top == 0) { - return $('body').addClass('header-stick'); - - } - if (window_top > div_top) { - $('body').addClass('header-stick'); - } else { - $('body').removeClass('header-stick'); - } - } - - sticky_relocate(); - $(window).scroll(sticky_relocate); -})(); - -jQuery(document).ready(function($) { - var isLateralNavAnimating = false; - - //open/close lateral navigation - $('.js-nav-trigger').on('click', function(event){ - event.preventDefault(); - //stop if nav animation is running - if( !isLateralNavAnimating ) { - if($(this).parents('.csstransitions').length > 0 ) isLateralNavAnimating = true; - - // Toggle text - var textToChange = $(this).find('.js-nav-text').data('toggleText'); - var actualText = $(this).find('.js-nav-text').text(); - $(this).find('.js-nav-text').text(textToChange).data('toggleText', actualText); - - //$('body').toggleClass('navigation-is-open'); - $('.navigation-wrapper').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){ - //animation is over - isLateralNavAnimating = false; - }); - } - }); - - //$(document).on('click', '.primary-nav a', function(event) { - // //stop if nav animation is running - // if( !isLateralNavAnimating ) { - // if($(this).parents('.csstransitions').length > 0 ) isLateralNavAnimating = true; - // - // $('body').toggleClass('navigation-is-open'); - // $('.navigation-wrapper').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){ - // //animation is over - // isLateralNavAnimating = false; - // }); - // } - //}); - - // video size in device-mockup - recalculate_video_size(); - - //handle newsletter form - newsletterForm(); -}); - -$(window).resize(function() { - recalculate_video_size(); -}); - -function recalculate_video_size() { - var $mockup = $(".device-mockup"); - var $screen = $mockup.find('.screen'); - var $videoFrame = $screen.find('iframe'); - - var width = $screen.width(); - var height = $screen.height(); - - $videoFrame.attr('height', height); - $videoFrame.attr('width', width); -} - - -function newsletterForm() { - var $form = $("#newsletterForm"); - if (!$form.length) { - return; - } - - var $wrapper = $("#" + $form.data('wrap')); - var $input = $form.find("input[name='subscriber_email']"); - - $form.on('submit', function (e) { - e.preventDefault(); - console.log('Do something with this user email: ', $input.val()); - $wrapper.addClass('flipped'); - }) -} \ No newline at end of file diff --git a/js/meetup.js b/js/meetup.js deleted file mode 100644 index 80579fc..0000000 --- a/js/meetup.js +++ /dev/null @@ -1,171 +0,0 @@ -function getParameterByName( name ){ - var regexS = "[\\?&]"+name+"=([^&#]*)", - regex = new RegExp( regexS ), - results = regex.exec( window.location.search ); - if( results == null ){ - return ""; - } else{ - return decodeURIComponent(results[1].replace(/\+/g, " ")); - } -} - -jQuery(document).ready(function($){ - - // Fill text with selected element - $("#filters ul").each(function(){ - var $list = $(this); - var $txt = $list.prev().find('.txt'); - var $selected = $list.find('.active'); - if (!$selected.length) { - $selected = $list.children().first(); - } - $txt.text($selected.text()); - }); - - // Get & set initial list height for filters - $("#filters ul").each(function(){ - var height = $(this).outerHeight(); - $(this).data('initial-height', height); - }); - - // Events - $(document).on('click', "#filters ul li", function(e){ - var $selected = $(this); - var $list = $selected.parent(); - var $txt = $list.prev().find('.txt'); - $list.find('li').removeClass('active'); - $selected.addClass('active'); - $txt.text($selected.text()); - - $list.prev().trigger('click'); - }); - - $(document).on('click', "#filters .selected", function(e){ - e.preventDefault(); - var $select = $(this); - var $filter = $select.parent(); - var $list = $filter.find('ul'); - if ($filter.hasClass('opened')) { - $filter.removeClass('opened'); - $list.animate({ - height: 0 - }, 300, function(){ - $list.css({ - display: 'none' - }); - }); - - return; - } - - $filter.addClass('opened'); - $list.css({ - height: 0, - display: 'block' - }); - $list.animate({ - height: $list.data('initial-height') - }, 300); - }); - - - // Mixituup - mixItUp.init(); - filters.init(); - - var filter_location = getParameterByName('c'); - var filter_date = getParameterByName('d'); - - - console.log('TODO: set filter on page load') - console.log('TODO: add history.js support') - //if (filter_location) { - // var $filters = $('#filters'); - // var $list_el = $filters.find("li[data-id='" + filter_location + "']"); - // $list_el.trigger('click'); - // $list_el.trigger('click'); - //} -}); - -var mixItUp = { - - conatiner: $('#pushs'), - - init: function(){ - var self = this; - - self.conatiner.mixItUp({ - controls: { - enable: false, - live: false - }, - callbacks: { - onMixStart: function(){ - $('.fail-message').hide(); - $('.loading-message').fadeOut(200); - }, - onMixFail: function(){ - $('.fail-message').show(); - }, - onMixLoad: function(){ - self.calcHeight(); - } - }, - //load: { - // filter: '.city_trojmiasto' - //} - }); - - $(window).scroll(self.calcHeight); - }, - - calcHeight: function() { - var $text = $(".flip .text"); - var height = $text.first().outerHeight(); - $text.css({ - lineHeight: height + 'px' - }); - } -}; - -var filters = { - $filters: null, - groups: [], - outputArray: [], - - init: function(){ - var self = this; - - self.$container = $('#pushs'); - self.$filters = $('#filters'); - - self.bindHandlers(); - }, - - bindHandlers: function(){ - var self = this; - - self.$filters.on('click', '.filter li', function(e){ - var $element = $(e.currentTarget); - var type = $element.parents('.filter').data('type'); - var active = $element.data('id'); - var outputString = ''; - - self.groups[type] = '.' + type + '_' + active; - if (!active.length || active == 'all') { - active = 'all'; - self.groups[type] = ''; - } - - for (var key in self.groups) { - outputString += self.groups[key]; - } - - if (!outputString.length) { - outputString = 'all'; - } - console.log(outputString); - self.$container.mixItUp('filter', outputString); - }); - } -}; \ No newline at end of file diff --git a/package.json b/package.json index b23ce97..db62257 100644 --- a/package.json +++ b/package.json @@ -2,34 +2,52 @@ "name": "phpers", "version": "2.0.0", "description": "PHPers group website", - "keywords": "php, meetups, developers, website, programming", "homepage": "http://phpers.pl/", - "contributors": { - "name": "Paweł Tekliński", - "email": "pawel@teklinski.info", - "homepage": "http://teklinski.info" + "scripts": { + "dependencies": "yarn install", + "start": "yarn run encore dev --watch" }, + "contributors": [ + { + "name": "Paweł Tekliński", + "email": "pawel@teklinski.info", + "homepage": "http://teklinski.info" + } + ], + "license": "UNLICENSED", "repository": { "type": "git", "url": "https://github.com/PHPers/website" }, - "dependencies": { - "bower": "1.4.1", - "gulp": "^3.8.11", - "gulp-bower": "0.0.10", - "gulp-concat": "^2.6.0", - "gulp-filter": "^2.0.2", - "gulp-flatten": "0.0.4", - "gulp-load-plugins": "^1.0.0-rc.1", - "gulp-minify-css": "^1.2.1", - "gulp-notify": "^2.2.0", - "gulp-sass": "^2.0.1", - "gulp-sourcemaps": "^1.6.0", - "gulp-util": "^3.0.5", - "lodash": "~3.2.0", - "main-bower-files": "2.8.0" + "dependencies": {}, + "devDependencies": { + "@symfony/webpack-encore": "^0.17.0", + "browsernizr": "^2.2.0", + "font-awesome": "^4.7.0", + "foundation-sites": "^6.4.3", + "gmaps": "^0.4.24", + "jquery": "^3.2.1", + "jquery-countdown": "^2.2.0", + "jquery-countto": "^1.2.0", + "mixitup": "^3.2.2", + "node-sass": "^4.6.1", + "owl.carousel": "^2.2.0", + "sass-loader": "^6.0.6", + "spinkit": "^1.2.5", + "viewport-units-buggyfill": "^0.6.2" }, + "browser": { + "$": "./node_modules/jquery/dist/jquery.js", + "jquery": "./node_modules/jquery/dist/jquery.js", + "foundation": "./node_modules/foundation-sites/js/foundation.js", + "owlCarousel": "./node_modules/owl.carousel/dist/owl.carousel.js", + "countdown": "./node_modules/jquery-countdown/src/countdown.js", + "gmaps": "./node_modules/gmaps/gmaps.js", + "mixitup": "./node_modules/mixitup/dist/mixitup.js" + }, + "browserify-shim": {}, + "browserify": {}, "engines": { - "node": ">=0.10.0" + "node": ">=8.9" } } diff --git a/scss/partials/_homepage.scss b/scss/partials/_homepage.scss deleted file mode 100644 index 139597f..0000000 --- a/scss/partials/_homepage.scss +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/scss/partials/_mixins.scss b/scss/partials/_mixins.scss deleted file mode 100644 index 70f52a9..0000000 --- a/scss/partials/_mixins.scss +++ /dev/null @@ -1,159 +0,0 @@ -// center vertically and/or horizontally an absolute positioned element - -@mixin center($xy:xy) { - @if $xy == xy { - left: 50%; - top: 50%; - bottom: auto; - right: auto; - @include transform(translateX(-50%) translateY(-50%)); - } - @else if $xy == x { - left: 50%; - right: auto; - @include transform(translateX(-50%)); - } - @else if $xy == y { - top: 50%; - bottom: auto; - @include transform(translateY(-50%)); - } -} - -// antialiasing mode font rendering - -@mixin font-smoothing { - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -@mixin image-2x($image, $width, $height) { - @media (min--moz-device-pixel-ratio: 1.3), - (-o-min-device-pixel-ratio: 2.6/2), - (-webkit-min-device-pixel-ratio: 1.3), - (min-device-pixel-ratio: 1.3), - (min-resolution: 1.3dppx) { - background-image: url($image); - background-size: $width $height; - } -} - -@mixin border-radius($radius) { - -webkit-border-radius: $radius / $rem-base + rem; - -moz-border-radius: $radius / $rem-base + rem; - -ms-border-radius: $radius / $rem-base + rem; - -o-border-radius: $radius / $rem-base + rem; - -webkit-border-radius: $radius; - -moz-border-radius: $radius; - -ms-border-radius: $radius; - -o-border-radius: $radius; - border-radius: $radius / $rem-base + rem; - border-radius: $radius; -} - -@mixin clearfix() { - &:before, - &:after { - content: ""; - display: table; - } - &:after { - clear: both; - } -} - -@mixin box-shadow($top, $left, $blur, $color, $inset: false) { - @if $inset { - -webkit-box-shadow:inset $top $left $blur $color; - -moz-box-shadow:inset $top $left $blur $color; - box-shadow:inset $top $left $blur $color; - } @else { - -webkit-box-shadow: $top $left $blur $color; - -moz-box-shadow: $top $left $blur $color; - box-shadow: $top $left $blur $color; - } -} - -@mixin opacity($opacity) { - opacity: $opacity; - $opacity-ie: $opacity * 100; - filter: alpha(opacity=$opacity-ie); //IE8 -} - -@mixin desaturate() { - @include filter(grayscale(100%)); - filter: url(../../images/desaturate.svg#greyscale); -} - -@mixin saturate() { - @include filter(none); -} - -@mixin font-size-rwd($size) { - font-size: $size; - @media #{$medium-only} { - font-size: $size * $rwd-factor-medium; - } - @media #{$small-only} { - font-size: max($size * $rwd-factor-small, 1rem); - } -} - -@mixin line-height-rwd($size) { - line-height: $size; - @if not unitless($size) { - @media #{$medium-only} { - line-height: $size * $rwd-factor-medium; - } - @media #{$small-only} { - line-height: max($size * $rwd-factor-small, 1rem); - } - } -} - -//Sass mixin for vendor-prefixed transitions -//Jul 16 -//http://log.vieron.net/articles/sass-mixins-for-vendor-prefixed-transitions-including-properties/ -//@function prefix($property, $prefixes: (webkit moz o ms)) { -// $vendor-prefixed-properties: transform background-clip background-size; -// $result: (); -// @each $prefix in $prefixes { -// @if index($vendor-prefixed-properties, $property) { -// $property: -#{$prefix}-#{$property} -// } -// $result: append($result, $property); -// } -// @return $result; -//} -// -//@function trans-prefix($transition, $prefix: moz) { -// $prefixed: (); -// @each $trans in $transition { -// $prop-name: nth($trans, 1); -// $vendor-prop-name: prefix($prop-name, $prefix); -// $prop-vals: nth($trans, 2); -// $prefixed: append($prefixed, ($vendor-prop-name $prop-vals), comma); -// } -// -// @return $prefixed; -//} -// -// -//@mixin transition($values...) { -// $transitions: (); -// @each $declaration in $values { -// $prop: nth($declaration, 1); -// $prop-opts: (); -// $length: length($declaration); -// @for $i from 2 through $length { -// $prop-opts: append($prop-opts, nth($declaration, $i)); -// } -// $trans: ($prop, $prop-opts); -// $transitions: append($transitions, $trans, comma); -// } -// -// -webkit-transition: trans-prefix($transitions, webkit); -// -moz-transition: trans-prefix($transitions, moz); -// -o-transition: trans-prefix($transitions, o); -// transition: $values; -//} \ No newline at end of file diff --git a/sculpin.json b/sculpin.json deleted file mode 100644 index 097d9b9..0000000 --- a/sculpin.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "sculpin/blog-skeleton", - "description": "A Skeleton for a Sculpin Based Blog", - "type": "sculpin-skeleton", - "license": "MIT", - "authors": [ - { - "name": "Dragonfly Development Inc.", - "email": "info@dflydev.com", - "homepage": "http://dflydev.com" - }, - { - "name": "Beau Simensen", - "email": "beau@dflydev.com", - "homepage": "http://beausimensen.com" - } - ], - "require": { - "mavimo/sculpin-redirect-bundle": "@dev" - }, - "config": { - "component-dir": "source/components" - } -} diff --git a/sculpin.lock b/sculpin.lock deleted file mode 100644 index 20b3683..0000000 --- a/sculpin.lock +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", - "This file is @generated automatically" - ], - "hash": "92e0efeee5ef875fc4fdf02d32379ca9", - "packages": [ - { - "name": "mavimo/sculpin-redirect-bundle", - "version": "dev-master", - "target-dir": "Mavimo/Sculpin/Bundle/RedirectBundle", - "source": { - "type": "git", - "url": "https://github.com/mavimo/sculpin-redirect-bundle.git", - "reference": "5c42c401942008de04aa1e1d64161ca105568e2a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mavimo/sculpin-redirect-bundle/zipball/5c42c401942008de04aa1e1d64161ca105568e2a", - "reference": "5c42c401942008de04aa1e1d64161ca105568e2a", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "type": "library", - "autoload": { - "psr-0": { - "Mavimo\\Sculpin\\Bundle\\RedirectBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Vito Moscaritolo", - "email": "marco@mavimo.org", - "homepage": "http://www.mavimo.org" - } - ], - "description": "Sculpin Redirect Bundle", - "homepage": "https://sculpin.io", - "keywords": [ - "blog", - "blogging", - "redirect", - "site", - "static" - ], - "time": "2014-01-04 14:40:02" - } - ], - "packages-dev": [], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": { - "mavimo/sculpin-redirect-bundle": 20 - }, - "prefer-stable": false, - "prefer-lowest": false, - "platform": [], - "platform-dev": [] -} diff --git a/source/_includes/want-be-speaker.html.twig b/source/_includes/want-be-speaker.html.twig index f9d5a78..b5cc055 100644 --- a/source/_includes/want-be-speaker.html.twig +++ b/source/_includes/want-be-speaker.html.twig @@ -1,5 +1,5 @@ - \ No newline at end of file diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index bffcf12..109d42e 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -52,14 +52,14 @@ rel='stylesheet' type='text/css'> - - + + + - -
@@ -161,9 +154,18 @@
@@ -188,14 +190,19 @@