diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..9d8d516 --- /dev/null +++ b/.babelrc @@ -0,0 +1 @@ +{ "presets": ["es2015"] } diff --git a/.gitignore b/.gitignore index 5c91b60..f200cea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ -_site/ -.sass-cache/ +_site +.sass-cache .jekyll-metadata +_config.dev.yml +node_modules +*.map diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8b98567 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: ruby +rvm: + - 2.1 + +script: bundle exec jekyll build --destination _site/jkan && bundle exec htmlproof ./_site --disable-external --allow-hash-href + +branches: + only: + - gh-pages + +env: + global: + - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..c7fad03 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1 @@ +Please see the [Architecture](https://github.com/timwis/jkan/wiki/Architecture) page in the wiki. diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..d8777ee --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source "https://rubygems.org" + +gem "jekyll" +gem "html-proofer" \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..eae32db --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,92 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (5.2.0) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + colorator (1.1.0) + colorize (0.8.1) + concurrent-ruby (1.0.5) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + ethon (0.11.0) + ffi (>= 1.3.0) + eventmachine (1.2.6) + ffi (1.9.23) + forwardable-extended (2.6.0) + html-proofer (3.8.0) + activesupport (>= 4.2, < 6.0) + addressable (~> 2.3) + colorize (~> 0.8) + mercenary (~> 0.3.2) + nokogiri (~> 1.8.1) + parallel (~> 1.3) + typhoeus (~> 1.3) + yell (~> 2.0) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.1) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-watch (2.0.0) + listen (~> 3.0) + kramdown (1.16.2) + liquid (4.0.0) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + mercenary (0.3.6) + mini_portile2 (2.3.0) + minitest (5.11.3) + nokogiri (1.8.2) + mini_portile2 (~> 2.3.0) + parallel (1.12.1) + pathutil (0.16.1) + forwardable-extended (~> 2.6) + public_suffix (3.0.2) + rb-fsevent (0.10.3) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rouge (3.1.1) + ruby_dep (1.5.0) + safe_yaml (1.0.4) + sass (3.5.6) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + thread_safe (0.3.6) + typhoeus (1.3.0) + ethon (>= 0.9.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + yell (2.0.7) + +PLATFORMS + ruby + +DEPENDENCIES + html-proofer + jekyll + +BUNDLED WITH + 1.16.1 diff --git a/LICENSE b/LICENSE index 94a9ed0..d109cda 100644 --- a/LICENSE +++ b/LICENSE @@ -79,7 +79,7 @@ works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. +"recipients" may be individuals or periods. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an @@ -451,8 +451,8 @@ propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered +period, or substantially all assets of one, or subdividing an +period, or merging periods. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could diff --git a/_config.yml b/_config.yml index 2f7efbe..8b0d252 100644 --- a/_config.yml +++ b/_config.yml @@ -1 +1,88 @@ -theme: jekyll-theme-minimal \ No newline at end of file +title: CASI +greeting: Welcome to JKAN +description: Centro Acadêmico de Sistemas de Informação +baseurl: /jkan +logo: /img/jkan.png + +# Site theme +jkan_theme: Default + +# Authentication +github_client_id: +gatekeeper_host: + +# Subject schema +schema: default + +# Nav bar +navigation: + - title: Subjects + url: /subjects/ + - title: Periods + url: /periods/ + +# Collections +collections: + subjects: + output: true + permalink: /subjects/:path/ + periods: + output: true + permalink: /periods/:path/ + +# Collections (cont'd) +defaults: + - scope: + path: "" + type: subjects + values: + layout: subject + category: Uncategorized + period: N/A + - scope: + path: "" + type: periods + values: + layout: period + +# Markdown settings +markdown: kramdown +kramdown: + input: GFM + +# Google Analytics +google_analytics: + enabled: false + code: "UA-XXXXXX-1" + +# US Digital Analytics Program - https://analytics.usa.gov +digital_analytics_program: + enabled: false + agency: "" + subagency: "" + +# Hypothesis.io - Annotator +hypothesis: + enabled: false + +# Twitter +twittercard: + enabled: false + username: "@" + +# Open Graph +opengraph: + enabled: true + +# Exclude these files from the build +exclude: + - Gemfile + - Gemfile.lock + - vendor + - .travis.yml + - node_modules + - scripts/src + - package.json + - webpack.config.js + - README.md + - LICENSE diff --git a/_data/categories.yml b/_data/categories.yml new file mode 100644 index 0000000..912f2c1 --- /dev/null +++ b/_data/categories.yml @@ -0,0 +1,52 @@ +- name: Programação + logo: /img/categories/arts-culture-history.svg + featured: true +- name: Budget / Finance + logo: /img/categories/budget-finance.svg + logo_credit: Renan Ferreira Santos from the Noun Project + featured: true +- name: Economy + logo: /img/categories/economy.svg + logo_credit: Vectors Market from the Noun Project + featured: true +- name: Education + logo: /img/categories/education.svg + logo_credit: Sergey Patutin from the Noun Project + featured: true +- name: Elections / Politics + logo: /img/categories/elections-politics.svg + logo_credit: Jean Soo from the Noun Project + featured: true +- name: Environment + logo: /img/categories/environment.svg + featured: true +- name: Food + logo: /img/categories/food.svg + logo_credit: Creative Stall from the Noun Project + featured: true +- name: Health / Human Services + logo: /img/categories/health-human-services.svg + logo_credit: Timothy Miller from the Noun Project + featured: true +- name: Parks / Recreation + logo: /img/categories/parks-recreation.svg + logo_credit: Pipe Rosas Licht from the Noun Project + featured: true +- name: Planning / Zoning + logo: /img/categories/planning-zoning.svg + featured: true +- name: Public Safety + logo: /img/categories/public-safety.svg + logo_credit: Rohith M S from the Noun Project + featured: true +- name: Real Estate / Land Records + logo: /img/categories/real-estate-land-records.svg + featured: true +- name: Transportation + logo: /img/categories/transportation.svg + logo_credit: Dmitry Baranovskiy from the Noun Project + featured: true +- name: Uncategorized + logo: /img/categories/uncategorized.svg + logo_credit: Edward Boatman from the Noun Project + featured: true diff --git a/_data/licenses.yml b/_data/licenses.yml new file mode 100644 index 0000000..e2b89b3 --- /dev/null +++ b/_data/licenses.yml @@ -0,0 +1,8 @@ +'https://creativecommons.org/licenses/by/4.0/': Creative Commons Attribution +'https://creativecommons.org/licenses/by-sa/4.0/': Creative Commons Attribution Share-Alike +'https://creativecommons.org/publicdomain/zero/1.0/': Creative Commons CCZero +'https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/': UK Open Government Licence +'http://www.opendefinition.org/licenses/odc-by': Open Data Commons Attribution License +'http://www.opendefinition.org/licenses/odc-odbl': Open Data Commons Open Database License (ODbL) +'http://www.opendefinition.org/licenses/odc-pddl': Open Data Commons Public Domain Dedication and Licence (PDDL) +'': Not Applicable diff --git a/_data/schemas/default.yml b/_data/schemas/default.yml new file mode 100644 index 0000000..ac859cb --- /dev/null +++ b/_data/schemas/default.yml @@ -0,0 +1,81 @@ +# To add fields, make a new schema file in this directory +# and change the schema setting in _config.yml to its name +subject_fields: + - field_name: title + label: Nome da Disciplina + datajson: title + - field_name: code + label: Código da Disciplina + datajson: publisher.name + - field_name: notes + label: Ementa + form_template: form/textarea.html + datajson: description + - field_name: category + label: Category + form_template: form/category.html + display_template: display/category.html + +resource_fields: + - field_name: name + label: Nome do Material Complementar + datajson: distribution.title + - field_name: code + label: Código da Disciplina + - field_name: format + label: Formato + datajson: distribution.format + form_template: form/dropdown.html + values: + - Documento + - Slides + - Exercícios + - Imagem + - Tabela + - Infografico + - Dataset + + +period_fields: + - field_name: title + label: Title + - field_name: description + label: Description + - field_name: logo + label: Logo + + +associated_field: + - field_name: name + label: Nome do Associado + - field_name: enrollment + label: Número de Matrícula (com ER/EF/EV) + - field_name: facebook + label: Link do Facebook + + +challenges_field: + - field_name: name + label: Nome do Desafio + - field_name: sponsor + label: Patrcínador + - field_name: awards + label: Premiação + - field_name: difficulty + label: Dificuldade + - field_name: description + label: Descrição + - field_name: url + label: URL + + +category_fields: + - field_name: name + label: Nome da Categoria + - field_name: logo + label: Logo + - field_name: logo_credit + label: Logo Credit + - field_name: featured + label: Destaque na Home + form_template: form/checkbox.html diff --git a/_data/themes.yml b/_data/themes.yml new file mode 100644 index 0000000..ec9f494 --- /dev/null +++ b/_data/themes.yml @@ -0,0 +1,45 @@ +- name: Default + logo: /img/themes/default.png + src: '' +- name: Cerulean + logo: /img/themes/cerulean.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/cerulean/bootstrap.min.css +- name: Cosmo + logo: /img/themes/cosmo.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/cosmo/bootstrap.min.css +- name: Cyborg + logo: /img/themes/cyborg.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/cyborg/bootstrap.min.css +- name: Darkly + logo: /img/themes/darkly.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/darkly/bootstrap.min.css +- name: Flatly + logo: /img/themes/flatly.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/flatly/bootstrap.min.css +- name: Journal + logo: /img/themes/journal.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/journal/bootstrap.min.css +- name: Lumen + logo: /img/themes/lumen.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/lumen/bootstrap.min.css +- name: Paper + logo: /img/themes/paper.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/paper/bootstrap.min.css +- name: Readable + logo: /img/themes/readable.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/readable/bootstrap.min.css +- name: Sandstone + logo: /img/themes/sandstone.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/sandstone/bootstrap.min.css +- name: Simplex + logo: /img/themes/simplex.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/simplex/bootstrap.min.css +- name: Slate + logo: /img/themes/slate.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/slate/bootstrap.min.css +- name: Spacelab + logo: /img/themes/spacelab.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/spacelab/bootstrap.min.css +- name: Superhero + logo: /img/themes/superhero.png + src: https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/superhero/bootstrap.min.css diff --git a/_includes/addons/google-analytics.html b/_includes/addons/google-analytics.html new file mode 100644 index 0000000..3a7d40a --- /dev/null +++ b/_includes/addons/google-analytics.html @@ -0,0 +1,9 @@ + diff --git a/_includes/addons/opengraph.html b/_includes/addons/opengraph.html new file mode 100644 index 0000000..67a30cb --- /dev/null +++ b/_includes/addons/opengraph.html @@ -0,0 +1,7 @@ + + +{% assign description = page.notes | default: site.description %} + + + + diff --git a/_includes/addons/twittercard.html b/_includes/addons/twittercard.html new file mode 100644 index 0000000..d44a196 --- /dev/null +++ b/_includes/addons/twittercard.html @@ -0,0 +1,9 @@ + + + +{% capture title %}{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}{% endcapture %} + + +{% assign description = page.notes | default: site.description %} + + diff --git a/_includes/admin-form-category.html b/_includes/admin-form-category.html new file mode 100644 index 0000000..3b96d6f --- /dev/null +++ b/_includes/admin-form-category.html @@ -0,0 +1,11 @@ +
+
+ {% for field in category_fields %} + {% assign template = field.form_template | default: "form/text.html" %} + {% capture field_name %}categories[][{{ field.field_name }}]{% endcapture %} + {% assign value = category[field[field_name]] %} + {% include {{ template }} field=field field_name=field_name value=value %} + {% endfor %} +
+ +
\ No newline at end of file diff --git a/_includes/admin-form-license.html b/_includes/admin-form-license.html new file mode 100644 index 0000000..799ed4a --- /dev/null +++ b/_includes/admin-form-license.html @@ -0,0 +1,9 @@ +
+
+ {% assign name = license[1] %} + {% include form/text.html field_label='License Name' field_name='licenses[][license_name]' value=name %} + {% assign url = license[0] %} + {% include form/text.html field_label='License URL' field_name='licenses[][license_url]' value=url %} +
+ +
diff --git a/_includes/breadcrumbs.html b/_includes/breadcrumbs.html new file mode 100644 index 0000000..4997f56 --- /dev/null +++ b/_includes/breadcrumbs.html @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/_includes/display/category.html b/_includes/display/category.html new file mode 100644 index 0000000..57e4d3c --- /dev/null +++ b/_includes/display/category.html @@ -0,0 +1,11 @@ + + {{ include.field.label }} + + {% if include.value.size %} + {% for category in include.value %} + {{ category }}{% unless forloop.last %}, {% endunless %} + {% endfor %} + {% else %} + {{ include.value }} + {% endif %} + \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..f02cf96 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,5 @@ + + + + + diff --git a/_includes/form/category.html b/_includes/form/category.html new file mode 100644 index 0000000..f307c8d --- /dev/null +++ b/_includes/form/category.html @@ -0,0 +1,8 @@ +
+ + +
\ No newline at end of file diff --git a/_includes/form/checkbox.html b/_includes/form/checkbox.html new file mode 100644 index 0000000..03a2541 --- /dev/null +++ b/_includes/form/checkbox.html @@ -0,0 +1,6 @@ +
+ +
\ No newline at end of file diff --git a/_includes/form/dropdown.html b/_includes/form/dropdown.html new file mode 100644 index 0000000..baa01ea --- /dev/null +++ b/_includes/form/dropdown.html @@ -0,0 +1,9 @@ +
+ + +
\ No newline at end of file diff --git a/_includes/form/license.html b/_includes/form/license.html new file mode 100644 index 0000000..ecca0fb --- /dev/null +++ b/_includes/form/license.html @@ -0,0 +1,10 @@ +
+ + +
Not sure what license to use? See http://licenses.opendefinition.org/
+
diff --git a/_includes/form/organization.html b/_includes/form/organization.html new file mode 100644 index 0000000..86d418b --- /dev/null +++ b/_includes/form/organization.html @@ -0,0 +1,14 @@ +
+ +
+ + + + +
+
\ No newline at end of file diff --git a/_includes/form/text.html b/_includes/form/text.html new file mode 100644 index 0000000..c3915ab --- /dev/null +++ b/_includes/form/text.html @@ -0,0 +1,4 @@ +
+ + +
diff --git a/_includes/form/textarea.html b/_includes/form/textarea.html new file mode 100644 index 0000000..0441d89 --- /dev/null +++ b/_includes/form/textarea.html @@ -0,0 +1,4 @@ +
+ + +
\ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..3802248 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,58 @@ + + + + + + {% if page.title %}{{ page.title }} - {% endif %}{{ site.title }} + + + + {% assign theme_name = site.jkan_theme | default: 'Default' %} + {% assign theme = site.data.themes | where:'name', theme_name | first %} + {% if theme and theme.src and theme.src != empty %} + + {% endif %} + + + + + + + + {% if site.digital_analytics_program.enabled == true %} + + + {% endif %} + + {% if site.google_analytics.enabled == true %} + + {% include addons/google-analytics.html %} + {% endif %} + + {% if site.hypothesis.enabled == true %} + + + {% endif %} + + {% if site.opengraph.enabled == true %} + + {% include addons/opengraph.html %} + {% endif %} + + {% if site.twittercard.enabled == true %} + + {% include addons/twittercard.html %} + {% endif %} + + + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..690ba8e --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,42 @@ + \ No newline at end of file diff --git a/_includes/pagination.html b/_includes/pagination.html new file mode 100644 index 0000000..cdb0f77 --- /dev/null +++ b/_includes/pagination.html @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/_includes/period-form.html b/_includes/period-form.html new file mode 100644 index 0000000..734aeb7 --- /dev/null +++ b/_includes/period-form.html @@ -0,0 +1,29 @@ +{% assign schema = page.schema | default: site.schema %} +{% assign period_fields = site.data.schemas[schema].period_fields %} +{% assign period_system_fields = "title|description|logo" | split: "|" %} +{% assign periods = site.collections | where: "label", "periods" | first %} +
+ + +
+ {% for field in period_fields %} + {% assign template = field.form_template | default: "form/text.html" %} + {% assign field_name = field.field_name %} + {% assign value = include.period[field_name] %} + {% include {{ template }} field=field field_name=field_name value=value %} + {% endfor %} +
+ + + {% if include.period %} + + {% endif %} +
\ No newline at end of file diff --git a/_includes/subject-form-resource.html b/_includes/subject-form-resource.html new file mode 100644 index 0000000..5a58810 --- /dev/null +++ b/_includes/subject-form-resource.html @@ -0,0 +1,11 @@ +
+
+ {% for field in resource_fields %} + {% assign template = field.form_template | default: "form/text.html" %} + {% capture field_name %}resources[][{{ field.field_name }}]{% endcapture %} + {% assign value = resource[field[field_name]] %} + {% include {{ template }} field=field field_name=field_name value=value %} + {% endfor %} +
+ +
\ No newline at end of file diff --git a/_includes/subject-form.html b/_includes/subject-form.html new file mode 100644 index 0000000..3fc535b --- /dev/null +++ b/_includes/subject-form.html @@ -0,0 +1,61 @@ +{% assign schema = include.subject.schema | default: site.schema %} +{% assign subject_fields = site.data.schemas[schema].subject_fields %} +{% assign resource_fields = site.data.schemas[schema].resource_fields %} +{% assign subject_system_fields = "title|period|notes" | split: "|" %} +{% assign subjects = site.collections | where:"label","subjects" | first %} +
+ + +
+ {% for field in subject_fields %} + {% if subject_system_fields contains field.field_name %} + {% assign template = field.form_template | default: "form/text.html" %} + {% assign field_name = field.field_name %} + {% assign value = include.subject[field_name] %} + {% include {{ template }} field=field field_name=field_name value=value %} + {% endif %} + {% endfor %} +
+ +

Resources

+
+
+ {% for resource in include.subject.resources %} + {% include subject-form-resource.html %} + {% endfor %} +
+ + + + +
+ +
+

Additional Info

+ + {% for field in subject_fields %} + {% unless subject_system_fields contains field.field_name %} + {% assign template = field.form_template | default: "form/text.html" %} + {% assign field_name = field.field_name %} + {% assign value = include.subject[field_name] %} + {% include {{ template }} field=field field_name=field_name value=value %} + {% endunless %} + {% endfor %} + +
+ + + {% if include.subject %} + + {% endif %} +
diff --git a/_includes/subjects.html b/_includes/subjects.html new file mode 100644 index 0000000..a420a0f --- /dev/null +++ b/_includes/subjects.html @@ -0,0 +1,6 @@ +{% for subject in include.subjects %} + +

{{ subject.title }}

+ {{ subject.notes | truncate: 300, '...' }} +
+{% endfor %} \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..fc554d3 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,21 @@ + + + + {% include head.html %} + + + + {% include header.html %} + +
+ {{ content }} +
+ + {% include footer.html %} + + + + diff --git a/_layouts/period.html b/_layouts/period.html new file mode 100644 index 0000000..a4f281c --- /dev/null +++ b/_layouts/period.html @@ -0,0 +1,37 @@ +--- +layout: default +--- +{% include breadcrumbs.html parent="Periods" %} + +
+
+ {% if page.logo and page.logo != empty %} +
+ {{ page.title }} logo +
+
+ {% else %} +
+ {% endif %} +

+ {{ page.title }} + Edit +

+

{{ page.description }}

+
+

+ +
+
+
+
+ +
+
+ {% include period-form.html period=page %} +
+
+ Cancel +
+
+
diff --git a/_layouts/subject.html b/_layouts/subject.html new file mode 100644 index 0000000..0dbb890 --- /dev/null +++ b/_layouts/subject.html @@ -0,0 +1,113 @@ +--- +layout: default +--- +{% include breadcrumbs.html parent="Subjects" %} +{% assign schema = page.schema | default: site.schema %} +{% assign subject_fields = site.data.schemas[schema].subject_fields %} +{% assign subject_system_fields = "title|period|notes|license" | split: "|" %} +{% assign resource_fields = site.data.schemas[schema].resource_fields %} +{% assign resource_system_fields = "name|url|format|description" | split: "|" %} + +{% assign period = site.periods | where:"title",page.period | first %} +{% capture period_url %}{{ site.baseurl }}/subjects/?period={{ period.title | slugify }}{% endcapture %} + +
+
+ {% if period %} +
+
+
+ {% if period.logo and period.logo != empty %} + {{ period.title }} logo + {% endif %} +
+
+

+ + {{ period.title }} + +

+ {{ period.description }} +
+
+
+
+ {% else %} +
+ {% endif %} +

+ {{ page.title }} + Edit +

+

{{ page.notes }}

+ +

Resources

+
    + {% for resource in page.resources %} +
  • + {{ resource.name }} + {% if resource.format %}{{ resource.format}}{% endif %} + (Details) + {% if resource.description %}
    {{ resource.description }}
    {% endif %} + + {% for field in resource_fields %} + {% unless resource_system_fields contains field.field_name %} + {% assign value = resource[field[field_name]] %} + {% if value %} + {% if field.display_template %} + {% include {{ field.display_template }} field=field value=value %} + {% else %} + + + + + {% endif %} + {% endif %} + {% endunless %} + {% endfor %} +
    {{ field.label }}{{ value }}
    +
  • + {% endfor %} +
+ +

Additional Info

+ + {% if page.license and page.license != empty %} + + + + + {% endif %} + {% for field in subject_fields %} + {% unless subject_system_fields contains field.field_name %} + {% assign value = page[field[field_name]] %} + {% if value %} + {% if field.display_template %} + {% include {{ field.display_template }} field=field value=value %} + {% else %} + + + + + {% endif %} + {% endif %} + {% endunless %} + {% endfor %} + +
License + + {{ site.data.licenses[page.license] }} + +
{{ field.label }}{{ value }}
+
+
+ +
+
+ {% include subject-form.html subject=page %} +
+
+ Cancel +
+
+
diff --git "a/_period/1\302\272Per\303\255odo.md" "b/_period/1\302\272Per\303\255odo.md" new file mode 100644 index 0000000..eec5af7 --- /dev/null +++ "b/_period/1\302\272Per\303\255odo.md" @@ -0,0 +1,5 @@ +--- +title: 1º Período +description: This is an example department provided with a new installation of JKAN +logo: http://i.imgur.com/mrC5xVT.png +--- diff --git "a/_subjects/ADE104-Teoria Geral da Administra\303\247\303\243o 1.md" "b/_subjects/ADE104-Teoria Geral da Administra\303\247\303\243o 1.md" new file mode 100644 index 0000000..8acaba1 --- /dev/null +++ "b/_subjects/ADE104-Teoria Geral da Administra\303\247\303\243o 1.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN100 +title: SIN100 - Tratamento e Análise de Dados/Informações +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Comunicação científica. Preparação de um trabalho de pesquisa. Formas de aquisição de conhecimento. Tipos e formas de dados. Formas de coletas de dados. Formas de tratamento e análise de dados /informações. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/ADE105-Teoria Geral da Administra\303\247\303\243o 2.md" "b/_subjects/ADE105-Teoria Geral da Administra\303\247\303\243o 2.md" new file mode 100644 index 0000000..8acaba1 --- /dev/null +++ "b/_subjects/ADE105-Teoria Geral da Administra\303\247\303\243o 2.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN100 +title: SIN100 - Tratamento e Análise de Dados/Informações +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Comunicação científica. Preparação de um trabalho de pesquisa. Formas de aquisição de conhecimento. Tipos e formas de dados. Formas de coletas de dados. Formas de tratamento e análise de dados /informações. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/ADE190-Introdu\303\247\303\243o \303\240 Economia.md" "b/_subjects/ADE190-Introdu\303\247\303\243o \303\240 Economia.md" new file mode 100644 index 0000000..8acaba1 --- /dev/null +++ "b/_subjects/ADE190-Introdu\303\247\303\243o \303\240 Economia.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN100 +title: SIN100 - Tratamento e Análise de Dados/Informações +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Comunicação científica. Preparação de um trabalho de pesquisa. Formas de aquisição de conhecimento. Tipos e formas de dados. Formas de coletas de dados. Formas de tratamento e análise de dados /informações. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git a/_subjects/ADE327-Empreendedorismo.md b/_subjects/ADE327-Empreendedorismo.md new file mode 100644 index 0000000..8acaba1 --- /dev/null +++ b/_subjects/ADE327-Empreendedorismo.md @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN100 +title: SIN100 - Tratamento e Análise de Dados/Informações +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Comunicação científica. Preparação de um trabalho de pesquisa. Formas de aquisição de conhecimento. Tipos e formas de dados. Formas de coletas de dados. Formas de tratamento e análise de dados /informações. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git a/_subjects/ADE345-Comportamento Organizacional .md b/_subjects/ADE345-Comportamento Organizacional .md new file mode 100644 index 0000000..8acaba1 --- /dev/null +++ b/_subjects/ADE345-Comportamento Organizacional .md @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN100 +title: SIN100 - Tratamento e Análise de Dados/Informações +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Comunicação científica. Preparação de um trabalho de pesquisa. Formas de aquisição de conhecimento. Tipos e formas de dados. Formas de coletas de dados. Formas de tratamento e análise de dados /informações. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git a/_subjects/CIC100-Contabilidade Geral.md b/_subjects/CIC100-Contabilidade Geral.md new file mode 100644 index 0000000..a329070 --- /dev/null +++ b/_subjects/CIC100-Contabilidade Geral.md @@ -0,0 +1,21 @@ +--- +schema: default +code: CIC100 +title: CIC100 - Contabilidade Geral +period: 8º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: A contabilidade e o contador. Aspectos sobre a teoria da contabilidade. Estática patrimonial e relatórios contábeis. Escrituração (livros, regimes e sistemas contábeis). As variações do patrimônio líquido. Balanço patrimonial. Outros demonstrativos contábeis. Operações com mercadorias. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/CRP192-Inicia\303\247\303\243o \303\240 Estat\303\255stica.md" "b/_subjects/CRP192-Inicia\303\247\303\243o \303\240 Estat\303\255stica.md" new file mode 100644 index 0000000..c071be1 --- /dev/null +++ "b/_subjects/CRP192-Inicia\303\247\303\243o \303\240 Estat\303\255stica.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: CRP192 +title: CRP192 - Iniciação à Estatística +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [CRP199] +Corequisite: [] +notes: 'Conceitos introdutórios. Estatística descritiva. Regressão linear simples e correlação amostral. Introdução à teoria da probabilidade. Variáveis aleatórias discretas e contínuas. Funções de variáveis aleatórias. Esperança matemática, variância e covariância. Distribuições de variáveis aleatórias discretas e contínuas. Testes de significância: quiquadrado, F e t.' +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/CRP199-C\303\241lculo Diferencial e Integral.md" "b/_subjects/CRP199-C\303\241lculo Diferencial e Integral.md" new file mode 100644 index 0000000..6efe341 --- /dev/null +++ "b/_subjects/CRP199-C\303\241lculo Diferencial e Integral.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: CRP199 +title: CRP199 - Cálculo Diferencial e Integral +period: 1º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Funções. Limites e continuidade. Derivadas. Aplicações da derivada. Integrais. Aplicações da integral. +category: + - Matemática +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/CRP280-LIBRAS L\303\255ngua Brasileira de Sinais.md" "b/_subjects/CRP280-LIBRAS L\303\255ngua Brasileira de Sinais.md" new file mode 100644 index 0000000..682387c --- /dev/null +++ "b/_subjects/CRP280-LIBRAS L\303\255ngua Brasileira de Sinais.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: CRP280 +title: CRP280 - LIBRAS Língua Brasileira de Sinais +period: Optativa +theoreticalWorkload: 1 +practicalWorkload: 2 +totalWorkload: 45 +Prerequisite: [] +Corequisite: [] +notes: Introdução às técnicas de tradução em Libras/Português. Introdução às técnicas de tradução em Português/Libras. Noções básicas da língua de sinais brasileira. O sujeito surdo. Noções linguísticas de libras. A gramática da língua de sinais. Aspectos sobre a educação dos surdos. Teoria da tradução e interpretação. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/CRP291-Ingl\303\252s 1.md" "b/_subjects/CRP291-Ingl\303\252s 1.md" new file mode 100644 index 0000000..9da87e9 --- /dev/null +++ "b/_subjects/CRP291-Ingl\303\252s 1.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: CRP291 +title: CRP291 - Inglês 1 +period: 3º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: 'Técnicas de leitura e compreensão de textos científicos: o uso do dicionário e formação de palavras. O estudo das funções do discurso. O uso de sinais de referência.' +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git a/_subjects/CRP297-Sociologia Geral.md b/_subjects/CRP297-Sociologia Geral.md new file mode 100644 index 0000000..8cc8ac3 --- /dev/null +++ b/_subjects/CRP297-Sociologia Geral.md @@ -0,0 +1,21 @@ +--- +schema: default +code: CRP297 +title: CRP297 - Sociologia Geral +period: 1º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: 'Perspectivas teóricas e metodológicas das Ciências Sociais. O pensamento social clássico e a caracterização da sociedade industrial. A sociedade Pós-industrial e seus paradigmas sociológicos. Tendências da sociedade brasileira contemporânea: Educação das relações étnicoraciais.' +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/CRP298-Geometria Anal\303\255tica e \303\201lgebra Linear.md" "b/_subjects/CRP298-Geometria Anal\303\255tica e \303\201lgebra Linear.md" new file mode 100644 index 0000000..9643000 --- /dev/null +++ "b/_subjects/CRP298-Geometria Anal\303\255tica e \303\201lgebra Linear.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: CRP298 +title: CRP298 - Geometria Analítica e Álgebra Linear +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [CRP199] +Corequisite: [] +notes: Álgebra vetorial. Reta e planos. Matrizes e sistemas lineares. Determinantes. O espaço vetorial Rn. Diagonalização de matrizes. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/NUR493-T\303\263picos Especiais em Pol\303\255ticas de Sa\303\272de e Cidadania.md" "b/_subjects/NUR493-T\303\263picos Especiais em Pol\303\255ticas de Sa\303\272de e Cidadania.md" new file mode 100644 index 0000000..8acaba1 --- /dev/null +++ "b/_subjects/NUR493-T\303\263picos Especiais em Pol\303\255ticas de Sa\303\272de e Cidadania.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN100 +title: SIN100 - Tratamento e Análise de Dados/Informações +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Comunicação científica. Preparação de um trabalho de pesquisa. Formas de aquisição de conhecimento. Tipos e formas de dados. Formas de coletas de dados. Formas de tratamento e análise de dados /informações. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN100-Tratamento e An\303\241lise de Dados Informa\303\247\303\265es.md" "b/_subjects/SIN100-Tratamento e An\303\241lise de Dados Informa\303\247\303\265es.md" new file mode 100644 index 0000000..8acaba1 --- /dev/null +++ "b/_subjects/SIN100-Tratamento e An\303\241lise de Dados Informa\303\247\303\265es.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN100 +title: SIN100 - Tratamento e Análise de Dados/Informações +period: 2º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Comunicação científica. Preparação de um trabalho de pesquisa. Formas de aquisição de conhecimento. Tipos e formas de dados. Formas de coletas de dados. Formas de tratamento e análise de dados /informações. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN101-Inform\303\241tica e Sociedade.md" "b/_subjects/SIN101-Inform\303\241tica e Sociedade.md" new file mode 100644 index 0000000..90c27f5 --- /dev/null +++ "b/_subjects/SIN101-Inform\303\241tica e Sociedade.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN101 +title: SIN101 - Informática e Sociedade +period: 2º Período +theoreticalWorkload: 2 +practicalWorkload: 0 +totalWorkload: 30 +Prerequisite: [] +Corequisite: [] +notes: História da informática. Aspectos sociais, econômicos, legais e profissionais de computação. Aplicações da computação. Questões legais. Políticas de Educação Ambiental. Ética. Segurança, privacidade, direitos de propriedade e acesso não autorizado. +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN110-Programa\303\247\303\243o.md" "b/_subjects/SIN110-Programa\303\247\303\243o.md" new file mode 100644 index 0000000..f8bde26 --- /dev/null +++ "b/_subjects/SIN110-Programa\303\247\303\243o.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN110 +title: SIN110 - Programação +period: 1º Período +theoreticalWorkload: 4 +practicalWorkload: 2 +totalWorkload: 90 +Prerequisite: [] +Corequisite: [] +notes: Conceitos básicos de computação. Algoritmos e tipos de dados. Introdução a Linguagem de Programação. Aplicações +category: + - Programação +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN130-Introdu\303\247\303\243o \303\240 L\303\263gica..md" "b/_subjects/SIN130-Introdu\303\247\303\243o \303\240 L\303\263gica..md" new file mode 100644 index 0000000..40d9d2c --- /dev/null +++ "b/_subjects/SIN130-Introdu\303\247\303\243o \303\240 L\303\263gica..md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN130 +title: SIN130 - Introdução à Lógica +period: 1º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Lógica proposicional. Lógica de predicados. +category: + - Lógica +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN131-Introdu\303\247\303\243o \303\240 Teoria da Computa\303\247\303\243o.md" "b/_subjects/SIN131-Introdu\303\247\303\243o \303\240 Teoria da Computa\303\247\303\243o.md" new file mode 100644 index 0000000..b21b9ee --- /dev/null +++ "b/_subjects/SIN131-Introdu\303\247\303\243o \303\240 Teoria da Computa\303\247\303\243o.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN131 +title: SIN131 - Introdução à Teoria da Computação +period: 5º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [SIN132] +Corequisite: [] +notes: Linguagens e gramáticas. Linguagens regulares e autômatos finitos. Linguagens livres de contexto e autômatos com pilha. Linguagens recursivamente enumeráveis e sensíveis ao contexto (Máquinas de Turing). +category: + - Ciência +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN132-Matem\303\241tica Discreta.md" "b/_subjects/SIN132-Matem\303\241tica Discreta.md" new file mode 100644 index 0000000..3453e0b --- /dev/null +++ "b/_subjects/SIN132-Matem\303\241tica Discreta.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN132 +title: SIN132 - Matemática Discreta +period: 3º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [] +Corequisite: [] +notes: Linguagens e gramáticas. Linguagens regulares e autômatos finitos. Linguagens livres de contexto e autômatos com pilha. Linguagens recursivamente enumeráveis e sensíveis ao contexto (Máquinas de Turing). +category: + - Matemática +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN140-Computa\303\247\303\243o Orientada a Objetos.md" "b/_subjects/SIN140-Computa\303\247\303\243o Orientada a Objetos.md" new file mode 100644 index 0000000..b9b6b51 --- /dev/null +++ "b/_subjects/SIN140-Computa\303\247\303\243o Orientada a Objetos.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN140 +title: SIN140 - Computação Orientada a Objetos +period: 3º Período +theoreticalWorkload: 4 +practicalWorkload: 0 +totalWorkload: 60 +Prerequisite: [SIN110] +Corequisite: [] +notes: Linguagens e gramáticas. Linguagens regulares e autômatos finitos. Linguagens livres de contexto e autômatos com pilha. Linguagens recursivamente enumeráveis e sensíveis ao contexto (Máquinas de Turing). +category: + - Programação +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN142-Programa\303\247\303\243o Concorrente e Distribu\303\255da.md" "b/_subjects/SIN142-Programa\303\247\303\243o Concorrente e Distribu\303\255da.md" new file mode 100644 index 0000000..6e45880 --- /dev/null +++ "b/_subjects/SIN142-Programa\303\247\303\243o Concorrente e Distribu\303\255da.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN142 +title: SIN142 - Programação Concorrente e Distribuída +period: 4º Período +theoreticalWorkload: 2 +practicalWorkload: 0 +totalWorkload: 30 +Prerequisite: [SIN141] +Corequisite: [] +notes: Conceitos básicos. Sincronização com espera ocupada. Semáforos. Regiões críticas condicionais e monitores. Troca de mensagens assíncronas. Troca de mensagens síncronas. Chamada de procedimento remoto. +category: + - Programação +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git "a/_subjects/SIN143-Laborat\303\263rio de Programa\303\247\303\243o.md" "b/_subjects/SIN143-Laborat\303\263rio de Programa\303\247\303\243o.md" new file mode 100644 index 0000000..e0dee87 --- /dev/null +++ "b/_subjects/SIN143-Laborat\303\263rio de Programa\303\247\303\243o.md" @@ -0,0 +1,21 @@ +--- +schema: default +code: SIN143 +title: SIN143 - Laboratório de Programação +period: 5º Período +theoreticalWorkload: 2 +practicalWorkload: 2 +totalWorkload: 60 +Prerequisite: [SIN141] +Corequisite: [SIN320] +notes: 'Revisão dos conceitos básicos da orientação a objetos. Documentação: análise de Sistema Orientado a Objetos. Documentação: projeto de Sistema Orientado a Objeto. Conexão com banco de dados. Desenvolvimento de Sistema Orientado a Objeto.' +category: + - Programação +resources: + - name: Kit de Slides + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.csv' + format: Slides + - name: Exercícios Comentados + url: 'http://data.phl.opendata.arcgis.com/subjects/1839b35258604422b0b520cbb668df0d_0.zip' + format: Exercícios +--- diff --git a/_subjects/SIN211-Algoritmos e Estruturas de Dados.md b/_subjects/SIN211-Algoritmos e Estruturas de Dados.md new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN213-Projeto de Algoritmos.md b/_subjects/SIN213-Projeto de Algoritmos.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN214-Administra\303\247\303\243o a Gerenciamento de Redes.md" "b/_subjects/SIN214-Administra\303\247\303\243o a Gerenciamento de Redes.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN220-Banco de Dados.md b/_subjects/SIN220-Banco de Dados.md new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN221-Engenharia de Software 1.md b/_subjects/SIN221-Engenharia de Software 1.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN222-Fundamentos de Sistemas de Informa\303\247\303\243o.md" "b/_subjects/SIN222-Fundamentos de Sistemas de Informa\303\247\303\243o.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN223-An\303\241lise e Projeto Orientados a Objetos.md" "b/_subjects/SIN223-An\303\241lise e Projeto Orientados a Objetos.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN251-Organiza\303\247\303\243o de Computadores.md" "b/_subjects/SIN251-Organiza\303\247\303\243o de Computadores.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN252-Arquitetura de Computadores.md b/_subjects/SIN252-Arquitetura de Computadores.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN320-Laborat\303\263rio de Banco de Dados.md" "b/_subjects/SIN320-Laborat\303\263rio de Banco de Dados.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN321-Engenharia de Software.md b/_subjects/SIN321-Engenharia de Software.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN322-Pr\303\241tica de Gerenciamento de Projetos.md" "b/_subjects/SIN322-Pr\303\241tica de Gerenciamento de Projetos.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN323-Intelig\303\252ncia Artificial.md" "b/_subjects/SIN323-Intelig\303\252ncia Artificial.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN341-Solu\303\247\303\265es de TI Baseadas em Software Livre.md" "b/_subjects/SIN341-Solu\303\247\303\265es de TI Baseadas em Software Livre.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN342-Solu\303\247\303\265es Web Baseadas em Software Livre.md" "b/_subjects/SIN342-Solu\303\247\303\265es Web Baseadas em Software Livre.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN343-Desafios de Programa\303\247\303\243o.md" "b/_subjects/SIN343-Desafios de Programa\303\247\303\243o.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN351-Sistemas Operacionais.md b/_subjects/SIN351-Sistemas Operacionais.md new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN352-Redes de Computadores.md b/_subjects/SIN352-Redes de Computadores.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN390-Computa\303\247\303\243o Gr\303\241fica.md" "b/_subjects/SIN390-Computa\303\247\303\243o Gr\303\241fica.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN391-Hiperm\303\255dia.md" "b/_subjects/SIN391-Hiperm\303\255dia.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN392-Introdu\303\247\303\243o ao Processamento Digital de Imagens.md" "b/_subjects/SIN392-Introdu\303\247\303\243o ao Processamento Digital de Imagens.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN393-Introdu\303\247\303\243o ao Processamento Digital de Imagens.md" "b/_subjects/SIN393-Introdu\303\247\303\243o ao Processamento Digital de Imagens.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN394-Introdu\303\247\303\243o aos Jogos Digitais.md" "b/_subjects/SIN394-Introdu\303\247\303\243o aos Jogos Digitais.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN395-Realidade Virtual.md b/_subjects/SIN395-Realidade Virtual.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN421-Intera\303\247\303\243o Humano-Computador.md" "b/_subjects/SIN421-Intera\303\247\303\243o Humano-Computador.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN422-Qualidade de Software.md b/_subjects/SIN422-Qualidade de Software.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN423-Verifica\303\247\303\243o, Valida\303\247\303\243o e Teste de Software - Copia.md" "b/_subjects/SIN423-Verifica\303\247\303\243o, Valida\303\247\303\243o e Teste de Software - Copia.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN430-Teoria dos Grafos.md b/_subjects/SIN430-Teoria dos Grafos.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN440-Avalia\303\247\303\243o de Desempenho de Sistemas Computacionais.md" "b/_subjects/SIN440-Avalia\303\247\303\243o de Desempenho de Sistemas Computacionais.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN441-T\303\263picos em Sistemas Distribu\303\255dos.md" "b/_subjects/SIN441-T\303\263picos em Sistemas Distribu\303\255dos.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN451-Seguran\303\247a da Informa\303\247\303\243o.md" "b/_subjects/SIN451-Seguran\303\247a da Informa\303\247\303\243o.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN452-Redes de Alto Desempenho.md b/_subjects/SIN452-Redes de Alto Desempenho.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN453-Laborat\303\263rio de Redes.md" "b/_subjects/SIN453-Laborat\303\263rio de Redes.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN460-Minera\303\247\303\243o de Dados.md" "b/_subjects/SIN460-Minera\303\247\303\243o de Dados.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN480-Pesquisa Operacional 1.md b/_subjects/SIN480-Pesquisa Operacional 1.md new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN481-Pesquisa Operacional 2.md b/_subjects/SIN481-Pesquisa Operacional 2.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN491-T\303\263picos Especiais 1.md" "b/_subjects/SIN491-T\303\263picos Especiais 1.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN492-T\303\263picos Especiais 2.md" "b/_subjects/SIN492-T\303\263picos Especiais 2.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN493-T\303\263picos Especiais 3.md" "b/_subjects/SIN493-T\303\263picos Especiais 3.md" new file mode 100644 index 0000000..e69de29 diff --git a/_subjects/SIN496-Atividades Complementares.md b/_subjects/SIN496-Atividades Complementares.md new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN498-Trabalho de Conclus\303\243o de Curso 1.md" "b/_subjects/SIN498-Trabalho de Conclus\303\243o de Curso 1.md" new file mode 100644 index 0000000..e69de29 diff --git "a/_subjects/SIN499-Trabalho de Conclus\303\243o de Curso 2.md" "b/_subjects/SIN499-Trabalho de Conclus\303\243o de Curso 2.md" new file mode 100644 index 0000000..e69de29 diff --git a/add-period.html b/add-period.html new file mode 100644 index 0000000..cca1a2a --- /dev/null +++ b/add-period.html @@ -0,0 +1,22 @@ +--- +layout: default +title: Add Period +permalink: /add-period/ +--- +{% include breadcrumbs.html parent="Periods" %} + + + + + +
+
+

Add Period

+ {% include period-form.html %} +
+
diff --git a/add-subject.html b/add-subject.html new file mode 100644 index 0000000..910e77e --- /dev/null +++ b/add-subject.html @@ -0,0 +1,22 @@ +--- +layout: default +title: Add Subject +permalink: /add-subject/ +--- +{% include breadcrumbs.html parent="Subjects" %} + + + + + +
+
+

Add Subject

+ {% include subject-form.html %} +
+
diff --git a/admin.html b/admin.html new file mode 100644 index 0000000..7d7d9b4 --- /dev/null +++ b/admin.html @@ -0,0 +1,148 @@ +--- +title: Administration +layout: default +permalink: /admin/ +--- +{% include breadcrumbs.html %} + + + +
+
+

General

+
+ +
+ +
+ + +
+ +
+ + +

Displayed on the homepage

+
+ +
+ + +
+ +
+ + +
+ + + +
+ +
+
+ +
+

Authentication

+
+ +
+ +
+ + +

Register a Github application to get a Client ID

+
+ +
+ + +

Authentication server you deployed

+
+ + + +
+ +
+
+ +
+

Categories

+ {% assign category_fields = site.data.schemas[site[schema]].category_fields %} +
+
+ {% for category in site.data.categories %} + {% include admin-form-category.html %} + {% endfor %} +
+
+ +
+ + + + +
+
+ +
+

Licenses

+
+
+ {% for license in site.data.licenses %} + {% unless license[1] == 'Not Applicable' %} + {% include admin-form-license.html %} + {% endunless %} + {% endfor %} +
+
+ +
+ + + + + + + + +
+ +
+ +
+

Theme

+ + Themes provided by Bootswatch via BootstrapCDN. +
+ +
+

Site Maintenance

+ Check for updates +
+
diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..1e6badd --- /dev/null +++ b/css/main.css @@ -0,0 +1,100 @@ +.period-thumbnail img { + width: 64px; +} + +subject { + display: block; + border-bottom: 1px #d6d6d6 solid; + padding-bottom: 20px; +} + +.list-group-item-truncate { + display: inline-block; + line-height: 1; + width: 75%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.resource-description { + font-size: 90%; +} + +.select2 { + margin-bottom: 10px; +} + +.subjects-count { + display: inline-block; +} + +.add-subject-btn { + margin-top: 15px; +} + +/* Hidden from guests */ +.user-issue, +.admin-only { + display: none; +} + +.resource-details, +.show-resource-details { + display: none; +} + +.show-resource-details { + font-size: 80%; +} + +.user-issue { + color: red; +} + +[data-component~=view-switcher] [data-hook~=view] { + display: none; +} + +.homepage-categories, +.theme-gallery { + text-align: justify; +} + +/* allows last line of categories to be justify aligned */ +.homepage-categories:after, +.theme-gallery:after { + display: inline-block; + width: 100%; + content: ''; +} + +.homepage-categories .thumbnail { + display: inline-block; + min-width: 120px; + text-align: center; + border: none; + padding: 10px; +} + +.homepage-categories .thumbnail img { + height: 80px; +} + +.homepage-categories a { + color: #000; +} + +.theme-gallery .panel { + display: inline-block; + max-width: 250px; + text-align: center; +} + +.theme-gallery .panel img { + width: 100%; +} + +.theme-gallery .panel-primary { + border-width: 5px; +} diff --git a/data.json b/data.json new file mode 100644 index 0000000..66204fb --- /dev/null +++ b/data.json @@ -0,0 +1,61 @@ +--- +--- +{ + "conformsTo": "https://project-open-data.cio.gov/v1.1/schema", + "subject": [{% for subject in site.subjects %}{% capture temp %} + {% assign schema = subject.schema | default: site.schema %} + {% assign subject_fields = site.data.schemas[schema].subject_fields %} + {% assign resource_fields = site.data.schemas[schema].resource_fields %} + + {% assign f_title = subject_fields | where: "datajson", "title" | first %} + {% assign title = subject[f_title[field_name]] %} + + {% assign f_publisher_name = subject_fields | where: "datajson", "publisher.name" | first %} + {% assign publisher_name = subject[f_publisherName[field_name]] %} + + {% assign f_license = subject_fields | where: "datajson", "license" | first %} + {% assign license = subject[f_license[field_name]] %} + + {% assign f_description = subject_fields | where: "datajson", "description" | first %} + {% assign description = subject[f_description[field_name]] %} + + {% assign f_category = subject_fields | where: "datajson", "category" | first %} + {% assign category = subject[f_category[field_name]] %} + + {% assign f_contact_point_fn = subject_fields | where: "datajson", "contactPoint.fn" | first %} + {% assign contact_point_fn = subject[f_contact_point_fn[field_name]] %} + + {% assign f_contact_point_has_email = subject_fields | where: "datajson", "contactPoint.hasEmail" | first %} + {% assign contact_point_has_email = subject[f_contact_point_has_email[field_name]] %} + + {% assign f_dist_title = resource_fields | where: "datajson", "distribution.title" | first %} + {% assign f_dist_download_url = resource_fields | where: "datajson", "distribution.downloadURL" | first %} + {% assign f_dist_format = resource_fields | where: "datajson", "distribution.format" | first %} + + {% endcapture %}{% if title %} + { + "title": {{ title | jsonify }}{% if publisher_name %}, + "publisher": { + "name": {{ publisher_name | jsonify }} + }{% endif %}{% if description %}, + "description": {{ description | jsonify }}{% endif %}{% if category %}, + "category": {{ category | jsonify }}{% endif %}{% if contact_point_fn or contact_point_has_email %}, + "contactPoint": { + "fn": {{ contact_point_fn | jsonify }}{% if contact_point_has_email %}, + "hasEmail": {{ contact_point_has_email | jsonify }}{% endif %} + }{% endif %}{% if license != '' %}, + "license": "{{ license }}" + {% endif %}{% if subject.resources %}, + "distribution": [{% for distribution in subject.resources %}{% capture temp %} + {% assign dist_title = distribution[f_dist_title[field_name]] %} + {% assign dist_download_url = distribution[f_dist_download_url[field_name]] %} + {% assign dist_format = distribution[f_dist_format[field_name]] %}{% endcapture %} + { + "title": {{ dist_title | jsonify }}, + "downloadURL": {{ dist_download_url | jsonify }}{% if dist_format %}, + "format": {{ dist_format | jsonify }}{% endif %} + }{% unless forloop.last %},{% endunless %}{% endfor %} + ]{% endif %} + }{% unless forloop.last %},{% endunless %}{% endif %}{% endfor %} + ] +} diff --git a/img/categories/arts-culture-history.svg b/img/categories/arts-culture-history.svg new file mode 100644 index 0000000..cb9261e --- /dev/null +++ b/img/categories/arts-culture-history.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/budget-finance.svg b/img/categories/budget-finance.svg new file mode 100644 index 0000000..3125cb0 --- /dev/null +++ b/img/categories/budget-finance.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/economy.svg b/img/categories/economy.svg new file mode 100644 index 0000000..e1931bd --- /dev/null +++ b/img/categories/economy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/education.svg b/img/categories/education.svg new file mode 100644 index 0000000..13894b6 --- /dev/null +++ b/img/categories/education.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/elections-politics.svg b/img/categories/elections-politics.svg new file mode 100644 index 0000000..d8a0c53 --- /dev/null +++ b/img/categories/elections-politics.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/environment.svg b/img/categories/environment.svg new file mode 100644 index 0000000..40fff4b --- /dev/null +++ b/img/categories/environment.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/food.svg b/img/categories/food.svg new file mode 100644 index 0000000..c81dbd7 --- /dev/null +++ b/img/categories/food.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/health-human-services.svg b/img/categories/health-human-services.svg new file mode 100644 index 0000000..bef43aa --- /dev/null +++ b/img/categories/health-human-services.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/parks-recreation.svg b/img/categories/parks-recreation.svg new file mode 100644 index 0000000..d89a6b5 --- /dev/null +++ b/img/categories/parks-recreation.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/planning-zoning.svg b/img/categories/planning-zoning.svg new file mode 100644 index 0000000..4d7f707 --- /dev/null +++ b/img/categories/planning-zoning.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/public-safety.svg b/img/categories/public-safety.svg new file mode 100644 index 0000000..04f553d --- /dev/null +++ b/img/categories/public-safety.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/real-estate-land-records.svg b/img/categories/real-estate-land-records.svg new file mode 100644 index 0000000..3439fbb --- /dev/null +++ b/img/categories/real-estate-land-records.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/transportation.svg b/img/categories/transportation.svg new file mode 100644 index 0000000..0f8210b --- /dev/null +++ b/img/categories/transportation.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/categories/uncategorized.svg b/img/categories/uncategorized.svg new file mode 100644 index 0000000..3932a26 --- /dev/null +++ b/img/categories/uncategorized.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/themes/cerulean.png b/img/themes/cerulean.png new file mode 100644 index 0000000..f7ef994 Binary files /dev/null and b/img/themes/cerulean.png differ diff --git a/img/themes/cosmo.png b/img/themes/cosmo.png new file mode 100644 index 0000000..06915f4 Binary files /dev/null and b/img/themes/cosmo.png differ diff --git a/img/themes/cyborg.png b/img/themes/cyborg.png new file mode 100644 index 0000000..cd89625 Binary files /dev/null and b/img/themes/cyborg.png differ diff --git a/img/themes/darkly.png b/img/themes/darkly.png new file mode 100644 index 0000000..5a411f3 Binary files /dev/null and b/img/themes/darkly.png differ diff --git a/img/themes/default.png b/img/themes/default.png new file mode 100644 index 0000000..56be19a Binary files /dev/null and b/img/themes/default.png differ diff --git a/img/themes/flatly.png b/img/themes/flatly.png new file mode 100644 index 0000000..2c64a0d Binary files /dev/null and b/img/themes/flatly.png differ diff --git a/img/themes/journal.png b/img/themes/journal.png new file mode 100644 index 0000000..530ad3b Binary files /dev/null and b/img/themes/journal.png differ diff --git a/img/themes/lumen.png b/img/themes/lumen.png new file mode 100644 index 0000000..ad0745a Binary files /dev/null and b/img/themes/lumen.png differ diff --git a/img/themes/paper.png b/img/themes/paper.png new file mode 100644 index 0000000..070d6d8 Binary files /dev/null and b/img/themes/paper.png differ diff --git a/img/themes/readable.png b/img/themes/readable.png new file mode 100644 index 0000000..24a6d9f Binary files /dev/null and b/img/themes/readable.png differ diff --git a/img/themes/sandstone.png b/img/themes/sandstone.png new file mode 100644 index 0000000..fccee55 Binary files /dev/null and b/img/themes/sandstone.png differ diff --git a/img/themes/simplex.png b/img/themes/simplex.png new file mode 100644 index 0000000..754e8c5 Binary files /dev/null and b/img/themes/simplex.png differ diff --git a/img/themes/slate.png b/img/themes/slate.png new file mode 100644 index 0000000..b6cc608 Binary files /dev/null and b/img/themes/slate.png differ diff --git a/img/themes/spacelab.png b/img/themes/spacelab.png new file mode 100644 index 0000000..cba6be2 Binary files /dev/null and b/img/themes/spacelab.png differ diff --git a/img/themes/superhero.png b/img/themes/superhero.png new file mode 100644 index 0000000..0432902 Binary files /dev/null and b/img/themes/superhero.png differ diff --git a/img/themes/united.png b/img/themes/united.png new file mode 100644 index 0000000..9e0ebac Binary files /dev/null and b/img/themes/united.png differ diff --git a/img/themes/yeti.png b/img/themes/yeti.png new file mode 100644 index 0000000..97bb7ba Binary files /dev/null and b/img/themes/yeti.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..97c5424 --- /dev/null +++ b/index.html @@ -0,0 +1,27 @@ +--- +layout: default +--- + +
+

{{ site.greeting }}

+

+ {{ site.description }} +

+

Start browsing

+
+ +

Browse by Category

+ +
+{% for category in site.data.categories %} + {% if category.featured == true %} + {% capture logo_alt %}{{ category.name }}{% if category.logo_credit and category.logo_credit != empty %} logo by {{ category.logo_credit }}{% endif %}{% endcapture %} + + {% if category.logo and category.logo != empty %} + {{ logo_alt }} + {% endif %} + {{ category.name }} + + {% endif %} +{% endfor %} +
diff --git a/package.json b/package.json new file mode 100644 index 0000000..eff9e05 --- /dev/null +++ b/package.json @@ -0,0 +1,42 @@ +{ + "name": "es6-boilerplate", + "version": "1.0.0", + "description": "Front-end project boilerplate with es6 build tools. Includes babel, webpack, and npm scripts.", + "main": "scripts/src/index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "start": "webpack-dev-server --progress --colors", + "watch": "NODE_ENV=development webpack -d -w", + "build": "webpack -p" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/timwis/es6-boilerplate.git" + }, + "author": "timwis ", + "license": "MIT", + "bugs": { + "url": "https://github.com/timwis/es6-boilerplate/issues" + }, + "homepage": "https://github.com/timwis/es6-boilerplate#readme", + "devDependencies": { + "babel-core": "^6.5.1", + "babel-loader": "^6.2.2", + "babel-polyfill": "^6.7.4", + "babel-preset-es2015": "^6.5.0", + "webpack": "^1.12.13", + "webpack-dev-server": "^1.14.1" + }, + "dependencies": { + "ampersand-state": "^5.0.0", + "bootstrap": "^3.3.6", + "github-api": "^2.3.0", + "jquery-deparam": "^0.5.2", + "jquery-serializejson": "^2.6.2", + "js-cookie": "^2.1.0", + "js-yaml": "^3.5.5", + "lodash": "^4.6.1", + "notie": "github:timwis/notie#string-types", + "select2": "^4.0.2" + } +} diff --git a/period.html b/period.html new file mode 100644 index 0000000..ac2dff9 --- /dev/null +++ b/period.html @@ -0,0 +1,26 @@ +--- +title: Periods +layout: default +permalink: /periods/ +--- +{% include breadcrumbs.html %} + + Add Period + +{% for period in site.periods %} + {% assign subject_count = site.subjects | where:"period", period.title | size %} +
+
+ {% if period.logo and period.logo != empty %} + + {{ period.title }} + + {% endif %} +
+
+

{{ period.title }}

+

{{ period.description }}

+

{{ subject_count }} subjects

+
+
+{% endfor %} \ No newline at end of file diff --git a/scripts/dist/bundle.js b/scripts/dist/bundle.js new file mode 100644 index 0000000..8fcb479 --- /dev/null +++ b/scripts/dist/bundle.js @@ -0,0 +1,51 @@ +!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){n(271),t.exports=n(268)},function(t,e,n){var r=n(3),i=n(32),o=n(15),s=n(16),a=n(33),u="prototype",c=function(t,e,n){var l,f,h,p,d=t&c.F,v=t&c.G,g=t&c.S,y=t&c.P,m=t&c.B,x=v?r:g?r[e]||(r[e]={}):(r[e]||{})[u],b=v?i:i[e]||(i[e]={}),_=b[u]||(b[u]={});v&&(n=e);for(l in n)f=!d&&x&&void 0!==x[l],h=(f?x:n)[l],p=m&&f?a(h,r):y&&"function"==typeof h?a(Function.call,h):h,x&&s(x,l,h,t&c.U),b[l]!=h&&o(b,l,p),y&&_[l]!=h&&(_[l]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(84)("wks"),i=n(51),o=n(3).Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},function(t,e,n){t.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),i=n(168),o=n(29),s=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";function r(t){var e={};return null!==t&&Object.keys(t).forEach(function(n){t[n].forEach(function(t){e[String(t)]=n})}),e}function i(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(s.indexOf(e)===-1)throw new o('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=r(e.styleAliases||null),a.indexOf(this.kind)===-1)throw new o('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var o=n(67),s=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];t.exports=i},function(t,e,n){var r=n(40),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(24);t.exports=function(t){return Object(r(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(218),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(8),i=n(39);t.exports=n(7)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(3),i=n(15),o=n(12),s=n(51)("src"),a="toString",u=Function[a],c=(""+u).split(a);n(32).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,s)||i(n,s,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||u.call(this)})},function(t,e,n){var r=n(1),i=n(4),o=n(24),s=/"/g,a=function(t,e,n,r){var i=String(o(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+""};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){var r=n(64),i=n(24);t.exports=function(t){return r(i(t))}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=jQuery},function(t,e,n){var r=n(65),i=n(39),o=n(18),s=n(29),a=n(12),u=n(168),c=Object.getOwnPropertyDescriptor;e.f=n(7)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(12),i=n(11),o=n(121)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(4);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return(0,p.default)("[data-hook~="+t+"]",e)}function o(t,e){return(0,p.default)("[data-component~="+t+"]",e)}function s(t,e){return t.empty().append(e)}function a(t){var e=window.location.href.split("?")[0];(0,d.isEmpty)(t)||(e+="?"+p.default.param(t)),window.history.replaceState(null,null,e)}function u(t){return t.toString().toLowerCase().trim().replace(/[^a-zA-Z0-9]/g,"-").replace(/\-\-+/g,"-").replace(/^\-|\-$/i,"")}function c(t){return function(e){var n=[];return t.period&&n.push(e.period&&u(e.period)===t.period),t.category&&n.push(e.category&&u(e.category).indexOf(t.category)!==-1),n.every(function(t){return!!t})}}function l(t,e){e||(e=t.data("show")||5);var n=(0,p.default)(".list-group-item:gt("+(e-1)+"):not(.active)",t);if(n.length){n.hide();var r=(0,p.default)('Show '+n.length+" more...");r.on("click",function(t){n.show(),(0,p.default)(this).off("click"),(0,p.default)(this).remove(),t.preventDefault()}),t.append(r)}}function f(t,e){for(var n in e){var r=new RegExp("^( *"+n+": +?).*","m"),i=t.match(r);i?t=t.replace(r,i[1]+e[n]):t+="\n"+n+": "+e[n]}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.queryByHook=i,e.queryByComponent=o,e.setContent=s,e.setParams=a,e.slugify=u,e.createSubjectFilters=c,e.collapseListGroup=l,e.updateYamlString=f;var h=n(20),p=r(h),d=n(71)},function(t,e,n){var r=n(33),i=n(64),o=n(11),s=n(10),a=n(281);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||a;return function(e,a,d){for(var v,g,y=o(e),m=i(y),x=r(a,d,3),b=s(m.length),_=0,w=n?p(e,b):u?p(e,0):void 0;b>_;_++)if((h||_ in m)&&(v=m[_],g=x(v,_,y),t))if(n)w[_]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return _;case 2:w.push(v)}else if(l)return!1;return f?-1:c||l?l:w}}},function(t,e,n){var r=n(1),i=n(32),o=n(4);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e){"use strict";function n(t){return"[object Array]"===y.call(t)}function r(t){return"[object ArrayBuffer]"===y.call(t)}function i(t){return"[object FormData]"===y.call(t)}function o(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function a(t){return"number"==typeof t}function u(t){return"undefined"==typeof t}function c(t){return null!==t&&"object"==typeof t}function l(t){return"[object Date]"===y.call(t)}function f(t){return"[object File]"===y.call(t)}function h(t){return"[object Blob]"===y.call(t)}function p(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function d(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function v(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||n(t)||(t=[t]),n(t))for(var r=0,i=t.length;rn;)i[n]=e[n++];return i},jt=function(t,e,n){$(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,r,i,o,s,a=w(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,h=S(a);if(void 0!=h&&!E(h)){for(s=h.call(a),r=[],e=0;!(o=s.next()).done;e++)r.push(o.value);a=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=v(a.length),i=It(this,n);n>e;e++)i[e]=f?l(a[e],e):a[e];return i},Mt=function(){for(var t=0,e=arguments.length,n=It(this,e);e>t;)n[t]=arguments[t++];return n},Rt=!!X&&o(function(){yt.call(new X(1))}),Lt=function(){return yt.apply(Rt?vt.call(Ot(this)):Ot(this),arguments)},Ut={copyWithin:function(t,e){return R.call(Ot(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return M.apply(Ot(this),arguments)},filter:function(t){return Bt(this,tt(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Ot(this),arguments)},lastIndexOf:function(t){return lt.apply(Ot(this),arguments)},map:function(t){return Ct(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ft.apply(Ot(this),arguments)},reduceRight:function(t){return ht.apply(Ot(this),arguments)},reverse:function(){for(var t,e=this,n=Ot(e).length,r=Math.floor(n/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return dt.call(Ot(this),t)},subarray:function(t,e){var n=Ot(this),r=n.length,i=g(t,r);return new(I(n,n[_t]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:g(e,r))-i))}},$t=function(t,e){return Bt(this,vt.call(Ot(this),t,e))},zt=function(t){Ot(this);var e=Ft(arguments[1],1),n=this.length,r=w(t),i=v(r.length),o=0;if(i+e>n)throw q(At);for(;o255?255:255&r),i.v[d](n*e+i.o,r,St)},T=function(t,e){$(t,e,{get:function(){return S(this,e)},set:function(t){return k(this,e,t)},enumerable:!0})};x?(g=n(function(t,n,r,i){l(t,g,c,"_d");var o,s,a,u,f=0,p=0;if(_(n)){if(!(n instanceof V||(u=b(n))==H||u==W))return Et in n?Pt(g,n):Nt.call(g,n);o=n,p=Ft(r,e);var d=n.byteLength;if(void 0===i){if(d%e)throw q(At);if(s=d-p,s<0)throw q(At)}else if(s=v(i)*e,s+p>d)throw q(At);a=s/e}else a=Tt(n,!0),s=a*e,o=new V(s);for(h(t,"_d",{b:o,o:p,l:s,e:a,v:new Z(o)});f
'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=r,this}}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new n(this)),"string"==typeof e&&i[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),r=e.data("target");if(r||(r=e.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),e.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(r);this.activate(e.closest("li"),n),this.activate(a,a.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},n.prototype.activate=function(e,r,i){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var s=r.find("> .active"),a=i&&t.support.transition&&(s.length&&s.hasClass("fade")||!!r.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),s.removeClass("in")};var r=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var i=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),o="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||r.data("bs.tooltip",i=new n(this,o)),"string"==typeof e&&i[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!r)return;var i=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,c=u.test(a);c&&(a=a.replace(u,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),f=o[0].offsetWidth,h=o[0].offsetHeight;if(c){var p=a,d=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+h>d.bottom?"top":"top"==a&&l.top-hd.width?"left":"left"==a&&l.left-fs.top+s.height&&(i.top=s.top+s.height-u)}else{var c=e.left-o,l=e.left+o+n;cs.right&&(i.left=s.left+s.width-l)}return i},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var r=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=r,this}}(jQuery)},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){n(288),t.exports=n(32).RegExp.escape},function(t,e,n){var r=n(5),i=n(114),o=n(6)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,n){var r=n(280);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(2),i=n(29),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),t!=o)}},function(t,e,n){var r=n(47),i=n(83),o=n(65);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var r=n(47),i=n(18);t.exports=function(t,e){for(var n,o=i(t),s=r(o),a=s.length,u=0;a>u;)if(o[n=s[u++]]===e)return n}},function(t,e,n){"use strict";var r=n(286),i=n(79),o=n(14);t.exports=function(){for(var t=o(this),e=arguments.length,n=Array(e),s=0,a=r._,u=!1;e>s;)(n[s]=arguments[s++])===a&&(u=!0);return function(){var r,o=this,s=arguments.length,c=0,l=0;if(!u&&!s)return i(t,n,o);if(r=n.slice(),u)for(;e>c;c++)r[c]===a&&(r[c]=arguments[l++]);for(;s>l;)r.push(arguments[l++]);return i(t,r,o)}}},function(t,e,n){t.exports=n(3)},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){var r=n(1),i=n(287)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return i(t)}})},function(t,e,n){var r=n(1);r(r.P,"Array",{copyWithin:n(161)}),n(54)("copyWithin")},function(t,e,n){"use strict";var r=n(1),i=n(27)(4);r(r.P+r.F*!n(25)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,n){var r=n(1);r(r.P,"Array",{fill:n(106)}),n(54)("fill")},function(t,e,n){"use strict";var r=n(1),i=n(27)(2);r(r.P+r.F*!n(25)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(27)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(54)(o)},function(t,e,n){"use strict";var r=n(1),i=n(27)(5),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(54)(o)},function(t,e,n){"use strict";var r=n(1),i=n(27)(0),o=n(25)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(33),i=n(1),o=n(11),s=n(170),a=n(113),u=n(10),c=n(107),l=n(130);i(i.S+i.F*!n(81)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,g=void 0!==v,y=0,m=l(h);if(g&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==m||p==Array&&a(m))for(e=u(h.length),n=new p(e);e>y;y++)c(n,y,g?v(h[y],y):h[y]);else for(f=m.call(h),n=new p;!(i=f.next()).done;y++)c(n,y,g?s(f,v,[i.value,y],!0):i.value);return n.length=y,n}})},function(t,e,n){"use strict";var r=n(1),i=n(75)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(25)(o)),"Array",{indexOf:function(t){return s?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){var r=n(1);r(r.S,"Array",{isArray:n(114)})},function(t,e,n){"use strict";var r=n(1),i=n(18),o=[].join;r(r.P+r.F*(n(64)!=Object||!n(25)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(40),s=n(10),a=[].lastIndexOf,u=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(25)(a)),"Array",{lastIndexOf:function(t){if(u)return a.apply(this,arguments)||0;var e=i(this),n=s(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){"use strict";var r=n(1),i=n(27)(1);r(r.P+r.F*!n(25)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(1),i=n(107);r(r.S+r.F*n(4)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(1),i=n(163);r(r.P+r.F*!n(25)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(1),i=n(163);r(r.P+r.F*!n(25)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(1),i=n(111),o=n(23),s=n(50),a=n(10),u=[].slice;r(r.P+r.F*n(4)(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=a(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=s(t,n),c=s(e,n),l=a(c-i),f=Array(l),h=0;h9?t:"0"+t};r(r.P+r.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}})},function(t,e,n){"use strict";var r=n(1),i=n(11),o=n(29);r(r.P+r.F*n(4)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(6)("toPrimitive"),i=Date.prototype;r in i||n(15)(i,r,n(282))},function(t,e,n){ +var r=Date.prototype,i="Invalid Date",o="toString",s=r[o],a=r.getTime;new Date(NaN)+""!=i&&n(16)(r,o,function(){var t=a.call(this);return t===t?s.call(this):i})},function(t,e,n){var r=n(1);r(r.P,"Function",{bind:n(164)})},function(t,e,n){"use strict";var r=n(5),i=n(22),o=n(6)("hasInstance"),s=Function.prototype;o in s||n(8).f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(8).f,i=n(39),o=n(12),s=Function.prototype,a=/^\s*function ([^ (]*)/,u="name",c=Object.isExtensible||function(){return!0};u in s||n(7)&&r(s,u,{configurable:!0,get:function(){try{var t=this,e=(""+t).match(a)[1];return o(t,u)||!c(t)||r(t,u,i(5,e)),e}catch(t){return""}}})},function(t,e,n){var r=n(1),i=n(172),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(1),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(1),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(1),i=n(118);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(1),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(1),i=n(117);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(1),i=n(118),o=Math.pow,s=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),c=o(2,-126),l=function(t){return t+1/s-1/s};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),o=i(t);return ru||n!=n?o*(1/0):o*n)}})},function(t,e,n){var r=n(1),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(1),i=Math.imul;r(r.S+r.F*n(4)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,o=n&r,s=n&i;return 0|o*s+((n&r>>>16)*s+o*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log1p:n(172)})},function(t,e,n){var r=n(1);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(1);r(r.S,"Math",{sign:n(118)})},function(t,e,n){var r=n(1),i=n(117),o=Math.exp;r(r.S+r.F*n(4)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(1),i=n(117),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){"use strict";var r=n(3),i=n(12),o=n(23),s=n(112),a=n(29),u=n(4),c=n(46).f,l=n(21).f,f=n(8).f,h=n(58).trim,p="Number",d=r[p],v=d,g=d.prototype,y=o(n(45)(g))==p,m="trim"in String.prototype,x=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,l=u.length;ci)return NaN;return parseInt(u,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(y?u(function(){g.valueOf.call(n)}):o(n)!=p)?s(new v(x(e)),n,d):x(e)};for(var b,_=n(7)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)i(v,b=_[w])&&!i(d,b)&&f(d,b,l(v,b));d.prototype=g,g.constructor=d,n(16)(r,p,d)}},function(t,e,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(1),i=n(3).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(1);r(r.S,"Number",{isInteger:n(169)})},function(t,e,n){var r=n(1);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(1),i=n(169),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(1),i=n(179);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(1),i=n(180);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){"use strict";var r=n(1),i=n(40),o=n(160),s=n(125),a=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",h=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+s.call(f,7-n.length)+n}return e},v=function(t,e,n){return 0===e?n:e%2===1?v(t,e-1,n*t):v(t*t,e/2,n)},g=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(4)(function(){a.call({})})),"Number",{toFixed:function(t){var e,n,r,a,u=o(this,l),c=i(t),y="",m=f;if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(e=g(u*v(2,69,1))-69,n=e<0?u*v(2,-e,1):u/v(2,e,1),n*=4503599627370496,e=52-e,e>0){for(h(0,n),r=c;r>=7;)h(1e7,0),r-=7;for(h(v(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?(a=m.length,m=y+(a<=c?"0."+s.call(f,c-a)+m:m.slice(0,a-c)+"."+m.slice(a-c))):m=y+m,m}})},function(t,e,n){"use strict";var r=n(1),i=n(4),o=n(160),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(173)})},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(45)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(7),"Object",{defineProperties:n(174)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(7),"Object",{defineProperty:n(8).f})},function(t,e,n){var r=n(5),i=n(38).onFreeze;n(28)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(18),i=n(21).f;n(28)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){n(28)("getOwnPropertyNames",function(){return n(175).f})},function(t,e,n){var r=n(11),i=n(22);n(28)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(5);n(28)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(5);n(28)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(5);n(28)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(1);r(r.S,"Object",{is:n(181)})},function(t,e,n){var r=n(11),i=n(47);n(28)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(5),i=n(38).onFreeze;n(28)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(5),i=n(38).onFreeze;n(28)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(120).set})},function(t,e,n){"use strict";var r=n(63),i={};i[n(6)("toStringTag")]="z",i+""!="[object z]"&&n(16)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(1),i=n(179);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){var r=n(1),i=n(180);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){"use strict";var r,i,o,s=n(44),a=n(3),u=n(33),c=n(63),l=n(1),f=n(5),h=n(14),p=n(43),d=n(55),v=n(122),g=n(127).set,y=n(119)(),m="Promise",x=a.TypeError,b=a.process,_=a[m],b=a.process,w="process"==c(b),E=function(){},D=!!function(){try{var t=_.resolve(1),e=(t.constructor={})[n(6)("species")]=function(t){t(E,E)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e}catch(t){}}(),A=function(t,e){return t===e||t===_&&e===o},C=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},S=function(t){return A(_,t)?new k(t):new i(t)},k=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw x("Bad Promise constructor");e=t,n=r}),this.resolve=h(e),this.reject=h(n)},T=function(t){try{t()}catch(t){return{error:t}}},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s=i?e.ok:e.fail,a=e.resolve,u=e.reject,c=e.domain;try{s?(i||(2==t._h&&B(t),t._h=1),s===!0?n=r:(c&&c.enter(),n=s(r),c&&c.exit()),n===e.promise?u(x("Promise-chain cycle")):(o=C(n))?o.call(n,a,u):a(n)):u(r)}catch(t){u(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&O(t)})}},O=function(t){g.call(a,function(){var e,n,r,i=t._v;if(I(t)&&(e=T(function(){w?b.emit("unhandledRejection",i,t):(n=a.onunhandledrejection)?n({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||I(t)?2:1),t._a=void 0,e)throw e.error})},I=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!I(e.promise))return!1;return!0},B=function(t){g.call(a,function(){var e;w?b.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},P=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=C(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,u(j,r,1),u(P,r,1))}catch(t){P.call(r,t)}}):(n._v=t,n._s=1,F(n,!1))}catch(t){P.call({_w:n,_d:!1},t)}}};D||(_=function(t){p(this,_,m,"_h"),h(t),r.call(this);try{t(u(j,this,1),u(P,this,1))}catch(t){P.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(48)(_.prototype,{then:function(t,e){var n=S(v(this,_));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=w?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),k=function(){var t=new r;this.promise=t,this.resolve=u(j,t,1),this.reject=u(P,t,1)}),l(l.G+l.W+l.F*!D,{Promise:_}),n(57)(_,m),n(49)(m),o=n(32)[m],l(l.S+l.F*!D,m,{reject:function(t){var e=S(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(s||!D),m,{resolve:function(t){if(t instanceof _&&A(t.constructor,this))return t;var e=S(this),n=e.resolve;return n(t),e.promise}}),l(l.S+l.F*!(D&&n(81)(function(t){_.all(t).catch(E)})),m,{all:function(t){var e=this,n=S(e),r=n.resolve,i=n.reject,o=T(function(){var n=[],o=0,s=1;d(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=S(e),r=n.reject,i=T(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){var r=n(1),i=n(14),o=n(2),s=(n(3).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(4)(function(){s(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return s?s(r,e,u):a.call(r,e,u)}})},function(t,e,n){var r=n(1),i=n(45),o=n(14),s=n(2),a=n(5),u=n(4),c=n(164),l=(n(3).Reflect||{}).construct,f=u(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),h=!u(function(){l(function(){})});r(r.S+r.F*(f||h),"Reflect",{construct:function(t,e){o(t),s(e);var n=arguments.length<3?t:o(arguments[2]);if(h&&!f)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,p=i(a(u)?u:Object.prototype),d=Function.apply.call(t,p,e);return a(d)?d:p}})},function(t,e,n){var r=n(8),i=n(1),o=n(2),s=n(29);i(i.S+i.F*n(4)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(1),i=n(21).f,o=n(2);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(1),i=n(2),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(115)(o,"Object",function(){var t,e=this,n=e._k;do if(e._i>=n.length)return{value:void 0,done:!0};while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){var r=n(21),i=n(1),o=n(2);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(1),i=n(22),o=n(2);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){function r(t,e){var n,a,l=arguments.length<3?t:arguments[2];return c(t)===l?t[e]:(n=i.f(t,e))?s(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:u(a=o(t))?r(a,e,l):void 0}var i=n(21),o=n(22),s=n(12),a=n(1),u=n(5),c=n(2);a(a.S,"Reflect",{get:r})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(1),i=n(2),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(178)})},function(t,e,n){var r=n(1),i=n(2),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(1),i=n(120);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var u,h,p=arguments.length<4?t:arguments[3],d=o.f(l(t),e);if(!d){if(f(h=s(t)))return r(h,e,n,p);d=c(0)}return a(d,"value")?!(d.writable===!1||!f(p))&&(u=o.f(p,e)||c(0),u.value=n,i.f(p,e,u),!0):void 0!==d.set&&(d.set.call(p,n),!0)}var i=n(8),o=n(21),s=n(22),a=n(12),u=n(1),c=n(39),l=n(2),f=n(5);u(u.S,"Reflect",{set:r})},function(t,e,n){var r=n(3),i=n(112),o=n(8).f,s=n(46).f,a=n(80),u=n(78),c=r.RegExp,l=c,f=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(n(7)&&(!d||n(4)(function(){return p[n(6)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")}))){c=function(t,e){var n=this instanceof c,r=a(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(d?new l(r&&!o?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&o?u.call(t):e),n?this:f,c)};for(var v=(function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}),g=s(l),y=0;g.length>y;)v(g[y++]);f.constructor=c,c.prototype=f,n(16)(r,"RegExp",c)}n(49)("RegExp")},function(t,e,n){n(77)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(77)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(77)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(77)("split",2,function(t,e,r){"use strict";var i=n(80),o=r,s=[].push,a="split",u="length",c="lastIndex";if("c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[u]||2!="ab"[a](/(?:ab)*/)[u]||4!="."[a](/(.?)(.?)/)[u]||"."[a](/()()/)[u]>1||""[a](/.?/)[u]){var l=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,a,f,h,p,d=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,y=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,v+"g");for(l||(r=new RegExp("^"+m.source+"$(?!\\s)",v));(a=m.exec(n))&&(f=a.index+a[0][u],!(f>g&&(d.push(n.slice(g,a.index)),!l&&a[u]>1&&a[0].replace(r,function(){for(p=1;p1&&a.index=y)));)m[c]===a.index&&m[c]++;return g===n[u]?!h&&m.test("")||d.push(""):d.push(n.slice(g)),d[u]>y?d.slice(0,y):d}}else"0"[a](void 0,0)[u]&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){"use strict";n(185);var r=n(2),i=n(78),o=n(7),s="toString",a=/./[s],u=function(t){n(16)(RegExp.prototype,s,t,!0)};n(4)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):a.name!=s&&u(function(){return a.call(this)})},function(t,e,n){"use strict";n(17)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(17)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(17)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(17)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";var r=n(1),i=n(123)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(1),i=n(10),o=n(124),s="endsWith",a=""[s];r(r.P+r.F*n(110)(s),"String",{endsWith:function(t){var e=o(this,t,s),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),u=void 0===n?r:Math.min(i(n),r),c=String(t);return a?a.call(e,c,u):e.slice(u-c.length,u)===c}})},function(t,e,n){"use strict";n(17)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(17)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(17)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){var r=n(1),i=n(50),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";var r=n(1),i=n(124),o="includes";r(r.P+r.F*n(110)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";n(17)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";var r=n(123)(!0);n(116)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";n(17)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){var r=n(1),i=n(18),o=n(10);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(17)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(17)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(17)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){"use strict";n(58)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(3),i=n(12),o=n(7),s=n(1),a=n(16),u=n(38).KEY,c=n(4),l=n(84),f=n(57),h=n(51),p=n(6),d=n(183),v=n(129),g=n(284),y=n(283),m=n(114),x=n(2),b=n(18),_=n(29),w=n(39),E=n(45),D=n(175),A=n(21),C=n(8),S=n(47),k=A.f,T=C.f,F=D.f,O=r.Symbol,I=r.JSON,B=I&&I.stringify,P="prototype",j=p("_hidden"),N=p("toPrimitive"),M={}.propertyIsEnumerable,R=l("symbol-registry"),L=l("symbols"),U=l("op-symbols"),$=Object[P],z="function"==typeof O,q=r.QObject,J=!q||!q[P]||!q[P].findChild,X=o&&c(function(){return 7!=E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k($,e);r&&delete $[e],T(t,e,n),r&&t!==$&&T($,e,r)}:T,H=function(t){var e=L[t]=E(O[P]);return e._k=t,e},W=z&&"symbol"==typeof O.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof O},K=function(t,e,n){return t===$&&K(U,e,n),x(t),e=_(e,!0),x(n),i(L,e)?(n.enumerable?(i(t,j)&&t[j][e]&&(t[j][e]=!1),n=E(n,{enumerable:w(0,!1)})):(i(t,j)||T(t,j,w(1,{})),t[j][e]=!0),X(t,e,n)):T(t,e,n)},G=function(t,e){x(t);for(var n,r=y(e=b(e)),i=0,o=r.length;o>i;)K(t,n=r[i++],e[n]);return t},Y=function(t,e){return void 0===e?E(t):G(E(t),e)},V=function(t){var e=M.call(this,t=_(t,!0));return!(this===$&&i(L,t)&&!i(U,t))&&(!(e||!i(this,t)||!i(L,t)||i(this,j)&&this[j][t])||e)},Z=function(t,e){if(t=b(t),e=_(e,!0),t!==$||!i(L,e)||i(U,e)){var n=k(t,e);return!n||!i(L,e)||i(t,j)&&t[j][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=F(b(t)),r=[],o=0;n.length>o;)i(L,e=n[o++])||e==j||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===$,r=F(n?U:b(t)),o=[],s=0;r.length>s;)!i(L,e=r[s++])||n&&!i($,e)||o.push(L[e]);return o};z||(O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===$&&e.call(U,n),i(this,j)&&i(this[j],t)&&(this[j][t]=!1),X(this,t,w(1,n))};return o&&J&&X($,t,{configurable:!0,set:e}),H(t)},a(O[P],"toString",function(){return this._k}),A.f=Z,C.f=K,n(46).f=D.f=Q,n(65).f=V,n(83).f=tt,o&&!n(44)&&a($,"propertyIsEnumerable",V,!0),d.f=function(t){return H(p(t))}),s(s.G+s.W+s.F*!z,{Symbol:O});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var et=S(p.store),nt=0;et.length>nt;)v(et[nt++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return i(R,t+="")?R[t]:R[t]=O(t)},keyFor:function(t){if(W(t))return g(R,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){J=!0},useSimple:function(){J=!1}}),s(s.S+s.F*!z,"Object",{create:Y,defineProperty:K,defineProperties:G,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt}),I&&s(s.S+s.F*(!z||c(function(){var t=O();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,B.apply(I,r)}}}),O[P][N]||n(15)(O[P],N,O[P].valueOf),f(O,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r=n(1),i=n(85),o=n(128),s=n(2),a=n(50),u=n(10),c=n(5),l=n(3).ArrayBuffer,f=n(122),h=o.ArrayBuffer,p=o.DataView,d=i.ABV&&l.isView,v=h.prototype.slice,g=i.VIEW,y="ArrayBuffer";r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,y,{isView:function(t){return d&&d(t)||c(t)&&g in t}}),r(r.P+r.U+r.F*n(4)(function(){return!new h(2).slice(1,void 0).byteLength}),y,{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(f(this,h))(u(i-r)),c=new p(this),l=new p(o),d=0;r0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(1),i=n(75)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(54)("includes")},function(t,e,n){var r=n(1),i=n(119)(),o=n(3).process,s="process"==n(23)(o);r(r.G,{asap:function(t){var e=s&&o.domain;i(e?e.bind(t):t)}})},function(t,e,n){var r=n(1),i=n(23);r(r.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,e,n){var r=n(1);r(r.P+r.R,"Map",{toJSON:n(166)("Map")})},function(t,e,n){var r=n(1);r(r.S,"Math",{iaddh:function(t,e,n,r){var i=t>>>0,o=e>>>0,s=n>>>0;return o+(r>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},function(t,e,n){var r=n(1);r(r.S,"Math",{imulh:function(t,e){var n=65535,r=+t,i=+e,o=r&n,s=i&n,a=r>>16,u=i>>16,c=(a*s>>>0)+(o*s>>>16);return a*u+(c>>16)+((o*u>>>0)+(c&n)>>16)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{isubh:function(t,e,n,r){var i=t>>>0,o=e>>>0,s=n>>>0;return o-(r>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},function(t,e,n){var r=n(1);r(r.S,"Math",{umulh:function(t,e){var n=65535,r=+t,i=+e,o=r&n,s=i&n,a=r>>>16,u=i>>>16,c=(a*s>>>0)+(o*s>>>16);return a*u+(c>>>16)+((o*u>>>0)+(c&n)>>>16)}})},function(t,e,n){"use strict";var r=n(1),i=n(11),o=n(14),s=n(8);n(7)&&r(r.P+n(82),"Object",{__defineGetter__:function(t,e){s.f(i(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(1),i=n(11),o=n(14),s=n(8);n(7)&&r(r.P+n(82),"Object",{__defineSetter__:function(t,e){s.f(i(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(1),i=n(177)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){var r=n(1),i=n(178),o=n(18),s=n(21),a=n(107);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n=o(t),r=s.f,u=i(n),c={},l=0;u.length>l;)a(c,e=u[l++],r(n,e));return c}})},function(t,e,n){"use strict";var r=n(1),i=n(11),o=n(29),s=n(22),a=n(21).f;n(7)&&r(r.P+n(82),"Object",{__lookupGetter__:function(t){var e,n=i(this),r=o(t,!0);do if(e=a(n,r))return e.get;while(n=s(n))}})},function(t,e,n){"use strict";var r=n(1),i=n(11),o=n(29),s=n(22),a=n(21).f;n(7)&&r(r.P+n(82),"Object",{__lookupSetter__:function(t){var e,n=i(this),r=o(t,!0);do if(e=a(n,r))return e.set;while(n=s(n))}})},function(t,e,n){var r=n(1),i=n(177)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(1),i=n(3),o=n(32),s=n(119)(),a=n(6)("observable"),u=n(14),c=n(2),l=n(43),f=n(48),h=n(15),p=n(55),d=p.RETURN,v=function(t){return null==t?void 0:u(t)},g=function(t){var e=t._c;e&&(t._c=void 0,e())},y=function(t){return void 0===t._o},m=function(t){y(t)||(t._o=void 0,g(t))},x=function(t,e){c(t),this._c=void 0,this._o=t,t=new b(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(e){return void t.error(e)}y(this)&&g(this)};x.prototype=f({},{unsubscribe:function(){m(this)}});var b=function(t){this._s=t};b.prototype=f({},{next:function(t){var e=this._s;if(!y(e)){var n=e._o;try{var r=v(n.next);if(r)return r.call(n,t)}catch(t){try{m(e)}finally{throw t}}}},error:function(t){var e=this._s;if(y(e))throw t;var n=e._o;e._o=void 0;try{var r=v(n.error);if(!r)throw t;t=r.call(n,t)}catch(t){try{g(e)}finally{throw t}}return g(e),t},complete:function(t){var e=this._s;if(!y(e)){var n=e._o;e._o=void 0;try{var r=v(n.complete);t=r?r.call(n,t):void 0}catch(t){try{g(e)}finally{throw t}}return g(e),t}}});var _=function(t){l(this,_,"Observable","_f")._f=u(t)};f(_.prototype,{subscribe:function(t){return new x(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||i.Promise)(function(n,r){u(t);var i=e.subscribe({next:function(e){try{return t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:n})})}}),f(_,{from:function(t){var e="function"==typeof this?this:_,n=v(c(t)[a]);if(n){var r=c(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return s(function(){if(!n){try{if(p(t,!1,function(t){if(e.next(t),n)return d})===d)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=Array(e);t1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";var r=n(1),i=n(182);r(r.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";n(58)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(58)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){n(129)("asyncIterator")},function(t,e,n){n(129)("observable")},function(t,e,n){var r=n(1);r(r.S,"System",{global:n(3)})},function(t,e,n){for(var r=n(131),i=n(16),o=n(3),s=n(15),a=n(56),u=n(6),c=u("iterator"),l=u("toStringTag"),f=a.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],p=0;p<5;p++){var d,v=h[p],g=o[v],y=g&&g.prototype;if(y){y[c]||s(y,c,f),y[l]||s(y,l,v),a[v]=f;for(d in r)y[d]||i(y,d,r[d],!0)}}},function(t,e,n){var r=n(1),i=n(127);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){var r=n(3),i=n(1),o=n(79),s=n(285),a=r.navigator,u=!!a&&/MSIE .\./.test(a.userAgent),c=function(t){return u?function(e,n){return t(o(s,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),n)}:t};i(i.G+i.B+i.F*u,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){n(408),n(347),n(349),n(348),n(351),n(353),n(358),n(352),n(350),n(360),n(359),n(355),n(356),n(354),n(346),n(357),n(361),n(362),n(314),n(316),n(315),n(364),n(363),n(334),n(344),n(345),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(395),n(400),n(407),n(398),n(390),n(391),n(396),n(401),n(403),n(386),n(387),n(388),n(389),n(392),n(393),n(394),n(397),n(399),n(402),n(404),n(405),n(406),n(309),n(311),n(310),n(313),n(312),n(298),n(296),n(302),n(299),n(305),n(307),n(295),n(301),n(292),n(306),n(290),n(304),n(303),n(297),n(300),n(289),n(291),n(294),n(293),n(308),n(131),n(380),n(385),n(185),n(381),n(382),n(383),n(384),n(365),n(184),n(186),n(187),n(420),n(409),n(410),n(415),n(418),n(419),n(413),n(416),n(414),n(417),n(411),n(412),n(366),n(367),n(368),n(369),n(370),n(373),n(371),n(372),n(374),n(375),n(376),n(377),n(379),n(378),n(421),n(447),n(450),n(449),n(451),n(452),n(448),n(453),n(454),n(432),n(435),n(431),n(429),n(430),n(433),n(434),n(424),n(446),n(455),n(423),n(425),n(427),n(426),n(428),n(437),n(438),n(440),n(439),n(442),n(441),n(443),n(444),n(445),n(422),n(436),n(458),n(457),n(456),t.exports=n(32)},function(t,e,n){function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function i(t){function n(){if(n.enabled){var t=n,r=+new Date,i=r-(c||r);t.diff=i,t.prev=c,t.curr=r,c=r;for(var o=new Array(arguments.length),s=0;s=0;--i){var o=this.leading[i];e.end.offset>=o.start&&(n.unshift(o.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(t.innerComments=n)}},t.prototype.findTrailingComments=function(t,e){var n=[];if(this.trailing.length>0){for(var r=this.trailing.length-1;r>=0;--r){var i=this.trailing[r];i.start>=e.end.offset&&n.unshift(i.comment)}return this.trailing.length=0,n}var o=this.stack[this.stack.length-1];if(o&&o.node.trailingComments){var s=o.node.trailingComments[0];s&&s.range[0]>=e.end.offset&&(n=o.node.trailingComments,delete o.node.trailingComments)}return n},t.prototype.findLeadingComments=function(t,e){for(var n,r=[];this.stack.length>0;){var i=this.stack[this.stack.length-1];if(!(i&&i.start>=e.start.offset))break;n=this.stack.pop().node}if(n){for(var o=n.leadingComments?n.leadingComments.length:0,s=o-1;s>=0;--s){var a=n.leadingComments[s];a.range[1]<=e.start.offset&&(r.unshift(a),n.leadingComments.splice(s,1))}return n.leadingComments&&0===n.leadingComments.length&&delete n.leadingComments,r}for(var s=this.leading.length-1;s>=0;--s){var i=this.leading[s];i.start<=e.start.offset&&(r.unshift(i.comment),this.leading.splice(s,1))}return r},t.prototype.visitNode=function(t,e){if(!(t.type===r.Syntax.Program&&t.body.length>0)){this.insertInnerComments(t,e);var n=this.findTrailingComments(t,e),i=this.findLeadingComments(t,e);i.length>0&&(t.leadingComments=i),n.length>0&&(t.trailingComments=n),this.stack.push({node:t,start:e.start.offset})}},t.prototype.visitComment=function(t,e){var n="L"===t.type[0]?"Line":"Block",r={type:n,value:t.value};if(t.range&&(r.range=t.range),t.loc&&(r.loc=t.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:t.value,range:[e.start.offset,e.end.offset]},start:e.start.offset};t.loc&&(i.comment.loc=t.loc),t.type=n,this.leading.push(i),this.trailing.push(i)}},t.prototype.visit=function(t,e){"LineComment"===t.type?this.visitComment(t,e):"BlockComment"===t.type?this.visitComment(t,e):this.attach&&this.visitNode(t,e)},t}();e.CommentHandler=i},function(t,e){"use strict";e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(t,e,n){"use strict";var r=n(4),i=n(5),o=n(6),s=n(7),a=n(8),u=n(2),c=n(10),l="ArrowParameterPlaceHolder",f=function(){function t(t,e,n){void 0===e&&(e={}),this.config={range:"boolean"==typeof e.range&&e.range,loc:"boolean"==typeof e.loc&&e.loc,source:null,tokens:"boolean"==typeof e.tokens&&e.tokens,comment:"boolean"==typeof e.comment&&e.comment,tolerant:"boolean"==typeof e.tolerant&&e.tolerant},this.config.loc&&e.source&&null!==e.source&&(this.config.source=String(e.source)),this.delegate=n,this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(t,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.sourceType=e&&"module"===e.sourceType?"module":"script",this.lookahead=null,this.hasLineTerminator=!1,this.context={allowIn:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:"module"===this.sourceType},this.tokens=[],this.startMarker={index:0,lineNumber:this.scanner.lineNumber,lineStart:0},this.lastMarker={index:0,lineNumber:this.scanner.lineNumber,lineStart:0},this.nextToken(),this.lastMarker={index:this.scanner.index,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart}}return t.prototype.throwError=function(t){for(var e=[],n=1;n0&&this.delegate)for(var e=0;e>="===t||">>>="===t||"&="===t||"^="===t||"|="===t},t.prototype.isolateCoverGrammar=function(t){var e=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=t.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=e,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=r,i},t.prototype.inheritCoverGrammar=function(t){var e=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=t.call(this);return this.context.isBindingElement=this.context.isBindingElement&&e,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,i},t.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type===s.Token.EOF||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.lineNumber=this.startMarker.lineNumber,this.lastMarker.lineStart=this.startMarker.lineStart)},t.prototype.parsePrimaryExpression=function(){var t,e,n,r,o=this.createNode();switch(this.lookahead.type){case s.Token.Identifier:"module"===this.sourceType&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),t=this.finalize(o,new c.Identifier(this.nextToken().value));break;case s.Token.NumericLiteral:case s.Token.StringLiteral:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),r=this.getTokenRaw(n),t=this.finalize(o,new c.Literal(n.value,r));break;case s.Token.BooleanLiteral:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),n.value="true"===n.value,r=this.getTokenRaw(n),t=this.finalize(o,new c.Literal(n.value,r));break;case s.Token.NullLiteral:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,n=this.nextToken(),n.value=null,r=this.getTokenRaw(n),t=this.finalize(o,new c.Literal(n.value,r));break;case s.Token.Template:t=this.parseTemplateLiteral();break;case s.Token.Punctuator:switch(e=this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,n=this.nextRegexToken(),r=this.getTokenRaw(n),t=this.finalize(o,new c.RegexLiteral(n.value,r,n.regex));break;default:this.throwUnexpectedToken(this.nextToken())}break;case s.Token.Keyword:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(o,new c.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(o,new c.ThisExpression)):this.matchKeyword("class")?t=this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:this.throwUnexpectedToken(this.nextToken())}return t},t.prototype.parseSpreadElement=function(){var t=this.createNode();this.expect("...");var e=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(t,new c.SpreadElement(e))},t.prototype.parseArrayInitializer=function(){var t=this.createNode(),e=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),e.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),e.push(n)}else e.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(t,new c.ArrayExpression(e))},t.prototype.parsePropertyMethod=function(t){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var e=this.context.strict,n=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&t.firstRestricted&&this.tolerateUnexpectedToken(t.firstRestricted,t.message),this.context.strict&&t.stricted&&this.tolerateUnexpectedToken(t.stricted,t.message),this.context.strict=e,n},t.prototype.parsePropertyMethodFunction=function(){var t=!1,e=this.createNode(),n=this.context.allowYield;this.context.allowYield=!1;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=n,this.finalize(e,new c.FunctionExpression(null,r.params,i,t))},t.prototype.parseObjectPropertyKey=function(){var t=this.createNode(),e=this.nextToken(),n=null;switch(e.type){case s.Token.StringLiteral:case s.Token.NumericLiteral:this.context.strict&&e.octal&&this.tolerateUnexpectedToken(e,i.Messages.StrictOctalLiteral);var r=this.getTokenRaw(e);n=this.finalize(t,new c.Literal(e.value,r));break;case s.Token.Identifier:case s.Token.BooleanLiteral:case s.Token.NullLiteral:case s.Token.Keyword:n=this.finalize(t,new c.Identifier(e.value));break;case s.Token.Punctuator:"["===e.value?(n=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):this.throwUnexpectedToken(e);break;default:this.throwUnexpectedToken(e)}return n},t.prototype.isPropertyKey=function(t,e){return t.type===u.Syntax.Identifier&&t.name===e||t.type===u.Syntax.Literal&&t.value===e},t.prototype.parseObjectProperty=function(t){var e,n,r,o=this.createNode(),a=this.lookahead,u=!1,l=!1,f=!1;a.type===s.Token.Identifier?(this.nextToken(),n=this.finalize(o,new c.Identifier(a.value))):this.match("*")?this.nextToken():(u=this.match("["),n=this.parseObjectPropertyKey());var h=this.qualifiedPropertyName(this.lookahead);if(a.type===s.Token.Identifier&&"get"===a.value&&h)e="get",u=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,r=this.parseGetterMethod();else if(a.type===s.Token.Identifier&&"set"===a.value&&h)e="set",u=this.match("["),n=this.parseObjectPropertyKey(),r=this.parseSetterMethod();else if(a.type===s.Token.Punctuator&&"*"===a.value&&h)e="init",u=this.match("["),n=this.parseObjectPropertyKey(),r=this.parseGeneratorMethod(),l=!0;else if(n||this.throwUnexpectedToken(this.lookahead),e="init",this.match(":"))!u&&this.isPropertyKey(n,"__proto__")&&(t.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),t.value=!0),this.nextToken(),r=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))r=this.parsePropertyMethodFunction(),l=!0;else if(a.type===s.Token.Identifier){var p=this.finalize(o,new c.Identifier(a.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),f=!0;var d=this.isolateCoverGrammar(this.parseAssignmentExpression);r=this.finalize(o,new c.AssignmentPattern(p,d))}else f=!0,r=p}else this.throwUnexpectedToken(this.nextToken());return this.finalize(o,new c.Property(e,n,u,r,l,f))},t.prototype.parseObjectInitializer=function(){var t=this.createNode();this.expect("{");for(var e=[],n={value:!1};!this.match("}");)e.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(t,new c.ObjectExpression(e))},t.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,"Template literal must start with a template head");var t=this.createNode(),e=this.nextToken(),n={raw:e.value.raw,cooked:e.value.cooked};return this.finalize(t,new c.TemplateElement(n,e.tail))},t.prototype.parseTemplateElement=function(){this.lookahead.type!==s.Token.Template&&this.throwUnexpectedToken();var t=this.createNode(),e=this.nextToken(),n={raw:e.value.raw,cooked:e.value.cooked};return this.finalize(t,new c.TemplateElement(n,e.tail))},t.prototype.parseTemplateLiteral=function(){var t=this.createNode(),e=[],n=[],r=this.parseTemplateHead();for(n.push(r);!r.tail;)e.push(this.parseExpression()),r=this.parseTemplateElement(),n.push(r);return this.finalize(t,new c.TemplateLiteral(n,e))},t.prototype.reinterpretExpressionAsPattern=function(t){switch(t.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:t.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(t.argument);break;case u.Syntax.ArrayExpression:t.type=u.Syntax.ArrayPattern;for(var e=0;e")||this.expect("=>"),t={type:l,params:[]};else{var e=this.lookahead,n=[];if(this.match("..."))t=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),t={type:l,params:[t]};else{var r=!1;if(this.context.isBindingElement=!0,t=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(t);this.startMarker.index")||this.expect("=>"),this.context.isBindingElement=!1;for(var o=0;o")&&(t.type===u.Syntax.Identifier&&"yield"===t.name&&(r=!0,t={type:l,params:[t]}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),t.type===u.Syntax.SequenceExpression)for(var o=0;o0){this.nextToken(),n.prec=r,this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[t,this.lookahead],o=e,s=this.isolateCoverGrammar(this.parseExponentiationExpression),a=[o,n,s];;){if(r=this.binaryPrecedence(this.lookahead),r<=0)break;for(;a.length>2&&r<=a[a.length-2].prec;){s=a.pop();var u=a.pop().value;o=a.pop(),i.pop();var l=this.startNode(i[i.length-1]);a.push(this.finalize(l,new c.BinaryExpression(u,o,s)))}n=this.nextToken(),n.prec=r,a.push(n),i.push(this.lookahead),a.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var f=a.length-1;for(e=a[f],i.pop();f>1;){var l=this.startNode(i.pop());e=this.finalize(l,new c.BinaryExpression(a[f-1].value,a[f-2],e)),f-=2}}return e},t.prototype.parseConditionalExpression=function(){var t=this.lookahead,e=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new c.ConditionalExpression(e,r,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return e},t.prototype.checkPatternParam=function(t,e){switch(e.type){case u.Syntax.Identifier:this.validateParam(t,e,e.name);break;case u.Syntax.RestElement:this.checkPatternParam(t,e.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(t,e.left);break;case u.Syntax.ArrayPattern:for(var n=0;n")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=this.reinterpretAsCoverFormalsList(t);if(r){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var o=this.context.strict,s=this.context.allowYield;this.context.allowYield=!0;var a=this.startNode(e);this.expect("=>");var f=this.match("{")?this.parseFunctionSourceElements():this.isolateCoverGrammar(this.parseAssignmentExpression),h=f.type!==u.Syntax.BlockStatement;this.context.strict&&r.firstRestricted&&this.throwUnexpectedToken(r.firstRestricted,r.message),this.context.strict&&r.stricted&&this.tolerateUnexpectedToken(r.stricted,r.message),t=this.finalize(a,new c.ArrowFunctionExpression(r.params,f,h)),this.context.strict=o,this.context.allowYield=s}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&t.type===u.Syntax.Identifier){var p=t;this.scanner.isRestrictedWord(p.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(p.name)&&this.tolerateUnexpectedToken(n,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(t):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),n=this.nextToken();var d=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new c.AssignmentExpression(n.value,t,d)),this.context.firstCoverInitializedNameError=null}}return t},t.prototype.parseExpression=function(){var t=this.lookahead,e=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(e);this.startMarker.index",e.TokenName[n.Identifier]="Identifier",e.TokenName[n.Keyword]="Keyword",e.TokenName[n.NullLiteral]="Null",e.TokenName[n.NumericLiteral]="Numeric",e.TokenName[n.Punctuator]="Punctuator",e.TokenName[n.StringLiteral]="String",e.TokenName[n.RegularExpression]="RegularExpression",e.TokenName[n.Template]="Template"},function(t,e,n){"use strict";function r(t){return"0123456789abcdef".indexOf(t.toLowerCase())}function i(t){return"01234567".indexOf(t)}var o=n(4),s=n(5),a=n(9),u=n(7),c=function(){function t(t,e){this.source=t,this.errorHandler=e,this.trackComment=!1,this.length=t.length,this.index=0,this.lineNumber=t.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return t.prototype.eof=function(){return this.index>=this.length},t.prototype.throwUnexpectedToken=function(t){void 0===t&&(t=s.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,t)},t.prototype.tolerateUnexpectedToken=function(){this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,s.Messages.UnexpectedTokenIllegal)},t.prototype.skipSingleLineComment=function(t){var e,n,r;for(this.trackComment&&(e=[],n=this.index-t,r={start:{line:this.lineNumber,column:this.index-this.lineStart-t},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,a.Character.isLineTerminator(i)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[n+t,this.index-1],range:[n,this.index-1],loc:r};e.push(o)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,e}}if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!1,slice:[n+t,this.index],range:[n,this.index],loc:r};e.push(o)}return e},t.prototype.skipMultiLineComment=function(){var t,e,n;for(this.trackComment&&(t=[],e=this.index-2,n={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var r=this.source.charCodeAt(this.index);if(a.Character.isLineTerminator(r))13===r&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===r){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:n};t.push(i)}return t}++this.index}else++this.index}if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:n};t.push(i)}return this.tolerateUnexpectedToken(),t},t.prototype.scanComments=function(){var t;this.trackComment&&(t=[]);for(var e=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(a.Character.isWhiteSpace(n))++this.index;else if(a.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,e=!0;else if(47===n)if(n=this.source.charCodeAt(this.index+1),47===n){this.index+=2;var r=this.skipSingleLineComment(2);this.trackComment&&(t=t.concat(r)),e=!0}else{if(42!==n)break;this.index+=2;var r=this.skipMultiLineComment();this.trackComment&&(t=t.concat(r))}else if(e&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3;var r=this.skipSingleLineComment(3);this.trackComment&&(t=t.concat(r))}else{if(60!==n)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4;var r=this.skipSingleLineComment(4);this.trackComment&&(t=t.concat(r))}}return t},t.prototype.isFutureReservedWord=function(t){switch(t){case"enum":case"export":case"import":case"super":return!0;default:return!1}},t.prototype.isStrictModeReservedWord=function(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},t.prototype.isRestrictedWord=function(t){return"eval"===t||"arguments"===t},t.prototype.isKeyword=function(t){switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}},t.prototype.codePointAt=function(t){var e=this.source.charCodeAt(t);if(e>=55296&&e<=56319){var n=this.source.charCodeAt(t+1);if(n>=56320&&n<=57343){var r=e;e=1024*(r-55296)+n-56320+65536}}return e},t.prototype.scanHexEscape=function(t){for(var e="u"===t?4:2,n=0,i=0;i1114111||"}"!==t)&&this.throwUnexpectedToken(),a.Character.fromCodePoint(e)},t.prototype.getIdentifier=function(){for(var t=this.index++;!this.eof();){var e=this.source.charCodeAt(this.index);if(92===e)return this.index=t,this.getComplexIdentifier();if(e>=55296&&e<57343)return this.index=t,this.getComplexIdentifier();if(!a.Character.isIdentifierPart(e))break;++this.index}return this.source.slice(t,this.index)},t.prototype.getComplexIdentifier=function(){var t=this.codePointAt(this.index),e=a.Character.fromCodePoint(t);this.index+=e.length;var n;for(92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape("u"),t=n.charCodeAt(0),n&&"\\"!==n&&a.Character.isIdentifierStart(t)||this.throwUnexpectedToken()),e=n);!this.eof()&&(t=this.codePointAt(this.index),a.Character.isIdentifierPart(t));)n=a.Character.fromCodePoint(t),e+=n,this.index+=n.length,92===t&&(e=e.substr(0,e.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape("u"),t=n.charCodeAt(0),n&&"\\"!==n&&a.Character.isIdentifierPart(t)||this.throwUnexpectedToken()),e+=n);return e},t.prototype.octalToDecimal=function(t){var e="0"!==t,n=i(t);return!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(e=!0,n=8*n+i(this.source[this.index++]),"0123".indexOf(t)>=0&&!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+i(this.source[this.index++]))),{code:n,octal:e}},t.prototype.scanIdentifier=function(){var t,e=this.index,n=92===this.source.charCodeAt(e)?this.getComplexIdentifier():this.getIdentifier();return t=1===n.length?u.Token.Identifier:this.isKeyword(n)?u.Token.Keyword:"null"===n?u.Token.NullLiteral:"true"===n||"false"===n?u.Token.BooleanLiteral:u.Token.Identifier,{type:t,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},t.prototype.scanPunctuator=function(){var t={type:u.Token.Punctuator,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index},e=this.source[this.index];switch(e){case"(":case"{":"{"===e&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,e="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:e=this.source.substr(this.index,4),">>>="===e?this.index+=4:(e=e.substr(0,3),"==="===e||"!=="===e||">>>"===e||"<<="===e||">>="===e||"**="===e?this.index+=3:(e=e.substr(0,2),"&&"===e||"||"===e||"=="===e||"!="===e||"+="===e||"-="===e||"*="===e||"/="===e||"++"===e||"--"===e||"<<"===e||">>"===e||"&="===e||"|="===e||"^="===e||"%="===e||"<="===e||">="===e||"=>"===e||"**"===e?this.index+=2:(e=this.source[this.index],"<>=!+-*%&|^/".indexOf(e)>=0&&++this.index)))}return this.index===t.start&&this.throwUnexpectedToken(),t.end=this.index,t.value=e,t},t.prototype.scanHexLiteral=function(t){for(var e="";!this.eof()&&a.Character.isHexDigit(this.source.charCodeAt(this.index));)e+=this.source[this.index++];return 0===e.length&&this.throwUnexpectedToken(),a.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:u.Token.NumericLiteral,value:parseInt("0x"+e,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanBinaryLiteral=function(t){for(var e,n="";!this.eof()&&(e=this.source[this.index],"0"===e||"1"===e);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(e=this.source.charCodeAt(this.index),(a.Character.isIdentifierStart(e)||a.Character.isDecimalDigit(e))&&this.throwUnexpectedToken()),{type:u.Token.NumericLiteral,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},t.prototype.scanOctalLiteral=function(t,e){var n="",r=!1;for(a.Character.isOctalDigit(t.charCodeAt(0))?(r=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return r||0!==n.length||this.throwUnexpectedToken(),(a.Character.isIdentifierStart(this.source.charCodeAt(this.index))||a.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:u.Token.NumericLiteral,value:parseInt(n,8),octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},t.prototype.isImplicitOctalLiteral=function(){for(var t=this.index+1;t=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(t,e,r){var o=parseInt(e||r,16);return o>1114111&&i.throwUnexpectedToken(s.Messages.InvalidRegExp),o<=65535?String.fromCharCode(o):n}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n));try{RegExp(r)}catch(t){this.throwUnexpectedToken(s.Messages.InvalidRegExp)}try{return new RegExp(t,e)}catch(t){return null}},t.prototype.scanRegExpBody=function(){var t=this.source[this.index];o.assert("/"===t,"Regular expression literal must start with a slash");for(var e=this.source[this.index++],n=!1,r=!1;!this.eof();)if(t=this.source[this.index++],e+=t,"\\"===t)t=this.source[this.index++],a.Character.isLineTerminator(t.charCodeAt(0))&&this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),e+=t;else if(a.Character.isLineTerminator(t.charCodeAt(0)))this.throwUnexpectedToken(s.Messages.UnterminatedRegExp);else if(n)"]"===t&&(n=!1);else{if("/"===t){r=!0;break}"["===t&&(n=!0)}r||this.throwUnexpectedToken(s.Messages.UnterminatedRegExp);var i=e.substr(1,e.length-2);return{value:i,literal:e}},t.prototype.scanRegExpFlags=function(){for(var t="",e="";!this.eof();){var n=this.source[this.index];if(!a.Character.isIdentifierPart(n.charCodeAt(0)))break;if(++this.index,"\\"!==n||this.eof())e+=n,t+=n;else if(n=this.source[this.index],"u"===n){++this.index;var r=this.index;if(n=this.scanHexEscape("u"))for(e+=n,t+="\\u";r=55296&&t<57343&&a.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},t}();e.Scanner=c},function(t,e){"use strict";var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/, +NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};e.Character={fromCodePoint:function(t){return t<65536?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))},isWhiteSpace:function(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0},isLineTerminator:function(t){return 10===t||13===t||8232===t||8233===t},isIdentifierStart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&n.NonAsciiIdentifierStart.test(e.Character.fromCodePoint(t))},isIdentifierPart:function(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&n.NonAsciiIdentifierPart.test(e.Character.fromCodePoint(t))},isDecimalDigit:function(t){return t>=48&&t<=57},isHexDigit:function(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102},isOctalDigit:function(t){return t>=48&&t<=55}}},function(t,e,n){"use strict";var r=n(2),i=function(){function t(t){this.type=r.Syntax.ArrayExpression,this.elements=t}return t}();e.ArrayExpression=i;var o=function(){function t(t){this.type=r.Syntax.ArrayPattern,this.elements=t}return t}();e.ArrayPattern=o;var s=function(){function t(t,e,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=t,this.body=e,this.generator=!1,this.expression=n}return t}();e.ArrowFunctionExpression=s;var a=function(){function t(t,e,n){this.type=r.Syntax.AssignmentExpression,this.operator=t,this.left=e,this.right=n}return t}();e.AssignmentExpression=a;var u=function(){function t(t,e){this.type=r.Syntax.AssignmentPattern,this.left=t,this.right=e}return t}();e.AssignmentPattern=u;var c=function(){function t(t,e,n){var i="||"===t||"&&"===t;this.type=i?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=t,this.left=e,this.right=n}return t}();e.BinaryExpression=c;var l=function(){function t(t){this.type=r.Syntax.BlockStatement,this.body=t}return t}();e.BlockStatement=l;var f=function(){function t(t){this.type=r.Syntax.BreakStatement,this.label=t}return t}();e.BreakStatement=f;var h=function(){function t(t,e){this.type=r.Syntax.CallExpression,this.callee=t,this.arguments=e}return t}();e.CallExpression=h;var p=function(){function t(t,e){this.type=r.Syntax.CatchClause,this.param=t,this.body=e}return t}();e.CatchClause=p;var d=function(){function t(t){this.type=r.Syntax.ClassBody,this.body=t}return t}();e.ClassBody=d;var v=function(){function t(t,e,n){this.type=r.Syntax.ClassDeclaration,this.id=t,this.superClass=e,this.body=n}return t}();e.ClassDeclaration=v;var g=function(){function t(t,e,n){this.type=r.Syntax.ClassExpression,this.id=t,this.superClass=e,this.body=n}return t}();e.ClassExpression=g;var y=function(){function t(t,e){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=t,this.property=e}return t}();e.ComputedMemberExpression=y;var m=function(){function t(t,e,n){this.type=r.Syntax.ConditionalExpression,this.test=t,this.consequent=e,this.alternate=n}return t}();e.ConditionalExpression=m;var x=function(){function t(t){this.type=r.Syntax.ContinueStatement,this.label=t}return t}();e.ContinueStatement=x;var b=function(){function t(){this.type=r.Syntax.DebuggerStatement}return t}();e.DebuggerStatement=b;var _=function(){function t(t,e){this.type=r.Syntax.ExpressionStatement,this.expression=t,this.directive=e}return t}();e.Directive=_;var w=function(){function t(t,e){this.type=r.Syntax.DoWhileStatement,this.body=t,this.test=e}return t}();e.DoWhileStatement=w;var E=function(){function t(){this.type=r.Syntax.EmptyStatement}return t}();e.EmptyStatement=E;var D=function(){function t(t){this.type=r.Syntax.ExportAllDeclaration,this.source=t}return t}();e.ExportAllDeclaration=D;var A=function(){function t(t){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=t}return t}();e.ExportDefaultDeclaration=A;var C=function(){function t(t,e,n){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=t,this.specifiers=e,this.source=n}return t}();e.ExportNamedDeclaration=C;var S=function(){function t(t,e){this.type=r.Syntax.ExportSpecifier,this.exported=e,this.local=t}return t}();e.ExportSpecifier=S;var k=function(){function t(t){this.type=r.Syntax.ExpressionStatement,this.expression=t}return t}();e.ExpressionStatement=k;var T=function(){function t(t,e,n){this.type=r.Syntax.ForInStatement,this.left=t,this.right=e,this.body=n,this.each=!1}return t}();e.ForInStatement=T;var F=function(){function t(t,e,n){this.type=r.Syntax.ForOfStatement,this.left=t,this.right=e,this.body=n}return t}();e.ForOfStatement=F;var O=function(){function t(t,e,n,i){this.type=r.Syntax.ForStatement,this.init=t,this.test=e,this.update=n,this.body=i}return t}();e.ForStatement=O;var I=function(){function t(t,e,n,i){this.type=r.Syntax.FunctionDeclaration,this.id=t,this.params=e,this.body=n,this.generator=i,this.expression=!1}return t}();e.FunctionDeclaration=I;var B=function(){function t(t,e,n,i){this.type=r.Syntax.FunctionExpression,this.id=t,this.params=e,this.body=n,this.generator=i,this.expression=!1}return t}();e.FunctionExpression=B;var P=function(){function t(t){this.type=r.Syntax.Identifier,this.name=t}return t}();e.Identifier=P;var j=function(){function t(t,e,n){this.type=r.Syntax.IfStatement,this.test=t,this.consequent=e,this.alternate=n}return t}();e.IfStatement=j;var N=function(){function t(t,e){this.type=r.Syntax.ImportDeclaration,this.specifiers=t,this.source=e}return t}();e.ImportDeclaration=N;var M=function(){function t(t){this.type=r.Syntax.ImportDefaultSpecifier,this.local=t}return t}();e.ImportDefaultSpecifier=M;var R=function(){function t(t){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=t}return t}();e.ImportNamespaceSpecifier=R;var L=function(){function t(t,e){this.type=r.Syntax.ImportSpecifier,this.local=t,this.imported=e}return t}();e.ImportSpecifier=L;var U=function(){function t(t,e){this.type=r.Syntax.LabeledStatement,this.label=t,this.body=e}return t}();e.LabeledStatement=U;var $=function(){function t(t,e){this.type=r.Syntax.Literal,this.value=t,this.raw=e}return t}();e.Literal=$;var z=function(){function t(t,e){this.type=r.Syntax.MetaProperty,this.meta=t,this.property=e}return t}();e.MetaProperty=z;var q=function(){function t(t,e,n,i,o){this.type=r.Syntax.MethodDefinition,this.key=t,this.computed=e,this.value=n,this.kind=i,this.static=o}return t}();e.MethodDefinition=q;var J=function(){function t(t,e){this.type=r.Syntax.NewExpression,this.callee=t,this.arguments=e}return t}();e.NewExpression=J;var X=function(){function t(t){this.type=r.Syntax.ObjectExpression,this.properties=t}return t}();e.ObjectExpression=X;var H=function(){function t(t){this.type=r.Syntax.ObjectPattern,this.properties=t}return t}();e.ObjectPattern=H;var W=function(){function t(t,e){this.type=r.Syntax.Program,this.body=t,this.sourceType=e}return t}();e.Program=W;var K=function(){function t(t,e,n,i,o,s){this.type=r.Syntax.Property,this.key=e,this.computed=n,this.value=i,this.kind=t,this.method=o,this.shorthand=s}return t}();e.Property=K;var G=function(){function t(t,e,n){this.type=r.Syntax.Literal,this.value=t,this.raw=e,this.regex=n}return t}();e.RegexLiteral=G;var Y=function(){function t(t){this.type=r.Syntax.RestElement,this.argument=t}return t}();e.RestElement=Y;var V=function(){function t(t){this.type=r.Syntax.ReturnStatement,this.argument=t}return t}();e.ReturnStatement=V;var Z=function(){function t(t){this.type=r.Syntax.SequenceExpression,this.expressions=t}return t}();e.SequenceExpression=Z;var Q=function(){function t(t){this.type=r.Syntax.SpreadElement,this.argument=t}return t}();e.SpreadElement=Q;var tt=function(){function t(t,e){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=t,this.property=e}return t}();e.StaticMemberExpression=tt;var et=function(){function t(){this.type=r.Syntax.Super}return t}();e.Super=et;var nt=function(){function t(t,e){this.type=r.Syntax.SwitchCase,this.test=t,this.consequent=e}return t}();e.SwitchCase=nt;var rt=function(){function t(t,e){this.type=r.Syntax.SwitchStatement,this.discriminant=t,this.cases=e}return t}();e.SwitchStatement=rt;var it=function(){function t(t,e){this.type=r.Syntax.TaggedTemplateExpression,this.tag=t,this.quasi=e}return t}();e.TaggedTemplateExpression=it;var ot=function(){function t(t,e){this.type=r.Syntax.TemplateElement,this.value=t,this.tail=e}return t}();e.TemplateElement=ot;var st=function(){function t(t,e){this.type=r.Syntax.TemplateLiteral,this.quasis=t,this.expressions=e}return t}();e.TemplateLiteral=st;var at=function(){function t(){this.type=r.Syntax.ThisExpression}return t}();e.ThisExpression=at;var ut=function(){function t(t){this.type=r.Syntax.ThrowStatement,this.argument=t}return t}();e.ThrowStatement=ut;var ct=function(){function t(t,e,n){this.type=r.Syntax.TryStatement,this.block=t,this.handler=e,this.finalizer=n}return t}();e.TryStatement=ct;var lt=function(){function t(t,e){this.type=r.Syntax.UnaryExpression,this.operator=t,this.argument=e,this.prefix=!0}return t}();e.UnaryExpression=lt;var ft=function(){function t(t,e,n){this.type=r.Syntax.UpdateExpression,this.operator=t,this.argument=e,this.prefix=n}return t}();e.UpdateExpression=ft;var ht=function(){function t(t,e){this.type=r.Syntax.VariableDeclaration,this.declarations=t,this.kind=e}return t}();e.VariableDeclaration=ht;var pt=function(){function t(t,e){this.type=r.Syntax.VariableDeclarator,this.id=t,this.init=e}return t}();e.VariableDeclarator=pt;var dt=function(){function t(t,e){this.type=r.Syntax.WhileStatement,this.test=t,this.body=e}return t}();e.WhileStatement=dt;var vt=function(){function t(t,e){this.type=r.Syntax.WithStatement,this.object=t,this.body=e}return t}();e.WithStatement=vt;var gt=function(){function t(t,e){this.type=r.Syntax.YieldExpression,this.argument=t,this.delegate=e}return t}();e.YieldExpression=gt},function(t,e,n){"use strict";function r(t){var e;switch(t.type){case l.JSXSyntax.JSXIdentifier:var n=t;e=n.name;break;case l.JSXSyntax.JSXNamespacedName:var i=t;e=r(i.namespace)+":"+r(i.name);break;case l.JSXSyntax.JSXMemberExpression:var o=t;e=r(o.object)+"."+r(o.property)}return e}var i,o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(9),a=n(7),u=n(3),c=n(12),l=n(13),f=n(10),h=n(14);!function(t){t[t.Identifier=100]="Identifier",t[t.Text=101]="Text"}(i||(i={})),a.TokenName[i.Identifier]="JSXIdentifier",a.TokenName[i.Text]="JSXText";var p=function(t){function e(e,n,r){t.call(this,e,n,r)}return o(e,t),e.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():t.prototype.parsePrimaryExpression.call(this)},e.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.lineNumber,this.scanner.lineStart=this.startMarker.lineStart},e.prototype.finishJSX=function(){this.nextToken()},e.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},e.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},e.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},e.prototype.scanXHTMLEntity=function(t){for(var e="&",n=!0,r=!1,i=!1,o=!1;!this.scanner.eof()&&n&&!r;){var a=this.scanner.source[this.scanner.index];if(a===t)break;if(r=";"===a,e+=a,++this.scanner.index,!r)switch(e.length){case 2:i="#"===a;break;case 3:i&&(o="x"===a,n=o||s.Character.isDecimalDigit(a.charCodeAt(0)),i=i&&!o);break;default:n=n&&!(i&&!s.Character.isDecimalDigit(a.charCodeAt(0))),n=n&&!(o&&!s.Character.isHexDigit(a.charCodeAt(0)))}}if(n&&r&&e.length>2){var u=e.substr(1,e.length-2);i&&u.length>1?e=String.fromCharCode(parseInt(u.substr(1),10)):o&&u.length>2?e=String.fromCharCode(parseInt("0"+u.substr(1),16)):i||o||!c.XHTMLEntities[u]||(e=c.XHTMLEntities[u])}return e},e.prototype.lexJSX=function(){var t=this.scanner.source.charCodeAt(this.scanner.index);if(60===t||62===t||47===t||58===t||61===t||123===t||125===t){var e=this.scanner.source[this.scanner.index++];return{type:a.Token.Punctuator,value:e,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(34===t||39===t){for(var n=this.scanner.index,r=this.scanner.source[this.scanner.index++],o="";!this.scanner.eof();){var u=this.scanner.source[this.scanner.index++];if(u===r)break;o+="&"===u?this.scanXHTMLEntity(r):u}return{type:a.Token.StringLiteral,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(46===t){var c=this.scanner.source.charCodeAt(this.scanner.index+1),l=this.scanner.source.charCodeAt(this.scanner.index+2),e=46===c&&46===l?"...":".",n=this.scanner.index;return this.scanner.index+=e.length,{type:a.Token.Punctuator,value:e,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(96===t)return{type:a.Token.Template,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(t)&&92!==t){var n=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var u=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(u)&&92!==u)++this.scanner.index;else{if(45!==u)break;++this.scanner.index}}var f=this.scanner.source.slice(n,this.scanner.index);return{type:i.Identifier,value:f,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}this.scanner.throwUnexpectedToken()},e.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.lineNumber=this.scanner.lineNumber,this.startMarker.lineStart=this.scanner.lineStart;var t=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.lineNumber=this.scanner.lineNumber,this.lastMarker.lineStart=this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(t)),t},e.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.lineNumber=this.scanner.lineNumber,this.startMarker.lineStart=this.scanner.lineStart;for(var t=this.scanner.index,e="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,e+=n,s.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.lineNumber=this.scanner.lineNumber,this.lastMarker.lineStart=this.scanner.lineStart;var r={type:i.Text,value:e,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index};return e.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(r)),r},e.prototype.peekJSXToken=function(){var t=this.scanner.index,e=this.scanner.lineNumber,n=this.scanner.lineStart;this.scanner.scanComments();var r=this.lexJSX();return this.scanner.index=t,this.scanner.lineNumber=e,this.scanner.lineStart=n,r},e.prototype.expectJSX=function(t){var e=this.nextJSXToken();e.type===a.Token.Punctuator&&e.value===t||this.throwUnexpectedToken(e)},e.prototype.matchJSX=function(t){var e=this.peekJSXToken();return e.type===a.Token.Punctuator&&e.value===t},e.prototype.parseJSXIdentifier=function(){var t=this.createJSXNode(),e=this.nextJSXToken();return e.type!==i.Identifier&&this.throwUnexpectedToken(e),this.finalize(t,new h.JSXIdentifier(e.value))},e.prototype.parseJSXElementName=function(){var t=this.createJSXNode(),e=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=e;this.expectJSX(":");var r=this.parseJSXIdentifier();e=this.finalize(t,new h.JSXNamespacedName(n,r))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=e;this.expectJSX(".");var o=this.parseJSXIdentifier();e=this.finalize(t,new h.JSXMemberExpression(i,o))}return e},e.prototype.parseJSXAttributeName=function(){var t,e=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=n;this.expectJSX(":");var i=this.parseJSXIdentifier();t=this.finalize(e,new h.JSXNamespacedName(r,i))}else t=n;return t},e.prototype.parseJSXStringLiteralAttribute=function(){var t=this.createJSXNode(),e=this.nextJSXToken();e.type!==a.Token.StringLiteral&&this.throwUnexpectedToken(e);var n=this.getTokenRaw(e);return this.finalize(t,new f.Literal(e.value,n))},e.prototype.parseJSXExpressionAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var e=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new h.JSXExpressionContainer(e))},e.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},e.prototype.parseJSXNameValueAttribute=function(){var t=this.createJSXNode(),e=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(t,new h.JSXAttribute(e,n))},e.prototype.parseJSXSpreadAttribute=function(){var t=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var e=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(t,new h.JSXSpreadAttribute(e))},e.prototype.parseJSXAttributes=function(){for(var t=[];!this.matchJSX("/")&&!this.matchJSX(">");){var e=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();t.push(e)}return t},e.prototype.parseJSXOpeningElement=function(){var t=this.createJSXNode();this.expectJSX("<");var e=this.parseJSXElementName(),n=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new h.JSXOpeningElement(e,r,n))},e.prototype.parseJSXBoundaryElement=function(){var t=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var e=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(t,new h.JSXClosingElement(e))}var n=this.parseJSXElementName(),r=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(t,new h.JSXOpeningElement(n,i,r))},e.prototype.parseJSXEmptyExpression=function(){var t=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.lineNumber=this.scanner.lineNumber,this.lastMarker.lineStart=this.scanner.lineStart,this.finalize(t,new h.JSXEmptyExpression)},e.prototype.parseJSXExpressionContainer=function(){var t=this.createJSXNode();this.expectJSX("{");var e;return this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new h.JSXExpressionContainer(e))},e.prototype.parseJSXChildren=function(){for(var t=[];!this.scanner.eof();){var e=this.createJSXChildNode(),n=this.nextJSXText();if(n.start0))break;var s=this.finalize(t.node,new h.JSXElement(t.opening,t.children,t.closing));t=e.pop(),t.children.push(s)}}return t},e.prototype.parseJSXElement=function(){var t=this.createJSXNode(),e=this.parseJSXOpeningElement(),n=[],r=null;if(!e.selfClosing){var i=this.parseComplexJSXElement({node:t,opening:e,closing:r,children:n});n=i.children,r=i.closing}return this.finalize(t,new h.JSXElement(e,n,r))},e.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var t=this.parseJSXElement();return this.finishJSX(),t},e}(u.Parser);e.JSXParser=p},function(t,e){"use strict";e.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(t,e){"use strict";e.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(t,e,n){"use strict";var r=n(13),i=function(){function t(t){this.type=r.JSXSyntax.JSXClosingElement,this.name=t}return t}();e.JSXClosingElement=i;var o=function(){function t(t,e,n){this.type=r.JSXSyntax.JSXElement,this.openingElement=t,this.children=e,this.closingElement=n}return t}();e.JSXElement=o;var s=function(){function t(){this.type=r.JSXSyntax.JSXEmptyExpression}return t}();e.JSXEmptyExpression=s;var a=function(){function t(t){this.type=r.JSXSyntax.JSXExpressionContainer, +this.expression=t}return t}();e.JSXExpressionContainer=a;var u=function(){function t(t){this.type=r.JSXSyntax.JSXIdentifier,this.name=t}return t}();e.JSXIdentifier=u;var c=function(){function t(t,e){this.type=r.JSXSyntax.JSXMemberExpression,this.object=t,this.property=e}return t}();e.JSXMemberExpression=c;var l=function(){function t(t,e){this.type=r.JSXSyntax.JSXAttribute,this.name=t,this.value=e}return t}();e.JSXAttribute=l;var f=function(){function t(t,e){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=t,this.name=e}return t}();e.JSXNamespacedName=f;var h=function(){function t(t,e,n){this.type=r.JSXSyntax.JSXOpeningElement,this.name=t,this.selfClosing=e,this.attributes=n}return t}();e.JSXOpeningElement=h;var p=function(){function t(t){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=t}return t}();e.JSXSpreadAttribute=p;var d=function(){function t(t,e){this.type=r.JSXSyntax.JSXText,this.value=t,this.raw=e}return t}();e.JSXText=d},function(t,e,n){"use strict";var r=n(8),i=n(6),o=n(7),s=function(){function t(){this.values=[],this.curly=this.paren=-1}return t.prototype.beforeFunctionExpression=function(t){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(t)>=0},t.prototype.isRegexStart=function(){var t=this.values[this.values.length-1],e=null!==t;switch(t){case"this":case"]":e=!1;break;case")":var n=this.values[this.paren-1];e="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(e=!1,"function"===this.values[this.curly-3]){var r=this.values[this.curly-4];e=!!r&&!this.beforeFunctionExpression(r)}else if("function"===this.values[this.curly-4]){var i=this.values[this.curly-5];e=!i||!this.beforeFunctionExpression(i)}}return e},t.prototype.push=function(t){t.type===o.Token.Punctuator||t.type===o.Token.Keyword?("{"===t.value?this.curly=this.values.length:"("===t.value&&(this.paren=this.values.length),this.values.push(t.value)):this.values.push(null)},t}(),a=function(){function t(t,e){this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=!!e&&("boolean"==typeof e.tolerant&&e.tolerant),this.scanner=new r.Scanner(t,this.errorHandler),this.scanner.trackComment=!!e&&("boolean"==typeof e.comment&&e.comment),this.trackRange=!!e&&("boolean"==typeof e.range&&e.range),this.trackLoc=!!e&&("boolean"==typeof e.loc&&e.loc),this.buffer=[],this.reader=new s}return t.prototype.errors=function(){return this.errorHandler.errors},t.prototype.getNextToken=function(){if(0===this.buffer.length){var t=this.scanner.scanComments();if(this.scanner.trackComment)for(var e=0;e>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+f>=1?h/u:h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*v}},function(t,e,n){var r,i;!function(o){var s=!1;if(r=o,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i)),s=!0,t.exports=o(),s=!0,!s){var a=window.Cookies,u=window.Cookies=o();u.noConflict=function(){return window.Cookies=a,u}}}(function(){function t(){for(var t=0,e={};t1){if(o=t({path:"/"},r.defaults,o),"number"==typeof o.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():""; +try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(t){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var u="";for(var c in o)o[c]&&(u+="; "+c,o[c]!==!0&&(u+="="+o[c]));return document.cookie=e+"="+i+u}e||(s={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,h=0;hr&&" "!==t[d+1],d=o);else if(!l(s))return lt;v=v&&f(s)}u=u||p&&o-d-1>r&&" "!==t[d+1]}return a||u?" "===t[0]&&n>9?lt:u?ct:ut:v&&!i(t)?st:at}function d(t,e,n,r){t.dump=function(){function i(e){return u(t,e)}if(0===e.length)return"''";if(!t.noCompatMode&&ot.indexOf(e)!==-1)return"'"+e+"'";var o=t.indent*Math.max(1,n),a=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),c=r||t.flowLevel>-1&&n>=t.flowLevel;switch(p(e,c,t.indent,a,i)){case st:return e;case at:return"'"+e.replace(/'/g,"''")+"'";case ut:return"|"+v(e,t.indent)+g(s(e,o));case ct:return">"+v(e,t.indent)+g(s(y(e,a),o));case lt:return'"'+x(e,a)+'"';default:throw new O("impossible error: invalid scalar style")}}()}function v(t,e){var n=" "===t[0]?String(e):"",r="\n"===t[t.length-1],i=r&&("\n"===t[t.length-2]||"\n"===t),o=i?"+":r?"":"-";return n+o+"\n"}function g(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function y(t,e){for(var n,r,i=/(\n+)([^\n]*)/g,o=function(){var n=t.indexOf("\n");return n=n!==-1?n:t.length,i.lastIndex=n,m(t.slice(0,n),e)}(),s="\n"===t[0]||" "===t[0];r=i.exec(t);){var a=r[1],u=r[2];n=" "===u[0],o+=a+(s||n||""===u?"":"\n")+m(u,e),s=n}return o}function m(t,e){if(""===t||" "===t[0])return t;for(var n,r,i=/ [^ ]/g,o=0,s=0,a=0,u="";n=i.exec(t);)a=n.index,a-o>e&&(r=s>o?s:a,u+="\n"+t.slice(o,r),o=r+1),s=a;return u+="\n",u+=t.length-o>e&&s>o?t.slice(o,s)+"\n"+t.slice(s+1):t.slice(o),u.slice(1)}function x(t){for(var e,n,r="",o=0;o1024&&(a+="? "),a+=t.dump+": ",A(t,e,s,!1,!1)&&(a+=t.dump,u+=a));t.tag=c,t.dump="{"+u+"}"}function E(t,e,n,r){var i,o,s,u,c,l,f="",h=t.tag,p=Object.keys(n);if(t.sortKeys===!0)p.sort();else if("function"==typeof t.sortKeys)p.sort(t.sortKeys);else if(t.sortKeys)throw new O("sortKeys must be a boolean or a function");for(i=0,o=p.length;i1024,c&&(l+=t.dump&&M===t.dump.charCodeAt(0)?"?":"? "),l+=t.dump,c&&(l+=a(t,e)),A(t,e+1,u,!0,c)&&(l+=t.dump&&M===t.dump.charCodeAt(0)?":":": ",l+=t.dump,f+=l));t.tag=h,t.dump=f||"{}"}function D(t,e,n){var r,i,o,s,a,u;for(i=n?t.explicitTypes:t.implicitTypes,o=0,s=i.length;o tag resolver accepts not "'+u+'" style');r=a.represent[u](e,u)}t.dump=r}return!0}return!1}function A(t,e,n,r,i,o){t.tag=null,t.dump=n,D(t,n,!1)||D(t,n,!0);var s=P.call(t.dump);r&&(r=t.flowLevel<0||t.flowLevel>e);var a,u,c="[object Object]"===s||"[object Array]"===s;if(c&&(a=t.duplicates.indexOf(n),u=a!==-1),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(i=!1),u&&t.usedDuplicates[a])t.dump="*ref_"+a;else{if(c&&u&&!t.usedDuplicates[a]&&(t.usedDuplicates[a]=!0),"[object Object]"===s)r&&0!==Object.keys(t.dump).length?(E(t,e,t.dump,i),u&&(t.dump="&ref_"+a+t.dump)):(w(t,e,t.dump),u&&(t.dump="&ref_"+a+" "+t.dump));else if("[object Array]"===s)r&&0!==t.dump.length?(_(t,e,t.dump,i),u&&(t.dump="&ref_"+a+t.dump)):(b(t,e,t.dump),u&&(t.dump="&ref_"+a+" "+t.dump));else{if("[object String]"!==s){if(t.skipInvalid)return!1;throw new O("unacceptable kind of an object to dump "+s)}"?"!==t.tag&&d(t,t.dump,e,o)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function C(t,e){var n,r,i=[],o=[];for(S(t,i,o),n=0,r=o.length;n>10)+55296,(t-65536&1023)+56320)}function h(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||J,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function p(t,e){return new $(e,new z(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function d(t,e){throw p(t,e)}function v(t,e){t.onWarning&&t.onWarning.call(null,p(t,e))}function g(t,e,n,r){var i,o,s,a;if(e1&&(t.result+=U.repeat("\n",e-1))}function E(t,e,n){var a,u,c,l,f,h,p,d,v,y=t.kind,m=t.result;if(v=t.input.charCodeAt(t.position),o(v)||s(v)||35===v||38===v||42===v||33===v||124===v||62===v||39===v||34===v||37===v||64===v||96===v)return!1;if((63===v||45===v)&&(u=t.input.charCodeAt(t.position+1),o(u)||n&&s(u)))return!1;for(t.kind="scalar",t.result="",c=l=t.position,f=!1;0!==v;){if(58===v){if(u=t.input.charCodeAt(t.position+1),o(u)||n&&s(u))break}else if(35===v){if(a=t.input.charCodeAt(t.position-1),o(a))break}else{if(t.position===t.lineStart&&_(t)||n&&s(v))break;if(r(v)){if(h=t.line,p=t.lineStart,d=t.lineIndent,b(t,!1,-1),t.lineIndent>=e){f=!0,v=t.input.charCodeAt(t.position);continue}t.position=l,t.line=h,t.lineStart=p,t.lineIndent=d;break}}f&&(g(t,c,l,!1),w(t,t.line-h),c=l=t.position,f=!1),i(v)||(l=t.position+1),v=t.input.charCodeAt(++t.position)}return g(t,c,l,!1),!!t.result||(t.kind=y,t.result=m,!1)}function D(t,e){var n,i,o;if(n=t.input.charCodeAt(t.position),39!==n)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(g(t,i,t.position,!0),n=t.input.charCodeAt(++t.position),39!==n)return!0;i=t.position,t.position++,o=t.position}else r(n)?(g(t,i,o,!0),w(t,b(t,!1,e)),i=o=t.position):t.position===t.lineStart&&_(t)?d(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);d(t,"unexpected end of the stream within a single quoted scalar")}function A(t,e){var n,i,o,s,c,l;if(l=t.input.charCodeAt(t.position),34!==l)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(l=t.input.charCodeAt(t.position));){if(34===l)return g(t,n,t.position,!0),t.position++,!0;if(92===l){if(g(t,n,t.position,!0),l=t.input.charCodeAt(++t.position),r(l))b(t,!1,e);else if(l<256&&it[l])t.result+=ot[l],t.position++;else if((c=u(l))>0){for(o=c,s=0;o>0;o--)l=t.input.charCodeAt(++t.position),(c=a(l))>=0?s=(s<<4)+c:d(t,"expected hexadecimal character");t.result+=f(s),t.position++}else d(t,"unknown escape sequence");n=i=t.position}else r(l)?(g(t,n,i,!0),w(t,b(t,!1,e)),n=i=t.position):t.position===t.lineStart&&_(t)?d(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}d(t,"unexpected end of the stream within a double quoted scalar")}function C(t,e){var n,r,i,s,a,u,c,l,f,h,p,v=!0,g=t.tag,y=t.anchor,x={};if(p=t.input.charCodeAt(t.position),91===p)s=93,c=!1,r=[];else{if(123!==p)return!1;s=125,c=!0,r={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=r),p=t.input.charCodeAt(++t.position);0!==p;){if(b(t,!0,e),p=t.input.charCodeAt(t.position),p===s)return t.position++,t.tag=g,t.anchor=y,t.kind=c?"mapping":"sequence",t.result=r,!0;v||d(t,"missed comma between flow collection entries"),f=l=h=null,a=u=!1,63===p&&(i=t.input.charCodeAt(t.position+1),o(i)&&(a=u=!0,t.position++,b(t,!0,e))),n=t.line,B(t,e,H,!1,!0),f=t.tag,l=t.result,b(t,!0,e),p=t.input.charCodeAt(t.position),!u&&t.line!==n||58!==p||(a=!0,p=t.input.charCodeAt(++t.position),b(t,!0,e),B(t,e,H,!1,!0),h=t.result),c?m(t,r,x,f,l,h):a?r.push(m(t,null,x,f,l,h)):r.push(l),b(t,!0,e),p=t.input.charCodeAt(t.position),44===p?(v=!0,p=t.input.charCodeAt(++t.position)):v=!1}d(t,"unexpected end of the stream within a flow collection")}function S(t,e){var n,o,s,a,u=Y,l=!1,f=!1,h=e,p=0,v=!1;if(a=t.input.charCodeAt(t.position),124===a)o=!1;else{if(62!==a)return!1;o=!0}for(t.kind="scalar",t.result="";0!==a;)if(a=t.input.charCodeAt(++t.position),43===a||45===a)Y===u?u=43===a?Z:V:d(t,"repeat of a chomping mode identifier");else{if(!((s=c(a))>=0))break;0===s?d(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):f?d(t,"repeat of an indentation width identifier"):(h=e+s-1,f=!0)}if(i(a)){do a=t.input.charCodeAt(++t.position);while(i(a));if(35===a)do a=t.input.charCodeAt(++t.position);while(!r(a)&&0!==a)}for(;0!==a;){for(x(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!f||t.lineIndenth&&(h=t.lineIndent),r(a))p++;else{if(t.lineIndente)&&0!==i)d(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(B(t,e,G,!0,s)&&(x?g=t.result:y=t.result),x||(m(t,h,p,v,g,y,a,u),v=g=y=null),b(t,!0,-1),c=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==c)d(t,"bad indentation of a mapping entry");else if(t.lineIndente?p=1:t.lineIndent===e?p=0:t.lineIndente?p=1:t.lineIndent===e?p=0:t.lineIndent tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result)?(t.result=l.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):d(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):d(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||g}function P(t){var e,n,s,a,u=t.position,c=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(a=t.input.charCodeAt(t.position))&&(b(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==a));){for(c=!0,a=t.input.charCodeAt(++t.position),e=t.position;0!==a&&!o(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(e,t.position),s=[],n.length<1&&d(t,"directive name must not be less than one character in length");0!==a;){for(;i(a);)a=t.input.charCodeAt(++t.position);if(35===a){do a=t.input.charCodeAt(++t.position);while(0!==a&&!r(a));break}if(r(a))break;for(e=t.position;0!==a&&!o(a);)a=t.input.charCodeAt(++t.position);s.push(t.input.slice(e,t.position))}0!==a&&x(t),X.call(at,n)?at[n](t,n,s):v(t,'unknown document directive "'+n+'"')}return b(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,b(t,!0,-1)):c&&d(t,"directives end mark is expected"),B(t,t.lineIndent-1,G,!1,!0),b(t,!0,-1),t.checkLineBreaks&&tt.test(t.input.slice(u,t.position))&&v(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&_(t)?void(46===t.input.charCodeAt(t.position)&&(t.position+=3,b(t,!0,-1))):void(t.position0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(r-1))===-1;)if(r-=1,this.position-r>e/2-1){n=" ... ",r+=5;break}for(o="",s=this.position;se/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(r,s),i.repeat(" ",t)+n+a+o+"\n"+i.repeat(" ",t+this.position-r+n.length)+"^"},r.prototype.toString=function(t){var e,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet(),e&&(n+=":\n"+e)),n},t.exports=r},function(t,e,n){function r(t){if(null===t)return!1;var e,n,r=0,i=t.length,o=c;for(n=0;n64)){if(e<0)return!1;r+=6}return r%8===0}function i(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,o=c,s=0,u=[];for(e=0;e>16&255),u.push(s>>8&255),u.push(255&s)),s=s<<6|o.indexOf(r.charAt(e));return n=i%4*6,0===n?(u.push(s>>16&255),u.push(s>>8&255),u.push(255&s)):18===n?(u.push(s>>10&255),u.push(s>>2&255)):12===n&&u.push(s>>4&255),a?a.from?a.from(u):new a(u):u}function o(t){var e,n,r="",i=0,o=t.length,s=c;for(e=0;e>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]),i=(i<<8)+t[e];return n=o%3,0===n?(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]):2===n?(r+=s[i>>10&63],r+=s[i>>4&63],r+=s[i<<2&63],r+=s[64]):1===n&&(r+=s[i>>2&63],r+=s[i<<4&63],r+=s[64],r+=s[64]),r}function s(t){return a&&a.isBuffer(t)}var a;try{a=n(105).Buffer}catch(t){}var u=n(9),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new u("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:s,represent:o})},function(t,e,n){"use strict";function r(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function i(t){return"true"===t||"True"===t||"TRUE"===t}function o(t){return"[object Boolean]"===Object.prototype.toString.call(t)}var s=n(9);t.exports=new s("tag:yaml.org,2002:bool",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){return null!==t&&!(!c.test(t)||"_"===t[t.length-1])}function i(t){var e,n,r,i;return e=t.replace(/_/g,"").toLowerCase(),n="-"===e[0]?-1:1,i=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(t){i.unshift(parseFloat(t,10))}),e=0,r=1,i.forEach(function(t){e+=t*r,r*=60}),n*e):n*parseFloat(e,10)}function o(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(t))return"-0.0";return n=t.toString(10),l.test(n)?n.replace("e",".e"):n}function s(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!==0||a.isNegativeZero(t))}var a=n(59),u=n(9),c=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),l=/^[-+]?[0-9]+e/;t.exports=new u("tag:yaml.org,2002:float",{kind:"scalar",resolve:r,construct:i,predicate:s,represent:o,defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function i(t){return 48<=t&&t<=55}function o(t){return 48<=t&&t<=57}function s(t){if(null===t)return!1;var e,n=t.length,s=0,a=!1;if(!n)return!1;if(e=t[s],"-"!==e&&"+"!==e||(e=t[++s]),"0"===e){if(s+1===n)return!0;if(e=t[++s],"b"===e){for(s++;s3)return!1;if("/"!==e[e.length-r.length-1])return!1}return!0}function i(t){var e=t,n=/\/([gim]*)$/.exec(t),r="";return"/"===e[0]&&(n&&(r=n[1]),e=e.slice(1,e.length-r.length-1)),new RegExp(e,r)}function o(t){ +var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}function s(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var a=n(9);t.exports=new a("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:r,construct:i,predicate:s,represent:o})},function(t,e,n){"use strict";function r(){return!0}function i(){}function o(){return""}function s(t){return"undefined"==typeof t}var a=n(9);t.exports=new a("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:r,construct:i,predicate:s,represent:o})},function(t,e,n){"use strict";var r=n(9);t.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},function(t,e,n){"use strict";function r(t){return"<<"===t||null===t}var i=n(9);t.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:r})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function i(){return null}function o(t){return null===t}var s=n(9);t.exports=new s("tag:yaml.org,2002:null",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e,n,r,i,o,u=[],c=t;for(e=0,n=c.length;ei?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=l){var g=e?null:u(t);if(g)return c(g);p=!1,f=a,v=new i}else v=e?[]:d;t:for(;++r1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(i--,s):void 0,a&&o(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),e=Object(e);++r":">",'"':""","'":"'"},o=r(i);t.exports=o},function(t,e,n){function r(t){return s(o(t,void 0,i),t+"")}var i=n(604),o=n(227),s=n(151);t.exports=r},function(t,e,n){function r(t){for(var e=t.name+"",n=i[e],r=s.call(i,e)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==t)return o.name}return e}var i=n(587),o=Object.prototype,s=o.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=s.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[u]=n:delete t[u]),i}var i=n(61),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,u=i?i.toStringTag:void 0;t.exports=r},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e){function n(t){var e=t.match(r);return e?e[1].split(i):[]}var r=/\{\n\/\* \[wrapped with (.+)\] \*/,i=/,? & /;t.exports=n},function(t,e,n){function r(t,e,n){e=i(e,t);for(var r=-1,l=e.length,f=!1;++r1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(r,"{\n/* [wrapped with "+e+"] */\n")}var r=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=n},function(t,e,n){function r(t){return s(t)||o(t)||!!(a&&t&&t[a])}var i=n(61),o=n(99),s=n(19),a=i?i.isConcatSpreadable:void 0;t.exports=r},function(t,e,n){function r(t,e,n){if(!a(n))return!1;var r=typeof e;return!!("number"==r?o(n)&&s(e,n.length):"string"==r&&e in n)&&i(n[e],t)}var i=n(97),o=n(42),s=n(92),a=n(37);t.exports=r},function(t,e,n){function r(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(a.test(t)||!s.test(t)||null!=e&&t in Object(e))}var i=n(19),o=n(102),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){var e=s(t),n=a[e];if("function"!=typeof n||!(e in i.prototype))return!1;if(t===n)return!0;var r=o(n);return!!r&&t===r[0]}var i=n(135),o=n(221),s=n(551),a=n(624);t.exports=r},function(t,e,n){function r(t){return!!o&&o in t}var i=n(536),o=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():s.call(e,n,1),--this.size,!0}var i=n(88),o=Array.prototype,s=o.splice;t.exports=r},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}var i=n(88);t.exports=r},function(t,e,n){function r(t){return i(this.__data__,t)>-1}var i=n(88);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(88);t.exports=r},function(t,e,n){function r(){this.size=0,this.__data__={hash:new i,map:new(s||o),string:new i}}var i=n(496),o=n(87),s=n(136);t.exports=r},function(t,e,n){function r(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}var i=n(91);t.exports=r},function(t,e,n){function r(t){return i(this,t).get(t)}var i=n(91);t.exports=r},function(t,e,n){function r(t){return i(this,t).has(t)}var i=n(91);t.exports=r},function(t,e,n){function r(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var i=n(91);t.exports=r},function(t,e,n){function r(t){var e=i(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}var i=n(615),o=500;t.exports=r},function(t,e,n){function r(t,e){var n=t[1],r=e[1],v=n|r,g=v<(u|c|h),y=r==h&&n==f||r==h&&n==p&&t[7].length<=e[8]||r==(h|p)&&e[7].length<=e[8]&&n==f;if(!g&&!y)return t;r&u&&(t[2]=e[2],v|=n&u?0:l);var m=e[3];if(m){var x=t[3];t[3]=x?i(x,m,e[4]):m,t[4]=x?s(t[3],a):e[4]}return m=e[5],m&&(x=t[5],t[5]=x?o(x,m,e[6]):m,t[6]=x?s(t[5],a):e[6]),m=e[7],m&&(t[7]=m),r&h&&(t[8]=null==t[8]?e[8]:d(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=v,t}var i=n(212),o=n(213),s=n(94),a="__lodash_placeholder__",u=1,c=2,l=4,f=8,h=128,p=256,d=Math.min;t.exports=r},function(t,e,n){var r=n(226),i=r(Object.keys,Object);t.exports=i},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e){function n(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=n},function(t,e,n){function r(t,e){return e.length<2?t:i(t,o(e,0,-1))}var i=n(509),o=n(521);t.exports=r},function(t,e){var n={};t.exports=n},function(t,e,n){function r(t,e){for(var n=t.length,r=s(e.length,n),a=i(t);r--;){var u=e[r];t[r]=o(u,n)?a[u]:void 0}return t}var i=n(146),o=n(92),s=Math.min;t.exports=r},function(t,e){function n(t){return this.__data__.set(t,r),this}var r="__lodash_hash_undefined__";t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(){this.__data__=new i,this.size=0}var i=n(87);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var i=n(154),o="Expected a function";t.exports=r},function(t,e,n){var r=n(144),i=n(545),o=n(147),s=n(94),a=1,u=32,c=r(function(t,e,n){var r=a;if(n.length){var l=s(n,o(c));r|=u}return i(t,r,e,n,l)});c.placeholder={},t.exports=c},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e,n){function r(t){return t=o(t),t&&a.test(t)?t.replace(s,i):t}var i=n(549),o=n(155),s=/[&<>"']/g,a=RegExp(s.source);t.exports=r},function(t,e,n){function r(t){var e=null==t?0:t.length;return e?i(t,1):[]}var i=n(203);t.exports=r},function(t,e,n){function r(t,e){var n=a(t)?i:o;return n(t,s(e))}var i=n(139),o=n(506),s=n(211),a=n(19);t.exports=r},function(t,e,n){function r(t,e){return t&&i(t,o(e))}var i=n(204),o=n(211);t.exports=r},function(t,e,n){function r(t,e){return null!=t&&o(t,e,i)}var i=n(510),o=n(555);t.exports=r},function(t,e,n){function r(t,e,n,r){t=o(t)?t:u(t),n=n&&!r?a(n):0;var l=t.length;return n<0&&(n=c(l+n,0)),s(t)?n<=l&&t.indexOf(e,n)>-1:!!l&&i(t,e,n)>-1}var i=n(206),o=n(42),s=n(233),a=n(154),u=n(623),c=Math.max;t.exports=r},function(t,e,n){function r(t){return o(t)&&i(t)}var i=n(42),o=n(30);t.exports=r},function(t,e,n){var r=n(512),i=n(209),o=n(225),s=o&&o.isDate,a=s?i(s):r;t.exports=a},function(t,e,n){function r(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||f(t)||s(t)))return!t.length;var e=o(t);if(e==h||e==p)return!t.size;if(l(t))return!i(t).length;for(var n in t)if(v.call(t,n))return!1;return!0}var i=n(207),o=n(150),s=n(99),a=n(19),u=n(42),c=n(100),l=n(70),f=n(153),h="[object Map]",p="[object Set]",d=Object.prototype,v=d.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){return i(t,e)}var i=n(513);t.exports=r},function(t,e,n){function r(t){if(!s(t)||i(t)!=a)return!1;var e=o(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}var i=n(41),o=n(148),s=n(30),a="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=l.call(Object);t.exports=r},function(t,e){function n(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}t.exports=n},function(t,e,n){function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(r.Cache||i),n}var i=n(137),o="Expected a function";r.Cache=i,t.exports=r},function(t,e,n){var r=n(140),i=n(505),o=n(525),s=n(69),a=n(62),u=n(546),c=n(550),l=n(220),f=1,h=2,p=4,d=c(function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,function(e){return e=s(e,t),c||(c=e.length>1),e}),a(t,l(t),n),c&&(n=i(n,f|h|p,u));for(var d=e.length;d--;)o(n,e[d]);return n});t.exports=d},function(t,e,n){function r(t){return i(2,t)}var i=n(600);t.exports=r},function(t,e,n){function r(t,e,n){e=i(e,t);var r=-1,a=e.length;for(a||(a=1,t=void 0);++r100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,a,"minute")||o(t,s,"second")||t+" ms"}function o(t,e,n){if(!(t0)return n(t);if("number"===o&&isNaN(t)===!1)return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e){(function(e){!function(e){"use strict";function n(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,s=Object.create(o.prototype),a=new p(r||[]);return s._invoke=c(t,n,a),s}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function s(){}function a(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){function n(e,i,o,s){var a=r(t[e],t,i);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&m.call(c,"__await")?Promise.resolve(c.__await).then(function(t){n("next",t,o,s)},function(t){n("throw",t,o,s)}):Promise.resolve(c).then(function(t){u.value=t,o(u)},s)}s(a.arg); +}function i(t,e){function r(){return new Promise(function(r,i){n(t,e,r,i)})}return o=o?o.then(r,r):r()}"object"==typeof e.process&&e.process.domain&&(n=e.process.domain.bind(n));var o;this._invoke=i}function c(t,e,n){var i=A;return function(o,s){if(i===S)throw new Error("Generator is already running");if(i===k){if("throw"===o)throw s;return v()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var u=l(a,n);if(u){if(u===T)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===A)throw i=k,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=S;var c=r(t,e,n);if("normal"===c.type){if(i=n.done?k:C,c.arg===T)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=k,n.method="throw",n.arg=c.arg)}}}function l(t,e){var n=t.iterator[e.method];if(n===g){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=g,l(t,e),"throw"===e.method))return T;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var i=r(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,T;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=g),e.delegate=null,T):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,T)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function d(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var s=m.call(i,"catchLoc"),a=m.call(i,"finallyLoc");if(s&&a){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),T}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:d(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=g),T}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}())},function(t,e,n){var r,i,o;/*! + * Select2 4.0.3 + * https://select2.github.io + * + * Released under the MIT license + * https://github.com/select2/select2/blob/master/LICENSE.md + */ +!function(s){i=[n(20)],r=s,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var e;return function(){if(!e||!e.requirejs){e?n=e:e={};/** + * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. + * Available via the MIT or new BSD license. + * see: http://github.com/jrburke/almond for details + */ +var t,n,r;!function(e){function i(t,e){return b.call(t,e)}function o(t,e){var n,r,i,o,s,a,u,c,l,f,h,p=e&&e.split("/"),d=m.map,v=d&&d["*"]||{};if(t&&"."===t.charAt(0))if(e){for(t=t.split("/"),s=t.length-1,m.nodeIdCompat&&w.test(t[s])&&(t[s]=t[s].replace(w,"")),t=p.slice(0,p.length-1).concat(t),l=0;l0&&(t.splice(l-1,2),l-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((p||v)&&d){for(n=t.split("/"),l=n.length;l>0;l-=1){if(r=n.slice(0,l).join("/"),p)for(f=p.length;f>0;f-=1)if(i=d[p.slice(0,f).join("/")],i&&(i=i[r])){o=i,a=l;break}if(o)break;!u&&v&&v[r]&&(u=v[r],c=l)}!o&&u&&(o=u,a=c),o&&(n.splice(0,a,o),t=n.join("/"))}return t}function s(t,n){return function(){var r=_.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),p.apply(e,r.concat([t,n]))}}function a(t){return function(e){return o(e,t)}}function u(t){return function(e){g[t]=e}}function c(t){if(i(y,t)){var n=y[t];delete y[t],x[t]=!0,h.apply(e,n)}if(!i(g,t)&&!i(x,t))throw new Error("No "+t);return g[t]}function l(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function f(t){return function(){return m&&m.config&&m.config[t]||{}}}var h,p,d,v,g={},y={},m={},x={},b=Object.prototype.hasOwnProperty,_=[].slice,w=/\.js$/;d=function(t,e){var n,r=l(t),i=r[0];return t=r[1],i&&(i=o(i,e),n=c(i)),i?t=n&&n.normalize?n.normalize(t,a(e)):o(t,e):(t=o(t,e),r=l(t),i=r[0],t=r[1],i&&(n=c(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:n}},v={require:function(t){return s(t)},exports:function(t){var e=g[t];return"undefined"!=typeof e?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:f(t)}}},h=function(t,n,r,o){var a,l,f,h,p,m,b=[],_=typeof r;if(o=o||t,"undefined"===_||"function"===_){for(n=!n.length&&r.length?["require","exports","module"]:n,p=0;p0&&(e.call(arguments,t.prototype.constructor),i=n.prototype.constructor),i.apply(this,arguments)}function i(){this.constructor=r}var o=e(n),s=e(t);n.displayName=t.displayName,r.prototype=new i;for(var a=0;a":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},n.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var r=t();t.map(n,function(t){r=r.add(t)}),n=r}e.append(n)},n}),e.define("select2/results",["jquery","./utils"],function(t,e){function n(t,e,r){this.$element=t,this.data=r,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('
    ');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=t('
  • '),i=this.options.get("translations").get(e.message);r.append(n(i(e.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null==t.results||0===t.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));t.results=this.sort(t.results);for(var n=0;n0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var e=this;this.data.current(function(n){var r=t.map(n,function(t){return t.id.toString()}),i=e.$results.find(".select2-results__option[aria-selected]");i.each(function(){var e=t(this),n=t.data(this,"data"),i=""+n.id;null!=n.element&&n.element.selected||null==n.element&&t.inArray(i,r)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},n.prototype.showLoading=function(t){this.hideLoading();var e=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:e(t)},r=this.option(n);r.className+=" loading-results",this.$results.prepend(r)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(e){var n=document.createElement("li");n.className="select2-results__option";var r={role:"treeitem","aria-selected":"false"};e.disabled&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==e.id&&delete r["aria-selected"],null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(r.role="group",r["aria-label"]=e.text,delete r["aria-selected"]);for(var i in r){var o=r[i];n.setAttribute(i,o)}if(e.children){var s=t(n),a=document.createElement("strong");a.className="select2-results__group";t(a);this.template(e,a);for(var u=[],c=0;c",{class:"select2-results__options select2-results__options--nested"});h.append(u),s.append(a),s.append(h)}else this.template(e,n);return t.data(n,"data",e),n},n.prototype.bind=function(e,n){var r=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",function(t){r.clear(),r.append(t.data),e.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),e.on("results:append",function(t){r.append(t.data),e.isOpen()&&r.setClasses()}),e.on("query",function(t){r.hideMessages(),r.showLoading(t)}),e.on("select",function(){e.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),e.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),e.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=r.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top,a=o.offset().top,u=r.$results.scrollTop()+(a-s);0===i?r.$results.scrollTop(0):a-s<0&&r.$results.scrollTop(u)}}),e.on("results:next",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t),i=n+1;if(!(i>=e.length)){var o=e.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top+r.$results.outerHeight(!1),a=o.offset().top+o.outerHeight(!1),u=r.$results.scrollTop()+a-s;0===i?r.$results.scrollTop(0):a>s&&r.$results.scrollTop(u)}}),e.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),e.on("results:message",function(t){r.displayMessage(t)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var n=t(this),i=n.data("data");return"true"===n.attr("aria-selected")?void(r.options.get("multiple")?r.trigger("unselect",{originalEvent:e,data:i}):r.trigger("close",{})):void r.trigger("select",{originalEvent:e,data:i})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var n=t(this).data("data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:t(this)})})},n.prototype.getHighlightedResults=function(){var t=this.$results.find(".select2-results__option--highlighted");return t},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]"),n=e.index(t),r=this.$results.offset().top,i=t.offset().top,o=this.$results.scrollTop()+(i-r),s=i-r;o-=2*t.outerHeight(!1),n<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(e,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=r(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=i(o):t(n).append(o)},n}),e.define("select2/keys",[],function(){var t={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return t}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,e.Observable),r.prototype.render=function(){var e=t('');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},r.prototype.bind=function(t,e){var r=this,i=(t.id+"-container",t.id+"-results");this.container=t,this.$selection.on("focus",function(t){r.trigger("focus",t)}),this.$selection.on("blur",function(t){r._handleBlur(t)}),this.$selection.on("keydown",function(t){r.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){r.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){r.update(t.data)}),t.on("open",function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(t)}),t.on("close",function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),r._detachCloseHandler(t)}),t.on("enable",function(){r.$selection.attr("tabindex",r._tabindex)}),t.on("disable",function(){r.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(e){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)},1)},r.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,function(e){var n=t(e.target),r=n.closest(".select2"),i=t(".select2.select2-container--open");i.each(function(){var e=t(this);if(this!=r[0]){var n=e.data("element");n.select2("close")}})})},r.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},r.prototype.position=function(t,e){var n=e.find(".selection");n.append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html(''),t},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(t){n.update(t.data)})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(t,e){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(t,e))},i.prototype.selectionContainer=function(){return t("")},i.prototype.update=function(t){if(0===t.length)return void this.clear();var e=t[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(e,n);n.empty().append(r),n.prop("title",e.title||e.text)},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,e,n){function r(t,e){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('
      '),t},r.prototype.bind=function(e,n){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){i.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.options.get("disabled")){var n=t(this),r=n.parent(),o=r.data("data");i.trigger("unselect",{originalEvent:e,data:o})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(t,e){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(t,e))},r.prototype.selectionContainer=function(){var e=t('
    • ×
    • ');return e},r.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],r=0;r1;if(r||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys"],function(t,e){function n(){}return n.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){r._handleClear(t)}),e.on("keypress",function(t){r._handleKeyboardClear(t,e)})},n.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();for(var r=n.data("data"),i=0;i0||0===n.length)){var r=t('×');r.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,n){function r(t,e,n){t.call(this,e,n)}return r.prototype.render=function(e){var n=t('');this.$searchContainer=n,this.$search=n.find("input");var r=e.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("open",function(){i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(t){i.$search.trigger("focus")}),e.on("results:focus",function(t){i.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){i.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){i._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented();var e=t.which;if(e===n.BACKSPACE&&""===i.$search.val()){var r=i.$searchContainer.prev(".select2-selection__choice");if(r.length>0){var o=r.data("data");i.searchRemoveChoice(o),t.preventDefault()}}});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){return s?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(s&&"input"===t.type)return void i.$selection.off("input.search input.searchcheck");var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&i.handleSearch(t)})},r.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},r.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";if(""!==this.$search.attr("placeholder"))t=this.$selection.find(".select2-selection__rendered").innerWidth();else{var e=this.$search.val().length+1;t=.75*e+"em"}this.$search.css("width",t)},r}),e.define("select2/selection/eventRelay",["jquery"],function(t){function e(){}return e.prototype.bind=function(e,n,r){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];e.call(this,n,r),n.on("*",function(e,n){if(t.inArray(e,o)!==-1){n=n||{};var r=t.Event("select2:"+e,{params:n});i.$element.trigger(r),t.inArray(e,s)!==-1&&(n.prevented=r.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var r=e(t);n._cache[t]=r}return new n(n._cache[t])},n}),e.define("select2/diacritics",[],function(){var t={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return t}),e.define("select2/data/base",["../utils"],function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var r=e.id+"-result-";return r+=t.generateChars(4),r+=null!=n.id?"-"+n.id.toString():"-"+t.generateChars(4)},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,t),r.prototype.current=function(t){var e=[],r=this;this.$element.find(":selected").each(function(){var t=n(this),i=r.item(t);e.push(i)}),t(e)},r.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(r){var i=[];t=[t],t.push.apply(t,r);for(var o=0;o=0){var l=o.filter(r(c)),f=this.item(l),h=n.extend(!0,{},c,f),p=this.option(h);l.replaceWith(p)}else{var d=this.option(c);if(c.children){var v=this.convertToOptions(c.children);e.appendMany(d,v)}a.push(d)}}return a},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,n){function r(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,t,e)}return e.Extend(r,t),r.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,r){var i=n.ajax(t);return i.then(e),i.fail(r),i}};return n.extend({},e,t,!0)},r.prototype.processResults=function(t){return t},r.prototype.query=function(t,e){function r(){var r=o.transport(o,function(r){var o=i.processResults(r,t);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)},function(){r.status&&"0"===r.status||i.trigger("results:message",{message:"errorLoading"})});i._request=r}var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},r}),e.define("select2/data/tags",["jquery"],function(t){function e(e,n,r){var i=r.get("tags"),o=r.get("createTag");void 0!==o&&(this.createTag=o);var s=r.get("insertTag");if(void 0!==s&&(this.insertTag=s),e.call(this,n,r),t.isArray(i))for(var a=0;a0&&e.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):void t.call(this,e,n)},t}),e.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){var r=this;this.current(function(i){var o=null!=i?i.length:0;return r.maximumSelectionLength>0&&o>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void t.call(r,e,n)})},t}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),r=t('');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),this.$search.on("keydown",function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(e){t(this).off("keyup")}),this.$search.on("keyup input",function(t){i.handleSearch(t)}),n.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),n.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),n.on("focus",function(){n.isOpen()&&i.$search.focus()}),n.on("results:all",function(t){if(null==t.query.term||""===t.query.term){var e=i.showSearch(t);e?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide")}})},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n}),e.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,r)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),r=e.length-1;r>=0;r--){var i=e[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},t}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function e(t,e,n,r){this.lastParams={},t.call(this,e,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),n.on("query",function(t){i.lastParams=t,i.loading=!0}),n.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",function(){var e=t.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var n=i.$results.offset().top+i.$results.outerHeight(!1),r=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1);n+50>=r&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('
    • '),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,e){function n(e,n,r){this.$dropdownParent=r.get("dropdownParent")||t(document.body),e.call(this,n,r)}return n.prototype.bind=function(t,e,n){var r=this,i=!1;t.call(this,e,n),e.on("open",function(){r._showDropdown(),r._attachPositioningHandler(e),i||(i=!0,e.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),e.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}))}),e.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t(""),r=e.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var i=this,o="scroll.select2."+r.id,s="resize.select2."+r.id,a="orientationchange.select2."+r.id,u=this.$container.parents().filter(e.hasScroll);u.each(function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),u.on(o,function(e){var n=t(this).data("select2-scroll-position");t(this).scrollTop(n.y)}),t(window).on(o+" "+s+" "+a,function(t){i._positionDropdown(),i._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,a=this.$container.parents().filter(e.hasScroll);a.off(i),t(window).off(i+" "+o+" "+s)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var a={height:this.$dropdown.outerHeight(!1)},u={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},c=u.topo.bottom+a.height,f={left:o.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p=h.offset();f.top-=p.top,f.left-=p.left,n||r||(i="below"),l||!c||n?!c&&l&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(f.top=s.top-p.top-a.height),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(f)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(e){for(var n=0,r=0;r0&&(f.dataAdapter=c.Decorate(f.dataAdapter,y)),f.maximumInputLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,m)),f.maximumSelectionLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,x)),f.tags&&(f.dataAdapter=c.Decorate(f.dataAdapter,v)),null==f.tokenSeparators&&null==f.tokenizer||(f.dataAdapter=c.Decorate(f.dataAdapter,g)),null!=f.query){var k=e(f.amdBase+"compat/query");f.dataAdapter=c.Decorate(f.dataAdapter,k)}if(null!=f.initSelection){var T=e(f.amdBase+"compat/initSelection");f.dataAdapter=c.Decorate(f.dataAdapter,T)}}if(null==f.resultsAdapter&&(f.resultsAdapter=n,null!=f.ajax&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,E)),null!=f.placeholder&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,w)),f.selectOnClose&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,C))),null==f.dropdownAdapter){if(f.multiple)f.dropdownAdapter=b;else{var F=c.Decorate(b,_);f.dropdownAdapter=F}if(0!==f.minimumResultsForSearch&&(f.dropdownAdapter=c.Decorate(f.dropdownAdapter,A)),f.closeOnSelect&&(f.dropdownAdapter=c.Decorate(f.dropdownAdapter,S)),null!=f.dropdownCssClass||null!=f.dropdownCss||null!=f.adaptDropdownCssClass){var O=e(f.amdBase+"compat/dropdownCss");f.dropdownAdapter=c.Decorate(f.dropdownAdapter,O)}f.dropdownAdapter=c.Decorate(f.dropdownAdapter,D)}if(null==f.selectionAdapter){if(f.multiple?f.selectionAdapter=i:f.selectionAdapter=r,null!=f.placeholder&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,o)),f.allowClear&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,s)),f.multiple&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,a)),null!=f.containerCssClass||null!=f.containerCss||null!=f.adaptContainerCssClass){var I=e(f.amdBase+"compat/containerCss");f.selectionAdapter=c.Decorate(f.selectionAdapter,I)}f.selectionAdapter=c.Decorate(f.selectionAdapter,u)}if("string"==typeof f.language)if(f.language.indexOf("-")>0){var B=f.language.split("-"),P=B[0];f.language=[f.language,P]}else f.language=[f.language];if(t.isArray(f.language)){var j=new l;f.language.push("en");for(var N=f.language,M=0;M0){for(var o=t.extend(!0,{},i),s=i.children.length-1;s>=0;s--){var a=i.children[s],u=n(r,a);null==u&&o.children.splice(s,1)}return o.children.length>0?o:n(r,o)}var c=e(i.text).toUpperCase(),l=e(r.term).toUpperCase();return c.indexOf(l)>-1?i:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:k,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},T.prototype.set=function(e,n){var r=t.camelCase(e),i={};i[r]=n;var o=c._convertData(i);t.extend(this.defaults,o)};var F=new T;return F}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(t,e,n,r){function i(e,i){if(this.options=e,null!=i&&this.fromElement(i),this.options=n.apply(this.options),i&&i.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,o)}}return i.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var i={};i=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].subject?e.extend(!0,{},t[0].subject,t.data()):t.data();var o=e.extend(!0,{},i);o=r._convertData(o);for(var s in o)e.inArray(s,n)>-1||(e.isPlainObject(this.options[s])?e.extend(this.options[s],o[s]):this.options[s]=o[s]);return this},i.prototype.get=function(t){return this.options[t]},i.prototype.set=function(t,e){this.options[t]=e},i}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,e,n,r){var i=function(t,n){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),i.__super__.constructor.call(this);var r=t.attr("tabindex")||0;t.data("old-tabindex",r),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get("selectionAdapter");this.selection=new a(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var u=this.options.get("dropdownAdapter");this.dropdown=new u(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){l.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(t){var e="";return e=null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4),e=e.replace(/(:|\.|\[|\]|,)/g,""),e="select2-"+e},i.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},i.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var r=this._resolveWidth(t,"style");return null!=r?r:this._resolveWidth(t,"element")}if("element"==e){var i=t.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,u=s.length;a=1)return l[1]}return null}return e},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(n){t.each(n,e._syncA),t.each(n,e._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},i.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(r,i){t.inArray(r,n)===-1&&e.trigger(r,i)})},i.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(n){t.trigger("results:all",{data:n,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(n){t.trigger("results:append",{data:n,query:e})})}),this.on("keypress",function(e){var n=e.which;t.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&e.altKey?(t.close(),e.preventDefault()):n===r.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===r.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===r.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===r.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&e.altKey)&&(t.open(),e.preventDefault())})},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._syncSubtree=function(t,e){var n=!1,r=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&e.addedNodes.length>0)for(var i=0;i0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(t){r.trigger("selection:update",{data:t})})}},i.prototype.trigger=function(t,e){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in r){var o=r[t],s={prevented:!1,name:t,args:e};if(n.call(this,o,s),s.prevented)return void(e.prevented=!0)}n.call(this,t,e)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},i.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,function(t){return t.toString()})),this.$element.val(n).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")), +e.data("element",this.$element),e},i}),e.define("jquery-mousewheel",["jquery"],function(t){return t}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(t,e,n,r){if(null==t.fn.select2){var i=["open","close","destroy"];t.fn.select2=function(e){if(e=e||{},"object"==typeof e)return this.each(function(){var r=t.extend(!0,{},e);new n(t(this),r)}),this;if("string"==typeof e){var r,o=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=t(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),r=n[e].apply(n,o)}),t.inArray(e,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=r),n}),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})},function(t,e,n){var r;(function(t,i){!function(o){function s(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(e-=65536,i+=b(e>>>10&1023|55296),e=56320|1023&e),i+=b(e);return i}function u(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function c(t,e){return b(t>>e&63|128)}function l(t){if(0==(4294967168&t))return b(t);var e="";return 0==(4294965248&t)?e=b(t>>6&31|192):0==(4294901760&t)?(u(t),e=b(t>>12&15|224),e+=c(t,6)):0==(4292870144&t)&&(e=b(t>>18&7|240),e+=c(t,12),e+=c(t,6)),e+=b(63&t|128)}function f(t){for(var e,n=s(t),r=n.length,i=-1,o="";++i=m)throw Error("Invalid byte index");var t=255&y[x];if(x++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function p(){var t,e,n,r,i;if(x>m)throw Error("Invalid byte index");if(x==m)return!1;if(t=255&y[x],x++,0==(128&t))return t;if(192==(224&t)){if(e=h(),i=(31&t)<<6|e,i>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=h(),n=h(),i=(15&t)<<12|e<<6|n,i>=2048)return u(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=h(),n=h(),r=h(),i=(7&t)<<18|e<<12|n<<6|r,i>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}function d(t){y=s(t),m=y.length,x=0;for(var e,n=[];(e=p())!==!1;)n.push(e);return a(n)}var v="object"==typeof e&&e,g=("object"==typeof t&&t&&t.exports==v&&t,"object"==typeof i&&i);g.global!==g&&g.window!==g||(o=g);var y,m,x,b=String.fromCharCode,_={version:"2.1.2",encode:f,decode:d};r=function(){return _}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(73)(t),function(){return this}())},function(t,e){}]); \ No newline at end of file diff --git a/scripts/src/components/admin-form.js b/scripts/src/components/admin-form.js new file mode 100644 index 0000000..ab39ac4 --- /dev/null +++ b/scripts/src/components/admin-form.js @@ -0,0 +1,40 @@ +/* global settings */ +import notie from 'notie' +import 'jquery-serializejson' + +import FileModel from '../models/file' +import {updateYamlString} from '../util' + +export default class { + constructor (opts) { + const file = new FileModel({ + user: opts.user, + repoOwner: settings.REPO_OWNER, + repoName: settings.REPO_NAME, + repoBranch: settings.REPO_BRANCH, + filePath: opts.el.data('file-path') + }) + + opts.el.on('submit', (e) => { + const formData = opts.el.serializeJSON() + + file.read() + .then((contents) => { + const newContents = updateYamlString(contents, formData) + file.save(newContents) + .then((response) => { + const commitUrl = response.commit.html_url + notie.alert('success', ` + The configuration has been saved + and the site is regenerating. + `) + }).catch((msg) => { + notie.alert('error', 'There was an error saving the configuration') + console.error(msg) + }) + }).catch((err) => console.error(err)) + + e.preventDefault() + }) + } +} diff --git a/scripts/src/components/categories-filter.js b/scripts/src/components/categories-filter.js new file mode 100644 index 0000000..a50c551 --- /dev/null +++ b/scripts/src/components/categories-filter.js @@ -0,0 +1,46 @@ +import $ from 'jquery' +import {chain, pick, omit, filter, defaults} from 'lodash' + +import TmplListGroupItem from '../templates/list-group-item' +import {setContent, slugify, createSubjectFilters, collapseListGroup} from '../util' + +export default class { + constructor (opts) { + const categories = this._categoriesWithCount(opts.subjects, opts.params) + const categoriesMarkup = categories.map(TmplListGroupItem) + setContent(opts.el, categoriesMarkup) + collapseListGroup(opts.el) + } + + // Given an array of subjects, returns an array of their categories with counts + _categoriesWithCount (subjects, params) { + return chain(subjects) + .filter('category') + .flatMap(function (value, index, collection) { + // Explode objects where category is an array into one object per category + if (typeof value.category === 'string') return value + const duplicates = [] + value.category.forEach(function (category) { + duplicates.push(defaults({category: category}, value)) + }) + return duplicates + }) + .groupBy('category') + .map(function (subjectsInCat, category) { + const filters = createSubjectFilters(pick(params, ['period'])) + const filteredSubjects = filter(subjectsInCat, filters) + const categorySlug = slugify(category) + const selected = params.category && params.category === categorySlug + const itemParams = selected ? omit(params, 'category') : defaults({category: categorySlug}, params) + return { + title: category, + url: '?' + $.param(itemParams), + count: filteredSubjects.length, + unfilteredCount: subjectsInCat.length, + selected: selected + } + }) + .orderBy('unfilteredCount', 'desc') + .value() + } +} diff --git a/scripts/src/components/categories-form.js b/scripts/src/components/categories-form.js new file mode 100644 index 0000000..9fd1a5e --- /dev/null +++ b/scripts/src/components/categories-form.js @@ -0,0 +1,9 @@ +import jsyaml from 'js-yaml' + +import Form from './form' + +export default class extends Form { + _formatData (formData) { + return jsyaml.safeDump(formData.categories || []) + } +} diff --git a/scripts/src/components/delete-page-button.js b/scripts/src/components/delete-page-button.js new file mode 100644 index 0000000..badf247 --- /dev/null +++ b/scripts/src/components/delete-page-button.js @@ -0,0 +1,37 @@ +/** + * Usage: + * + */ +/* global settings */ +import notie from 'notie' + +import FileModel from '../models/file' + +export default class { + constructor (opts) { + const file = new FileModel({ + user: opts.user, + repoOwner: settings.REPO_OWNER, + repoName: settings.REPO_NAME, + repoBranch: settings.REPO_BRANCH, + filePath: opts.el.data('file-path') + }) + + opts.el.on('click', function (e) { + notie.confirm('Delete this page?', 'Yes', 'Cancel', () => { + file.remove() + .then((response) => { + const commitUrl = response.commit.html_url + notie.alert('success', ` + This page has been deleted and is currently being removed. + `) + }).catch((msg) => { + notie.alert('error', 'There was an error deleting the page') + console.error(msg) + }) + }) + e.preventDefault() + }) + } +} diff --git a/scripts/src/components/editable-list.js b/scripts/src/components/editable-list.js new file mode 100644 index 0000000..e58eea4 --- /dev/null +++ b/scripts/src/components/editable-list.js @@ -0,0 +1,41 @@ +/** + * Usage: + *
      + *
      + *
      + * + *
      + *
      + * + * + *
      + */ +import $ from 'jquery' +import notie from 'notie' + +import {queryByHook} from '../util' + +export default class { + constructor (opts) { + const elements = { + itemTemplate: queryByHook('item-template', opts.el), + items: queryByHook('items', opts.el), + addBtn: queryByHook('add-item-btn', opts.el) + } + const ItemTemplate = elements.itemTemplate.html() + const itemLabel = opts.el.data('item-label') || 'item' + + // Add button + elements.addBtn.on('click', function (e) { + elements.items.append(ItemTemplate) + }) + + // "Remove resource" buttons + elements.items.on('click', '[data-hook~=remove-item-btn]', (e) => { + notie.confirm(`Delete this ${itemLabel}?`, 'Yes', 'Cancel', () => { + $(e.currentTarget).closest('[data-hook~=item]').remove() + }) + }) + } +} diff --git a/scripts/src/components/form.js b/scripts/src/components/form.js new file mode 100644 index 0000000..5364ef3 --- /dev/null +++ b/scripts/src/components/form.js @@ -0,0 +1,64 @@ +/** + * Usage: + *
      { + e.preventDefault() + const formData = opts.el.serializeJSON({useIntKeysAsArrayIndex: true}) + let commitMsg + + // If editing existing file + if (file.filePath) { + commitMsg = `Updated ${file.fileName}` + // If creating new file, set file path and page url + } else { + if (!formData.title) return notie.alert('error', 'Title is required') + const fileSlug = slugify(formData.title) + file.filePath = (fileDir ? fileDir + '/' : '') + `${fileSlug}.md` + file.renderPath = `/${renderDir}/${fileSlug}/` + commitMsg = `Created ${file.fileName}` // computed by file model when filePath is set + } + + const yaml = this._formatData(formData) + file.save(yaml, commitMsg) + .then((response) => { + const commitUrl = response.commit.html_url + let successMsg = `This page has been saved` + if (file.renderPath) successMsg += `and will be available momentarily at ${file.renderPath}.` + notie.alert('success', successMsg) + }).catch((msg) => { + notie.alert('error', 'There was an error saving the page') + console.error(msg) + }) + }) + } + + _formatData (formData) { + return `---\n${jsyaml.safeDump(formData).trim()}\n---` + } +} diff --git a/scripts/src/components/licenses-form.js b/scripts/src/components/licenses-form.js new file mode 100644 index 0000000..bd7adc3 --- /dev/null +++ b/scripts/src/components/licenses-form.js @@ -0,0 +1,15 @@ +import jsyaml from 'js-yaml' + +import Form from './form' + +export default class extends Form { + _formatData (formData) { + const list = {} + for (let license of formData.licenses) { + if (license.license_name !== '') { + list[license.license_url] = license.license_name + } + } + return jsyaml.safeDump(list) + } +} diff --git a/scripts/src/components/navigation.js b/scripts/src/components/navigation.js new file mode 100644 index 0000000..5c53bcb --- /dev/null +++ b/scripts/src/components/navigation.js @@ -0,0 +1,53 @@ +import 'bootstrap/js/dropdown' +import 'bootstrap/js/tooltip' +import 'bootstrap/js/popover' +import 'bootstrap/js/collapse' + +import {queryByHook} from '../util' + +export default class { + constructor (opts) { + const elements = { + loginLink: queryByHook('login-link', opts.el), + logoutLink: queryByHook('logout-link', opts.el), + adminLinkListItem: queryByHook('admin-link-list-item', opts.el), + userName: queryByHook('user-name', opts.el), + userDropdown: queryByHook('user-dropdown', opts.el), + userDropdownLink: queryByHook('user-dropdown-link', opts.el), + userIssue: queryByHook('user-issue', opts.el) + } + + elements.loginLink.on('click', function (e) { + opts.user.initiateLogin() + e.preventDefault() + }) + + elements.logoutLink.on('click', function (e) { + opts.user.logout() + window.location.reload(true) + e.preventDefault() + }) + + if (opts.user.username) this._setUserInfo(opts.user, elements) + opts.user.on('change', (user) => { + if (user.username) this._setUserInfo(user, elements) + }) + } + + _setUserInfo (user, elements) { + elements.loginLink.hide() + elements.userName.text(user.username) + elements.userDropdown.removeClass('hidden') + if (user.isCollaborator) { + elements.adminLinkListItem.show() + } else if (user.isCollaborator === false) { // don't catch undefined + elements.userIssue.show() + elements.userDropdownLink.popover({ + content: 'You do not have collaborator access to this repository, so you will not be able to make any changes.', + placement: 'bottom', + trigger: 'hover', + container: 'body' + }) + } + } +} diff --git a/scripts/src/components/periods-filter.js b/scripts/src/components/periods-filter.js new file mode 100644 index 0000000..c6ff9b3 --- /dev/null +++ b/scripts/src/components/periods-filter.js @@ -0,0 +1,35 @@ +import $ from 'jquery' +import {chain, pick, omit, filter, defaults} from 'lodash' + +import TmplListGroupItem from '../templates/list-group-item' +import {setContent, slugify, createSubjectFilters, collapseListGroup} from '../util' + +export default class { + constructor (opts) { + const periods = this._periodsWithCount(opts.subjects, opts.params) + const periodsMarkup = periods.map(TmplListGroupItem) + setContent(opts.el, periodsMarkup) + collapseListGroup(opts.el) + } + + _periodsWithCount (subjects, params) { + return chain(subjects) + .groupBy('period') + .map(function (subjectsInOrg, period) { + const filters = createSubjectFilters(pick(params, ['category'])) + const filteredSubjects = filter(subjectsInOrg, filters) + const orgSlug = slugify(period) + const selected = params.period && params.period === orgSlug + const itemParams = selected ? omit(params, 'period') : defaults({period: orgSlug}, params) + return { + title: period, + url: '?' + $.param(itemParams), + count: filteredSubjects.length, + unfilteredCount: subjectsInOrg.length, + selected: selected + } + }) + .orderBy('unfilteredCount', 'desc') + .value() + } +} diff --git a/scripts/src/components/subjects-display.js b/scripts/src/components/subjects-display.js new file mode 100644 index 0000000..0345ad0 --- /dev/null +++ b/scripts/src/components/subjects-display.js @@ -0,0 +1,22 @@ +import $ from 'jquery' + +import {queryByHook} from '../util' + +export default class { + constructor (opts) { + const elements = { + resourceItem: queryByHook('resource-item', opts.el) + } + + // Resource details links + elements.resourceItem.each((index, item) => { + if ($('table tr', item).length) { + queryByHook('show-resource-details', item).show() + } + }) + elements.resourceItem.on('click', '[data-hook~=show-resource-details]', (e) => { + $(e.currentTarget).closest('[data-hook~=resource-item]').children('[data-hook~=resource-details]').toggle() + e.preventDefault() + }) + } +} diff --git a/scripts/src/components/subjects-form.js b/scripts/src/components/subjects-form.js new file mode 100644 index 0000000..64891c1 --- /dev/null +++ b/scripts/src/components/subjects-form.js @@ -0,0 +1,13 @@ +import $ from 'jquery' +import 'select2' + +export default class { + constructor (opts) { + const elements = { + select2: $('.select2', opts.el) + } + + // Initialize select2 plugin + elements.select2.select2() + } +} diff --git a/scripts/src/components/subjects-list.js b/scripts/src/components/subjects-list.js new file mode 100644 index 0000000..08c9c8d --- /dev/null +++ b/scripts/src/components/subjects-list.js @@ -0,0 +1,68 @@ +/** + * Usage: + *
      + *

      + * + *
      + *
      + * + * Optionally, add filters to the component element such as + * data-period="sample-department" + * data-category="education" + */ +import {pick, defaults, filter} from 'lodash' + +import TmplSubjectItem from '../templates/subject-item' +import {queryByHook, setContent, createSubjectFilters} from '../util' + +export default class { + constructor (opts) { + const elements = { + subjectsItems: queryByHook('subjects-items', opts.el), + subjectsCount: queryByHook('subjects-count', opts.el), + searchQuery: queryByHook('search-query', opts.el) + } + + // Filter subjects and render in items container + const paramFilters = pick(opts.params, ['period', 'category']) + const attributeFilters = pick(opts.el.data(), ['period', 'category']) + const filters = createSubjectFilters(defaults(paramFilters, attributeFilters)) + const filteredSubjects = filter(opts.subjects, filters) + const subjectsMarkup = filteredSubjects.map(TmplSubjectItem) + setContent(elements.subjectsItems, subjectsMarkup) + + // // Subject count + const subjectSuffix = filteredSubjects.length > 1 ? 's' : '' + const subjectsCountMarkup = filteredSubjects.length + ' subject' + subjectSuffix; + setContent(elements.subjectsCount, subjectsCountMarkup) + + // Search subjects listener + const searchFunction = this._createSearchFunction(filteredSubjects) + elements.searchQuery.on('keyup', (e) => { + const query = e.currentTarget.value + + // Subjects + const results = searchFunction(query) + const resultsMarkup = results.map(TmplSubjectItem) + setContent(elements.subjectsItems, resultsMarkup) + + // Subject count + const resultsCountMarkup = results.length + ' subjects' + setContent(elements.subjectsCount, resultsCountMarkup) + }) + } + + // Returns a function that can be used to search an array of subjects + // The function returns the filtered array of subjects + _createSearchFunction (subjects) { + const keys = ['title', 'notes'] + return function (query) { + const lowerCaseQuery = query.toLowerCase() + return filter(subjects, function (subject) { + return keys.reduce(function (previousValue, key) { + return previousValue || (subject[key] && subject[key].toLowerCase().indexOf(lowerCaseQuery) !== -1) + }, false) + }) + } + } +} diff --git a/scripts/src/components/theme-gallery.js b/scripts/src/components/theme-gallery.js new file mode 100644 index 0000000..9e1741b --- /dev/null +++ b/scripts/src/components/theme-gallery.js @@ -0,0 +1,39 @@ +/* global settings */ +import $ from 'jquery' +import notie from 'notie' +import 'jquery-serializejson' + +import FileModel from '../models/file' +import {queryByHook, updateYamlString} from '../util' + +export default class { + constructor (opts) { + const file = new FileModel({ + user: opts.user, + repoOwner: settings.REPO_OWNER, + repoName: settings.REPO_NAME, + repoBranch: settings.REPO_BRANCH, + filePath: opts.el.data('file-path') + }) + + const activateBtn = queryByHook('activate-btn') + activateBtn.on('click', (e) => { + const theme = $(e.currentTarget).data('theme') + file.read() + .then((contents) => { + const newContents = updateYamlString(contents, { jkan_theme: theme }) + file.save(newContents) + .then((response) => { + const commitUrl = response.commit.html_url + notie.alert('success', ` + The configuration has been saved + and the site is regenerating. + `) + }).catch((msg) => { + notie.alert('error', 'There was an error saving the configuration') + console.error(msg) + }) + }).catch((err) => console.error(err)) + }) + } +} diff --git a/scripts/src/components/view-switcher.js b/scripts/src/components/view-switcher.js new file mode 100644 index 0000000..abe59c7 --- /dev/null +++ b/scripts/src/components/view-switcher.js @@ -0,0 +1,22 @@ +/** + * Usage: + * Append ?view=edit querystring to URL to toggle views. If querystring + * isn't present, the first view is shown. + * Requires CSS rule: [data-component~=view-switcher] [data-hook~=view] {display: none;} + * + *
      + *
      + *
      + *
      + */ +import $ from 'jquery' + +export default class { + constructor (opts) { + if (opts.params.view) { + $(`[data-hook~=view][data-view~=${opts.params.view}]`).show() + } else { + $(`[data-hook~=view][data-view]:first`).show() + } + } +} diff --git a/scripts/src/index.js b/scripts/src/index.js new file mode 100644 index 0000000..8e16411 --- /dev/null +++ b/scripts/src/index.js @@ -0,0 +1,84 @@ +/* global settings */ +import $ from 'jquery' +import 'jquery-deparam' +import 'bootstrap/js/tab' +import {omit} from 'lodash' + +import UserModel from './models/user' +import Navigation from './components/navigation' +import SubjectsList from './components/subjects-list' +import CategoriesFilter from './components/categories-filter' +import PeriodsFilter from './components/periods-filter' +import Form from './components/form' +import SubjectForm from './components/subject-form' +import AdminForm from './components/admin-form' +import CategoriesForm from './components/categories-form' +import LicensesForm from './components/licenses-form' +import SubjectDisplay from './components/subject-display' +import DeletePageButton from './components/delete-page-button' +import EditableList from './components/editable-list' +import ViewSwitcher from './components/view-switcher' +import ThemeGallery from './components/theme-gallery' +import {queryByComponent, setParams} from './util' + +const params = $.deparam(window.location.search.substr(1)) + +// Initialize user +const user = new UserModel({ + clientId: params.clientId || settings.GITHUB_CLIENT_ID, + proxyHost: params.proxyHost || settings.GATEKEEPER_HOST, + repoOwner: settings.REPO_OWNER, + repoName: settings.REPO_NAME +}) + +// If user is mid-login, finish the login process +if (params.code) { + setParams(omit(params, 'code')) + user.finishLogin(params.code) +} + +// Show administrator elements if/when logged in and a collaborator +const adminOnlyEls = $('.admin-only') +if (user.username && user.isCollaborator) adminOnlyEls.show() +user.on('change', (changedUser) => { + if (changedUser.username && changedUser.isCollaborator) adminOnlyEls.show() +}) + +// Check for these components on the page and initialize them +const components = [ + {tag: 'navigation', class: Navigation}, + {tag: 'form', class: Form}, + {tag: 'subject-form', class: SubjectForm}, + {tag: 'admin-form', class: AdminForm}, + {tag: 'categories-form', class: CategoriesForm}, + {tag: 'licenses-form', class: LicensesForm}, + {tag: 'subject-display', class: SubjectDisplay}, + {tag: 'delete-page-button', class: DeletePageButton}, + {tag: 'editable-list', class: EditableList}, + {tag: 'view-switcher', class: ViewSwitcher}, + {tag: 'theme-gallery', class: ThemeGallery}, + {tag: 'subjects-list', class: SubjectsList, usesSubjects: true}, + {tag: 'categories-filter', class: CategoriesFilter, usesSubjects: true}, + {tag: 'periods-filter', class: PeriodsFilter, usesSubjects: true} +] +for (let component of components) { + const els = queryByComponent(component.tag) + if (els.length) { + // If the component depends on subjects.json, fetch it first (once per page) and pass it + if (component.usesSubjects) { + getSubjects().then((subjects) => { + els.each((index, el) => new component.class({el: $(el), user, params, subjects})) // eslint-disable-line + }) + // Otherwise simply initialize the component + } else { + els.each((index, el) => new component.class({el: $(el), user, params})) // eslint-disable-line + } + } +} + +// Helper function to ensure subjects.json is only fetched once per page +let subjectsCache +function getSubjects () { + subjectsCache = subjectsCache || $.getJSON(`${settings.BASE_URL}/subjects.json`) + return subjectsCache +} diff --git a/scripts/src/models/file.js b/scripts/src/models/file.js new file mode 100644 index 0000000..6c59e11 --- /dev/null +++ b/scripts/src/models/file.js @@ -0,0 +1,58 @@ +import State from 'ampersand-state' +import Github from 'github-api' + +export default State.extend({ + props: { + repoOwner: 'string', + repoName: 'string', + repoBranch: 'string', + filePath: 'string', + renderPath: 'string' + }, + session: { + user: 'state' + }, + derived: { + fileName: { + deps: ['filePath'], + fn: function () { + return this.filePath.split('/').pop() + } + }, + repo: { + deps: ['user.oauthToken', 'repoOwner', 'repoName'], + fn: function () { + const github = new Github({ + token: this.user.oauthToken, + auth: 'oauth' + }) + return github.getRepo(this.repoOwner, this.repoName) + } + } + }, + read: function () { + return new Promise((resolve, reject) => { + this.repo.getContents(this.repoBranch, this.filePath, true, (err, contents) => { + if (err) reject(err) + else resolve(contents) + }) + }) + }, + save: function (contents, commitMsg) { + return new Promise((resolve, reject) => { + if (!commitMsg) commitMsg = `Updated ${this.fileName}` + this.repo.writeFile(this.repoBranch, this.filePath, contents, commitMsg, {}, (err, data) => { + if (err) reject(err) + else resolve(data) + }) + }) + }, + remove: function () { + return new Promise((resolve, reject) => { + this.repo.deleteFile(this.repoBranch, this.filePath, (err, data) => { + if (err) reject(err) + else resolve(data) + }) + }) + } +}) diff --git a/scripts/src/models/user.js b/scripts/src/models/user.js new file mode 100644 index 0000000..9fef96b --- /dev/null +++ b/scripts/src/models/user.js @@ -0,0 +1,97 @@ +import State from 'ampersand-state' +import Cookies from 'js-cookie' +import Github from 'github-api' +import $ from 'jquery' +import 'jquery-deparam' + +const githubLoginUrl = 'https://github.com/login/oauth/authorize' + +export default State.extend({ + props: { + oauthToken: 'string', + username: 'string', + isCollaborator: 'boolean' + }, + session: { + repoOwner: 'string', + repoName: 'string', + clientId: 'string', + proxyHost: 'string' + }, + initialize: function () { + // If login cookies saved, set the user model to them + this.set(Cookies.getJSON('jkan')) + }, + initiateLogin: function () { + const redirectParams = { + client_id: this.clientId, + redirect_uri: window.location.href.split('?')[0], + scope: 'public_repo' + } + window.location.href = githubLoginUrl + '?' + $.param(redirectParams) + }, + finishLogin: function (authCode) { + return this._verify(authCode) + .then((oauthToken) => { + this.set('oauthToken', oauthToken) + Cookies.set('jkan', this.serialize()) + + this._getUser(oauthToken) + .then((userData) => { + this.set('username', userData.login) + Cookies.set('jkan', this.serialize()) + this._isCollaborator(userData.login) + .then(() => { + this.set('isCollaborator', true) + Cookies.set('jkan', this.serialize()) + }).catch(() => { + this.set('isCollaborator', false) + Cookies.set('jkan', this.serialize()) + }) + }).catch(() => console.error('Error fetching user info')) + }).catch(() => console.error('Error verifying auth code')) + }, + // Use authCode from step 1 to fetch auth token + _verify: function (authCode) { + return new Promise((resolve, reject) => { + const proxyUrl = `${this.proxyHost}/authenticate/${authCode}` + + $.getJSON(proxyUrl, (data) => { + if (data && data.token) { + resolve(data.token) + } else { + reject('Authentication failed') + } + }) + }) + }, + logout: function () { + Cookies.remove('jkan') + }, + _getUser: function () { + return new Promise((resolve, reject) => { + const github = new Github({ + token: this.oauthToken, + auth: 'oauth' + }) + const user = github.getUser() + user.getProfile((err, userData) => { + if (err) reject(err) + else resolve(userData) + }) + }) + }, + _isCollaborator: function (username) { + return new Promise((resolve, reject) => { + const github = new Github({ + token: this.oauthToken, + auth: 'oauth' + }) + const repo = github.getRepo(this.repoOwner, this.repoName) + repo.isCollaborator(username, (err) => { + if (err) reject(err) + else resolve() + }) + }) + } +}) diff --git a/scripts/src/templates/dataset-item.js b/scripts/src/templates/dataset-item.js new file mode 100644 index 0000000..e24bbc9 --- /dev/null +++ b/scripts/src/templates/dataset-item.js @@ -0,0 +1,6 @@ +export default (data) => ( +` +

      ${data.title}

      + ${data.notes || ''} +
      ` +) diff --git a/scripts/src/templates/list-group-item.js b/scripts/src/templates/list-group-item.js new file mode 100644 index 0000000..29f28d1 --- /dev/null +++ b/scripts/src/templates/list-group-item.js @@ -0,0 +1,7 @@ +export default (data) => ( +` + ${data.title} + ${data.count} + ${data.selected ? '' : ''} +` +) diff --git a/scripts/src/util.js b/scripts/src/util.js new file mode 100644 index 0000000..8bb1771 --- /dev/null +++ b/scripts/src/util.js @@ -0,0 +1,78 @@ +import $ from 'jquery' +import {isEmpty} from 'lodash' + +export function queryByHook (hook, container) { + return $(`[data-hook~=${hook}]`, container) +} + +export function queryByComponent (component, container) { + return $(`[data-component~=${component}]`, container) +} + +export function setContent (container, content) { + return container.empty().append(content) +} + +export function setParams (params) { + let newUrl = window.location.href.split('?')[0] + if (!isEmpty(params)) newUrl += '?' + $.param(params) + window.history.replaceState(null, null, newUrl) +} + +// Meant to mimic Jekyll's slugify function +// https://github.com/jekyll/jekyll/blob/master/lib/jekyll/utils.rb#L142 +export function slugify (text) { + return text.toString().toLowerCase().trim() + .replace(/[^a-zA-Z0-9]/g, '-') // Replace non-alphanumeric chars with - + .replace(/\-\-+/g, '-') // Replace multiple - with single - + .replace(/^\-|\-$/i, '') // Remove leading/trailing hyphen +} + + +// Given an object of filters to use, returns a function to be used by _.filter() +export function createSubjectFilters (filters) { + return function (subject) { + const conditions = [] + if (filters.period) { + conditions.push(subject.period && slugify(subject.period) === filters.period) + } + if (filters.category) { + conditions.push(subject.category && slugify(subject.category).indexOf(filters.category) !== -1) + } + return conditions.every(function (value) { return !!value }) + } +} + +// Collapses a bootstrap list-group to only show a few items by default +// Number of items to show can be specified in [data-show] attribute or passed as param +export function collapseListGroup (container, show) { + if (!show) show = container.data('show') || 5 + + const itemsToHide = $('.list-group-item:gt(' + (show - 1) + '):not(.active)', container) + if (itemsToHide.length) { + itemsToHide.hide() + + const showMoreButton = $('Show ' + itemsToHide.length + ' more...') + showMoreButton.on('click', function (e) { + itemsToHide.show() + $(this).off('click') + $(this).remove() + e.preventDefault() + }) + container.append(showMoreButton) + } +} + +// Applies a basic regex replace on a YAML string for each property in a data object +export function updateYamlString (yamlString, updateObject) { + for (let key in updateObject) { + const regex = new RegExp(`^( *${key}: +?).*`, 'm') + const match = yamlString.match(regex) + if (match) { + yamlString = yamlString.replace(regex, match[1] + updateObject[key]) + } else { + yamlString += `\n${key}: ${updateObject[key]}` + } + } + return yamlString +} diff --git a/setup.md b/setup.md new file mode 100644 index 0000000..591569e --- /dev/null +++ b/setup.md @@ -0,0 +1,59 @@ +--- +title: Setup +permalink: /setup/ +layout: default +--- +{% include breadcrumbs.html parent="Administration" %} + + + + + +# Setup + +## Step 1 +[Register your application](https://github.com/settings/applications/new) with GitHub. Set the `Callback URL` +to the URL of your JKAN site (ie. `https://.github.io/jkan`. After clicking `Register`, you'll +be given a `Client ID` and a `Client Secret`. Enter the `Client ID` below. + +
      +
      +
      + + +

      +
      +
      +
      + +## Step 2 +In order to authenticate with GitHub, setup [Gatekeeper](https://github.com/prose/gatekeeper), an +open-source authentication tool. [Heroku](http://heroku.com) provides free hosting. + +[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://dashboard.heroku.com/new?button-url=https%3A%2F%2Fgithub.com%2Fprose%2Fgatekeeper&template=https%3A%2F%2Fgithub.com%2Fprose%2Fgatekeeper) + +Pick an `App Name`, and fill in your `Client ID` and `Client Secret`. Enter the `App Name` you chose below. + +
      +
      +
      + + +

      +
      +
      +
      + +## Step 3 +Login to this site via GitHub to save these settings. + + Sign in with GitHub + +## Step 4 +Save these settings to `_config.yml`. + + Save diff --git a/subjects.html b/subjects.html new file mode 100644 index 0000000..6de29d6 --- /dev/null +++ b/subjects.html @@ -0,0 +1,23 @@ +--- +title: Subjects +layout: default +permalink: /subjects/ +--- +{% include breadcrumbs.html %} + +
      +
      + +

      Categories

      +
      + +

      Periods

      +
      +
      +
      +

      + Add Subject + +
      +
      +
      diff --git a/subjects.json b/subjects.json new file mode 100644 index 0000000..09a1783 --- /dev/null +++ b/subjects.json @@ -0,0 +1,11 @@ +--- +--- +[{% for subject in site.subjects %} + { + "title": {{ subject.title | jsonify }}, + "period": {{ subject.period | jsonify }}{% if subject.notes != "" %}, + "notes": {{ subject.notes | jsonify }}{% endif %}{% if subject.notes != "" %}, + "category": {{ subject.category | jsonify }}{% endif %}, + "url": "{{ site.baseurl }}{{ subject.url }}" + }{% unless forloop.last %},{% endunless %}{% endfor %} +] diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..6c4879f --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,16 @@ +/* global __dirname */ +module.exports = { + entry: ['babel-polyfill', __dirname + '/scripts/src/index.js'], + output: { + path: __dirname + (process.env.NODE_ENV === 'development' ? '/_site' : '') + '/scripts/dist', + filename: 'bundle.js' + }, + module: { + loaders: [ + { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' } + ] + }, + externals: { + jquery: 'jQuery' + } +}