code
stringlengths
4
1.01M
language
stringclasses
2 values
version https://git-lfs.github.com/spec/v1 oid sha256:b1b66ad7cf63a081650856aed61fbfdf1b6b511e47c622989e9927e504424a5d size 2493
Java
#include "ErrorCodes.h" std::error_code make_error_code(SimBlockErrc ec) { return {static_cast<int>(ec), simblockErrCategory}; }
Java
<?php /* Safe sample input : backticks interpretation, reading the file /tmp/tainted.txt sanitize : cast in float construction : use of sprintf via a %d with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.*/ $tainted = `cat /tmp/tainted.txt`; $tainted = (float) $tainted ; $var = include(sprintf("pages/'%d'.php", $tainted)); ?>
Java
<div class="ui container" id="event"> <div class="ui stackable one column grid"> <div class="column"> <div class="ui card"> <div class="content"> <div class="header">{{ vm.event.attributes.title }}</div> </div><!-- header --> <div class="content"> <h3>Organization: {{ vm.event.attributes.organization }}</h3> <div class="ui large feed"> <div class="event"> <div class="content"> <div class="summary"> <span ng-if="vm.event.attributes.address != null">Location: {{ vm.event.attributes.address }}</span> <span ng-if="vm.event.attributes.address == null">Location: N/A</span> <br> <span ng-if="vm.event.attributes.start != null">Start Date: {{ vm.event.attributes.start | amDateFormat: 'dddd, MMMM Do YYYY, h:mm a' }}</span> <span ng-if="vm.event.attributes.start == null">Start Date: N/A</span> <br> <span ng-if="vm.event.attributes.end != null">End Date: {{ vm.event.attributes.end | amDateFormat: 'dddd, MMMM Do YYYY, h:mm a' }}</span> <span ng-if="vm.event.attributes.end == null">End Date: N/A</span> <br> <h3>Information</h3> Description: <br> <p ng-if="vm.event.attributes.description != null">{{ vm.event.attributes.description }}</p> <p ng-if="vm.event.attributes.description == null">No description. Please visit the link for more details!</p> <p ng-if="vm.event.attributes.age != null">Minimum Age: {{ vm.event.attributes.age }}</p> <p ng-if="vm.event.attributes.age == null">Minimum Age: No age requirement!</p> <p ng-if="vm.event.attributes.skills != null">Skills Needed: {{ vm.event.attributes.skills }}</p> <p ng-if="vm.event.attributes.skills == null">Skills Needed: No skills required!</p> </div> </div> </div> </div> </div><!-- content --> <div class="ui positive right labeled icon button" ng-click="vm.hyperlink()">Volunteer Now <i class="checkmark icon"></i></div><!-- volunteer button --> </div><!-- card --> <br> <div class="ui card" id="comment"> <comments></comments> <h3 class="form-header">Comments</h3> <div class="ui relaxed divided list"> <div class="item" ng-repeat="comment in vm.comments"> <div class="item"> <div class="content"> <div class="header">{{ comment.attributes.name }} says...</div> <div class="description">{{ comment.attributes.content }}</div> </div> </div> </div> </div> </div><!-- comments --> </div><!-- column --> </div><!-- grid --> </div>
Java
<?php namespace Oriancci\Query; class Insert extends Built { public function buildQuery() { // INSERT INTO $sql = 'INSERT INTO '; $sql .= $this->buildTableName(INSERT_INTO); // SET $sql .= ' SET '; $sql .= $this->buildSet(SET); return $sql; } }
Java
package pl.yourempire.api.event; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Map; public class Event { private static Map<Class<Event>, ArrayList<ListenerCaller>> listenerMap = new HashMap<>(); public static void callEvent(Event e) { if (listenerMap.containsKey(e.getClass())) { for (ListenerCaller lc : listenerMap.get(e.getClass())) { try { lc.getEventMethod().invoke(lc.getInstance(), e); } catch (IllegalAccessException e1) { e1.printStackTrace(); } catch (InvocationTargetException e1) { e1.printStackTrace(); } } } } public static boolean isEvent(Class<?> clazz) { try { clazz.cast(Event.class); return true; } catch(ClassCastException e) { return false; } } public static void registerListener(Listener l) { Arrays.asList(l.getClass().getMethods()).forEach(m -> { if (m.getParameterTypes().length == 1 && isEvent(m.getParameterTypes()[0])) { listenerMap.get(m.getParameterTypes()[0]).add(new ListenerCaller(l, m)); } }); } protected boolean cancelled; public Event() { cancelled = false; } public void setCancelled(boolean flag) { this.cancelled = flag; } public boolean isCancelled() { return this.cancelled; } }
Java
<!DOCTYPE html> <html class="no-js" lang="hi"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="p5.js a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing."> <title tabindex="1">examples | p5.js</title> <link rel="stylesheet" href="/assets/css/all.css?v=4c8161"> <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap" rel="stylesheet"> <link rel="shortcut icon" href="/../../assets/img/favicon.ico"> <link rel="icon" href="/../../assets/img/favicon.ico"> <script src="/../../assets/js/vendor/jquery-1.12.4.min.js"></script> <script src="/../../assets/js/vendor/ace-nc/ace.js"></script> <script src="/../../assets/js/vendor/ace-nc/mode-javascript.js"></script> <script src="/../../assets/js/vendor/prism.js"></script> <script src="/assets/js/init.js?v=97b4f7"></script> </head> <body> <a href="#content" class="sr-only">Skip to content</a> <!-- p5*js language buttons --> <div id="i18n-btn"> <h2 id="i18n-settings" class="sr-only">Language Settings</h2> <ul id="i18n-buttons" aria-labelledby="i18n-settings"> <li><a href='#' lang='en' data-lang='en'>English</a></li> <li><a href='#' lang='es' data-lang='es'>Español</a></li> <li><a href='#' lang='zh-Hans' data-lang='zh-Hans'>简体中文</a></li> <li><a href='#' lang='ko' data-lang='ko'>한국어</a></li> <li><a href='#' lang='hi' data-lang='hi'>हिन्दी</a></li> </ul> </div> <!-- .container --> <div class="container"> <!-- logo --> <header id="lockup"> <a href="/hi/"> <img src="/../../assets/img/p5js.svg" alt="p5 homepage" id="logo_image" class="logo" /> <div id="p5_logo"></div> </a> </header> <!-- close logo --> <div id="examples-page"> <!-- site navigation --> <div class="column-span"> <nav class="sidebar-menu-nav-element"> <h2 id="menu-title" class="sr-only">Site Navigation</h2> <input class="sidebar-menu-btn" type="checkbox" id="sidebar-menu-btn" /> <label class="sidebar-menu-icon" for="sidebar-menu-btn"><span class="sidebar-nav-icon"></span></label> <ul id="menu" class="sidebar-menu" aria-labelledby="menu-title"> <li><a href="/hi/">सभी</a></li> <li><a href="https://editor.p5js.org">एडीटर</a></li> <li><a href="/hi/download/">डाउनलोड</a></li> <li><a href="/hi/download/support.html">दान दिजिये</a></li> <li><a href="/hi/get-started/">आरंभ करें</a></li> <li><a href="/hi/reference/">संदर्भ</a></li> <li><a href="/hi/libraries/">लाइब्रिरी</a></li> <li><a href="/hi/learn/">सीखिए</a></li> <li><a href="/hi/teach/">सिखाना</a></li> <li><a href="/hi/examples/">उदाहरण</a></li> <li><a href="/hi/books/">पुस्तकें</a></li> <li><a href="/hi/community/">समुदाय</a></li> <li><a href="https://showcase.p5js.org">प्रदर्शन</a></li> <li><a href="https://discourse.processing.org/c/p5js" target=_blank class="other-link">फोरम</a></li> <li><a href="http://github.com/processing/p5.js" target=_blank class="other-link">GitHub</a></li> <li><a href="http://twitter.com/p5xjs" target=_blank class="other-link">Twitter</a></li> <li><a href="https://www.instagram.com/p5xjs/" target=_blank class="other-link">Instagram</a></li> <li><a href="https://discord.gg/SHQ8dH25r9" target=_blank class="other-link">Discord</a></li> </ul> </nav> </div> <div class="column-span"> <main id="content" > <p id="backlink"><a href="./">&lt; उदाहरण</a></p> <h1 id='example-name'>example name placeholder</h1> <p id='example-desc'>example description placeholder</p> <div id="exampleDisplay"> <div class="edit_space"> <button id="toggleTextOutput" class="sr-only">toggle text output</button> <button id="runButton" class="edit_button">run</button> <button id="resetButton" class="reset_button">reset</button> <button id="copyButton" class="copy_button">copy</button> </div> <div id="exampleEditor"></div> <iframe id="exampleFrame" src="../../assets/examples/example.html" aria-label="example arialabel placeholder" ></iframe> </div> <p><a style="border-bottom:none !important;" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target=_blank><img src="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png" alt="creative commons license" style="width:88px"/></a></p> </main> <footer> <h2 class="sr-only">आभार सूची</h2> <p> वर्तमान में p5.js का नेतृत्व करने वाले <a href='http://qianqian-ye.com/' target="_blank">Qianqian Ye</a> और <a href='http://www.outofambit.com/' target="_blank">evelyn masso</a> हैं| इसकी खोज करने वाले थे <a href='https://lauren-mccarthy.com' target="_blank">Lauren Lee McCarthy</a> p5.js सहयोगियों के एक समुदाय द्वारा विकसित किया गया है और समर्थन करने वाले थे <a href="https://processingfoundation.org/" target="_blank">Processing Foundation</a> और <a href="https://itp.nyu.edu/itp/" target="_blank">NYU ITP</a> पहचान और ग्राफिक डिजाइन करने वाले थे <a href="https://jereljohnson.com/" target="_blank">Jerel Johnson</a>. <a href="/hi/copyright.html">&copy; Info</a>. </p> </footer> </div> <!-- end column-span --> <!-- outside of column for footer to go across both --> <p class="clearfix"> &nbsp; </p> <object type="image/svg+xml" data="../../assets/img/thick-asterisk-alone.svg" id="asterisk-design-element" aria-hidden="true"> </object> <!-- <script src="../../assets/js/vendor/ace-nc/ace.js"></script> <script src="../../assets/js/examples.js"></script> --> <script> window._p5jsExample = '../../assets/examples/hi/10_Interaction/10_Tickle.js'; window.addEventListener('load', function() { // examples.init('../../assets/examples/hi/10_Interaction/10_Tickle.js'); if (false) { var isMobile = window.matchMedia("only screen and (max-width: 767px)"); // isMobile is true if viewport is less than 768 pixels wide document.getElementById('exampleFrame').style.display = 'none'; if (isMobile.matches) { document.getElementById('notMobile-message').style.display = 'none'; document.getElementById('isMobile-displayButton').style.display = 'block'; } else { document.getElementById('notMobile-message').style.display = 'block'; document.getElementById('isMobile-displayButton').style.display = 'none'; document.getElementById('runButton').style.display = 'none'; document.getElementById('resetButton').style.display = 'none'; document.getElementById('copyButton').style.display = 'none'; } } }, true); </script> </div><!-- end id="get-started-page" --> <script src="/../../assets/js/examples.js"></script> </div> <!-- close class='container'--> <nav id="family" aria-labelledby="processing-sites-heading"> <h2 id="processing-sites-heading" class="sr-only">Processing Sister Sites</h2> <ul id="processing-sites" aria-labelledby="processing-sites-heading"> <li><a href="https://processing.org">Processing</a></li> <li><a class="here" href="/hi/">p5.js</a></li> <li><a href="https://py.processing.org/">Processing.py</a></li> <li><a href="https://android.processing.org/">Processing for Android</a></li> <li><a href="https://pi.processing.org/">Processing for Pi</a></li> <li><a href="https://processingfoundation.org/">Processing Foundation</a></li> </ul> <a tabindex="1" href="#content" id="skip-to-content">Skip to main content</a> </nav> <script> var langs = ["en","es","hi","ko","zh-Hans"]; (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-53383000-1', 'auto'); ga('send', 'pageview'); $(window).ready(function() { if (window.location.pathname !== '/' && window.location.pathname !== '/index.html') { $('#top').remove(); } else { $('#top').show(); } }); </script> </body> </html>
Java
tinyMCE.init({ mode : 'textareas', theme : "advanced", theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", });
Java
package org.fluentjava.iwant.plannerapi; public interface ResourcePool { boolean hasFreeResources(); Resource acquire(); void release(Resource resource); }
Java
SampleApp =========
Java
#ifndef ENDOCAST_EXTRACTOR_HPP #define ENDOCAST_EXTRACTOR_HPP 1 #include <mi/VolumeData.hpp> class EndocastExtractor { private: public: EndocastExtractor ( void ) ; ~EndocastExtractor ( void ) ; bool extract ( mi::VolumeData<float>& distData, mi::VolumeData<int>& labelData, const double scale ) ; private: bool init ( mi::VolumeData<float>& distData, mi::VolumeData<int>& labelData, const double scale ) ; bool run ( mi::VolumeData<float>& distData, mi::VolumeData<int>& labelData ) ; }; #endif // ENDOCAST_EXTRACTOR_HPP
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>qcert: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.12.2 / qcert - 1.0.5</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> qcert <small> 1.0.5 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-10-27 14:06:13 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-27 14:06:13 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;jeromesimeon@me.com&quot; homepage: &quot;https://querycert.github.io&quot; dev-repo: &quot;git+https://github.com/querycert/qcert&quot; bug-reports: &quot;https://github.com/querycert/qcert/issues&quot; authors: [ &quot;Josh Auerbach&quot; &quot;Martin Hirzel&quot; &quot;Louis Mandel&quot; &quot;Avi Shinnar&quot; &quot;Jerome Simeon&quot; ] license: &quot;Apache-2.0&quot; build: [ [make &quot;-j%{jobs}%&quot; &quot;qcert-coq&quot;] ] install: [ [make &quot;install-coq&quot;] ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.7.2&quot; &amp; &lt; &quot;8.8&quot;} ] synopsis: &quot;A platform for implementing and verifying query compilers&quot; url { src: &quot;https://github.com/querycert/qcert/archive/v1.0.5.tar.gz&quot; checksum: &quot;md5=3904c818b69823498769cacc1774c5d6&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-qcert.1.0.5 coq.8.12.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.12.2). The following dependencies couldn&#39;t be met: - coq-qcert -&gt; coq &lt; 8.8 -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-qcert.1.0.5</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>menhirlib: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.14.0 / menhirlib - 20201122</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> menhirlib <small> 20201122 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-23 01:13:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-23 01:13:15 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq 8.14.0 Formal proof management system dune 2.9.1 Fast, portable, and opinionated build system ocaml 4.10.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.10.2 Official release 4.10.2 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; synopsis: &quot;A support library for verified Coq parsers produced by Menhir&quot; maintainer: &quot;francois.pottier@inria.fr&quot; authors: [ &quot;Jacques-Henri Jourdan &lt;jacques-henri.jourdan@lri.fr&gt;&quot; ] homepage: &quot;https://gitlab.inria.fr/fpottier/coq-menhirlib&quot; dev-repo: &quot;git+https://gitlab.inria.fr/fpottier/menhir.git&quot; bug-reports: &quot;jacques-henri.jourdan@lri.fr&quot; license: &quot;LGPL-3.0-or-later&quot; build: [ [make &quot;-C&quot; &quot;coq-menhirlib&quot; &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;-C&quot; &quot;coq-menhirlib&quot; &quot;install&quot;] ] depends: [ &quot;coq&quot; { &gt;= &quot;8.7&quot; &amp; &lt; &quot;8.14&quot; } ] conflicts: [ &quot;menhir&quot; { != &quot;20201122&quot; } ] tags: [ &quot;date:2020-11-22&quot; &quot;logpath:MenhirLib&quot; ] url { src: &quot;https://gitlab.inria.fr/fpottier/menhir/-/archive/20201122/archive.tar.gz&quot; checksum: [ &quot;md5=9ad6a5f88aab6ec677b970e0d9de1763&quot; &quot;sha512=9174e74cfb2336c5008c7461411ba79190e673d310da99117e363f60782bcf9a4bb26a04f6448cf6f3ed7888aa2b5b04d38c32e6d86594accfaadbbb72528068&quot; ] } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-menhirlib.20201122 coq.8.14.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.14.0). The following dependencies couldn&#39;t be met: - coq-menhirlib -&gt; coq &lt; 8.14 -&gt; ocaml &lt; 4.10 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-menhirlib.20201122</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
Java
/* eslint-env node */ 'use strict'; const EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); module.exports = function(defaults) { let app = new EmberAddon(defaults, { 'ember-cli-babel': { includePolyfill: true } }); app.import('node_modules/highlightjs/styles/monokai-sublime.css'); /* This build file specifies the options for the dummy test app of this addon, located in `/tests/dummy` This build file does *not* influence how the addon or the app using it behave. You most likely want to be modifying `./index.js` or app's build file */ return app.toTree(); };
Java
import { SplashEffect } from "./effect.js"; import { Linear } from "../interpolation.js"; export class TranslateFromPosition extends SplashEffect { constructor(element, options) { super(element); options = options || {}; this.x = options.x || 0; this.y = options.y || 0; // Can be whatever, but the effect won't do // anything if it isn't a valid css unit. this.unit = options.unit || "px"; // Can be either "transform" or "position" this.translationType = options.translationType || "transform"; this.interpolation = options.interpolation || new Linear(); } in(value) { this._set( this.interpolation.in(value * -1 + 1) * this.x, this.interpolation.in(value * -1 + 1) * this.y ); } out(value) { this._set( this.interpolation.out(value) * this.x, this.interpolation.out(value) * this.y ); } _set(x, y) { if (this.translationType = "transform") { this.setTransform("translateX", x + this.unit); this.setTransform("translateY", y + this.unit); } else if (this.translationType = "position") { this.setStyle("left", x + this.unit); this.setStyle("top", y + this.unit); } else { console.error("Unknown translation type: " + this.translationType); } } }
Java
/*------------------------------------------------------------------------------ 27.0 - Localization ------------------------------------------------------------------------------*/ /* RTL except Hebrew (see below): Tahoma as the first font; */ body.rtl, body.rtl .press-this a.wp-switch-editor { font-family: Tahoma, Arial, sans-serif; } /* Arial is best for RTL headings. */ .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 { font-family: Arial, sans-serif; font-weight: 600; } /* he_IL: Remove Tahoma from the font stack. Arial is best for Hebrew. */ body.locale-he-il, body.locale-he-il .press-this a.wp-switch-editor { font-family: Arial, sans-serif; } /* he_IL: Have <em> be bold rather than italic. */ .locale-he-il em { font-style: normal; font-weight: 600; } /* zh_CN: Remove italic properties. */ .locale-zh-cn .howto, .locale-zh-cn .tablenav .displaying-num, .locale-zh-cn .js .input-with-default-title, .locale-zh-cn .link-to-original, .locale-zh-cn .inline-edit-row fieldset span.title, .locale-zh-cn .inline-edit-row fieldset span.checkbox-title, .locale-zh-cn #utc-time, .locale-zh-cn #local-time, .locale-zh-cn p.install-help, .locale-zh-cn p.help, .locale-zh-cn p.description, .locale-zh-cn span.description, .locale-zh-cn .form-wrap p { font-style: normal; } /* zh_CN: Enlarge dashboard widget 'Configure' link */ .locale-zh-cn .hdnle a { font-size: 12px; } /* zn_CH: Enlarge font size, set font-size: normal */ .locale-zh-cn form.upgrade .hint { font-style: normal; font-size: 100%; } /* zh_CN: Enlarge font-size. */ .locale-zh-cn #sort-buttons { font-size: 1em !important; } /* de_DE: Text needs more space for translation */ .locale-de-de #customize-header-actions .button, .locale-de-de-formal #customize-header-actions .button { padding: 0 5px 1px; /* default 0 10px 1px */ } .locale-de-de #customize-header-actions .spinner, .locale-de-de-formal #customize-header-actions .spinner { margin: 16px 3px 0; /* default 16px 4px 0 5px */ } /* ru_RU: Text needs more room to breathe. */ .locale-ru-ru #adminmenu { width: inherit; /* back-compat for pre-3.2 */ } .locale-ru-ru #adminmenu, .locale-ru-ru #wpbody { margin-right: 0; /* back-compat for pre-3.2 */ } .locale-ru-ru .inline-edit-row fieldset label span.title, .locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend { width: 8em; /* default 6em */ } .locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, .locale-ru-ru .inline-edit-row fieldset .timestamp-wrap { margin-right: 8em; /* default 6em */ } .locale-ru-ru.post-php .tagsdiv .newtag, .locale-ru-ru.post-new-php .tagsdiv .newtag { width: 165px; /* default 180px - 15px */ } .locale-ru-ru.press-this .posting { margin-left: 277px; /* default 252px + 25px */ } .locale-ru-ru .press-this-sidebar { width: 265px; /* default 240px + 25px */ } .locale-ru-ru #customize-header-actions .button { padding: 0 5px 1px; /* default 0 10px 1px */ } .locale-ru-ru #customize-header-actions .spinner { margin: 16px 3px 0; /* default 16px 4px 0 5px */ } /* lt_LT: QuickEdit */ .locale-lt-lt .inline-edit-row fieldset label span.title, .locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend { width: 8em; /* default 6em */ } .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, .locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { margin-right: 8em; /* default 6em */ } @media screen and (max-width: 782px) { .locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, .locale-ru-ru .inline-edit-row fieldset .timestamp-wrap, .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, .locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { margin-right: 0; } }
Java
<html><img border=0 src=716-53-0.txt alt=716-53-0.txt></img><body> "x" "1" "KAZIUS, J, MCGUIRE, R AND BURSI, R. DERIVATION AND VALIDATION OF TOXICOPHORES FOR MUTAGENICITY PREDICTION. J. MED. CHEM. 48: 312-320, 2005" </body></html>
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>quicksort-complexity: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.4.5 / quicksort-complexity - 8.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> quicksort-complexity <small> 8.6.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-05 04:20:23 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-05 04:20:23 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.4.5 Formal proof management system. num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.02.3 The OCaml compiler (virtual package) ocaml-base-compiler 4.02.3 Official 4.02.3 release ocaml-config 1 OCaml Switch Configuration ocamlbuild 0 Build system distributed with the OCaml compiler since OCaml 3.10.0 # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/quicksort-complexity&quot; license: &quot;BSD&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/QuicksortComplexity&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.7~&quot;} ] tags: [ &quot;keyword: quicksort&quot; &quot;keyword: complexity&quot; &quot;keyword: average-case&quot; &quot;category: Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms&quot; &quot;date: 2010-06&quot; ] authors: [ &quot;Eelis&quot; ] bug-reports: &quot;https://github.com/coq-contribs/quicksort-complexity/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/quicksort-complexity.git&quot; synopsis: &quot;Proofs of Quicksort&#39;s worst- and average-case complexity&quot; description: &quot;&quot;&quot; The development contains: - a set of monads and monad transformers for measuring a (possibly nondeterministic) algorithm&#39;s use of designated operations; - monadically expressed deterministic and nondeterministic implementations of Quicksort; - proofs of these implementations&#39; worst- and average case complexity. Most of the development is documented in the TYPES 2008 paper &quot;A Machine-Checked Proof of the Average-Case Complexity of Quicksort in Coq&quot;, available at the homepage.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/quicksort-complexity/archive/v8.6.0.tar.gz&quot; checksum: &quot;md5=8e941edc995b59591f737b122b66817c&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-quicksort-complexity.8.6.0 coq.8.4.5</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.4.5). The following dependencies couldn&#39;t be met: - coq-quicksort-complexity -&gt; coq &gt;= 8.6 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-quicksort-complexity.8.6.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
Java
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2020 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. // This file was automatically generated and should not be edited directly. using System; using System.Runtime.InteropServices; namespace SharpVk { /// <summary> /// Structure specifying parameters of a newly created framebuffer. /// </summary> [StructLayout(LayoutKind.Sequential)] public partial struct FramebufferCreateInfo { /// <summary> /// Reserved for future use. /// </summary> public SharpVk.FramebufferCreateFlags? Flags { get; set; } /// <summary> /// A render pass that defines what render passes the framebuffer will /// be compatible with. /// </summary> public SharpVk.RenderPass RenderPass { get; set; } /// <summary> /// An array of ImageView handles, each of which will be used as the /// corresponding attachment in a render pass instance. /// </summary> public SharpVk.ImageView[] Attachments { get; set; } /// <summary> /// width, height and layers define the dimensions of the framebuffer. /// If the render pass uses multiview, then layers must be one and each /// attachment requires a number of layers that is greater than the /// maximum bit index set in the view mask in the subpasses in which it /// is used. /// </summary> public uint Width { get; set; } /// <summary> /// /// </summary> public uint Height { get; set; } /// <summary> /// /// </summary> public uint Layers { get; set; } /// <summary> /// /// </summary> /// <param name="pointer"> /// </param> internal unsafe void MarshalTo(SharpVk.Interop.FramebufferCreateInfo* pointer) { pointer->SType = StructureType.FramebufferCreateInfo; pointer->Next = null; if (this.Flags != null) { pointer->Flags = this.Flags.Value; } else { pointer->Flags = default(SharpVk.FramebufferCreateFlags); } pointer->RenderPass = this.RenderPass?.handle ?? default(SharpVk.Interop.RenderPass); pointer->AttachmentCount = (uint)(Interop.HeapUtil.GetLength(this.Attachments)); if (this.Attachments != null) { var fieldPointer = (SharpVk.Interop.ImageView*)(Interop.HeapUtil.AllocateAndClear<SharpVk.Interop.ImageView>(this.Attachments.Length).ToPointer()); for(int index = 0; index < (uint)(this.Attachments.Length); index++) { fieldPointer[index] = this.Attachments[index]?.handle ?? default(SharpVk.Interop.ImageView); } pointer->Attachments = fieldPointer; } else { pointer->Attachments = null; } pointer->Width = this.Width; pointer->Height = this.Height; pointer->Layers = this.Layers; } } }
Java
namespace Sorting { using System; using System.Collections.Generic; using Constants; /// <summary> /// Define class for selection sort algorithm and its implementation /// </summary> /// <typeparam name="T">Type of the elements to be sorted</typeparam> /// <see cref="https://en.wikipedia.org/wiki/Selection_sort"/> /// <seealso cref="http://www.algolist.net/Algorithms/Sorting/Selection_sort"/> public class SelectionSorter<T> : ISorter<T> where T : IComparable<T> { public void Sort(IList<T> collection) { if (collection == null) { throw new ArgumentNullException(ExceptionMessage.CollectionCannotBeNullExceptionMessage); } int swapIndex = 0; for (int i = 0; i < collection.Count - 1; i++) { swapIndex = i; for (int j = i + 1; j < collection.Count; j++) { if (collection[swapIndex].CompareTo(collection[j]) > 0) { swapIndex = j; } } this.Swap(collection, i, swapIndex); } } private void Swap(IList<T> collection, int index, int swapIndex) { T swap = collection[index]; collection[index] = collection[swapIndex]; collection[swapIndex] = swap; } } }
Java
# encoding: utf-8 module Axiom class Relation module Operation # A mixin for Binary relations module Binary include Axiom::Operation::Binary # Hook called when module is included # # @param [Module] descendant # the module or class including Binary # # @return [undefined] # # @api private def self.included(descendant) super descendant.extend(ClassMethods) end private_class_method :included # Initialize a Binary relation # # @return [undefined] # # @api private def initialize(*) super @header = left.header | right.header end module ClassMethods # Instantiate a new Binary relation # # @example # binary = BinaryRelation.new(left, right) # # @param [Relation] left # @param [Relation] right # # @return [Binary] # # @api public def new(left, right) assert_sorted_match(left, right) super end private # Assert that sorted and unsorted relations are not mixed # # @param [Relation] left # @param [Relation] right # # @return [undefined] # # @raise [RelationMismatchError] # raised if one relation is sorted and the other is not # # @api private def assert_sorted_match(left, right) if left.directions.empty? != right.directions.empty? fail RelationMismatchError, 'both relations must be sorted or neither may be sorted' end end end # module ClassMethods end # module Binary end # module Operation end # class Relation end # module Axiom
Java
<?php /** * @file * * Contains \Drupal\Tests\test_example\Unit\TestExampleConversionsTest. */ namespace Drupal\Tests\test_example\Functional; use Drupal\simpletest\BrowserTestBase; /** * Ensure that the simpletest_example content type provided functions properly. * * The TestExampleFunctionalTest is a functional test case, meaning that it * actually exercises a particular sequence of actions through the web UI. * The majority of core test cases are done this way, but the SimpleTest suite * also provides unit tests as demonstrated in the unit test case example later * in this file. * * Functional test cases are far slower to execute than unit test cases because * they require a complete Drupal install to be done for each test. * * @see Drupal\simpletest\BrowserTestBase * @see SimpleTestUnitTestExampleTestCase * * @ingroup test_example * * SimpleTest uses group annotations to help you organize your tests. * * @group test_example * @group examples */ class TestExampleFunctionalTest extends BrowserTestBase { /** * The installation profile to use with this test. * * @var string */ protected $profile = 'standard'; /** * Test node creation through the user interface. * * Creates a node using the node/add form and verifies its consistency in * the database. */ public function testSimpleTestExampleCreate() { // Create a user. $user = $this->drupalCreateUser([], NULL, TRUE); // Log in our user. $this->drupalLogin($user); // Create a node using the node/add form. $edit = []; $edit['title[0][value]'] = $this->randomMachineName(32); $edit['body[0][value]'] = $this->randomMachineName(32); $this->drupalPostForm('node/add/article', $edit, t('Save and publish')); // Check that our article node has been created. $this->assertText(t('@post @title has been created.', [ '@post' => 'Article', '@title' => $edit['title[0][value]'], ])); // Check that the node exists in the database. $node = $this->drupalGetNodeByTitle($edit['title[0][value]']); $this->assertTrue($node, 'Node found in database.'); } }
Java
<?php /* /* Safe sample input : use exec to execute the script /tmp/tainted.php and store the output in $tainted SANITIZE : uses indirect reference construction : prepared query and no right verification */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.*/ $script = "/tmp/tainted.php"; exec($script, $result, $return); $tainted = $result[0]; $course_array = array(); //get the user id $user_id = intval($_SESSION[‘user_id’]); //creation of the references with only data allowed to the user $result = mysql_query("SELECT * FROM COURSE where course.allowed = {$user_id}"); while ($row = mysql_fetch_array($result)) { $course_array[] = $result[‘id’]; } $_SESSION[‘course_array’] = $course_array; if (isset($_SESSION[‘course_array’])) { $course_array = $_SESSION[‘course_array’]; if (isset($course_array[$taintedId])) { //indirect reference > get the right id $tainted = $course_array[$tainted]; } } else { $tainted = 0; //default value } $query = "SELECT * FROM COURSE WHERE id=?"; $conn = mysql_connect('localhost', 'mysql_user', 'mysql_password'); //Connection to the database (address, user, password) $stmt = $conn->prepare($query); $stmt->bind_param("i", $checked_data); $stmt->execute(); mysql_close($conn);
Java
package com.myconnector.client.domain; import java.util.List; import com.google.gwt.user.client.rpc.IsSerializable; import com.myconnector.client.domain.interfaces.ITodoContext; import com.myconnector.client.domain.interfaces.ITodoItem; import com.myconnector.client.domain.interfaces.ITodoList; public class TodoListClient implements IsSerializable, ITodoList { private Long id; private String title; private boolean todoItemsLoaded = false; private List<ITodoItem> todoItems; private Integer position; private ITodoContext context; public TodoListClient() { } public TodoListClient(Long id, String title) { super(); this.id = id; this.title = title; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public List<ITodoItem> getTodoItems() { return todoItems; } public void setTodoItems(List<ITodoItem> todoItems) { this.todoItems = todoItems; } public Integer getPosition() { return position; } public void setPosition(Integer position) { this.position = position; } public boolean isTodoItemsLoaded() { return todoItemsLoaded; } public void setTodoItemsLoaded(boolean todoItemsLoaded) { this.todoItemsLoaded = todoItemsLoaded; } public ITodoContext getContext() { return context; } public void setContext(ITodoContext context) { this.context = context; } }
Java
/** * Wheel, copyright (c) 2019 - present by Arno van der Vegt * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const File = require('./File'); exports.FileDetail = class extends File.File { constructor(opts) { opts.className = 'file detail'; super(opts); } initDOM(parentNode) { let file = this._file; this.create( parentNode, { id: this.setElement.bind(this), className: this._className, children: [ File.getIcon(this._getImage, file), { id: this.setLinkElement.bind(this), type: 'a', href: '#', className: 'no-select name', innerHTML: file.name }, !file.directory && file.size ? { type: 'span', href: '#', className: 'no-select size', innerHTML: file.size + ' - ' + this.bytesToSize(file.size) } : null, (file.modified || file.hash) ? { type: 'span', href: '#', className: 'no-select modified', innerHTML: file.modified || file.hash } : null ] } ); } /** * https://stackoverflow.com/questions/15900485/correct-way-to-convert-size-in-bytes-to-kb-mb-gb-in-javascript **/ bytesToSize(bytes) { const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']; if (parseInt(bytes, 10) === 0) { return '0 Byte'; } let i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024))); return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[i]; } };
Java
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Position } from '../core/position'; import { Range } from '../core/range'; import { InlineDecoration, ViewModelDecoration } from './viewModel'; import { filterValidationDecorations } from '../config/editorOptions'; var ViewModelDecorations = /** @class */ (function () { function ViewModelDecorations(editorId, model, configuration, linesCollection, coordinatesConverter) { this.editorId = editorId; this.model = model; this.configuration = configuration; this._linesCollection = linesCollection; this._coordinatesConverter = coordinatesConverter; this._decorationsCache = Object.create(null); this._cachedModelDecorationsResolver = null; this._cachedModelDecorationsResolverViewRange = null; } ViewModelDecorations.prototype._clearCachedModelDecorationsResolver = function () { this._cachedModelDecorationsResolver = null; this._cachedModelDecorationsResolverViewRange = null; }; ViewModelDecorations.prototype.dispose = function () { this._decorationsCache = Object.create(null); this._clearCachedModelDecorationsResolver(); }; ViewModelDecorations.prototype.reset = function () { this._decorationsCache = Object.create(null); this._clearCachedModelDecorationsResolver(); }; ViewModelDecorations.prototype.onModelDecorationsChanged = function () { this._decorationsCache = Object.create(null); this._clearCachedModelDecorationsResolver(); }; ViewModelDecorations.prototype.onLineMappingChanged = function () { this._decorationsCache = Object.create(null); this._clearCachedModelDecorationsResolver(); }; ViewModelDecorations.prototype._getOrCreateViewModelDecoration = function (modelDecoration) { var id = modelDecoration.id; var r = this._decorationsCache[id]; if (!r) { var modelRange = modelDecoration.range; var options = modelDecoration.options; var viewRange = void 0; if (options.isWholeLine) { var start = this._coordinatesConverter.convertModelPositionToViewPosition(new Position(modelRange.startLineNumber, 1)); var end = this._coordinatesConverter.convertModelPositionToViewPosition(new Position(modelRange.endLineNumber, this.model.getLineMaxColumn(modelRange.endLineNumber))); viewRange = new Range(start.lineNumber, start.column, end.lineNumber, end.column); } else { viewRange = this._coordinatesConverter.convertModelRangeToViewRange(modelRange); } r = new ViewModelDecoration(viewRange, options); this._decorationsCache[id] = r; } return r; }; ViewModelDecorations.prototype.getDecorationsViewportData = function (viewRange) { var cacheIsValid = (this._cachedModelDecorationsResolver !== null); cacheIsValid = cacheIsValid && (viewRange.equalsRange(this._cachedModelDecorationsResolverViewRange)); if (!cacheIsValid) { this._cachedModelDecorationsResolver = this._getDecorationsViewportData(viewRange); this._cachedModelDecorationsResolverViewRange = viewRange; } return this._cachedModelDecorationsResolver; }; ViewModelDecorations.prototype._getDecorationsViewportData = function (viewportRange) { var modelDecorations = this._linesCollection.getDecorationsInRange(viewportRange, this.editorId, filterValidationDecorations(this.configuration.options)); var startLineNumber = viewportRange.startLineNumber; var endLineNumber = viewportRange.endLineNumber; var decorationsInViewport = [], decorationsInViewportLen = 0; var inlineDecorations = []; for (var j = startLineNumber; j <= endLineNumber; j++) { inlineDecorations[j - startLineNumber] = []; } for (var i = 0, len = modelDecorations.length; i < len; i++) { var modelDecoration = modelDecorations[i]; var decorationOptions = modelDecoration.options; var viewModelDecoration = this._getOrCreateViewModelDecoration(modelDecoration); var viewRange = viewModelDecoration.range; decorationsInViewport[decorationsInViewportLen++] = viewModelDecoration; if (decorationOptions.inlineClassName) { var inlineDecoration = new InlineDecoration(viewRange, decorationOptions.inlineClassName, decorationOptions.inlineClassNameAffectsLetterSpacing ? 3 /* RegularAffectingLetterSpacing */ : 0 /* Regular */); var intersectedStartLineNumber = Math.max(startLineNumber, viewRange.startLineNumber); var intersectedEndLineNumber = Math.min(endLineNumber, viewRange.endLineNumber); for (var j = intersectedStartLineNumber; j <= intersectedEndLineNumber; j++) { inlineDecorations[j - startLineNumber].push(inlineDecoration); } } if (decorationOptions.beforeContentClassName) { if (startLineNumber <= viewRange.startLineNumber && viewRange.startLineNumber <= endLineNumber) { var inlineDecoration = new InlineDecoration(new Range(viewRange.startLineNumber, viewRange.startColumn, viewRange.startLineNumber, viewRange.startColumn), decorationOptions.beforeContentClassName, 1 /* Before */); inlineDecorations[viewRange.startLineNumber - startLineNumber].push(inlineDecoration); } } if (decorationOptions.afterContentClassName) { if (startLineNumber <= viewRange.endLineNumber && viewRange.endLineNumber <= endLineNumber) { var inlineDecoration = new InlineDecoration(new Range(viewRange.endLineNumber, viewRange.endColumn, viewRange.endLineNumber, viewRange.endColumn), decorationOptions.afterContentClassName, 2 /* After */); inlineDecorations[viewRange.endLineNumber - startLineNumber].push(inlineDecoration); } } } return { decorations: decorationsInViewport, inlineDecorations: inlineDecorations }; }; return ViewModelDecorations; }()); export { ViewModelDecorations };
Java
<?php namespace Code200\ImageKing\Classes; use Cms\Helpers\File; use Code200\ImageKing\Classes\Exceptions\ExtensionNotAllowedException; use Code200\Imageking\models\Settings; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\URL; class ImageService { /** * @var string */ private $html; /** * @var DomManipulator */ private $domImageFinder; /** * Filepath of current image * @var string */ private $imageFilePath; /** * @var Settings */ private $s; /** * Allowed image extensions * @var array */ private $allowedExtensions; /** * Responsive sizes * @var array */ private $responsiveSizes; /** * ImageService constructor. * @param string $html */ public function __construct($html) { $this->html = $html; $this->setDomImageFinder(); $this->s = Settings::instance(); } protected function setDomImageFinder() { $this->domImageFinder = new DomImageFinder($this->html); } /** * Process images and returns modified HTML containing images. * * @return string */ public function process() { $imageNodes = $this->domImageFinder->getImageNodes(); foreach ($imageNodes as $node) { try { //get image $this->imageFilePath = $this->getFilePathFromNode($node); $image = $this->getNewImageManipulator($this->imageFilePath); $this->checkIfProcessable($image); //check cache $newMainImagePath = $image->getStoragePath(); if(!file_exists($newMainImagePath) || empty(Settings::get("enable_cache", 0)) ) { $imgChanged = $this->processMainImage($image); } $node->setAttribute("src", $image->getPublicUrl($newMainImagePath)); //responsive versions $this->prepareResponsiveVersions($this->imageFilePath, $node); //captions $this->applyCaptions($node); } catch (\RemotePathException $e) { //we simply cant and dont want to process remote images ... continue; } catch (ExtensionNotAllowedException $e) { //we dont want to process certain files I guess continue; } catch (\Exception $e) { Log::warning("[Code200.ImageKing] could not process image: " . $this->imageFilePath); continue; } } return $this->domImageFinder->dom->saveHTML(); } private function processMainImage(&$image) { $imgChanged = false; //limit its output size in case we dont want to share sources $maxWidth = $this->s->get("max_width"); if (!empty($maxWidth) && $maxWidth < $image->getWidth() ) { $image->resize($maxWidth, null); $imgChanged = true; } //watermark if ($this->shouldWatermark()) { $image->applyWatermark(); $imgChanged = true; } if($imgChanged || $this->s->get("enable_private_paths")) { $newMainImagePath = $image->getStoragePath(); $image->save($newMainImagePath); // $node->setAttribute("src", $image->getPublicUrl($newMainImagePath)); } return $imgChanged; } /** * Return new image manipulator object * @param $imagePath * @return ImageManipulator */ protected function getNewImageManipulator($imagePath){ return new ImageManipulator($imagePath); } /** * Is watermarking enabled in settings * @return bool */ private function shouldWatermark() { $isWatermarkEnabled = $this->s->get("enable_watermark"); if (!$isWatermarkEnabled) { return false; } return true; } private function applyCaptions(&$node){ if(empty($this->s->get("enable_captions")) && ! empty($node->getAttribute("title"))){ return; } $figureElement = $this->domImageFinder->dom->createElement("figure"); $captionElement = $this->domImageFinder->dom->createElement("figcaption", $node->getAttribute("title")); $node->parentNode->replaceChild($figureElement, $node); $figureElement->appendChild($node); $figureElement->appendChild($captionElement); } /** * Returns array of allowed image extensions to be manipulated * @return array string */ private function getAllowedExtensions() { if (empty($this->allowedExtensions)) { $this->allowedExtensions = array_map( function ($element) { return trim($element); }, explode(",", $this->s->get("allowed_extensions")) ); } return $this->allowedExtensions; } /** * Returns int array of responsive sizes * @return array int */ private function getResponsiveSizes() { if (empty($this->responsiveSizes)) { if(!empty($this->s->get("responsive_sizes"))) { //fetch from settings $this->responsiveSizes = array_map( function ($el) { if (empty($el)) { return null; } return (int)trim($el); }, explode(",", $this->s->get("responsive_sizes")) ); //limit max size to settings $this->responsiveSizes = array_filter($this->responsiveSizes, function($el){ if(!empty($el) && (empty($this->getMaxWidth()) || $this->getMaxWidth() >= $el)) { return true; } }); } else { $this->responsiveSizes = array(); } } return $this->responsiveSizes; } /** * Checks if image is processable * @param ImageManipulator $image * @return bool */ protected function checkIfProcessable($image) { if (!in_array($image->getExtension(), $this->getAllowedExtensions())) { throw new ExtensionNotAllowedException("Extension not allowed."); } return true; } /** * @param $imagePath * @param $node * @return ImageManipulator * @throws \Exception */ private function prepareResponsiveVersions($imagePath, &$node) { $srcSetAttributes = array(); foreach ($this->getResponsiveSizes() as $newSize) { $image = $this->getNewImageManipulator($imagePath); $newPath = $image->getStoragePath($newSize); if( !file_exists($newPath) || empty(Settings::get("enable_cache", false))){ $image->resize($newSize, null); if($this->shouldWatermark()){ $image->applyWatermark(); } // $newPath = $image->getStoragePath($newSize); $image->save($newPath); $srcSetAttributes[] = sprintf('%s %sw', $image->getPublicUrl($newPath), $newSize); } else { $srcSetAttributes[] = sprintf('%s %sw', $image->getPublicUrl($newPath), $newSize); } } $node->setAttribute('srcset', implode(",", $srcSetAttributes)); } /** * Gets max (limit) image width from settings * @return int */ private function getMaxWidth(){ return (int)trim($this->s->get("max_width")); } /** * Remove the local host name from path src and add the base path. * * @param $node * @return mixed */ protected function getFilePathFromNode($node) { $imagePath = rawurldecode($this->domImageFinder->getSrcAttribute($node)); return str_replace(URL::to('/'), '', base_path($imagePath)); } }
Java
wedge = 14 background = { epsilon = 0.997179, q = 0.619347 } streams = { { epsilon = -1.297424, mu = 190.545111, r = 13.878006, theta = 0.198390, phi = 3.139994, sigma = 3.743833 }, { epsilon = -1.008419, mu = 199.646461, r = 39.369932, theta = 1.119290, phi = 0.926942, sigma = 8.875175 }, { epsilon = -3.069995, mu = 156.562280, r = 16.517515, theta = 0.332154, phi = 0.588367, sigma = 1.400307 } } area = { { r_min = 16, r_max = 22.5, r_steps = 700, mu_min = 135, mu_max = 235, mu_steps = 800, nu_min = -1.25, nu_max = 1.25, nu_steps = 320 } }
Java
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2014 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement. * */ #ifndef HKBASE_MEMORY_TRACKER_H #define HKBASE_MEMORY_TRACKER_H struct hkSubString; class hkMemorySystem; class HK_EXPORT_COMMON hkMemoryTracker { //+reflected(false) //+hk.MemoryTracker(ignore=True) public: HK_DECLARE_PLACEMENT_ALLOCATOR(); typedef hkMemoryRouter::Allocator Allocator; struct Member //+reflected(false) { //+hk.MemoryTracker(ignore=True) enum { FLAG_BACK_POINTER = 1 }; hkUint16 m_offset; ///< Offset from object start (in bytes) hkUint16 m_memberSize; ///< Size of the member - this is the only way I can see if a member is a reference const char* m_typeName; ///< The type of the field const char* m_name; ///< The name of the field hkUint32 m_flags; }; // Basic types are guarenteed to not have any pointers (such as enums, or structs that contain only ints/floats) // NOTE! Do not change the order of these members without updating the init structure struct TypeDefinition //+reflected(false) { //+hk.MemoryTracker(ignore=True) enum Type { TYPE_BASIC, ///< Contains no pointers to anything else TYPE_CLASS, ///< Is a class (or struct). May contain pointers. TYPE_SCAN, ///< Its a class that contains variable amount of pointers. Will be scanned. }; const char* m_typeName; ///< The type const char* m_library; ///< The library this type belongs to hkUint16 m_size; ///< The size hkUint8 m_alignment; ///< the alignment hkUint8 m_type; ///< The type }; struct ClassDefinition: public TypeDefinition //+reflected(false) { //+hk.MemoryTracker(ignore=True) // Extra members const Member* m_members; ///< The members that belong to this class (or HK_NULL) const char* m_parentTypeName; ///< The parent classes name (or HK_NULL if doesn't have one) hkUint16 m_numMembers; ///< The number of members hkUint8 m_isVirtual; ///< True if the type is virtual hkInt8 m_parentOffset; ///< Num bytes from this type to the parent (often 0, but not always). I.e., add to this to get to the parent. }; struct InitClassDefinition //+reflected(false) { //+hk.MemoryTracker(ignore=True) // TypeDefinition const char* m_typeName; ///< The type const char* m_library; ///< The library this belongs to hkUint16 m_size; ///< The size hkUint8 m_alignment; ///< the alignment hkUint8 m_type; ///< The type // Class definition const Member* m_members; ///< The members that belong to this class (or HK_NULL) const char* m_parentTypeName; ///< The parent classes name (or HK_NULL if doesn't have one) hkUint16 m_numMembers; ///< The number of members hkUint8 m_isVirtual; ///< True if the type is virtual hkInt8 m_parentOffset; ///< Num bytes from this type to the parent (often 0, but not always). I.e., add to this to get to the parent. }; /// New hkReferenced derived object virtual void onNewReferencedObject(const char* typeName, hk_size_t size, void* ptr) = 0; /// Delete hkReferenced derived object virtual void onDeleteReferencedObject(void* ptr) = 0; /// New object virtual void onNewObject(const char* typeName, hk_size_t size, void* ptr) = 0; /// Delete hkReferenced derived object virtual void onDeleteObject(void* ptr) = 0; /// New untyped buffer - will not be scanned virtual void onNewRaw(const char* name, hk_size_t size, void* ptr) = 0; /// Delete untyped buffer virtual void onDeleteRaw(void* ptr) = 0; /// Add a class definition. NOTE the clsDef structure, and its members are assumed to be stay in scope for /// the life of the tracker. virtual void addTypeDefinition(const TypeDefinition& def)= 0; /// Clear the type definition list, any registered types are now forgotten about until they are /// registered again virtual void clearTypeDefinitions() = 0; /// Find a class definition virtual const TypeDefinition* findTypeDefinition(const char* name) = 0; /// For type determination virtual const hkClass* getClassType() const { return HK_NULL; } /// Get all of the class. Returns number of definitions. Passing typeDefinition as HK_NULL just returns size. virtual hk_size_t getTypeDefinitions(const TypeDefinition** typeDefinitions) = 0; /// Find a class definition from a regular c string const TypeDefinition* findTypeDefinition(const hkSubString& name); /// Returns true if its a basic (i.e., has no pointers etc) type. hkBool isBasicType(const hkSubString& name); /// Get the class definition const ClassDefinition* findClassDefinition(const hkSubString& name); const ClassDefinition* findClassDefinition(const char* name); /// Virtual Dtor virtual ~hkMemoryTracker() {} /// Get the instance - may return null if tracking is not initialized. static inline hkMemoryTracker* HK_CALL getInstancePtr() { return s_singleton; } /// Get the instance - if not set, returns a dummy tracker that ignores all events. static hkMemoryTracker& HK_CALL getInstance(); /// Set the instance static void HK_CALL setInstance(hkMemoryTracker* tracker); protected: static hkMemoryTracker* s_singleton; }; #endif // HKBASE_MEMORY_TRACKER_H /* * Havok SDK - NO SOURCE PC DOWNLOAD, BUILD(#20140907) * * Confidential Information of Havok. (C) Copyright 1999-2014 * Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok * Logo, and the Havok buzzsaw logo are trademarks of Havok. Title, ownership * rights, and intellectual property rights in the Havok software remain in * Havok and/or its suppliers. * * Use of this software for evaluation purposes is subject to and indicates * acceptance of the End User licence Agreement for this product. A copy of * the license is included with this software and is also available at www.havok.com/tryhavok. * */
Java
const _transform = require('lodash/transform'); function MatchTransformer(match) { if( !(this instanceof MatchTransformer) ) { return this.transform(new MatchTransformer(match)); } if( typeof match === 'string' ) { // Escape string match = match.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); match = new RegExp(match); } this._match = match; } MatchTransformer.prototype.parse = function(source) { return _transform(source, (result, value, key) => { if( this._match.test(key) ) result[key] = value; }, {}); }; MatchTransformer.prototype.reverse = MatchTransformer.prototype.parse; module.exports = MatchTransformer;
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>huffman: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.1 / huffman - 8.13.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> huffman <small> 8.13.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-10-15 03:37:57 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-15 03:37:57 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.5.1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;palmskog@gmail.com&quot; homepage: &quot;https://github.com/coq-community/huffman&quot; dev-repo: &quot;git+https://github.com/coq-community/huffman.git&quot; bug-reports: &quot;https://github.com/coq-community/huffman/issues&quot; doc: &quot;https://coq-community.github.io/huffman/&quot; license: &quot;LGPL-2.1-or-later&quot; synopsis: &quot;Coq proof of the correctness of the Huffman coding algorithm&quot; description: &quot;&quot;&quot; This projects contains a Coq proof of the correctness of the Huffman coding algorithm, as described in David A. Huffman&#39;s paper A Method for the Construction of Minimum-Redundancy Codes, Proc. IRE, pp. 1098-1101, September 1952.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] depends: [ &quot;coq&quot; {&gt;= &quot;8.12&quot; &amp; &lt; &quot;8.15~&quot;} ] tags: [ &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms&quot; &quot;category:Miscellaneous/Extracted Programs/Combinatorics&quot; &quot;keyword:data compression&quot; &quot;keyword:code&quot; &quot;keyword:huffman tree&quot; &quot;logpath:Huffman&quot; &quot;date:2021-07-30&quot; ] authors: [ &quot;Laurent Théry&quot; ] url { src: &quot;https://github.com/coq-community/huffman/archive/v8.13.0.tar.gz&quot; checksum: &quot;sha512=7a38feed6b2757badaf696729287bf5df7a8786e97e3133faf647335ab36ecd7c83caa8c359288d4b8dff89012bdc240a9eb548f3ffe3dc5757244d4ea0f9b78&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-huffman.8.13.0 coq.8.5.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.1). The following dependencies couldn&#39;t be met: - coq-huffman -&gt; coq &gt;= 8.12 Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-huffman.8.13.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
Java
body { margin:0; padding:0; font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing:antialiased; font-size:11px; } a { color:#111; } a:hover { text-decoration:none; } header { background:url(header.jpg) center center #111; text-align:center; color:#fff; position:relative; padding:5em 5% 10em; background-size:cover; } header h1 { font-size:3em; text-transform:uppercase; margin-bottom:0.2em; color:#fff; letter-spacing:0.1em; font-weight:500; } header h2 { font-size:1.7em; font-weight:400; line-height:1.2; color:#fff; max-width:25em; margin-bottom:1.5em; } header a { color:#fff; } header .btn { border:0.2em solid #fff; color:#fff; text-transform:uppercase; padding:0.6em 1em; font-weight:bold; font-size:1.1em; text-decoration:none; margin:1em 0.5em; display:inline-block; transition:0.15s all ease; } header .btn:hover { background:#fff; color:#5e5d9d; transition:0.15s all ease; } header span { font-size:1em; font-weight:normal; text-transform:uppercase; color:rgb(30, 128, 105); position:absolute; bottom:2em; text-align:center; left:0; right:0; letter-spacing:0.3em; } address { display:inline; } address a { color:rgb(30, 128, 105); } h1, h2, h3, h4, h5, h6, p, li, blockquote { font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; } h2, h3 { margin:0 auto 0.2em; color:#000; font-weight:400; line-height:1.2; } h2 { font-size:3em; max-width:60rem; text-align:center; } h3, p { max-width:60rem; } hr { border:0; border-bottom:1px solid #ddd; } .lead { text-align:center; } p { color:#65777c; font-size:1.5em; margin:0 auto 1.5em; line-height:1.45; } blockquote { color:#13b38f; font-size:3em; max-width:18em; margin:1.5em auto; border:0; text-align:center; line-height:1.2; font-weight:300; padding:0; } section { padding:4em 5%; text-align:center; max-width:90%; margin:0 auto; overflow:hidden; } footer { padding:6em 0 0em; margin:0 auto; } footer hr { border-color:#333; margin:5em 0 0; } footer > div > * { display:inline-block; vertical-align:middle; margin-right:2em; } footer span { color:#999; } section img { max-width:90%; } h3 { font-size:1.6em; } footer { background:#000; color:#fff; text-align:center; } footer h2 { color:#fff; max-width:60em; font-size:2.5em; } footer p { color:#959DA0; max-width:60em; font-size:1.3em; } footer a { text-decoration:none; color:#eee; } footer a:hover { background:rgba(255,255,255,0.1); color:#fff; border-color:#fff; } footer .btn { color:#eee; text-decoration:none; padding-bottom:0.2em; display:inline-block; margin:0 0.5em; border-bottom:2px solid #ccc; } iframe { border:0; } footer { padding-left:10%; padding-right:10%; } .social-buttons li { list-style:none; display:inline-block; padding:1em; } #box > div { text-align:left; } #box hr { clear:both; border-color:transparent; } footer > div { padding:2em 0; max-width:70em; text-align:left; margin:0 auto; } @media(min-width:764px) { body { font-size:13px; } #box > div { width:30%; float:left; text-align:left; margin:2em 0 0 3%; } #box > div p { font-size:1.2em; } .logo { position:absolute; top:30px; left:30px; } section { max-width:70em; padding:5em 5%; } header { padding-top:10em; padding-bottom:20em; } footer { padding:5em 0 1em; } .social-buttons { margin:5em 0 0; } } @media(min-width:960px) { body { font-size:14px; } header h1 { font-size:5em; } h3 { font-size:1.5em; } } div#demo { min-height: 374px; } .container{ padding: 20px; } .container h2{ padding-bottom: .3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; margin-top: 1em; margin-bottom: 16px; font-weight: bold; float: left; } .container a{ margin-right: 5px; } .container p{ margin-left: 0px; } .container img{ border-radius: 3px; } .container code{ padding: 2px 4px; border: 1px solid #ccc; margin: 0; font-size: 14px; background-color: #e8e7e7; border-radius: 3px; } .container .install p{ position: absolute; margin-top: 65px; } .container .listbox{ padding: 20px; position: absolute; margin-top: 120px; }
Java
import ProgressBar from "progress"; import padEnd from "lodash/padEnd"; class ProgressBarController { constructor() { this.bar = null; } init(total) { if (this.bar) { this.terminate(); } // Intentionally a noop because node-progress doesn't work well in non-TTY // environments if (!process.stdout.isTTY) { return; } // Don't do any of this while testing if (process.env.NODE_ENV === "lerna-test") { return; } this.bar = new ProgressBar(":packagename ╢:bar╟", { total: total, complete: "█", incomplete: "░", clear: true, // terminal columns - package name length - additional characters length width: (process.stdout.columns || 100) - 50 - 3 }); } tick(name) { if (this.bar) { this.bar.tick({ packagename: padEnd(name.slice(0, 50), 50) }); } } clear() { if (this.bar) { this.bar.terminate(); } } restore() { if (this.bar) { // This is a hack to get the bar to redraw it's last state. // See: https://github.com/tj/node-progress/blob/d47913502ba5b551fcaad9e94fe7b2f5876a7939/lib/node-progress.js#L154-L159 this.bar.stream.write(this.bar.lastDraw); } } terminate() { this.clear(); this.bar = null; } } export default new ProgressBarController();
Java
var commons = require('../commons') var frisby = require('frisby'); var FormData = require('form-data'); frisby.create('Get file') .get(commons.host+'/file/2134354/zgzhrthztrh/sgeh' ) .after(function(err, res, body) { expect(res.request.href.match(/errcode=404/)).not.toBeNull() }) .toss()
Java
<!doctype html> <!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]--> <head> <!-- Meta, title, CSS, favicons, etc. --> {% include base/head.html %} </head> <body> <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a> {% include components/toolbar.html %} {% include layout/header.html %} {% include components/banner.html %} <main class="app-main" role="main"> <div class="app-main-section"> <div class="app-main-aside"> {% include layout/sidebar.html %} </div> <div class="app-main-content"> {{ content }} </div> </div> </main> {% include layout/footer.html %} {% include base/javascript.html %} <div class="app-js-slot"> {% include base/webfonts.html %} </div> </body> </html>
Java
<?php namespace Frontend\PublicBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and manages your bundle configuration * * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} */ class FrontendPublicExtension extends Extension { /** * {@inheritDoc} */ public function load(array $configs, ContainerBuilder $container) { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.yml'); } }
Java
package command import ( "fmt" "os" "path/filepath" "time" "github.com/kemokemo/gckdir/lib" "github.com/skratchdot/open-golang/open" "github.com/urfave/cli" ) var ( // UsageVerify is Usage of verify subcommand for cli UsageVerify = "Verifies the structure and each hash value of files." ) // CmdVerify verifies directory information below cases. // Case 1. a json file of hash list with target directory // Case 2. source directory with target directory func CmdVerify(c *cli.Context) error { help := fmt.Sprintf("Please see '%s %s --help'.", c.App.Name, c.Command.FullName()) source := c.Args().Get(0) target := c.Args().Get(1) if source == "" || target == "" { return cli.NewExitError( fmt.Sprintf("Source path or target path is empty. %s", help), ExitCodeInvalidArguments) } source = filepath.Clean(source) target = filepath.Clean(target) sourceList, err := lib.GetHashList(source) if err != nil { return cli.NewExitError( fmt.Sprintf("Failed to get the hash list. %v\n%s", err, help), ExitCodeFunctionError) } targetList, err := lib.GetHashList(target) if err != nil { return cli.NewExitError( fmt.Sprintf("Failed to get the hash list. %v\n%s", err, help), ExitCodeFunctionError) } result := lib.VerifyHashList(sourceList, targetList, !c.Bool("no-hv"), !c.Bool("no-uv")) var path string if c.Bool("report") || c.Bool("open") { pathList := lib.PathList{SourcePath: source, TargetPath: target} path, err = createReport(c.String("output"), pathList, result) if err != nil { return cli.NewExitError( fmt.Sprintf("Failed to create a result report. %v\n%s", err, help), ExitCodeFunctionError) } } if c.Bool("open") { err = open.Run(path) if err != nil { return cli.NewExitError( fmt.Sprintf("Failed to open a result report. %v\n%s", err, help), ExitCodeFunctionError) } } if result.VerifyResult == false { fmt.Println("Verification failed.") return cli.NewExitError("", ExitCodeVerificationFailed) } return nil } func createReport(output string, pathList lib.PathList, result lib.HashList) (string, error) { cd, err := os.Getwd() if err != nil { return "", err } if output == "" { output = time.Now().Format("Result_20060102-030405.000000000.html") } path := filepath.Join(cd, output) file, err := os.Create(path) defer func() { err = file.Close() if err != nil { fmt.Println("failed to close file: ", err) } }() err = lib.CreateReport(file, pathList, result) if err != nil { return "", err } path = filepath.Join("file:///", path) return path, nil }
Java
search_result['2189']=["topic_0000000000000543_attached_props--.html","VerifyPhoneNumberModel Attached Properties",""];
Java
/// <reference path="Transform3D.ts" /> namespace zen { export class GameObject extends Transform3D { public name:string = "GameObject"; public tag:string = ""; public layer:string = ""; private _guid:string = zen.guid.create(); public get guid() { return this._guid; } private _app:Application; constructor(app:Application) { super(); this._app = app; } private _components:{[key:string]:Component} = {}; public addComponent(component:Component):void { let system:System = this._app.systemManager.getSystem(component.type); if(system) { if(!this._components[component.type]) { component.gameObject = this; system.addComponent(this, component); this._components[component.type] = component; } else { console.error("Game Object already has " + component.type + " Component"); } } else { console.error("System: " + component.type + " doesn't exist"); } } public getComponent<T extends Component>(type:ComponentType | number):T { return <T>this._components[type]; } public removeComponent(component:Component):void { let system:System = this._app.systemManager.getSystem(component.type); if(system) { if(this._components[component.type]) { component.gameObject = null; system.removeComponent(this); delete this._components[component.type]; } else { console.error("Game Object doesn't have " + component.type + " Component"); } } else { console.error("System: " + component.type + " doesn't exist"); } } } }
Java
$(document).ready(function () { startAnimation(); }); if (!window.requestAnimationFrame) { window.requestAnimationFrame = (window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function (callback) { return window.setTimeout(callback, 1000 / 60); }); } (function ($, window) { function Constellation (canvas, options) { var $canvas = $(canvas), context = canvas.getContext('2d'), defaults = { star: { color: 'rgba(255, 255, 255, .5)', width: 2 }, line: { color: 'rgba(255, 255, 255, .5)', width: 0.4 }, position: { x: 0, // This value will be overwritten at startup y: 0 // This value will be overwritten at startup }, width: window.innerWidth, height: window.innerHeight, velocity: 0.1, length: 100, distance: 120, radius: 150, stars: [] }, config = $.extend(true, {}, defaults, options); function Star () { this.x = Math.random() * canvas.width; this.y = Math.random() * canvas.height; this.vx = (config.velocity - (Math.random() * 0.5)); this.vy = (config.velocity - (Math.random() * 0.5)); this.radius = Math.random() * config.star.width; } Star.prototype = { create: function(){ context.beginPath(); context.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false); context.fill(); }, animate: function(){ var i; for (i = 0; i < config.length; i++) { var star = config.stars[i]; if (star.y < 0 || star.y > canvas.height) { star.vx = star.vx; star.vy = - star.vy; } else if (star.x < 0 || star.x > canvas.width) { star.vx = - star.vx; star.vy = star.vy; } star.x += star.vx; star.y += star.vy; } }, line: function(){ var length = config.length, iStar, jStar, i, j; for (i = 0; i < length; i++) { for (j = 0; j < length; j++) { iStar = config.stars[i]; jStar = config.stars[j]; if ( (iStar.x - jStar.x) < config.distance && (iStar.y - jStar.y) < config.distance && (iStar.x - jStar.x) > - config.distance && (iStar.y - jStar.y) > - config.distance ) { if ( (iStar.x - config.position.x) < config.radius && (iStar.y - config.position.y) < config.radius && (iStar.x - config.position.x) > - config.radius && (iStar.y - config.position.y) > - config.radius ) { context.beginPath(); context.moveTo(iStar.x, iStar.y); context.lineTo(jStar.x, jStar.y); context.stroke(); context.closePath(); } } } } } }; this.createStars = function () { var length = config.length, star, i; context.clearRect(0, 0, canvas.width, canvas.height); for (i = 0; i < length; i++) { config.stars.push(new Star()); star = config.stars[i]; star.create(); } star.line(); star.animate(); }; this.setCanvas = function () { canvas.width = config.width; canvas.height = config.height; }; this.setContext = function () { context.fillStyle = config.star.color; context.strokeStyle = config.line.color; context.lineWidth = config.line.width; }; this.setInitialPosition = function () { if (!options || !options.hasOwnProperty('position')) { config.position = { x: canvas.width * 0.5, y: canvas.height * 0.5 }; } }; this.loop = function (callback) { callback(); window.requestAnimationFrame(function () { this.loop(callback); }.bind(this)); }; this.bind = function () { $canvas.on('mousemove', function(e){ config.position.x = e.pageX - $canvas.offset().left; config.position.y = e.pageY - $canvas.offset().top; }); }; this.init = function () { this.setCanvas(); this.setContext(); this.setInitialPosition(); this.loop(this.createStars); this.bind(); }; } $.fn.constellation = function (options) { return this.each(function () { var c = new Constellation(this, options); c.init(); }); }; })($, window); var startAnimation = function() { window.addEventListener("resize", function() { startAnimation()} ); $('canvas').constellation({ line: { color: 'rgba(255, 255, 255, .5)' } }); };
Java
<?php get_template_part('templates/front', 'page'); ?>
Java
--- layout: post title: 'Palestras Novembro 2013: Instituto de Informática da Universidade Federal de Goiás (UFG), Conferência Web da W3C (São Paulo) e FrontInFloripa (Santa Catarina)' date: 2013-11-04 19:36:33.000000000 -02:00 type: post published: true status: publish categories: - Eventos tags: - Conferência Web W3C - Eventos - FrontInFloripa - Instituto de Informática da Universidade Federal de Goiás (UFG) - mobile - palestras - W3C language: pt-br category: pt-br --- <p>Oi Pessoal,</p> <p>No mês de novembro irei palestrar em 3 eventos, em 3 diferentes estados.</p> <h1>Instituto de Informática da Universidade Federal de Goiás (UFG)</h1> <p><a href="http://www.loiane.com/wp-content/uploads/2013/10/InfUFG.jpg"><img class="aligncenter size-medium wp-image-6614" alt="InfUFG" src="{{ site.baseurl }}/assets/images/assets/InfUFG-300x101.jpg" width="300" height="101" /></a></p> <p>O primeiro será no dia 12 de Novembro, em Goiânia - GO, às 19:10, na UFG Campus II.</p> <p>Irei palestrar sobre desenvolvimento web híbrido. A palestra será um pouco mais iniciante para atender a demanda do público do evento. E a entrada é gratuita para toda a comunidade! :)</p> <p>Site do evento: <a href="https://www.docs.google.com/forms/d/1RefXzp7I7H4tyaEmliH7Wy4oORzqO9klmlvaPvTMNss/viewform" target="_blank" rel="noopener">https://www.docs.google.com/forms/d/1RefXzp7I7H4tyaEmliH7Wy4oORzqO9klmlvaPvTMNss/viewform</a></p> <h1>Conferência Web da W3C (São Paulo)</h1> <p style="text-align: center;"><a href="http://www.loiane.com/wp-content/uploads/2013/10/webConfw3c.gif"><img class="aligncenter wp-image-6613" alt="webConfw3c" src="{{ site.baseurl }}/assets/images/assets/webConfw3c.gif" width="385" height="300" /></a></p> <p>O segundo evento será na Conferência Web da W3C que acontece nos dias 18 e 19 de novembro em São Paulo (capital). Vou palestrar no dia 19 pela manhã na trilha de Input.</p> <p>A palestra será sobre Sencha Touch e PhoneGap, mostrando uma app que usa alguns recursos em ambas tecnologias. App com tela de login, todos os componentes UI do Sencha Touch e usando PhoneGap para acessar os recursos nativos e também como wrapper para podermos fazer deploy nativo.</p> <p><strong>Site do evento: <a href="http://conferenciaweb.w3c.br/" target="_blank" rel="noopener">http://conferenciaweb.w3c.br/</a></strong></p> <h1>FrontInFloripa (Santa Catarina)</h1> <p><a href="http://www.loiane.com/wp-content/uploads/2013/10/logo-front-in-floripa.png"><img class="aligncenter size-full wp-image-6612" alt="logo-front-in-floripa" src="{{ site.baseurl }}/assets/images/assets/logo-front-in-floripa.png" width="288" height="278" /></a></p> <p>E o terceiro evento será em Florianópolis, em Santa Catarina, no dia 22 de novembro.</p> <p>A palestra será sobre Sencha Touch e Phonegap, mostrando os recursos de ambas as tecnologias e mostrando também uma app de exemplo.</p> <p><strong>Site do evento: <a href="http://frontinfloripa.com.br/" target="_blank" rel="noopener">http://frontinfloripa.com.br/</a></strong></p> <p>Todas essas palestras são inéditas, ou seja, não dei em nenhum evento antes! :)</p> <p>Espero encontrar vocês em algum desses eventos! :)</p>
Java
/*jshint camelcase: false */ (function(window, module, undefined) { 'use strict'; // lifted from Underscore then bastardized var _flatten = function(input, output) { for (var i = 0, length = input.length; i < length; i++) { var value = input[i]; if (value.type === 'div') { _flatten(value.contents, output); } else if (value.type !== 'button') { output.push(formBuilder.determineFieldName(value)); } } return output; }; var flatten = function(array) { return _flatten(array, []); }; var copyObject = function(obj) { return window.JSON.parse(window.JSON.stringify(obj)); }; var unionArrays = function (x, y) { var obj = {}; for (var ix = x.length-1; ix >= 0; -- ix) { obj[x[ix]] = x[ix]; } for (var iy = y.length-1; iy >= 0; -- iy) { obj[y[iy]] = y[iy]; } var res = []; for (var k in obj) { if (obj.hasOwnProperty(k)) { res.push(obj[k]); } } return res; }; var formBuilder = { buildForm: function(buildArray, config) { return this.buildRecurse(buildArray, config); }, buildRecurse: function(buildArray, config) { var htmlString = ""; for (var i = 0; i < buildArray.length; i++) { var current = buildArray[i]; if(['number', 'text', 'email', 'tel', 'week', 'url', 'date', 'datetime', 'datetime-local', 'color', 'search', 'password'].indexOf(current.type) >= 0) { htmlString += formBuilder.input(current, config); } else if(current.type === 'select') { htmlString += formBuilder.select(current, config); } else if (current.type === 'div') { var className = formBuilder.determineClassString(current, config); var openTag = "<div>"; if (className) { openTag = "<div class='" + className + "'>"; } htmlString += openTag + this.buildRecurse(current.contents, config) + "</div>"; } else if (current.type === 'textarea') { htmlString += formBuilder.textarea(current, config); } else if (current.type === 'button') { htmlString += formBuilder.button(current, config); } else if (current.type === 'hidden') { htmlString += formBuilder.hidden(current, config); } else if (current.type === 'checkbox') { htmlString += formBuilder.checkbox(current, config); } } return htmlString; }, camelcase: function(input) { return input.toLowerCase().replace(/[- ](.)/g, function(match, group1) { return group1.toUpperCase(); }); }, determineFieldName: function(config) { return config.fieldName || this.camelcase(config.name); }, determineClassString: function(config, global) { var className = ""; if (!config.noDefaultClasses && global.defaultClass) { className = global.defaultClass; } if (config.className) { if (className) { className += " "; } className += config.className; } return className; }, input: function(config, global) { var className = this.determineClassString(config, global); var placeholder = config.placeholder || config.name; var fieldName = this.determineFieldName(config); var options = " "; if (config.required) { options += "required "; } if (config.charLimit) { options += "maxlength='" + config.charLimit + "' "; } return "<input type='" + config.type + "' class='" + className + "' placeholder='" + placeholder + "' data-forge-key='" + fieldName + "'" + options +"/>"; }, select: function(config, global) { var className = this.determineClassString(config, global); var fieldName = (config.fieldName) ? config.fieldName : this.camelcase(config.name); var options = " "; if (config.required) { options += "required "; } var html = "<select class='" + className + "' data-forge-key='" + fieldName + "'" + options +">"; for (var i = 0; i < config.options.length; i++) { html += "<option value='" + config.options[i][0] + "'>" + config.options[i][1] + "</option>"; } html += "</select>"; return html; }, textarea: function(config, global) { var className = this.determineClassString(config, global); var placeholder = config.placeholder || config.name; var fieldName = this.determineFieldName(config); var options = " "; if (config.required) { options += "required "; } if (config.charLimit) { options += "maxlength='" + config.charLimit + "' "; } return "<textarea class='" + className + "' placeholder='" + placeholder + "' data-forge-key='" + fieldName + "'" + options +"></textarea>"; }, button: function(config, global) { return "<button type='submit' class='" + this.determineClassString(config, global) + "'>" + config.name + "</button>"; }, hidden: function(config, global) { var fieldName = this.determineFieldName(config); return "<input value='' type='" + config.type + "' data-forge-key='" + fieldName + "'/>"; }, checkbox: function(config, global) { return "<label class='" + config.label.className + "'><input data-forge-key=" + this.determineFieldName(config, global) + " class='" + config.className + "' type='checkbox' /> " + config.label.text + "</label>"; } }; var mergeObjects = function(obj1, obj2) { var impureMerge = function(fromObj, toObj) { for (var key in fromObj) { if (fromObj.hasOwnProperty(key)) { toObj[key] = fromObj[key]; } } return toObj; }; var newObj = {}; newObj = impureMerge(obj1, newObj); newObj = impureMerge(obj2, newObj); return newObj; }; var discoverWatches = function(form) { var watches = {}; for (var i = 0; i < form.length; i++) { var current = form[i]; if (current.type === 'div') { var newWatches = discoverWatches(current.contents); watches = mergeObjects(watches, newWatches); } else if (current.conditional) { if (current.conditional.callback && current.conditional.dependencies) { for (var j = 0; j < current.conditional.dependencies.length; j++) { if (!watches[current.conditional.dependencies[j]]) { watches[current.conditional.dependencies[j]] = []; } var clone = { targets: formBuilder.determineFieldName(current), dependencies: current.conditional.dependencies, callback: current.conditional.callback }; watches[current.conditional.dependencies[j]].push(clone); } } else { window.console.warn('To register a conditional watch, you must include both callback and dependencies. Watch skipped for ', current); } } } return watches; }; var isEmptyObject = function(obj) { for (var key in obj) { if (obj.hasOwnProperty(key)) { return false; } } return true; }; var gatherArgs = function(deps, values, config) { var ans = []; for (var i = 0, l = deps.length; i < l; i++) { if (deps[i] !== '$internals') { ans.push(values[deps[i]]); } else { ans.push(config.internals); } } return ans; }; var gatherNodes = function(domTree, values) { var nodes = {}; for (var key in values) { if (values.hasOwnProperty(key)) { var node = domTree.querySelector("[data-forge-key='" + key +"']"); nodes[key] = node; if (node.type !== 'checkbox') { this._values[key] = nodes[key].value; } else { this._values[key] = nodes[key].checked; } } } return nodes; }; var Forge = function(form, config){ this._form = form; this._config = config; this._target = null; this._innerHTML = ""; this._values = {}; this._domNode = null; this._watches = {}; this._nodes = {}; this._init(); }; Forge.prototype._init = function() { var flattened = flatten(this._form); var obj = {}; flattened.map(function(el) { obj[el] = ""; }); this._values = obj; this._watches = discoverWatches(this._form); this._hasWatches = !isEmptyObject(this._watches); this._generateCss(); }; Forge.prototype._generateCss = function() { if (!window.document.getElementById('forge-generated-styles')) { var style = window.document.createElement('style'); style.type = 'text/css'; style.id = "forge-generated-styles"; style.innerHTML = '.forge-hidden { display: none !important; }'; window.document.getElementsByTagName('head')[0].appendChild(style); } }; Forge.prototype._runAllConditionals = function() { for (var key in this._watches) { if (this._watches.hasOwnProperty(key)) { this._checkValueForConditionals(key); } } }; Forge.prototype.render = function(target) { var node = window.document.querySelector(target); this._innerHTML = formBuilder.buildForm(this._form, this._config); var form = window.document.createElement('form'); form.innerHTML = this._innerHTML; form.id = this._config.formId; form.addEventListener('change', this.eventDispatch.bind(this)); form.addEventListener('keydown', this.eventDispatch.bind(this)); if (this._config.formSubmit) { form.addEventListener('submit', this._config.formSubmit); } this._domNode= form; this._nodes = gatherNodes.call(this, form, this._values); this._runAllConditionals(); node.appendChild(form); this._target = target; }; Forge.prototype.eventDispatch = function(e) { var target = e.target; var key = target.dataset.forgeKey; if (target.type === 'checkbox') { this._values[key] = e.target.checked; } else { this._values[key] = e.target.value; } this._checkValueForConditionals(key); }; Forge.prototype._checkValueForConditionals = function(key) { if (this._hasWatches && this._watches[key]) { var current = this._watches[key]; for (var i = 0, l = current.length; i < l; i++) { var node = this._nodes[current[i].targets]; var gatheredArgs = gatherArgs(current[i].dependencies, this._values, this._config); if (!current[i].callback.apply(this, gatheredArgs)) { if (node.className.indexOf('forge-hidden') < 0) { node.className += " forge-hidden"; } } else if (node.className.indexOf('forge-hidden') >= 0) { node.className = node.className.replace('forge-hidden','','i'); } } } }; Forge.prototype.set = function(key, value) { var node = this._domNode.querySelector("[data-forge-key='" + key +"']"); this._values[key] = value; if (node.type === 'checkbox') { node.checked = value; } else { node.value = value; } this._checkValueForConditionals(key); }; Forge.prototype.getData = function() { return copyObject(this._values); }; Forge.prototype.getConfig = function() { return copyObject(this._config); }; Forge.prototype.validate = function() { var validateRecurse = function(form, acc) { for (var i = 0, l = form.length; i < l; i++) { if (form[i].type === 'div') { validateRecurse(form[i].contents, acc); } else if (form[i].type === 'button') { // do nothing } else { var fieldName = formBuilder.determineFieldName(form[i]); if (form[i].required && !this._values[fieldName]) { acc.push(fieldName); } } } return acc; }.bind(this); var errors = validateRecurse(this._form, []); if (this._config.validate) { var validateErrors = this._config.validate(this._values); errors = unionArrays(errors, validateErrors); } for (var key in this._values) { if (this._values.hasOwnProperty(key)) { var node = this._nodes[key]; if (errors.indexOf(key) >= 0 && node.className.indexOf('forge-error') < 0) { node.className += " forge-error"; } else if (errors.indexOf(key) < 0 && node.className.indexOf('forge-error') >= 0) { node.className = node.className.replace('forge-error','','i'); } } } return errors; }; module.exports = function(form, config) { return new Forge(form, config); }; })(window, module);
Java
0.12.0 (Next) ============= #### Features * [#956](https://github.com/intridea/grape/issues/956): Support `present` with `Grape::Presenters::Presenter` - [@u2](https://github.com/u2). #### Fixes * [#936](https://github.com/intridea/grape/pull/936): Fixed default params processing for optional groups - [@dm1try](https://github.com/dm1try). * [#942](https://github.com/intridea/grape/pull/942): Fixed forced presence for optional params when based on a reused entity that was also required in another context - [@croeck](https://github.com/croeck). * [#950](https://github.com/intridea/grape/pull/950): Status method can now accept one of Rack::Utils status code symbols (:ok, :found, :bad_request, etc.) - [@dabrorius](https://github.com/dabrorius). * [#952](https://github.com/intridea/grape/pull/952): Status method now raises error when called with invalid status code - [@dabrorius](https://github.com/dabrorius). * [#957](https://github.com/intridea/grape/pull/957): Regexp validator now supports `allow_blank`, `nil` value behavior changed - [@calfzhou](https://giihub.com/calfzhou). * [#962](https://github.com/intridea/grape/pull/962): The `default` attribute with `false` value is documented now - [@ajvondrak](https://github.com/ajvondrak). * [#974](https://github.com/intridea/grape/pull/974): Add error! to rescue_from blocks - [@whatasunnyday](https://github.com/whatasunnyday). * Your contribution here. 0.11.0 (2/23/2015) ================== * [#925](https://github.com/intridea/grape/pull/925): Fixed `toplevel constant DateTime referenced by Virtus::Attribute::DateTime` - [@u2](https://github.com/u2). * [#916](https://github.com/intridea/grape/pull/916): Added `DateTime/Date/Numeric/Boolean` type support `allow_blank` - [@u2](https://github.com/u2). * [#871](https://github.com/intridea/grape/pull/871): Fixed `Grape::Middleware::Base#response` - [@galathius](https://github.com/galathius). * [#559](https://github.com/intridea/grape/issues/559): Added support for Rack 1.6.0, which parses requests larger than 128KB - [@myitcv](https://github.com/myitcv). * [#876](https://github.com/intridea/grape/pull/876): Call to `declared(params)` now returns a `Hashie::Mash` - [@rodzyn](https://github.com/rodzyn). * [#879](https://github.com/intridea/grape/pull/879): The `route_info` value is no longer included in `params` Hash - [@rodzyn](https://github.com/rodzyn). * [#881](https://github.com/intridea/grape/issues/881): Fixed `Grape::Validations::ValuesValidator` support for `Range` type - [@ajvondrak](https://github.com/ajvondrak). * [#901](https://github.com/intridea/grape/pull/901): Fix: callbacks defined in a version block are only called for the routes defined in that block - [@kushkella](https://github.com/kushkella). * [#886](https://github.com/intridea/grape/pull/886): Group of parameters made to require an explicit type of Hash or Array - [@jrichter1](https://github.com/jrichter1). * [#912](https://github.com/intridea/grape/pull/912): Extended the `:using` feature for param documentation to `optional` fields - [@croeck](https://github.com/croeck). * [#906](https://github.com/intridea/grape/pull/906): Fix: invalid body parse errors are not rescued by handlers - [@croeck](https://github.com/croeck). * [#913](https://github.com/intridea/grape/pull/913): Fix: Invalid accept headers are not processed by rescue handlers - [@croeck](https://github.com/croeck). * [#913](https://github.com/intridea/grape/pull/913): Fix: Invalid accept headers cause internal processing errors (500) when http_codes are defined - [@croeck](https://github.com/croeck). * [#917](https://github.com/intridea/grape/pull/917): Use HTTPS for rubygems.org - [@O-I](https://github.com/O-I). 0.10.1 (12/28/2014) =================== * [#868](https://github.com/intridea/grape/pull/868), [#862](https://github.com/intridea/grape/pull/862), [#861](https://github.com/intridea/grape/pull/861): Fixed `version`, `prefix`, and other settings being overridden or changing scope when mounting API - [@yesmeck](https://github.com/yesmeck). * [#864](https://github.com/intridea/grape/pull/864): Fixed `declared(params, include_missing: false)` now returning attributes with `nil` and `false` values - [@ppadron](https://github.com/ppadron). 0.10.0 (12/19/2014) =================== * [#803](https://github.com/intridea/grape/pull/803), [#820](https://github.com/intridea/grape/pull/820): Added `all_or_none_of` parameter validator - [@loveltyoic](https://github.com/loveltyoic), [@natecj](https://github.com/natecj). * [#774](https://github.com/intridea/grape/pull/774): Extended `mutually_exclusive`, `exactly_one_of`, `at_least_one_of` to work inside any kind of group: `requires` or `optional`, `Hash` or `Array` - [@ShPakvel](https://github.com/ShPakvel). * [#743](https://github.com/intridea/grape/pull/743): Added `allow_blank` parameter validator to validate non-empty strings - [@elado](https://github.com/elado). * [#745](https://github.com/intridea/grape/pull/745): Removed `atom+xml`, `rss+xml`, and `jsonapi` content-types - [@akabraham](https://github.com/akabraham). * [#745](https://github.com/intridea/grape/pull/745): Added `:binary, application/octet-stream` content-type - [@akabraham](https://github.com/akabraham). * [#757](https://github.com/intridea/grape/pull/757): Changed `desc` can now be used with a block syntax - [@dspaeth-faber](https://github.com/dspaeth-faber). * [#779](https://github.com/intridea/grape/pull/779): Fixed using `values` with a `default` proc - [@ShPakvel](https://github.com/ShPakvel). * [#799](https://github.com/intridea/grape/pull/799): Fixed custom validators with required `Hash`, `Array` types - [@bwalex](https://github.com/bwalex). * [#784](https://github.com/intridea/grape/pull/784): Fixed `present` to not overwrite the previously added contents of the response body whebn called more than once - [@mfunaro](https://github.com/mfunaro). * [#809](https://github.com/intridea/grape/pull/809): Removed automatic `(.:format)` suffix on paths if you're using only one format (e.g., with `format :json`, `/path` will respond with JSON but `/path.xml` will be a 404) - [@ajvondrak](https://github.com/ajvondrak). * [#816](https://github.com/intridea/grape/pull/816): Added ability to filter out missing params if params is a nested hash with `declared(params, include_missing: false)` - [@georgimitev](https://github.com/georgimitev). * [#819](https://github.com/intridea/grape/pull/819): Allowed both `desc` and `description` in the params DSL - [@mzikherman](https://github.com/mzikherman). * [#821](https://github.com/intridea/grape/pull/821): Fixed passing string value when hash is expected in params - [@rebelact](https://github.com/rebelact). * [#824](https://github.com/intridea/grape/pull/824): Validate array params against list of acceptable values - [@dnd](https://github.com/dnd). * [#813](https://github.com/intridea/grape/pull/813): Routing methods dsl refactored to get rid of explicit `paths` parameter - [@AlexYankee](https://github.com/AlexYankee). * [#826](https://github.com/intridea/grape/pull/826): Find `coerce_type` for `Array` when not specified - [@manovotn](https://github.com/manovotn). * [#645](https://github.com/intridea/grape/issues/645): Invoking `body false` will return `204 No Content` - [@dblock](https://github.com/dblock). * [#801](https://github.com/intridea/grape/issues/801): Only evaluate permitted parameter `values` and `default` lazily on each request when declared as a proc - [@dblock](https://github.com/dblock). * [#679](https://github.com/intridea/grape/issues/679): Fixed `OPTIONS` method returning 404 when combined with `prefix`- [@dblock](https://github.com/dblock). * [#679](https://github.com/intridea/grape/issues/679): Fixed unsupported methods returning 404 instead of 405 when combined with `prefix`- [@dblock](https://github.com/dblock). 0.9.0 (8/27/2014) ================= #### Features * [#691](https://github.com/intridea/grape/issues/691): Added `at_least_one_of` parameter validator - [@dblock](https://github.com/dblock). * [#698](https://github.com/intridea/grape/pull/698): `error!` sets `status` for `Endpoint` too - [@dspaeth-faber](https://github.com/dspaeth-faber). * [#703](https://github.com/intridea/grape/pull/703): Added support for Auth-Middleware extension - [@dspaeth-faber](https://github.com/dspaeth-faber). * [#703](https://github.com/intridea/grape/pull/703): Removed `Grape::Middleware::Auth::Basic` - [@dspaeth-faber](https://github.com/dspaeth-faber). * [#703](https://github.com/intridea/grape/pull/703): Removed `Grape::Middleware::Auth::Digest` - [@dspaeth-faber](https://github.com/dspaeth-faber). * [#703](https://github.com/intridea/grape/pull/703): Removed `Grape::Middleware::Auth::OAuth2` - [@dspaeth-faber](https://github.com/dspaeth-faber). * [#719](https://github.com/intridea/grape/pull/719): Allow passing options hash to a custom validator - [@elado](https://github.com/elado). * [#716](https://github.com/intridea/grape/pull/716): Calling `content-type` will now return the current content-type - [@dblock](https://github.com/dblock). * [#705](https://github.com/intridea/grape/pull/705): Errors can now be presented with a `Grape::Entity` class - [@dspaeth-faber](https://github.com/dspaeth-faber). #### Fixes * [#687](https://github.com/intridea/grape/pull/687): Fix: `mutually_exclusive` and `exactly_one_of` validation error messages now label parameters as strings, consistently with `requires` and `optional` - [@dblock](https://github.com/dblock). 0.8.0 (7/10/2014) ================= #### Features * [#639](https://github.com/intridea/grape/pull/639): Added support for blocks with reusable params - [@mibon](https://github.com/mibon). * [#637](https://github.com/intridea/grape/pull/637): Added support for `exactly_one_of` parameter validation - [@Morred](https://github.com/Morred). * [#626](https://github.com/intridea/grape/pull/626): Added support for `mutually_exclusive` parameters - [@oliverbarnes](https://github.com/oliverbarnes). * [#617](https://github.com/intridea/grape/pull/617): Running tests on Ruby 2.1.1, Rubinius 2.1 and 2.2, Ruby and JRuby HEAD - [@dblock](https://github.com/dblock). * [#397](https://github.com/intridea/grape/pull/397): Adds `Grape::Endpoint.before_each` to allow easy helper stubbing - [@mbleigh](https://github.com/mbleigh). * [#673](https://github.com/intridea/grape/pull/673): Avoid requiring non-existent fields when using Grape::Entity documentation - [@qqshfox](https://github.com/qqshfox). #### Fixes * [#671](https://github.com/intridea/grape/pull/671): Allow required param with predefined set of values to be nil inside optional group - [@dm1try](https://github.com/dm1try). * [#651](https://github.com/intridea/grape/pull/651): The `rescue_from` keyword now properly defaults to rescuing subclasses of exceptions - [@xevix](https://github.com/xevix). * [#614](https://github.com/intridea/grape/pull/614): Params with `nil` value are now refused by `RegexpValidator` - [@dm1try](https://github.com/dm1try). * [#494](https://github.com/intridea/grape/issues/494): Fixed performance issue with requests carrying a large payload - [@dblock](https://github.com/dblock). * [#619](https://github.com/intridea/grape/pull/619): Convert specs to RSpec 3 syntax with Transpec - [@danielspector](https://github.com/danielspector). * [#632](https://github.com/intridea/grape/pull/632): `Grape::Endpoint#present` causes ActiveRecord to make an extra query during entity's detection - [@fixme](https://github.com/fixme). 0.7.0 (4/2/2014) ================= #### Features * [#558](https://github.com/intridea/grape/pull/558): Support lambda-based values for params - [@wpschallenger](https://github.com/wpschallenger). * [#510](https://github.com/intridea/grape/pull/510): Support lambda-based default values for params - [@myitcv](https://github.com/myitcv). * [#511](https://github.com/intridea/grape/pull/511): Added `required` option for OAuth2 middleware - [@bcm](https://github.com/bcm). * [#520](https://github.com/intridea/grape/pull/520): Use `default_error_status` to specify the default status code returned from `error!` - [@salimane](https://github.com/salimane). * [#525](https://github.com/intridea/grape/pull/525): The default status code returned from `error!` has been changed from 403 to 500 - [@dblock](https://github.com/dblock). * [#526](https://github.com/intridea/grape/pull/526): Allowed specifying headers in `error!` - [@dblock](https://github.com/dblock). * [#527](https://github.com/intridea/grape/pull/527): The `before_validation` callback is now a distinct one - [@myitcv](https://github.com/myitcv). * [#530](https://github.com/intridea/grape/pull/530): Added ability to restrict `declared(params)` to the local endpoint with `include_parent_namespaces: false` - [@myitcv](https://github.com/myitcv). * [#531](https://github.com/intridea/grape/pull/531): Helpers are now available to auth middleware, executing in the context of the endpoint - [@joelvh](https://github.com/joelvh). * [#540](https://github.com/intridea/grape/pull/540): Ruby 2.1.0 is now supported - [@salimane](https://github.com/salimane). * [#544](https://github.com/intridea/grape/pull/544): The `rescue_from` keyword now handles subclasses of exceptions by default - [@xevix](https://github.com/xevix). * [#545](https://github.com/intridea/grape/pull/545): Added `type` (`Array` or `Hash`) support to `requires`, `optional` and `group` - [@bwalex](https://github.com/bwalex). * [#550](https://github.com/intridea/grape/pull/550): Added possibility to define reusable params - [@dm1try](https://github.com/dm1try). * [#560](https://github.com/intridea/grape/pull/560): Use `Grape::Entity` documentation to define required and optional parameters with `requires using:` - [@reynardmh](https://github.com/reynardmh). * [#572](https://github.com/intridea/grape/pull/572): Added `documentation` support to `requires`, `optional` and `group` parameters - [@johnallen3d](https://github.com/johnallen3d). #### Fixes * [#600](https://github.com/intridea/grape/pull/600): Don't use an `Entity` constant that is available in the namespace as presenter - [@fuksito](https://github.com/fuksito). * [#590](https://github.com/intridea/grape/pull/590): Fix issue where endpoint param of type `Integer` cannot set values array - [@xevix](https://github.com/xevix). * [#586](https://github.com/intridea/grape/pull/586): Do not repeat the same validation error messages - [@kiela](https://github.com/kiela). * [#508](https://github.com/intridea/grape/pull/508): Allow parameters, such as content encoding, in `content_type` - [@dm1try](https://github.com/dm1try). * [#492](https://github.com/intridea/grape/pull/492): Don't allow to have nil value when a param is required and has a list of allowed values - [@Antti](https://github.com/Antti). * [#495](https://github.com/intridea/grape/pull/495): Fixed `ParamsScope#params` for parameters nested inside arrays - [@asross](https://github.com/asross). * [#498](https://github.com/intridea/grape/pull/498): Dry'ed up options and headers logic, allow headers to be passed to OPTIONS requests - [@karlfreeman](https://github.com/karlfreeman). * [#500](https://github.com/intridea/grape/pull/500): Skip entity auto-detection when explicitely passed - [@yaneq](https://github.com/yaneq). * [#503](https://github.com/intridea/grape/pull/503): Calling declared(params) from child namespace fails to include parent namespace defined params - [@myitcv](https://github.com/myitcv). * [#512](https://github.com/intridea/grape/pull/512): Don't create `Grape::Request` multiple times - [@dblock](https://github.com/dblock). * [#538](https://github.com/intridea/grape/pull/538): Fixed default values for grouped params - [@dm1try](https://github.com/dm1try). * [#549](https://github.com/intridea/grape/pull/549): Fixed handling of invalid version headers to return 406 if a header cannot be parsed - [@bwalex](https://github.com/bwalex). * [#557](https://github.com/intridea/grape/pull/557): Pass `content_types` option to `Grape::Middleware::Error` to fix the content-type header for custom formats. - [@bernd](https://github.com/bernd). * [#585](https://github.com/intridea/grape/pull/585): Fix after boot thread-safety issue - [@etehtsea](https://github.com/etehtsea). * [#587](https://github.com/intridea/grape/pull/587): Fix oauth2 middleware compatibility with [draft-ietf-oauth-v2-31](http://tools.ietf.org/html/draft-ietf-oauth-v2-31) spec - [@etehtsea](https://github.com/etehtsea). * [#610](https://github.com/intridea/grape/pull/610): Fixed group keyword was not working with type parameter - [@klausmeyer](https://github.com/klausmeyer/). 0.6.1 (10/19/2013) ================== #### Features * [#475](https://github.com/intridea/grape/pull/475): Added support for the `:jsonapi`, `application/vnd.api+json` media type registered at http://jsonapi.org - [@bcm](https://github.com/bcm). * [#471](https://github.com/intridea/grape/issues/471): Added parameter validator for a list of allowed values - [@vickychijwani](https://github.com/vickychijwani). * [#488](https://github.com/intridea/grape/issues/488): Upgraded to Virtus 1.0 - [@dblock](https://github.com/dblock). #### Fixes * [#477](https://github.com/intridea/grape/pull/477): Fixed `default_error_formatter` which takes a format symbol - [@vad4msiu](https://github.com/vad4msiu). #### Development * Implemented Rubocop, a Ruby code static code analyzer - [@dblock](https://github.com/dblock). 0.6.0 (9/16/2013) ================= #### Features * Grape is no longer tested against Ruby 1.8.7. * [#442](https://github.com/intridea/grape/issues/442): Enable incrementally building on top of a previous API version - [@dblock](https://github.com/dblock). * [#442](https://github.com/intridea/grape/issues/442): API `version` can now take an array of multiple versions - [@dblock](https://github.com/dblock). * [#444](https://github.com/intridea/grape/issues/444): Added `:en` as fallback locale for I18n - [@aew](https://github.com/aew). * [#448](https://github.com/intridea/grape/pull/448): Adding POST style parameters for DELETE requests - [@dquimper](https://github.com/dquimper). * [#450](https://github.com/intridea/grape/pull/450): Added option to pass an exception handler lambda as an argument to `rescue_from` - [@robertopedroso](https://github.com/robertopedroso). * [#443](https://github.com/intridea/grape/pull/443): Let `requires` and `optional` take blocks that initialize new scopes - [@asross](https://github.com/asross). * [#452](https://github.com/intridea/grape/pull/452): Added `with` as a hash option to specify handlers for `rescue_from` and `error_formatter` [@robertopedroso](https://github.com/robertopedroso). * [#433](https://github.com/intridea/grape/issues/433), [#462](https://github.com/intridea/grape/issues/462): Validation errors are now collected and `Grape::Exceptions::ValidationErrors` is raised - [@stevschmid](https://github.com/stevschmid). #### Fixes * [#428](https://github.com/intridea/grape/issues/428): Removes memoization from `Grape::Request` params to prevent middleware from freezing parameter values before `Formatter` can get them - [@mbleigh](https://github.com/mbleigh). 0.5.0 (6/14/2013) ================= #### Features * [#344](https://github.com/intridea/grape/pull/344): Added `parser :type, nil` which disables input parsing for a given content-type - [@dblock](https://github.com/dblock). * [#381](https://github.com/intridea/grape/issues/381): Added `cascade false` option at API level to remove the `X-Cascade: true` header from the API response - [@dblock](https://github.com/dblock). * [#392](https://github.com/intridea/grape/pull/392): Extracted headers and params from `Endpoint` to `Grape::Request` - [@niedhui](https://github.com/niedhui). * [#376](https://github.com/intridea/grape/pull/376): Added `route_param`, syntax sugar for quick declaration of route parameters - [@mbleigh](https://github.com/mbleigh). * [#390](https://github.com/intridea/grape/pull/390): Added default value for an `optional` parameter - [@oivoodoo](https://github.com/oivoodoo). * [#403](https://github.com/intridea/grape/pull/403): Added support for versioning using the `Accept-Version` header - [@politician](https://github.com/politician). * [#407](https://github.com/intridea/grape/issues/407): Specifying `default_format` will also set the default POST/PUT data parser to the given format - [@dblock](https://github.com/dblock). * [#241](https://github.com/intridea/grape/issues/241): Present with multiple entities using an optional Symbol - [@niedhui](https://github.com/niedhui). #### Fixes * [#378](https://github.com/intridea/grape/pull/378): Fix: stop rescuing all exceptions during formatting - [@kbarrette](https://github.com/kbarrette). * [#380](https://github.com/intridea/grape/pull/380): Fix: `Formatter#read_body_input` when transfer encoding is chunked - [@paulnicholon](https://github.com/paulnicholson). * [#347](https://github.com/intridea/grape/issues/347): Fix: handling non-hash body params - [@paulnicholon](https://github.com/paulnicholson). * [#394](https://github.com/intridea/grape/pull/394): Fix: path version no longer overwrites a `version` parameter - [@tmornini](https://github.com/tmornini). * [#412](https://github.com/intridea/grape/issues/412): Fix: specifying `content_type` will also override the selection of the data formatter - [@dblock](https://github.com/dblock). * [#383](https://github.com/intridea/grape/issues/383): Fix: Mounted APIs aren't inheriting settings (including `before` and `after` filters) - [@seanmoon](https://github.com/seanmoon). * [#408](https://github.com/intridea/grape/pull/408): Fix: Goliath passes request header keys as symbols not strings - [@bobek](https://github.com/bobek). * [#417](https://github.com/intridea/grape/issues/417): Fix: Rails 4 does not rewind input, causes POSTed data to be empty - [@dblock](https://github.com/dblock). * [#423](https://github.com/intridea/grape/pull/423): Fix: `Grape::Endpoint#declared` now correctly handles nested params (ie. declared with `group`) - [@jbarreneche](https://github.com/jbarreneche). * [#427](https://github.com/intridea/grape/issues/427): Fix: `declared(params)` breaks when `params` contains array - [@timhabermaas](https://github.com/timhabermaas) 0.4.1 (4/1/2013) ================ * [#375](https://github.com/intridea/grape/pull/375): Fix: throwing an `:error` inside a middleware doesn't respect the `format` settings - [@dblock](https://github.com/dblock). 0.4.0 (3/17/2013) ================= * [#356](https://github.com/intridea/grape/pull/356): Fix: presenting collections other than `Array` (eg. `ActiveRecord::Relation`) - [@zimbatm](https://github.com/zimbatm). * [#352](https://github.com/intridea/grape/pull/352): Fix: using `Rack::JSONP` with `Grape::Entity` responses - [@deckchair](https://github.com/deckchair). * [#347](https://github.com/intridea/grape/issues/347): Grape will accept any valid JSON as PUT or POST, including strings, symbols and arrays - [@qqshfox](https://github.com/qqshfox), [@dblock](https://github.com/dblock). * [#347](https://github.com/intridea/grape/issues/347): JSON format APIs always return valid JSON, eg. strings are now returned as `"string"` and no longer `string` - [@dblock](https://github.com/dblock). * Raw body input from POST and PUT requests (`env['rack.input'].read`) is now available in `api.request.input` - [@dblock](https://github.com/dblock). * Parsed body input from POST and PUT requests is now available in `api.request.body` - [@dblock](https://github.com/dblock). * [#343](https://github.com/intridea/grape/pull/343): Fix: return `Content-Type: text/plain` with error 405 - [@gustavosaume](https://github.com/gustavosaume), [@wyattisimo](https://github.com/wyattisimo). * [#357](https://github.com/intridea/grape/pull/357): Grape now requires Rack 1.3.0 or newer - [@jhecking](https://github.com/jhecking). * [#320](https://github.com/intridea/grape/issues/320): API `namespace` now supports `requirements` - [@niedhui](https://github.com/niedhui). * [#353](https://github.com/intridea/grape/issues/353): Revert to standard Ruby logger formatter, `require active_support/all` if you want old behavior - [@rhunter](https://github.com/rhunter), [@dblock](https://github.com/dblock). * Fix: `undefined method 'call' for nil:NilClass` for an API method implementation without a block, now returns an empty string - [@dblock](https://github.com/dblock). 0.3.2 (2/28/2013) ================= * [#355](https://github.com/intridea/grape/issues/355): Relax dependency constraint on Hashie - [@reset](https://github.com/reset). 0.3.1 (2/25/2013) ================= * [#351](https://github.com/intridea/grape/issues/351): Compatibility with Ruby 2.0 - [@mbleigh](https://github.com/mbleigh). 0.3.0 (02/21/2013) ================== * [#294](https://github.com/intridea/grape/issues/294): Extracted `Grape::Entity` into a [grape-entity](https://github.com/agileanimal/grape-entity) gem - [@agileanimal](https://github.com/agileanimal). * [#340](https://github.com/intridea/grape/pull/339), [#342](https://github.com/intridea/grape/pull/342): Added `:cascade` option to `version` to allow disabling of rack/mount cascade behavior - [@dieb](https://github.com/dieb). * [#333](https://github.com/intridea/grape/pull/333): Added support for validation of arrays in `params` - [@flyerhzm](https://github.com/flyerhzm). * [#306](https://github.com/intridea/grape/issues/306): Added I18n support for all Grape exceptions - [@niedhui](https://github.com/niedhui). * [#309](https://github.com/intridea/grape/pull/309): Added XML support to the entity presenter - [@johnnyiller](https://github.com/johnnyiller), [@dblock](http://github.com/dblock). * [#131](https://github.com/intridea/grape/issues/131): Added instructions for Grape API reloading in Rails - [@jyn](http://github.com/jyn), [@dblock](http://github.com/dblock). * [#317](https://github.com/intridea/grape/issues/317): Added `headers` that returns a hash of parsed HTTP request headers - [@dblock](http://github.com/dblock). * [#332](https://github.com/intridea/grape/pull/332): `Grape::Exceptions::Validation` now contains full nested parameter names - [@alovak](https://github.com/alovak). * [#328](https://github.com/intridea/grape/issues/328): API version can now be specified as both String and Symbol - [@dblock](http://github.com/dblock). * [#190](https://github.com/intridea/grape/issues/190): When you add a `GET` route for a resource, a route for the `HEAD` method will also be added automatically. You can disable this behavior with `do_not_route_head!` - [@dblock](http://github.com/dblock). * Added `do_not_route_options!`, which disables the automatic creation of the `OPTIONS` route - [@dblock](http://github.com/dblock). * [#309](https://github.com/intridea/grape/pull/309): An XML format API will return an error instead of returning a string representation of the response if the latter cannot be converted to XML - [@dblock](http://github.com/dblock). * A formatter that raises an exception will cause the API to return a 500 error - [@dblock](http://github.com/dblock). * [#322](https://github.com/intridea/grape/issues/322): When returning a 406 status, Grape will include the requested format or content-type in the response body - [@dblock](http://github.com/dblock). * [#60](https://github.com/intridea/grape/issues/60): Fix: mounting of a Grape API onto a path - [@dblock](http://github.com/dblock). * [#335](https://github.com/intridea/grape/pull/335): Fix: request body parameters from a `PATCH` request not available in `params` - [@FreakenK](http://github.com/FreakenK). 0.2.6 (01/11/2013) ================== * Fix: support content-type with character set when parsing POST and PUT input - [@dblock](http://github.com/dblock). * Fix: CVE-2013-0175, multi_xml parse vulnerability, require multi_xml 0.5.2 - [@dblock](http://github.com/dblock). 0.2.5 (01/10/2013) ================== * Added support for custom parsers via `parser`, in addition to built-in multipart, JSON and XML parsers - [@dblock](http://github.com/dblock). * Removed `body_params`, data sent via a POST or PUT with a supported content-type is merged into `params` - [@dblock](http://github.com/dblock). * Setting `format` will automatically remove other content-types by calling `content_type` - [@dblock](http://github.com/dblock). * Setting `content_type` will prevent any input data other than the matching content-type or any Rack-supported form and parseable media types (`application/x-www-form-urlencoded`, `multipart/form-data`, `multipart/related` and `multipart/mixed`) from being parsed - [@dblock](http://github.com/dblock). * [#305](https://github.com/intridea/grape/issues/305): Fix: presenting arrays of objects via `represent` or when auto-detecting an `Entity` constant in the objects being presented - [@brandonweiss](https://github.com/brandonweiss). * [#306](https://github.com/intridea/grape/issues/306): Added i18n support for validation error messages - [@niedhui](https://github.com/niedhui). 0.2.4 (01/06/2013) ================== * [#297](https://github.com/intridea/grape/issues/297): Added `default_error_formatter` - [@dblock](https://github.com/dblock). * [#297](https://github.com/intridea/grape/issues/297): Setting `format` will automatically set `default_error_formatter` - [@dblock](https://github.com/dblock). * [#295](https://github.com/intridea/grape/issues/295): Storing original API source block in endpoint's `source` attribute - [@dblock](https://github.com/dblock). * [#293](https://github.com/intridea/grape/pull/293): Added options to `cookies.delete`, enables passing a path - [@inst](https://github.com/inst). * [#174](https://github.com/intridea/grape/issues/174): The value of `env['PATH_INFO']` is no longer altered with `path` versioning - [@dblock](https://github.com/dblock). * [#296](https://github.com/intridea/grape/issues/296): Fix: ArgumentError with default error formatter - [@dblock](https://github.com/dblock). * [#298](https://github.com/intridea/grape/pull/298): Fix: subsequent calls to `body_params` would fail due to IO read - [@justinmcp](https://github.com/justinmcp). * [#301](https://github.com/intridea/grape/issues/301): Fix: symbol memory leak in cookie and formatter middleware - [@dblock](https://github.com/dblock). * [#300](https://github.com/intridea/grape/issues/300): Fix `Grape::API.routes` to include mounted api routes - [@aiwilliams](https://github.com/aiwilliams). * [#302](https://github.com/intridea/grape/pull/302): Fix: removed redundant `autoload` entries - [@ugisozols](https://github.com/ugisozols). * [#172](https://github.com/intridea/grape/issues/172): Fix: MultiJson deprecated methods warnings - [@dblock](https://github.com/dblock). * [#133](https://github.com/intridea/grape/issues/133): Fix: header-based versioning with use of `prefix` - [@seanmoon](https://github.com/seanmoon), [@dblock](https://github.com/dblock). * [#280](https://github.com/intridea/grape/issues/280): Fix: grouped parameters mangled in `route_params` hash - [@marcusg](https://github.com/marcusg), [@dblock](https://github.com/dblock). * [#304](https://github.com/intridea/grape/issues/304): Fix: `present x, :with => Entity` returns class references with `format :json` - [@dblock](https://github.com/dblock). * [#196](https://github.com/intridea/grape/issues/196): Fix: root requests don't work with `prefix` - [@dblock](https://github.com/dblock). 0.2.3 (24/12/2012) ================== * [#179](https://github.com/intridea/grape/issues/178): Using `content_type` will remove all default content-types - [@dblock](https://github.com/dblock). * [#265](https://github.com/intridea/grape/issues/264): Fix: Moved `ValidationError` into `Grape::Exceptions` - [@thepumpkin1979](https://github.com/thepumpkin1979). * [#269](https://github.com/intridea/grape/pull/269): Fix: `LocalJumpError` will not be raised when using explict return in API methods - [@simulacre](https://github.com/simulacre). * [#86](https://github.com/intridea/grape/issues/275): Fix Path-based versioning not recognizing `/` route - [@walski](https://github.com/walski). * [#273](https://github.com/intridea/grape/pull/273): Disabled formatting via `serializable_hash` and added support for `format :serializable_hash` - [@dblock](https://github.com/dblock). * [#277](https://github.com/intridea/grape/pull/277): Added a DSL to declare `formatter` in API settings - [@tim-vandecasteele](https://github.com/tim-vandecasteele). * [#284](https://github.com/intridea/grape/pull/284): Added a DSL to declare `error_formatter` in API settings - [@dblock](https://github.com/dblock). * [#285](https://github.com/intridea/grape/pull/285): Removed `error_format` from API settings, now matches request format - [@dblock](https://github.com/dblock). * [#290](https://github.com/intridea/grape/pull/290): The default error format for XML is now `error/message` instead of `hash/error` - [@dpsk](https://github.com/dpsk). * [#44](https://github.com/intridea/grape/issues/44): Pass `env` into formatters to enable templating - [@dblock](https://github.com/dblock). 0.2.2 ===== #### Features * [#201](https://github.com/intridea/grape/pull/201), [#236](https://github.com/intridea/grape/pull/236), [#221](https://github.com/intridea/grape/pull/221): Added coercion and validations support to `params` DSL - [@schmurfy](https://github.com/schmurfy), [@tim-vandecasteele](https://github.com/tim-vandecasteele), [@adamgotterer](https://github.com/adamgotterer). * [#204](https://github.com/intridea/grape/pull/204): Added ability to declare shared `params` at `namespace` level - [@tim-vandecasteele](https://github.com/tim-vandecasteele). * [#234](https://github.com/intridea/grape/pull/234): Added a DSL for creating entities via mixin - [@mbleigh](https://github.com/mbleigh). * [#240](https://github.com/intridea/grape/pull/240): Define API response format from a query string `format` parameter, if specified - [@neetiraj](https://github.com/neetiraj). * Adds Endpoint#declared to easily filter out unexpected params. - [@mbleigh](https://github.com/mbleigh) #### Fixes * [#248](https://github.com/intridea/grape/pull/248): Fix: API `version` returns last version set - [@narkoz](https://github.com/narkoz). * [#242](https://github.com/intridea/grape/issues/242): Fix: permanent redirect status should be `301`, was `304` - [@adamgotterer](https://github.com/adamgotterer). * [#211](https://github.com/intridea/grape/pull/211): Fix: custom validations are no longer triggered when optional and parameter is not present - [@adamgotterer](https://github.com/adamgotterer). * [#210](https://github.com/intridea/grape/pull/210): Fix: `Endpoint#body_params` causing undefined method 'size' - [@adamgotterer](https://github.com/adamgotterer). * [#205](https://github.com/intridea/grape/pull/205): Fix: Corrected parsing of empty JSON body on POST/PUT - [@tim-vandecasteele](https://github.com/tim-vandecasteele). * [#181](https://github.com/intridea/grape/pull/181): Fix: Corrected JSON serialization of nested hashes containing `Grape::Entity` instances - [@benrosenblum](https://github.com/benrosenblum). * [#203](https://github.com/intridea/grape/pull/203): Added a check to `Entity#serializable_hash` that verifies an entity exists on an object - [@adamgotterer](https://github.com/adamgotterer). * [#208](https://github.com/intridea/grape/pull/208): `Entity#serializable_hash` must also check if attribute is generated by a user supplied block - [@ppadron](https://github.com/ppadron). * [#252](https://github.com/intridea/grape/pull/252): Resources that don't respond to a requested HTTP method return 405 (Method Not Allowed) instead of 404 (Not Found) - [@simulacre](https://github.com/simulacre) 0.2.1 (7/11/2012) ================= * [#186](https://github.com/intridea/grape/issues/186): Fix: helpers allow multiple calls with modules and blocks - [@ppadron](https://github.com/ppadron). * [#188](https://github.com/intridea/grape/pull/188): Fix: multi-method routes append '(.:format)' only once - [@kainosnoema](https://github.com/kainosnoema). * [#64](https://github.com/intridea/grape/issues/64), [#180](https://github.com/intridea/grape/pull/180): Added support to `GET` request bodies as parameters - [@bobbytables](https://github.com/bobbytables). * [#175](https://github.com/intridea/grape/pull/175): Added support for API versioning based on a request parameter - [@jackcasey](https://github.com/jackcasey). * [#168](https://github.com/intridea/grape/pull/168): Fix: Formatter can parse symbol keys in the headers hash - [@netmask](https://github.com/netmask). * [#169](https://github.com/intridea/grape/pull/169): Silence multi_json deprecation warnings - [@whiteley](https://github.com/whiteley). * [#166](https://github.com/intridea/grape/pull/166): Added support for `redirect`, including permanent and temporary - [@allenwei](https://github.com/allenwei). * [#159](https://github.com/intridea/grape/pull/159): Added `:requirements` to routes, allowing to use reserved characters in paths - [@gaiottino](https://github.com/gaiottino). * [#156](https://github.com/intridea/grape/pull/156): Added support for adding formatters to entities - [@bobbytables](https://github.com/bobbytables). * [#183](https://github.com/intridea/grape/pull/183): Added ability to include documentation in entities - [@flah00](https://github.com/flah00). * [#189](https://github.com/intridea/grape/pull/189): `HEAD` requests no longer return a body - [@stephencelis](https://github.com/stephencelis). * [#97](https://github.com/intridea/grape/issues/97): Allow overriding `Content-Type` - [@dblock](https://github.com/dblock). 0.2.0 (3/28/2012) ================= * Added support for inheriting exposures from entities - [@bobbytables](https://github.com/bobbytables). * Extended formatting with `default_format` - [@dblock](https://github.com/dblock). * Added support for cookies - [@lukaszsliwa](https://github.com/lukaszsliwa). * Added support for declaring additional content-types - [@joeyAghion](https://github.com/joeyAghion). * Added support for HTTP PATCH - [@LTe](https://github.com/LTe). * Added support for describing, documenting and reflecting APIs - [@dblock](https://github.com/dblock). * Added support for anchoring and vendoring - [@jwkoelewijn](https://github.com/jwkoelewijn). * Added support for HTTP OPTIONS - [@grimen](https://github.com/grimen). * Added support for silencing logger - [@evansj](https://github.com/evansj). * Added support for helper modules - [@freelancing-god](https://github.com/freelancing-god). * Added support for Accept header-based versioning - [@jch](https://github.com/jch), [@rodzyn](https://github.com/rodzyn). * Added support for mounting APIs and other Rack applications within APIs - [@mbleigh](https://github.com/mbleigh). * Added entities, multiple object representations - [@mbleigh](https://github.com/mbleigh). * Added ability to handle XML in the incoming request body - [@jwillis](https://github.com/jwillis). * Added support for a configurable logger - [@mbleigh](https://github.com/mbleigh). * Added support for before and after filters - [@mbleigh](https://github.com/mbleigh). * Extended `rescue_from`, which can now take a block - [@dblock](https://github.com/dblock). 0.1.5 (6/14/2011) ================== * Extended exception handling to all exceptions - [@dblock](https://github.com/dblock). * Added support for returning JSON objects from within error blocks - [@dblock](https://github.com/dblock). * Added support for handling incoming JSON in body - [@tedkulp](https://github.com/tedkulp). * Added support for HTTP digest authentication - [@daddz](https://github.com/daddz). 0.1.4 (4/8/2011) ================== * Allow multiple definitions of the same endpoint under multiple versions - [@chrisrhoden](https://github.com/chrisrhoden). * Added support for multipart URL parameters - [@mcastilho](https://github.com/mcastilho). * Added support for custom formatters - [@spraints](https://github.com/spraints). 0.1.3 (1/10/2011) ================== * Added support for JSON format in route matching - [@aiwilliams](https://github.com/aiwilliams). * Added suport for custom middleware - [@mbleigh](https://github.com/mbleigh). 0.1.1 (11/14/2010) ================== * Endpoints properly reset between each request - [@mbleigh](https://github.com/mbleigh). 0.1.0 (11/13/2010) ================== * Initial public release - [@mbleigh](https://github.com/mbleigh).
Java
module.exports = function(grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ // watch for changes and trigger compass, jshint, uglify and livereload watch: { js: { files: ['jquery.accrue.js'], tasks: ['jshint','uglify'], options: { livereload: true, }, }, css: { files: 'example.scss', tasks: ['sass'], options: { livereload: true, }, } }, // we use the Sass sass: { dist: { options: { // nested, compact, compressed, expanded style: 'compressed' }, files: { 'example.css': 'example.scss' } } }, // uglify to concat & minify uglify: { js: { files: { 'jquery.accrue.min.js': 'jquery.accrue.js', } } }, // lint me. jshint: { all: ['jquery.accrue.js'] } }); // register task grunt.registerTask('default', ['watch']); };
Java
require "lita" Lita.load_locales Dir[File.expand_path( File.join("..", "..", "locales", "*.yml"), __FILE__ )] require "lita/handlers/urban"
Java
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.IO; using System.Text; public class KinectManager : MonoBehaviour { public enum Smoothing : int { None, Default, Medium, Aggressive } // Public Bool to determine how many players there are. Default of one user. public bool TwoUsers = false; // Public Bool to determine if the sensor is used in near mode. public bool NearMode = false; // Public Bool to determine whether to receive and compute the user map public bool ComputeUserMap = false; // Public Bool to determine whether to receive and compute the color map public bool ComputeColorMap = false; // Public Bool to determine whether to display user map on the GUI public bool DisplayUserMap = false; // Public Bool to determine whether to display color map on the GUI public bool DisplayColorMap = false; // Public Bool to determine whether to display the skeleton lines on user map public bool DisplaySkeletonLines = false; // Public Floats to specify the width and height of the depth and color maps as % of the camera width and height // if percents are zero, they are calculated based on actual Kinect image´s width and height public float MapsPercentWidth = 0f; public float MapsPercentHeight = 0f; // How high off the ground is the sensor (in meters). public float SensorHeight = 1.0f; // Kinect elevation angle (in degrees) public int SensorAngle = 0; // Minimum user distance in order to process skeleton data public float MinUserDistance = 1.0f; // Public Bool to determine whether to detect only the closest user or not public bool DetectClosestUser = true; // Public Bool to determine whether to use only the tracked joints (and ignore the inferred ones) public bool IgnoreInferredJoints = true; // Selection of smoothing parameters public Smoothing smoothing = Smoothing.Default; // Public Bool to determine the use of additional filters public bool UseBoneOrientationsFilter = false; public bool UseClippedLegsFilter = false; public bool UseBoneOrientationsConstraint = true; public bool UseSelfIntersectionConstraint = false; // Lists of GameObjects that will be controlled by which player. public List<GameObject> Player1Avatars; public List<GameObject> Player2Avatars; // Calibration poses for each player, if needed public KinectGestures.Gestures Player1CalibrationPose; public KinectGestures.Gestures Player2CalibrationPose; // List of Gestures to detect for each player public List<KinectGestures.Gestures> Player1Gestures; public List<KinectGestures.Gestures> Player2Gestures; // Minimum time between gesture detections public float MinTimeBetweenGestures = 0f; // List of Gesture Listeners. They must implement KinectGestures.GestureListenerInterface public List<MonoBehaviour> GestureListeners; // GUI Text to show messages. public GameObject CalibrationText; // GUI Texture to display the hand cursor for Player1 public GameObject HandCursor1; // GUI Texture to display the hand cursor for Player1 public GameObject HandCursor2; // Bool to specify whether Left/Right-hand-cursor and the Click-gesture control the mouse cursor and click public bool ControlMouseCursor = false; // Bool to keep track of whether Kinect has been initialized private bool KinectInitialized = false; // Bools to keep track of who is currently calibrated. private bool Player1Calibrated = false; private bool Player2Calibrated = false; private bool AllPlayersCalibrated = false; // Values to track which ID (assigned by the Kinect) is player 1 and player 2. private uint Player1ID; private uint Player2ID; // Lists of AvatarControllers that will let the models get updated. private List<AvatarController> Player1Controllers; private List<AvatarController> Player2Controllers; // User Map vars. private Texture2D usersLblTex; private Color32[] usersMapColors; private ushort[] usersPrevState; private Rect usersMapRect; private int usersMapSize; private Texture2D usersClrTex; //Color[] usersClrColors; private Rect usersClrRect; //short[] usersLabelMap; private short[] usersDepthMap; private float[] usersHistogramMap; // List of all users private List<uint> allUsers; // Image stream handles for the kinect private IntPtr colorStreamHandle; private IntPtr depthStreamHandle; // Color image data, if used private Color32[] colorImage; private byte[] usersColorMap; // Skeleton related structures private KinectWrapper.NuiSkeletonFrame skeletonFrame; private KinectWrapper.NuiTransformSmoothParameters smoothParameters; private int player1Index, player2Index; // Skeleton tracking states, positions and joints' orientations private Vector3 player1Pos, player2Pos; private Matrix4x4 player1Ori, player2Ori; private bool[] player1JointsTracked, player2JointsTracked; private bool[] player1PrevTracked, player2PrevTracked; private Vector3[] player1JointsPos, player2JointsPos; private Matrix4x4[] player1JointsOri, player2JointsOri; private KinectWrapper.NuiSkeletonBoneOrientation[] jointOrientations; // Calibration gesture data for each player private KinectGestures.GestureData player1CalibrationData; private KinectGestures.GestureData player2CalibrationData; // Lists of gesture data, for each player private List<KinectGestures.GestureData> player1Gestures = new List<KinectGestures.GestureData>(); private List<KinectGestures.GestureData> player2Gestures = new List<KinectGestures.GestureData>(); // general gesture tracking time start private float[] gestureTrackingAtTime; // List of Gesture Listeners. They must implement KinectGestures.GestureListenerInterface public List<KinectGestures.GestureListenerInterface> gestureListeners; private Matrix4x4 kinectToWorld, flipMatrix; private static KinectManager instance; // Timer for controlling Filter Lerp blends. private float lastNuiTime; // Filters private TrackingStateFilter[] trackingStateFilter; private BoneOrientationsFilter[] boneOrientationFilter; private ClippedLegsFilter[] clippedLegsFilter; private BoneOrientationsConstraint boneConstraintsFilter; private SelfIntersectionConstraint selfIntersectionConstraint; // returns the single KinectManager instance public static KinectManager Instance { get { return instance; } } // checks if Kinect is initialized and ready to use. If not, there was an error during Kinect-sensor initialization public static bool IsKinectInitialized() { return instance != null ? instance.KinectInitialized : false; } // checks if Kinect is initialized and ready to use. If not, there was an error during Kinect-sensor initialization public bool IsInitialized() { return KinectInitialized; } // this function is used internally by AvatarController public static bool IsCalibrationNeeded() { return false; } // // returns the raw depth/user data,if ComputeUserMap is true // public short[] GetUsersDepthMap() // { // return usersDepthMap; // } // returns the depth data for a specific pixel,if ComputeUserMap is true public short GetDepthForPixel(int x, int y) { int index = y * KinectWrapper.Constants.ImageWidth + x; if(index >= 0 && index < usersDepthMap.Length) return usersDepthMap[index]; else return 0; } // returns the depth map position for a 3d joint position public Vector2 GetDepthMapPosForJointPos(Vector3 posJoint) { Vector3 vDepthPos = KinectWrapper.MapSkeletonPointToDepthPoint(posJoint); Vector2 vMapPos = new Vector2(vDepthPos.x, vDepthPos.y); return vMapPos; } // returns the color map position for a depth 2d position public Vector2 GetColorMapPosForDepthPos(Vector2 posDepth) { int cx, cy; KinectWrapper.NuiImageViewArea pcViewArea = new KinectWrapper.NuiImageViewArea { eDigitalZoom = 0, lCenterX = 0, lCenterY = 0 }; int hr = KinectWrapper.NuiImageGetColorPixelCoordinatesFromDepthPixelAtResolution( KinectWrapper.Constants.ImageResolution, KinectWrapper.Constants.ImageResolution, ref pcViewArea, (int)posDepth.x, (int)posDepth.y, GetDepthForPixel((int)posDepth.x, (int)posDepth.y), out cx, out cy); return new Vector2(cx, cy); } // returns the depth image/users histogram texture,if ComputeUserMap is true public Texture2D GetUsersLblTex() { return usersLblTex; } // returns the color image texture,if ComputeColorMap is true public Texture2D GetUsersClrTex() { return usersClrTex; } // returns true if at least one user is currently detected by the sensor public bool IsUserDetected() { return KinectInitialized && (allUsers.Count > 0); } // returns the UserID of Player1, or 0 if no Player1 is detected public uint GetPlayer1ID() { return Player1ID; } // returns the UserID of Player2, or 0 if no Player2 is detected public uint GetPlayer2ID() { return Player2ID; } // returns true if the User is calibrated and ready to use public bool IsPlayerCalibrated(uint UserId) { if(UserId == Player1ID) return Player1Calibrated; else if(UserId == Player2ID) return Player2Calibrated; return false; } // returns the raw unmodified joint position, as returned by the Kinect sensor public Vector3 GetRawSkeletonJointPos(uint UserId, int joint) { if(UserId == Player1ID) return joint >= 0 && joint < player1JointsPos.Length ? (Vector3)skeletonFrame.SkeletonData[player1Index].SkeletonPositions[joint] : Vector3.zero; else if(UserId == Player2ID) return joint >= 0 && joint < player2JointsPos.Length ? (Vector3)skeletonFrame.SkeletonData[player2Index].SkeletonPositions[joint] : Vector3.zero; return Vector3.zero; } // returns the User position, relative to the Kinect-sensor, in meters public Vector3 GetUserPosition(uint UserId) { if(UserId == Player1ID) return player1Pos; else if(UserId == Player2ID) return player2Pos; return Vector3.zero; } // returns the User rotation, relative to the Kinect-sensor public Quaternion GetUserOrientation(uint UserId, bool flip) { if(UserId == Player1ID && player1JointsTracked[(int)KinectWrapper.NuiSkeletonPositionIndex.HipCenter]) return ConvertMatrixToQuat(player1Ori, (int)KinectWrapper.NuiSkeletonPositionIndex.HipCenter, flip); else if(UserId == Player2ID && player2JointsTracked[(int)KinectWrapper.NuiSkeletonPositionIndex.HipCenter]) return ConvertMatrixToQuat(player2Ori, (int)KinectWrapper.NuiSkeletonPositionIndex.HipCenter, flip); return Quaternion.identity; } // returns true if the given joint of the specified user is being tracked public bool IsJointTracked(uint UserId, int joint) { if(UserId == Player1ID) return joint >= 0 && joint < player1JointsTracked.Length ? player1JointsTracked[joint] : false; else if(UserId == Player2ID) return joint >= 0 && joint < player2JointsTracked.Length ? player2JointsTracked[joint] : false; return false; } // returns the joint position of the specified user, relative to the Kinect-sensor, in meters public Vector3 GetJointPosition(uint UserId, int joint) { if(UserId == Player1ID) return joint >= 0 && joint < player1JointsPos.Length ? player1JointsPos[joint] : Vector3.zero; else if(UserId == Player2ID) return joint >= 0 && joint < player2JointsPos.Length ? player2JointsPos[joint] : Vector3.zero; return Vector3.zero; } // returns the local joint position of the specified user, relative to the parent joint, in meters public Vector3 GetJointLocalPosition(uint UserId, int joint) { int parent = KinectWrapper.GetSkeletonJointParent(joint); if(UserId == Player1ID) return joint >= 0 && joint < player1JointsPos.Length ? (player1JointsPos[joint] - player1JointsPos[parent]) : Vector3.zero; else if(UserId == Player2ID) return joint >= 0 && joint < player2JointsPos.Length ? (player2JointsPos[joint] - player2JointsPos[parent]) : Vector3.zero; return Vector3.zero; } // returns the joint rotation of the specified user, relative to the Kinect-sensor public Quaternion GetJointOrientation(uint UserId, int joint, bool flip) { if(UserId == Player1ID) { if(joint >= 0 && joint < player1JointsOri.Length && player1JointsTracked[joint]) return ConvertMatrixToQuat(player1JointsOri[joint], joint, flip); } else if(UserId == Player2ID) { if(joint >= 0 && joint < player2JointsOri.Length && player2JointsTracked[joint]) return ConvertMatrixToQuat(player2JointsOri[joint], joint, flip); } return Quaternion.identity; } // returns the joint rotation of the specified user, relative to the parent joint public Quaternion GetJointLocalOrientation(uint UserId, int joint, bool flip) { int parent = KinectWrapper.GetSkeletonJointParent(joint); if(UserId == Player1ID) { if(joint >= 0 && joint < player1JointsOri.Length && player1JointsTracked[joint]) { Matrix4x4 localMat = (player1JointsOri[parent].inverse * player1JointsOri[joint]); return Quaternion.LookRotation(localMat.GetColumn(2), localMat.GetColumn(1)); } } else if(UserId == Player2ID) { if(joint >= 0 && joint < player2JointsOri.Length && player2JointsTracked[joint]) { Matrix4x4 localMat = (player2JointsOri[parent].inverse * player2JointsOri[joint]); return Quaternion.LookRotation(localMat.GetColumn(2), localMat.GetColumn(1)); } } return Quaternion.identity; } // returns the direction between baseJoint and nextJoint, for the specified user public Vector3 GetDirectionBetweenJoints(uint UserId, int baseJoint, int nextJoint, bool flipX, bool flipZ) { Vector3 jointDir = Vector3.zero; if(UserId == Player1ID) { if(baseJoint >= 0 && baseJoint < player1JointsPos.Length && player1JointsTracked[baseJoint] && nextJoint >= 0 && nextJoint < player1JointsPos.Length && player1JointsTracked[nextJoint]) { jointDir = player1JointsPos[nextJoint] - player1JointsPos[baseJoint]; } } else if(UserId == Player2ID) { if(baseJoint >= 0 && baseJoint < player2JointsPos.Length && player2JointsTracked[baseJoint] && nextJoint >= 0 && nextJoint < player2JointsPos.Length && player2JointsTracked[nextJoint]) { jointDir = player2JointsPos[nextJoint] - player2JointsPos[baseJoint]; } } if(jointDir != Vector3.zero) { if(flipX) jointDir.x = -jointDir.x; if(flipZ) jointDir.z = -jointDir.z; } return jointDir; } // adds a gesture to the list of detected gestures for the specified user public void DetectGesture(uint UserId, KinectGestures.Gestures gesture) { int index = GetGestureIndex(UserId, gesture); if(index >= 0) DeleteGesture(UserId, gesture); KinectGestures.GestureData gestureData = new KinectGestures.GestureData(); gestureData.userId = UserId; gestureData.gesture = gesture; gestureData.state = 0; gestureData.joint = 0; gestureData.progress = 0f; gestureData.complete = false; gestureData.cancelled = false; gestureData.checkForGestures = new List<KinectGestures.Gestures>(); switch(gesture) { case KinectGestures.Gestures.ZoomIn: gestureData.checkForGestures.Add(KinectGestures.Gestures.ZoomOut); gestureData.checkForGestures.Add(KinectGestures.Gestures.Wheel); break; case KinectGestures.Gestures.ZoomOut: gestureData.checkForGestures.Add(KinectGestures.Gestures.ZoomIn); gestureData.checkForGestures.Add(KinectGestures.Gestures.Wheel); break; case KinectGestures.Gestures.Wheel: gestureData.checkForGestures.Add(KinectGestures.Gestures.ZoomIn); gestureData.checkForGestures.Add(KinectGestures.Gestures.ZoomOut); break; // case KinectGestures.Gestures.Jump: // gestureData.checkForGestures.Add(KinectGestures.Gestures.Squat); // break; // // case KinectGestures.Gestures.Squat: // gestureData.checkForGestures.Add(KinectGestures.Gestures.Jump); // break; // // case KinectGestures.Gestures.Push: // gestureData.checkForGestures.Add(KinectGestures.Gestures.Pull); // break; // // case KinectGestures.Gestures.Pull: // gestureData.checkForGestures.Add(KinectGestures.Gestures.Push); // break; } if(UserId == Player1ID) player1Gestures.Add(gestureData); else if(UserId == Player2ID) player2Gestures.Add(gestureData); } // resets the gesture-data state for the given gesture of the specified user public bool ResetGesture(uint UserId, KinectGestures.Gestures gesture) { int index = GetGestureIndex(UserId, gesture); if(index < 0) return false; KinectGestures.GestureData gestureData = (UserId == Player1ID) ? player1Gestures[index] : player2Gestures[index]; gestureData.state = 0; gestureData.joint = 0; gestureData.progress = 0f; gestureData.complete = false; gestureData.cancelled = false; gestureData.startTrackingAtTime = Time.realtimeSinceStartup + KinectWrapper.Constants.MinTimeBetweenSameGestures; if(UserId == Player1ID) player1Gestures[index] = gestureData; else if(UserId == Player2ID) player2Gestures[index] = gestureData; return true; } // resets the gesture-data states for all detected gestures of the specified user public void ResetPlayerGestures(uint UserId) { if(UserId == Player1ID) { int listSize = player1Gestures.Count; for(int i = 0; i < listSize; i++) { ResetGesture(UserId, player1Gestures[i].gesture); } } else if(UserId == Player2ID) { int listSize = player2Gestures.Count; for(int i = 0; i < listSize; i++) { ResetGesture(UserId, player2Gestures[i].gesture); } } } // deletes the given gesture from the list of detected gestures for the specified user public bool DeleteGesture(uint UserId, KinectGestures.Gestures gesture) { int index = GetGestureIndex(UserId, gesture); if(index < 0) return false; if(UserId == Player1ID) player1Gestures.RemoveAt(index); else if(UserId == Player2ID) player2Gestures.RemoveAt(index); return true; } // clears detected gestures list for the specified user public void ClearGestures(uint UserId) { if(UserId == Player1ID) { player1Gestures.Clear(); } else if(UserId == Player2ID) { player2Gestures.Clear(); } } // returns the count of detected gestures in the list of detected gestures for the specified user public int GetGesturesCount(uint UserId) { if(UserId == Player1ID) return player1Gestures.Count; else if(UserId == Player2ID) return player2Gestures.Count; return 0; } // returns the list of detected gestures for the specified user public List<KinectGestures.Gestures> GetGesturesList(uint UserId) { List<KinectGestures.Gestures> list = new List<KinectGestures.Gestures>(); if(UserId == Player1ID) { foreach(KinectGestures.GestureData data in player1Gestures) list.Add(data.gesture); } else if(UserId == Player2ID) { foreach(KinectGestures.GestureData data in player1Gestures) list.Add(data.gesture); } return list; } // returns true, if the given gesture is in the list of detected gestures for the specified user public bool IsGestureDetected(uint UserId, KinectGestures.Gestures gesture) { int index = GetGestureIndex(UserId, gesture); return index >= 0; } // returns true, if the given gesture for the specified user is complete public bool IsGestureComplete(uint UserId, KinectGestures.Gestures gesture, bool bResetOnComplete) { int index = GetGestureIndex(UserId, gesture); if(index >= 0) { if(UserId == Player1ID) { KinectGestures.GestureData gestureData = player1Gestures[index]; if(bResetOnComplete && gestureData.complete) { ResetPlayerGestures(UserId); return true; } return gestureData.complete; } else if(UserId == Player2ID) { KinectGestures.GestureData gestureData = player2Gestures[index]; if(bResetOnComplete && gestureData.complete) { ResetPlayerGestures(UserId); return true; } return gestureData.complete; } } return false; } // returns true, if the given gesture for the specified user is cancelled public bool IsGestureCancelled(uint UserId, KinectGestures.Gestures gesture) { int index = GetGestureIndex(UserId, gesture); if(index >= 0) { if(UserId == Player1ID) { KinectGestures.GestureData gestureData = player1Gestures[index]; return gestureData.cancelled; } else if(UserId == Player2ID) { KinectGestures.GestureData gestureData = player2Gestures[index]; return gestureData.cancelled; } } return false; } // returns the progress in range [0, 1] of the given gesture for the specified user public float GetGestureProgress(uint UserId, KinectGestures.Gestures gesture) { int index = GetGestureIndex(UserId, gesture); if(index >= 0) { if(UserId == Player1ID) { KinectGestures.GestureData gestureData = player1Gestures[index]; return gestureData.progress; } else if(UserId == Player2ID) { KinectGestures.GestureData gestureData = player2Gestures[index]; return gestureData.progress; } } return 0f; } // returns the current "screen position" of the given gesture for the specified user public Vector3 GetGestureScreenPos(uint UserId, KinectGestures.Gestures gesture) { int index = GetGestureIndex(UserId, gesture); if(index >= 0) { if(UserId == Player1ID) { KinectGestures.GestureData gestureData = player1Gestures[index]; return gestureData.screenPos; } else if(UserId == Player2ID) { KinectGestures.GestureData gestureData = player2Gestures[index]; return gestureData.screenPos; } } return Vector3.zero; } // recreates and reinitializes the lists of avatar controllers, after the list of avatars for player 1/2 was changed public void SetAvatarControllers() { if(Player1Avatars.Count == 0 && Player2Avatars.Count == 0) { AvatarController[] avatars = FindObjectsOfType(typeof(AvatarController)) as AvatarController[]; foreach(AvatarController avatar in avatars) { Player1Avatars.Add(avatar.gameObject); } } if(Player1Controllers != null) { Player1Controllers.Clear(); foreach(GameObject avatar in Player1Avatars) { if(avatar != null && avatar.activeInHierarchy) { AvatarController controller = avatar.GetComponent<AvatarController>(); controller.RotateToInitialPosition(); controller.Start(); Player1Controllers.Add(controller); } } } if(Player2Controllers != null) { Player2Controllers.Clear(); foreach(GameObject avatar in Player2Avatars) { if(avatar != null && avatar.activeInHierarchy) { AvatarController controller = avatar.GetComponent<AvatarController>(); controller.RotateToInitialPosition(); controller.Start(); Player2Controllers.Add(controller); } } } } // removes the currently detected kinect users, allowing a new detection/calibration process to start public void ClearKinectUsers() { if(!KinectInitialized) return; // remove current users for(int i = allUsers.Count - 1; i >= 0; i--) { uint userId = allUsers[i]; RemoveUser(userId); } ResetFilters(); } // clears Kinect buffers and resets the filters public void ResetFilters() { if(!KinectInitialized) return; // clear kinect vars player1Pos = Vector3.zero; player2Pos = Vector3.zero; player1Ori = Matrix4x4.identity; player2Ori = Matrix4x4.identity; int skeletonJointsCount = (int)KinectWrapper.NuiSkeletonPositionIndex.Count; for(int i = 0; i < skeletonJointsCount; i++) { player1JointsTracked[i] = false; player2JointsTracked[i] = false; player1PrevTracked[i] = false; player2PrevTracked[i] = false; player1JointsPos[i] = Vector3.zero; player2JointsPos[i] = Vector3.zero; player1JointsOri[i] = Matrix4x4.identity; player2JointsOri[i] = Matrix4x4.identity; } if(trackingStateFilter != null) { for(int i = 0; i < trackingStateFilter.Length; i++) if(trackingStateFilter[i] != null) trackingStateFilter[i].Reset(); } if(boneOrientationFilter != null) { for(int i = 0; i < boneOrientationFilter.Length; i++) if(boneOrientationFilter[i] != null) boneOrientationFilter[i].Reset(); } if(clippedLegsFilter != null) { for(int i = 0; i < clippedLegsFilter.Length; i++) if(clippedLegsFilter[i] != null) clippedLegsFilter[i].Reset(); } } //----------------------------------- end of public functions --------------------------------------// void Start() { //CalibrationText = GameObject.Find("CalibrationText"); int hr = 0; try { hr = KinectWrapper.NuiInitialize(KinectWrapper.NuiInitializeFlags.UsesSkeleton | KinectWrapper.NuiInitializeFlags.UsesDepthAndPlayerIndex | (ComputeColorMap ? KinectWrapper.NuiInitializeFlags.UsesColor : 0)); if (hr != 0) { throw new Exception("NuiInitialize Failed"); } hr = KinectWrapper.NuiSkeletonTrackingEnable(IntPtr.Zero, 8); // 0, 12,8 if (hr != 0) { throw new Exception("Cannot initialize Skeleton Data"); } depthStreamHandle = IntPtr.Zero; if(ComputeUserMap) { hr = KinectWrapper.NuiImageStreamOpen(KinectWrapper.NuiImageType.DepthAndPlayerIndex, KinectWrapper.Constants.ImageResolution, 0, 2, IntPtr.Zero, ref depthStreamHandle); if (hr != 0) { throw new Exception("Cannot open depth stream"); } } colorStreamHandle = IntPtr.Zero; if(ComputeColorMap) { hr = KinectWrapper.NuiImageStreamOpen(KinectWrapper.NuiImageType.Color, KinectWrapper.Constants.ImageResolution, 0, 2, IntPtr.Zero, ref colorStreamHandle); if (hr != 0) { throw new Exception("Cannot open color stream"); } } // set kinect elevation angle KinectWrapper.NuiCameraElevationSetAngle(SensorAngle); // init skeleton structures skeletonFrame = new KinectWrapper.NuiSkeletonFrame() { SkeletonData = new KinectWrapper.NuiSkeletonData[KinectWrapper.Constants.NuiSkeletonCount] }; // values used to pass to smoothing function smoothParameters = new KinectWrapper.NuiTransformSmoothParameters(); switch(smoothing) { case Smoothing.Default: smoothParameters.fSmoothing = 0.5f; smoothParameters.fCorrection = 0.5f; smoothParameters.fPrediction = 0.5f; smoothParameters.fJitterRadius = 0.05f; smoothParameters.fMaxDeviationRadius = 0.04f; break; case Smoothing.Medium: smoothParameters.fSmoothing = 0.5f; smoothParameters.fCorrection = 0.1f; smoothParameters.fPrediction = 0.5f; smoothParameters.fJitterRadius = 0.1f; smoothParameters.fMaxDeviationRadius = 0.1f; break; case Smoothing.Aggressive: smoothParameters.fSmoothing = 0.7f; smoothParameters.fCorrection = 0.3f; smoothParameters.fPrediction = 1.0f; smoothParameters.fJitterRadius = 1.0f; smoothParameters.fMaxDeviationRadius = 1.0f; break; } // init the tracking state filter trackingStateFilter = new TrackingStateFilter[KinectWrapper.Constants.NuiSkeletonMaxTracked]; for(int i = 0; i < trackingStateFilter.Length; i++) { trackingStateFilter[i] = new TrackingStateFilter(); trackingStateFilter[i].Init(); } // init the bone orientation filter boneOrientationFilter = new BoneOrientationsFilter[KinectWrapper.Constants.NuiSkeletonMaxTracked]; for(int i = 0; i < boneOrientationFilter.Length; i++) { boneOrientationFilter[i] = new BoneOrientationsFilter(); boneOrientationFilter[i].Init(); } // init the clipped legs filter clippedLegsFilter = new ClippedLegsFilter[KinectWrapper.Constants.NuiSkeletonMaxTracked]; for(int i = 0; i < clippedLegsFilter.Length; i++) { clippedLegsFilter[i] = new ClippedLegsFilter(); } // init the bone orientation constraints boneConstraintsFilter = new BoneOrientationsConstraint(); boneConstraintsFilter.AddDefaultConstraints(); // init the self intersection constraints selfIntersectionConstraint = new SelfIntersectionConstraint(); // create arrays for joint positions and joint orientations int skeletonJointsCount = (int)KinectWrapper.NuiSkeletonPositionIndex.Count; player1JointsTracked = new bool[skeletonJointsCount]; player2JointsTracked = new bool[skeletonJointsCount]; player1PrevTracked = new bool[skeletonJointsCount]; player2PrevTracked = new bool[skeletonJointsCount]; player1JointsPos = new Vector3[skeletonJointsCount]; player2JointsPos = new Vector3[skeletonJointsCount]; player1JointsOri = new Matrix4x4[skeletonJointsCount]; player2JointsOri = new Matrix4x4[skeletonJointsCount]; gestureTrackingAtTime = new float[KinectWrapper.Constants.NuiSkeletonMaxTracked]; //create the transform matrix that converts from kinect-space to world-space Quaternion quatTiltAngle = new Quaternion(); quatTiltAngle.eulerAngles = new Vector3(-SensorAngle, 0.0f, 0.0f); //float heightAboveHips = SensorHeight - 1.0f; // transform matrix - kinect to world //kinectToWorld.SetTRS(new Vector3(0.0f, heightAboveHips, 0.0f), quatTiltAngle, Vector3.one); kinectToWorld.SetTRS(new Vector3(0.0f, SensorHeight, 0.0f), quatTiltAngle, Vector3.one); flipMatrix = Matrix4x4.identity; flipMatrix[2, 2] = -1; instance = this; DontDestroyOnLoad(gameObject); } catch(DllNotFoundException e) { string message = "Please check the Kinect SDK installation."; Debug.LogError(message); Debug.LogError(e.ToString()); if(CalibrationText != null) CalibrationText.guiText.text = message; return; } catch (Exception e) { string message = e.Message + " - " + KinectWrapper.GetNuiErrorString(hr); Debug.LogError(message); Debug.LogError(e.ToString()); if(CalibrationText != null) CalibrationText.guiText.text = message; return; } // get the main camera rectangle Rect cameraRect = Camera.main.pixelRect; // calculate map width and height in percent, if needed if(MapsPercentWidth == 0f) MapsPercentWidth = (KinectWrapper.GetDepthWidth() / 2) / cameraRect.width; if(MapsPercentHeight == 0f) MapsPercentHeight = (KinectWrapper.GetDepthHeight() / 2) / cameraRect.height; if(ComputeUserMap) { // Initialize depth & label map related stuff usersMapSize = KinectWrapper.GetDepthWidth() * KinectWrapper.GetDepthHeight(); usersLblTex = new Texture2D(KinectWrapper.GetDepthWidth(), KinectWrapper.GetDepthHeight()); usersMapColors = new Color32[usersMapSize]; usersPrevState = new ushort[usersMapSize]; //usersMapRect = new Rect(Screen.width, Screen.height - usersLblTex.height / 2, -usersLblTex.width / 2, usersLblTex.height / 2); //usersMapRect = new Rect(cameraRect.width, cameraRect.height - cameraRect.height * MapsPercentHeight, -cameraRect.width * MapsPercentWidth, cameraRect.height * MapsPercentHeight); usersMapRect = new Rect(cameraRect.width - cameraRect.width * MapsPercentWidth, cameraRect.height, cameraRect.width * MapsPercentWidth, -cameraRect.height * MapsPercentHeight); usersDepthMap = new short[usersMapSize]; usersHistogramMap = new float[8192]; } if(ComputeColorMap) { // Initialize color map related stuff usersClrTex = new Texture2D(KinectWrapper.GetDepthWidth(), KinectWrapper.GetDepthHeight()); //usersClrRect = new Rect(cameraRect.width, cameraRect.height - cameraRect.height * MapsPercentHeight, -cameraRect.width * MapsPercentWidth, cameraRect.height * MapsPercentHeight); usersClrRect = new Rect(cameraRect.width - cameraRect.width * MapsPercentWidth, cameraRect.height, cameraRect.width * MapsPercentWidth, -cameraRect.height * MapsPercentHeight); if(ComputeUserMap) usersMapRect.x -= cameraRect.width * MapsPercentWidth; //usersClrTex.width / 2; colorImage = new Color32[KinectWrapper.GetDepthWidth() * KinectWrapper.GetDepthHeight()]; usersColorMap = new byte[colorImage.Length << 2]; } // try to automatically find the available avatar controllers in the scene if(Player1Avatars.Count == 0 && Player2Avatars.Count == 0) { AvatarController[] avatars = FindObjectsOfType(typeof(AvatarController)) as AvatarController[]; foreach(AvatarController avatar in avatars) { Player1Avatars.Add(avatar.gameObject); } } // Initialize user list to contain ALL users. allUsers = new List<uint>(); // Pull the AvatarController from each of the players Avatars. Player1Controllers = new List<AvatarController>(); Player2Controllers = new List<AvatarController>(); // Add each of the avatars' controllers into a list for each player. foreach(GameObject avatar in Player1Avatars) { if(avatar != null && avatar.activeInHierarchy) { Player1Controllers.Add(avatar.GetComponent<AvatarController>()); } } foreach(GameObject avatar in Player2Avatars) { if(avatar != null && avatar.activeInHierarchy) { Player2Controllers.Add(avatar.GetComponent<AvatarController>()); } } // create the list of gesture listeners gestureListeners = new List<KinectGestures.GestureListenerInterface>(); foreach(MonoBehaviour script in GestureListeners) { if(script && (script is KinectGestures.GestureListenerInterface)) { KinectGestures.GestureListenerInterface listener = (KinectGestures.GestureListenerInterface)script; gestureListeners.Add(listener); } } // GUI Text. if(CalibrationText != null) { CalibrationText.guiText.text = "WAITING FOR USERS"; } Debug.Log("Waiting for users."); KinectInitialized = true; } void Update() { if(KinectInitialized) { // // for testing purposes only // KinectWrapper.UpdateKinectSensor(); // If the players aren't all calibrated yet, draw the user map. if(ComputeUserMap) { if(depthStreamHandle != IntPtr.Zero && KinectWrapper.PollDepth(depthStreamHandle, NearMode, ref usersDepthMap)) { UpdateUserMap(); } } if(ComputeColorMap) { if(colorStreamHandle != IntPtr.Zero && KinectWrapper.PollColor(colorStreamHandle, ref usersColorMap, ref colorImage)) { UpdateColorMap(); } } if(KinectWrapper.PollSkeleton(ref smoothParameters, ref skeletonFrame)) { ProcessSkeleton(); } // Update player 1's models if he/she is calibrated and the model is active. if(Player1Calibrated) { foreach (AvatarController controller in Player1Controllers) { //if(controller.Active) { controller.UpdateAvatar(Player1ID, NearMode); } } // Check for complete gestures foreach(KinectGestures.GestureData gestureData in player1Gestures) { if(gestureData.complete) { if(gestureData.gesture == KinectGestures.Gestures.Click) { if(ControlMouseCursor) { MouseControl.MouseClick(); } } foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { if(listener.GestureCompleted(Player1ID, 0, gestureData.gesture, (KinectWrapper.SkeletonJoint)gestureData.joint, gestureData.screenPos)) { ResetPlayerGestures(Player1ID); } } } else if(gestureData.cancelled) { foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { if(listener.GestureCancelled(Player1ID, 0, gestureData.gesture, (KinectWrapper.SkeletonJoint)gestureData.joint)) { ResetGesture(Player1ID, gestureData.gesture); } } } else if(gestureData.progress >= 0.1f) { if((gestureData.gesture == KinectGestures.Gestures.RightHandCursor || gestureData.gesture == KinectGestures.Gestures.LeftHandCursor) && gestureData.progress >= 0.5f) { if(HandCursor1 != null) { HandCursor1.transform.position = Vector3.Lerp(HandCursor1.transform.position, gestureData.screenPos, 3 * Time.deltaTime); } if(ControlMouseCursor) { MouseControl.MouseMove(gestureData.screenPos); } } foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { listener.GestureInProgress(Player1ID, 0, gestureData.gesture, gestureData.progress, (KinectWrapper.SkeletonJoint)gestureData.joint, gestureData.screenPos); } } } } // Update player 2's models if he/she is calibrated and the model is active. if(Player2Calibrated) { foreach (AvatarController controller in Player2Controllers) { //if(controller.Active) { controller.UpdateAvatar(Player2ID, NearMode); } } // Check for complete gestures foreach(KinectGestures.GestureData gestureData in player2Gestures) { if(gestureData.complete) { if(gestureData.gesture == KinectGestures.Gestures.Click) { if(ControlMouseCursor) { MouseControl.MouseClick(); } } foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { if(listener.GestureCompleted(Player2ID, 1, gestureData.gesture, (KinectWrapper.SkeletonJoint)gestureData.joint, gestureData.screenPos)) { ResetPlayerGestures(Player2ID); } } } else if(gestureData.cancelled) { foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { if(listener.GestureCancelled(Player2ID, 1, gestureData.gesture, (KinectWrapper.SkeletonJoint)gestureData.joint)) { ResetGesture(Player2ID, gestureData.gesture); } } } else if(gestureData.progress >= 0.1f) { if((gestureData.gesture == KinectGestures.Gestures.RightHandCursor || gestureData.gesture == KinectGestures.Gestures.LeftHandCursor) && gestureData.progress >= 0.5f) { if(HandCursor2 != null) { HandCursor2.transform.position = Vector3.Lerp(HandCursor2.transform.position, gestureData.screenPos, 3 * Time.deltaTime); } if(ControlMouseCursor) { MouseControl.MouseMove(gestureData.screenPos); } } foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { listener.GestureInProgress(Player2ID, 1, gestureData.gesture, gestureData.progress, (KinectWrapper.SkeletonJoint)gestureData.joint, gestureData.screenPos); } } } } } // Kill the program with ESC. if(Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } } // Make sure to kill the Kinect on quitting. void OnApplicationQuit() { if(KinectInitialized) { // Shutdown OpenNI KinectWrapper.NuiShutdown(); instance = null; } } // Draw the Histogram Map on the GUI. void OnGUI() { if(KinectInitialized) { if(ComputeUserMap && (/**(allUsers.Count == 0) ||*/ DisplayUserMap)) { GUI.DrawTexture(usersMapRect, usersLblTex); } if(ComputeColorMap && (/**(allUsers.Count == 0) ||*/ DisplayColorMap)) { GUI.DrawTexture(usersClrRect, usersClrTex); } } } // Update the User Map void UpdateUserMap() { int numOfPoints = 0; Array.Clear(usersHistogramMap, 0, usersHistogramMap.Length); // Calculate cumulative histogram for depth for (int i = 0; i < usersMapSize; i++) { // Only calculate for depth that contains users if ((usersDepthMap[i] & 7) != 0) { usersHistogramMap[usersDepthMap[i] >> 3]++; numOfPoints++; } } if (numOfPoints > 0) { for (int i = 1; i < usersHistogramMap.Length; i++) { usersHistogramMap[i] += usersHistogramMap[i-1]; } for (int i = 0; i < usersHistogramMap.Length; i++) { usersHistogramMap[i] = 1.0f - (usersHistogramMap[i] / numOfPoints); } } // dummy structure needed by the coordinate mapper KinectWrapper.NuiImageViewArea pcViewArea = new KinectWrapper.NuiImageViewArea { eDigitalZoom = 0, lCenterX = 0, lCenterY = 0 }; // Create the actual users texture based on label map and depth histogram Color32 clrClear = Color.clear; for (int i = 0; i < usersMapSize; i++) { // Flip the texture as we convert label map to color array int flipIndex = i; // usersMapSize - i - 1; ushort userMap = (ushort)(usersDepthMap[i] & 7); ushort userDepth = (ushort)(usersDepthMap[i] >> 3); ushort nowUserPixel = userMap != 0 ? (ushort)((userMap << 13) | userDepth) : userDepth; ushort wasUserPixel = usersPrevState[flipIndex]; // draw only the changed pixels if(nowUserPixel != wasUserPixel) { usersPrevState[flipIndex] = nowUserPixel; if (userMap == 0) { usersMapColors[flipIndex] = clrClear; } else { if(colorImage != null) { int x = i % KinectWrapper.Constants.ImageWidth; int y = i / KinectWrapper.Constants.ImageWidth; int cx, cy; int hr = KinectWrapper.NuiImageGetColorPixelCoordinatesFromDepthPixelAtResolution( KinectWrapper.Constants.ImageResolution, KinectWrapper.Constants.ImageResolution, ref pcViewArea, x, y, usersDepthMap[i], out cx, out cy); if(hr == 0) { int colorIndex = cx + cy * KinectWrapper.Constants.ImageWidth; //colorIndex = usersMapSize - colorIndex - 1; if(colorIndex >= 0 && colorIndex < usersMapSize) { Color32 colorPixel = colorImage[colorIndex]; usersMapColors[flipIndex] = colorPixel; // new Color(colorPixel.r / 256f, colorPixel.g / 256f, colorPixel.b / 256f, 0.9f); usersMapColors[flipIndex].a = 230; // 0.9f } } } else { // Create a blending color based on the depth histogram float histDepth = usersHistogramMap[userDepth]; Color c = new Color(histDepth, histDepth, histDepth, 0.9f); switch(userMap % 4) { case 0: usersMapColors[flipIndex] = Color.red * c; break; case 1: usersMapColors[flipIndex] = Color.green * c; break; case 2: usersMapColors[flipIndex] = Color.blue * c; break; case 3: usersMapColors[flipIndex] = Color.magenta * c; break; } } } } } // Draw it! usersLblTex.SetPixels32(usersMapColors); usersLblTex.Apply(); } // Update the Color Map void UpdateColorMap() { usersClrTex.SetPixels32(colorImage); usersClrTex.Apply(); } // Assign UserId to player 1 or 2. void CalibrateUser(uint UserId, ref KinectWrapper.NuiSkeletonData skeletonData) { // If player 1 hasn't been calibrated, assign that UserID to it. if(!Player1Calibrated) { // Check to make sure we don't accidentally assign player 2 to player 1. if (!allUsers.Contains(UserId)) { if(CheckForCalibrationPose(UserId, ref Player1CalibrationPose, ref player1CalibrationData, ref skeletonData)) { Player1Calibrated = true; Player1ID = UserId; allUsers.Add(UserId); foreach(AvatarController controller in Player1Controllers) { controller.SuccessfulCalibration(UserId); } // add the gestures to detect, if any foreach(KinectGestures.Gestures gesture in Player1Gestures) { DetectGesture(UserId, gesture); } print ("user.detected"); // notify the gesture listeners about the new user foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { listener.UserDetected(UserId, 0); } // reset skeleton filters ResetFilters(); // If we're not using 2 users, we're all calibrated. //if(!TwoUsers) { AllPlayersCalibrated = !TwoUsers ? allUsers.Count >= 1 : allUsers.Count >= 2; // true; } } } } // Otherwise, assign to player 2. else if(TwoUsers && !Player2Calibrated) { if (!allUsers.Contains(UserId)) { if(CheckForCalibrationPose(UserId, ref Player2CalibrationPose, ref player2CalibrationData, ref skeletonData)) { Player2Calibrated = true; Player2ID = UserId; allUsers.Add(UserId); foreach(AvatarController controller in Player2Controllers) { controller.SuccessfulCalibration(UserId); } // add the gestures to detect, if any foreach(KinectGestures.Gestures gesture in Player2Gestures) { DetectGesture(UserId, gesture); } // notify the gesture listeners about the new user foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { listener.UserDetected(UserId, 1); } // reset skeleton filters ResetFilters(); // All users are calibrated! AllPlayersCalibrated = !TwoUsers ? allUsers.Count >= 1 : allUsers.Count >= 2; // true; } } } // If all users are calibrated, stop trying to find them. if(AllPlayersCalibrated) { Debug.Log("All players calibrated."); if(CalibrationText != null) { CalibrationText.guiText.text = ""; } } } // Remove a lost UserId void RemoveUser(uint UserId) { // If we lose player 1... if(UserId == Player1ID) { // Null out the ID and reset all the models associated with that ID. Player1ID = 0; Player1Calibrated = false; foreach(AvatarController controller in Player1Controllers) { controller.RotateToCalibrationPose(UserId, IsCalibrationNeeded()); } foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { listener.UserLost(UserId, 0); } player1CalibrationData.userId = 0; } // If we lose player 2... if(UserId == Player2ID) { // Null out the ID and reset all the models associated with that ID. Player2ID = 0; Player2Calibrated = false; foreach(AvatarController controller in Player2Controllers) { controller.RotateToCalibrationPose(UserId, IsCalibrationNeeded()); } foreach(KinectGestures.GestureListenerInterface listener in gestureListeners) { listener.UserLost(UserId, 1); } player2CalibrationData.userId = 0; } // clear gestures list for this user ClearGestures(UserId); // remove from global users list allUsers.Remove(UserId); AllPlayersCalibrated = !TwoUsers ? allUsers.Count >= 1 : allUsers.Count >= 2; // false; // Try to replace that user! Debug.Log("Waiting for users."); if(CalibrationText != null) { CalibrationText.guiText.text = "WAITING FOR USERS"; } } // Some internal constants private const int stateTracked = (int)KinectWrapper.NuiSkeletonPositionTrackingState.Tracked; private const int stateNotTracked = (int)KinectWrapper.NuiSkeletonPositionTrackingState.NotTracked; private int [] mustBeTrackedJoints = { (int)KinectWrapper.NuiSkeletonPositionIndex.AnkleLeft, (int)KinectWrapper.NuiSkeletonPositionIndex.FootLeft, (int)KinectWrapper.NuiSkeletonPositionIndex.AnkleRight, (int)KinectWrapper.NuiSkeletonPositionIndex.FootRight, }; // Process the skeleton data void ProcessSkeleton() { List<uint> lostUsers = new List<uint>(); lostUsers.AddRange(allUsers); // calculate the time since last update float currentNuiTime = Time.realtimeSinceStartup; float deltaNuiTime = currentNuiTime - lastNuiTime; for(int i = 0; i < KinectWrapper.Constants.NuiSkeletonCount; i++) { KinectWrapper.NuiSkeletonData skeletonData = skeletonFrame.SkeletonData[i]; uint userId = skeletonData.dwTrackingID; if(skeletonData.eTrackingState == KinectWrapper.NuiSkeletonTrackingState.SkeletonTracked) { // get the skeleton position Vector3 skeletonPos = kinectToWorld.MultiplyPoint3x4(skeletonData.Position); if(!AllPlayersCalibrated) { // check if this is the closest user bool bClosestUser = true; if(DetectClosestUser) { for(int j = 0; j < KinectWrapper.Constants.NuiSkeletonCount; j++) { if(j != i) { KinectWrapper.NuiSkeletonData skeletonDataOther = skeletonFrame.SkeletonData[j]; if((skeletonDataOther.eTrackingState == KinectWrapper.NuiSkeletonTrackingState.SkeletonTracked) && (Mathf.Abs(kinectToWorld.MultiplyPoint3x4(skeletonDataOther.Position).z) < Mathf.Abs(skeletonPos.z))) { bClosestUser = false; break; } } } } if(bClosestUser) { CalibrateUser(userId, ref skeletonData); } } //// get joints orientations //KinectWrapper.NuiSkeletonBoneOrientation[] jointOrients = new KinectWrapper.NuiSkeletonBoneOrientation[(int)KinectWrapper.NuiSkeletonPositionIndex.Count]; //KinectWrapper.NuiSkeletonCalculateBoneOrientations(ref skeletonData, jointOrients); if(userId == Player1ID && Mathf.Abs(skeletonPos.z) >= MinUserDistance) { player1Index = i; // get player position player1Pos = skeletonPos; // apply tracking state filter first trackingStateFilter[0].UpdateFilter(ref skeletonData); // fixup skeleton to improve avatar appearance. if(UseClippedLegsFilter && clippedLegsFilter[0] != null) { clippedLegsFilter[0].FilterSkeleton(ref skeletonData, deltaNuiTime); } if(UseSelfIntersectionConstraint && selfIntersectionConstraint != null) { selfIntersectionConstraint.Constrain(ref skeletonData); } // get joints' position and rotation for (int j = 0; j < (int)KinectWrapper.NuiSkeletonPositionIndex.Count; j++) { bool playerTracked = IgnoreInferredJoints ? (int)skeletonData.eSkeletonPositionTrackingState[j] == stateTracked : (Array.BinarySearch(mustBeTrackedJoints, j) >= 0 ? (int)skeletonData.eSkeletonPositionTrackingState[j] == stateTracked : (int)skeletonData.eSkeletonPositionTrackingState[j] != stateNotTracked); player1JointsTracked[j] = player1PrevTracked[j] && playerTracked; player1PrevTracked[j] = playerTracked; if(player1JointsTracked[j]) { player1JointsPos[j] = kinectToWorld.MultiplyPoint3x4(skeletonData.SkeletonPositions[j]); //player1JointsOri[j] = jointOrients[j].absoluteRotation.rotationMatrix * flipMatrix; } // if(j == (int)KinectWrapper.NuiSkeletonPositionIndex.HipCenter) // { // string debugText = String.Format("{0} {1}", /**(int)skeletonData.eSkeletonPositionTrackingState[j], */ // player1JointsTracked[j] ? "T" : "F", player1JointsPos[j]/**, skeletonData.SkeletonPositions[j]*/); // // if(CalibrationText) // CalibrationText.guiText.text = debugText; // } } // draw the skeleton on top of texture if(DisplaySkeletonLines && ComputeUserMap) { DrawSkeleton(usersLblTex, ref skeletonData, ref player1JointsTracked); } // calculate joint orientations KinectWrapper.GetSkeletonJointOrientation(ref player1JointsPos, ref player1JointsTracked, ref player1JointsOri); // filter orientation constraints if(UseBoneOrientationsConstraint && boneConstraintsFilter != null) { boneConstraintsFilter.Constrain(ref player1JointsOri, ref player1JointsTracked); } // filter joint orientations. // it should be performed after all joint position modifications. if(UseBoneOrientationsFilter && boneOrientationFilter[0] != null) { boneOrientationFilter[0].UpdateFilter(ref skeletonData, ref player1JointsOri); } // get player rotation player1Ori = player1JointsOri[(int)KinectWrapper.NuiSkeletonPositionIndex.HipCenter]; // check for gestures if(Time.realtimeSinceStartup >= gestureTrackingAtTime[0]) { int listGestureSize = player1Gestures.Count; float timestampNow = Time.realtimeSinceStartup; for(int g = 0; g < listGestureSize; g++) { KinectGestures.GestureData gestureData = player1Gestures[g]; if((timestampNow >= gestureData.startTrackingAtTime) && !IsConflictingGestureInProgress(gestureData)) { KinectGestures.CheckForGesture(userId, ref gestureData, Time.realtimeSinceStartup, ref player1JointsPos, ref player1JointsTracked); player1Gestures[g] = gestureData; if(gestureData.complete) { gestureTrackingAtTime[0] = timestampNow + MinTimeBetweenGestures; } } } } } else if(userId == Player2ID && Mathf.Abs(skeletonPos.z) >= MinUserDistance) { player2Index = i; // get player position player2Pos = skeletonPos; // apply tracking state filter first trackingStateFilter[1].UpdateFilter(ref skeletonData); // fixup skeleton to improve avatar appearance. if(UseClippedLegsFilter && clippedLegsFilter[1] != null) { clippedLegsFilter[1].FilterSkeleton(ref skeletonData, deltaNuiTime); } if(UseSelfIntersectionConstraint && selfIntersectionConstraint != null) { selfIntersectionConstraint.Constrain(ref skeletonData); } // get joints' position and rotation for (int j = 0; j < (int)KinectWrapper.NuiSkeletonPositionIndex.Count; j++) { bool playerTracked = IgnoreInferredJoints ? (int)skeletonData.eSkeletonPositionTrackingState[j] == stateTracked : (Array.BinarySearch(mustBeTrackedJoints, j) >= 0 ? (int)skeletonData.eSkeletonPositionTrackingState[j] == stateTracked : (int)skeletonData.eSkeletonPositionTrackingState[j] != stateNotTracked); player2JointsTracked[j] = player2PrevTracked[j] && playerTracked; player2PrevTracked[j] = playerTracked; if(player2JointsTracked[j]) { player2JointsPos[j] = kinectToWorld.MultiplyPoint3x4(skeletonData.SkeletonPositions[j]); } } // draw the skeleton on top of texture if(DisplaySkeletonLines && ComputeUserMap) { DrawSkeleton(usersLblTex, ref skeletonData, ref player2JointsTracked); } // calculate joint orientations KinectWrapper.GetSkeletonJointOrientation(ref player2JointsPos, ref player2JointsTracked, ref player2JointsOri); // filter orientation constraints if(UseBoneOrientationsConstraint && boneConstraintsFilter != null) { boneConstraintsFilter.Constrain(ref player2JointsOri, ref player2JointsTracked); } // filter joint orientations. // it should be performed after all joint position modifications. if(UseBoneOrientationsFilter && boneOrientationFilter[1] != null) { boneOrientationFilter[1].UpdateFilter(ref skeletonData, ref player2JointsOri); } // get player rotation player2Ori = player2JointsOri[(int)KinectWrapper.NuiSkeletonPositionIndex.HipCenter]; // check for gestures if(Time.realtimeSinceStartup >= gestureTrackingAtTime[1]) { int listGestureSize = player2Gestures.Count; float timestampNow = Time.realtimeSinceStartup; for(int g = 0; g < listGestureSize; g++) { KinectGestures.GestureData gestureData = player2Gestures[g]; if((timestampNow >= gestureData.startTrackingAtTime) && !IsConflictingGestureInProgress(gestureData)) { KinectGestures.CheckForGesture(userId, ref gestureData, Time.realtimeSinceStartup, ref player2JointsPos, ref player2JointsTracked); player2Gestures[g] = gestureData; if(gestureData.complete) { gestureTrackingAtTime[1] = timestampNow + MinTimeBetweenGestures; } } } } } lostUsers.Remove(userId); } } // update the nui-timer lastNuiTime = currentNuiTime; // remove the lost users if any if(lostUsers.Count > 0) { foreach(uint userId in lostUsers) { RemoveUser(userId); } lostUsers.Clear(); } } // draws the skeleton in the given texture private void DrawSkeleton(Texture2D aTexture, ref KinectWrapper.NuiSkeletonData skeletonData, ref bool[] playerJointsTracked) { int jointsCount = (int)KinectWrapper.NuiSkeletonPositionIndex.Count; for(int i = 0; i < jointsCount; i++) { int parent = KinectWrapper.GetSkeletonJointParent(i); if(playerJointsTracked[i] && playerJointsTracked[parent]) { Vector3 posParent = KinectWrapper.MapSkeletonPointToDepthPoint(skeletonData.SkeletonPositions[parent]); Vector3 posJoint = KinectWrapper.MapSkeletonPointToDepthPoint(skeletonData.SkeletonPositions[i]); // posParent.y = KinectWrapper.Constants.ImageHeight - posParent.y - 1; // posJoint.y = KinectWrapper.Constants.ImageHeight - posJoint.y - 1; // posParent.x = KinectWrapper.Constants.ImageWidth - posParent.x - 1; // posJoint.x = KinectWrapper.Constants.ImageWidth - posJoint.x - 1; //Color lineColor = playerJointsTracked[i] && playerJointsTracked[parent] ? Color.red : Color.yellow; DrawLine(aTexture, (int)posParent.x, (int)posParent.y, (int)posJoint.x, (int)posJoint.y, Color.yellow); } } aTexture.Apply(); } // draws a line in a texture private void DrawLine(Texture2D a_Texture, int x1, int y1, int x2, int y2, Color a_Color) { int width = KinectWrapper.Constants.ImageWidth; int height = KinectWrapper.Constants.ImageHeight; int dy = y2 - y1; int dx = x2 - x1; int stepy = 1; if (dy < 0) { dy = -dy; stepy = -1; } int stepx = 1; if (dx < 0) { dx = -dx; stepx = -1; } dy <<= 1; dx <<= 1; if(x1 >= 0 && x1 < width && y1 >= 0 && y1 < height) for(int x = -1; x <= 1; x++) for(int y = -1; y <= 1; y++) a_Texture.SetPixel(x1 + x, y1 + y, a_Color); if (dx > dy) { int fraction = dy - (dx >> 1); while (x1 != x2) { if (fraction >= 0) { y1 += stepy; fraction -= dx; } x1 += stepx; fraction += dy; if(x1 >= 0 && x1 < width && y1 >= 0 && y1 < height) for(int x = -1; x <= 1; x++) for(int y = -1; y <= 1; y++) a_Texture.SetPixel(x1 + x, y1 + y, a_Color); } } else { int fraction = dx - (dy >> 1); while (y1 != y2) { if (fraction >= 0) { x1 += stepx; fraction -= dy; } y1 += stepy; fraction += dx; if(x1 >= 0 && x1 < width && y1 >= 0 && y1 < height) for(int x = -1; x <= 1; x++) for(int y = -1; y <= 1; y++) a_Texture.SetPixel(x1 + x, y1 + y, a_Color); } } } // convert the matrix to quaternion, taking care of the mirroring private Quaternion ConvertMatrixToQuat(Matrix4x4 mOrient, int joint, bool flip) { Vector4 vZ = mOrient.GetColumn(2); Vector4 vY = mOrient.GetColumn(1); if(!flip) { vZ.y = -vZ.y; vY.x = -vY.x; vY.z = -vY.z; } else { vZ.x = -vZ.x; vZ.y = -vZ.y; vY.z = -vY.z; } if(vZ.x != 0.0f || vZ.y != 0.0f || vZ.z != 0.0f) return Quaternion.LookRotation(vZ, vY); else return Quaternion.identity; } // return the index of gesture in the list, or -1 if not found private int GetGestureIndex(uint UserId, KinectGestures.Gestures gesture) { if(UserId == Player1ID) { int listSize = player1Gestures.Count; for(int i = 0; i < listSize; i++) { if(player1Gestures[i].gesture == gesture) return i; } } else if(UserId == Player2ID) { int listSize = player2Gestures.Count; for(int i = 0; i < listSize; i++) { if(player2Gestures[i].gesture == gesture) return i; } } return -1; } private bool IsConflictingGestureInProgress(KinectGestures.GestureData gestureData) { foreach(KinectGestures.Gestures gesture in gestureData.checkForGestures) { int index = GetGestureIndex(gestureData.userId, gesture); if(index >= 0) { if(gestureData.userId == Player1ID) { if(player1Gestures[index].progress > 0f) return true; } else if(gestureData.userId == Player2ID) { if(player2Gestures[index].progress > 0f) return true; } } } return false; } // check if the calibration pose is complete for given user private bool CheckForCalibrationPose(uint userId, ref KinectGestures.Gestures calibrationGesture, ref KinectGestures.GestureData gestureData, ref KinectWrapper.NuiSkeletonData skeletonData) { if(calibrationGesture == KinectGestures.Gestures.None) return true; // init gesture data if needed if(gestureData.userId != userId) { gestureData.userId = userId; gestureData.gesture = calibrationGesture; gestureData.state = 0; gestureData.joint = 0; gestureData.progress = 0f; gestureData.complete = false; gestureData.cancelled = false; } // get temporary joints' position int skeletonJointsCount = (int)KinectWrapper.NuiSkeletonPositionIndex.Count; bool[] jointsTracked = new bool[skeletonJointsCount]; Vector3[] jointsPos = new Vector3[skeletonJointsCount]; int stateTracked = (int)KinectWrapper.NuiSkeletonPositionTrackingState.Tracked; int stateNotTracked = (int)KinectWrapper.NuiSkeletonPositionTrackingState.NotTracked; int [] mustBeTrackedJoints = { (int)KinectWrapper.NuiSkeletonPositionIndex.AnkleLeft, (int)KinectWrapper.NuiSkeletonPositionIndex.FootLeft, (int)KinectWrapper.NuiSkeletonPositionIndex.AnkleRight, (int)KinectWrapper.NuiSkeletonPositionIndex.FootRight, }; for (int j = 0; j < skeletonJointsCount; j++) { jointsTracked[j] = Array.BinarySearch(mustBeTrackedJoints, j) >= 0 ? (int)skeletonData.eSkeletonPositionTrackingState[j] == stateTracked : (int)skeletonData.eSkeletonPositionTrackingState[j] != stateNotTracked; if(jointsTracked[j]) { jointsPos[j] = kinectToWorld.MultiplyPoint3x4(skeletonData.SkeletonPositions[j]); } } // estimate the gesture progess KinectGestures.CheckForGesture(userId, ref gestureData, Time.realtimeSinceStartup, ref jointsPos, ref jointsTracked); // check if gesture is complete if(gestureData.complete) { gestureData.userId = 0; return true; } return false; } }
Java
<?php namespace Lam\MdlBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Lam\MdlBundle\Entity\FormationInformatique * @ORM\Table() * @ORM\Entity(repositoryClass="Lam\MdlBundle\Entity\FormationInformatiqueRepository") */ class Formationinformatique { /** * @var integer $id * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $id; /** * @var string $titre * * @ORM\Column(name="Titre", type="string", length=100, nullable=false) */ private $titre; /** * @var text $objectif * * @ORM\Column(name="Objectif", type="text", nullable=false) */ private $objectif; /** * @var string $public * * @ORM\Column(name="Public", type="string", length=150, nullable=false) */ private $public; /** * @var text $prerequis * * @ORM\Column(name="Prerequis", type="text", nullable=false) */ private $prerequis; /** * @var string $logo * * @ORM\Column(name="Logo", type="string", length=50, nullable=false) */ private $logo; /** * @var integer $nbplace * * @ORM\Column(name="nbPlace", type="integer", nullable=false) */ private $nbplace; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set titre * * @param string $titre */ public function setTitre($titre) { $this->titre = $titre; } /** * Get titre * * @return string */ public function getTitre() { return $this->titre; } /** * Set objectif * * @param text $objectif */ public function setObjectif($objectif) { $this->objectif = $objectif; } /** * Get objectif * * @return text */ public function getObjectif() { return $this->objectif; } /** * Set public * * @param string $public */ public function setPublic($public) { $this->public = $public; } /** * Get public * * @return string */ public function getPublic() { return $this->public; } /** * Set prerequis * * @param text $prerequis */ public function setPrerequis($prerequis) { $this->prerequis = $prerequis; } /** * Get prerequis * * @return text */ public function getPrerequis() { return $this->prerequis; } /** * Set logo * * @param string $logo */ public function setLogo($logo) { $this->logo = $logo; } /** * Get logo * * @return string */ public function getLogo() { return $this->logo; } /** * Set nbplace * * @param integer $nbplace */ public function setNbplace($nbplace) { $this->nbplace = $nbplace; } /** * Get nbplace * * @return integer */ public function getNbplace() { return $this->nbplace; } }
Java
package com.hackathon.hackathon2014.activity; import android.app.Activity; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ImageView; import android.widget.ListView; import android.widget.Toast; import com.hackathon.hackathon2014.R; import com.hackathon.hackathon2014.webservice.PostRequestHandler; import com.hackathon.hackathon2014.webservice.RestProvider; import com.hackathon.hackathon2014.adapter.QuestionListAdapter; import com.hackathon.hackathon2014.model.Question; import java.util.List; public class QuestionActivity extends Activity { public static String EXTRA_QUESTION = "question"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_question); if (savedInstanceState == null) { getFragmentManager().beginTransaction() .add(R.id.container, new PlaceholderFragment()) .commit(); } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.question, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } /** * A placeholder fragment containing a simple view. */ public static class PlaceholderFragment extends Fragment { public PlaceholderFragment() { } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View rootView = inflater.inflate(R.layout.fragment_question, container, false); Toast.makeText(rootView.getContext(),"Loading...",Toast.LENGTH_LONG).show(); RestProvider.getQuestions(new PostRequestHandler<List<Question>>() { @Override public void handle(List<Question> questions) { QuestionListAdapter questionListAdapter = new QuestionListAdapter(getActivity(), questions); ListView listView = (ListView) rootView.findViewById(R.id.questionListView); listView.setAdapter(questionListAdapter); listView.setOnItemClickListener(new OpenAnswerEvent(getActivity(), questions)); } }); return rootView; } private class OpenAnswerEvent implements android.widget.AdapterView.OnItemClickListener { private List<Question> questions; private Activity activity; private OpenAnswerEvent(Activity activity, List<Question> questions) { this.activity = activity; this.questions = questions; } @Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { Question question = questions.get(i); question.setSelected(true); Intent intent = new Intent(activity,CategoryActivity.class); intent.putExtra(EXTRA_QUESTION, question); activity.startActivity(intent); final ImageView questionIcon = (ImageView) view.findViewById(R.id.questionIcon); QuestionListAdapter.renderChecked(question.isSelected(), questionIcon, R.drawable.ok_enable, R.drawable.ok_disable); } } } }
Java
require_relative 'shell/version' require_relative 'shell/loader' require_relative 'shell/alfrc' module Alf module Shell # This is the default configuration to be forked from DEFAULT_CONFIG = Alfrc.new # Command factory def self.Command(*args) Quickl::Command(*args){|builder| builder.command_parent = Alf::Shell::Main builder.instance_module Shell::Support yield(builder) if block_given? } end end # module Shell end # module Alf require_relative 'shell/support' require_relative 'shell/command'
Java
package net.tqft.iterables.interfaces; public interface Transformer<S, T> { public abstract T evaluate(S s); }
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-analysis: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.9.1 / mathcomp-analysis - 0.3.2</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> mathcomp-analysis <small> 0.3.2 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-16 00:21:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-16 00:21:27 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.9.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;reynald.affeldt@aist.go.jp&quot; homepage: &quot;https://github.com/math-comp/analysis&quot; bug-reports: &quot;https://github.com/math-comp/analysis/issues&quot; dev-repo: &quot;git+https://github.com/math-comp/analysis.git&quot; license: &quot;CECILL-C&quot; authors: [ &quot;Reynald Affeldt&quot; &quot;Cyril Cohen&quot; &quot;Assia Mahboubi&quot; &quot;Damien Rouhling&quot; &quot;Pierre-Yves Strub&quot; ] build: [ [make &quot;INSTMODE=global&quot; &quot;config&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;coq&quot; { ((&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.13~&quot;) | = &quot;dev&quot;) } &quot;coq-mathcomp-bigenough&quot; {(&gt;= &quot;1.0.0&quot;)} &quot;coq-mathcomp-field&quot; {(&gt;= &quot;1.11.0&quot; &amp; &lt; &quot;1.12~&quot;)} &quot;coq-mathcomp-finmap&quot; {(&gt;= &quot;1.5.0&quot; &amp; &lt; &quot;1.6~&quot;)} ] synopsis: &quot;An analysis library for mathematical components&quot; description: &quot;&quot;&quot; This repository contains an experimental library for real analysis for the Coq proof-assistant and using the Mathematical Components library. It is inspired by the Coquelicot library. &quot;&quot;&quot; tags: [ &quot;category:Mathematics/Real Calculus and Topology&quot; &quot;keyword: analysis&quot; &quot;keyword: topology&quot; &quot;keyword: real numbers&quot; &quot;logpath: mathcomp.analysis&quot; &quot;date:2020-08-11&quot; ] url { http: &quot;https://github.com/math-comp/analysis/archive/0.3.2.tar.gz&quot; checksum: &quot;sha512=aa2ffac487d71d3aceea9dafca21d7c8bfcbaaf52d9977fd9bf19a055d65597b95d9e2e10dc7da10676ab2f86a8cc205aac9e0fa08360fc127971f60f68c5430&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-mathcomp-analysis.0.3.2 coq.8.9.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.9.1). The following dependencies couldn&#39;t be met: - coq-mathcomp-analysis -&gt; coq &gt;= dev no matching version Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-analysis.0.3.2</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
Java
require "capybarel/dsl/elements" require "capybarel/dsl/javascript" require "capybarel/dsl/from_yaml" module Capybarel module DSL module All include Capybarel::DSL::Elements include Capybarel::DSL::JavaScript include Capybarel::DSL::FromYaml end end end
Java
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import update from 'immutability-helper'; class ListItemBullet extends Component { render() { let cssClasses = `listbullet`; const bulletStyle = { border: `5px solid ${this.props.color}`, backgroundColor: 'white' }; return ( <div className={cssClasses} style={bulletStyle}></div> ); } }; class MyRouteMap extends Component { render() { const renderList = (list) => { const lis = list.map((data, index) => { return (<li key={index}><ListItemBullet color={this.props.color} /> { data.url? (<a href={data.url}><span className='description'>{data.name}</span><div className='details'>This is a test.<br/>This is second line</div></a>) : (<span className='description'>{data.name}</span>) } </li>); }) return lis; }; const cssClasses = `App-routemap ${this.props.color}`; const ulStyle = { //color: this.props.color, marginTop: '30px' }; const ulBeforeStyle = { content: " ", position: 'absolute', marginLeft: '8px', left: '0px', top: '20px', bottom: '40px', width: '12px', zIndex: -5, backgroundColor: this.props.color }; return ( <div className="App-routemap-div"> <h2>{this.props.title}</h2> <ul className={cssClasses} style={ulStyle}> <div style={ulBeforeStyle}></div> { renderList(this.props.datalist) } </ul> </div> ); } } class App extends Component { constructor() { super(); this.state = { list_unix: [ { name: "Git 使用與教學", url: "https://se101.mtsa.me/Slide/Git/#/" } ], 'list_system': [ "作業系統概述", "分散式系統架構", "Scaling Up" ], 'list_data': [ "大數據分析簡介", "TensorFlow 簡介", ], 'list_algo': [ "Python3 語法介紹", "演算法簡介", "基礎資料結構", "字串處理", "動態規劃", "圖論演算法" ] }; } handleClick(e) { var p = this.state.list_data; p.push("Test Item"); var newState = update(this.state, {'list_data': {$set: p}}); this.setState(newState); } render() { return ( <div className="App"> <div className="App-header"> <h1>SE101: 我想成為軟體工程師!</h1> <span className="App-intro">UMich Taiwanese Software Engineers Reading Group - Fall 2017</span> </div> <div className="App-contents"> <MyRouteMap title='黑框框與開發者工具'datalist={this.state.list_unix} color='red' /> <MyRouteMap title='系統架設與維運' datalist={this.state.list_system} color='darkgreen' /> <MyRouteMap title='資料科學與技術' datalist={this.state.list_data} color='darkblue' /> <MyRouteMap title='編程面試與程式語言' datalist={this.state.list_algo} color='orange' /> </div> </div> ); //<button onClick={() => this.handleClick()}>Add Item</button> } } export default App;
Java
require 'spec_helper' describe RubygemsController do before do @g = Factory.create :rubygem @v = Factory.create :version, rubygem: @g end it 'should #show successfully' do tr = Factory.create :test_result, rubygem_id: @g.id, version_id: @v.id get :show, id: @g.name response.should be_successful end describe '' do render_views it "should redirect if there are no test results" do get :show, id: @g.name response.body.should match(/Nothing to see here!/) end end it 'should route to the root url when showing a gem that does not exist' do get :show, id: 'foo' response.should be_redirect flash[:notice].should == "Sorry, there's no data for foo yet." response.should redirect_to root_path end it 'should respond to json requests' do 10.times { Factory.create :test_result, rubygem_id: @g.id, version_id: @v.id } get :show, id: @g.name, format: 'json' response.should be_success response.body.should == @g.to_json(methods: [:pass_count, :fail_count], include: { versions: {methods: [:pass_count, :fail_count], include: :test_results} } ) end it 'should be successful when the rubygem is not found' do get :show, id: 'somegem', format: 'json' response.should be_success response.body.should == '{}' end describe "When there is a platform parameter" do render_views before do 10.times do v = Factory.create :version, rubygem: @g Factory.create :test_result, version: v, rubygem: @g, platform: "ruby" Factory.create :test_result, version: v, rubygem: @g, platform: "jruby" end @g2 = Factory.create :rubygem @v2 = Factory.create :version, rubygem: @g2 Factory.create :test_result, version: @v2, rubygem: @g2, platform: "jruby" end it "should #show if there are tests for that platform" do get :show, id: @g.name, platform: "ruby" response.should be_successful end it "should not omit valid platforms if one is selected" do get :show, id: @g.name, platform: "ruby" response.should be_successful response.body.should match(%r!<option[^>]*>jruby</option>!) end it "should redirect if there are no tests for that platform" do get :show, id: @g.name, platform: "rbx" response.body.should match(/Nothing to see here!/) end it "should have the right platform selected when there is only one platform" do get :show, id: @g.name, platform: "jruby" response.should be_success response.body.should match(%r!<option value="[^\"]+" selected="selected">jruby</option>!i) end end describe "datatables paging" do before do @datatables_params = { "rubygem_id"=> @g.name, "format"=>"json", "sEcho"=>"3", "iColumns"=>"7", "sColumns"=>"", "iDisplayStart"=>"0", "iDisplayLength"=>"10", "sNames"=>",,,,,,", "sSearch"=>"", "bRegex"=>"false", "sSearch_0"=>"", "bRegex_0"=>"false", "bSearchable_0"=>"true", "sSearch_1"=>"", "bRegex_1"=>"false", "bSearchable_1"=>"true", "sSearch_2"=>"", "bRegex_2"=>"false", "bSearchable_2"=>"true", "sSearch_3"=>"", "bRegex_3"=>"false", "bSearchable_3"=>"true", "sSearch_4"=>"", "bRegex_4"=>"false", "bSearchable_4"=>"true", "sSearch_5"=>"", "bRegex_5"=>"false", "bSearchable_5"=>"true", "sSearch_6"=>"", "bRegex_6"=>"false", "bSearchable_6"=>"true", "iSortingCols"=>"1", "iSortCol_0"=>"0", "sSortDir_0"=>"asc", "bSortable_0"=>"true", "bSortable_1"=>"true", "bSortable_2"=>"true", "bSortable_3"=>"true", "bSortable_4"=>"true", "bSortable_5"=>"true", "bSortable_6"=>"true"} end it "should handle datatables splatter of parameters with show_paged" do t = Array.new(20).collect { |x| Factory.create :test_result, version: @v, rubygem: @g } expected_response = { iTotalRecords: 20, iTotalDisplayRecords: 20, aaData: t.slice(0..9).collect(&:datatables_attributes) }.to_json get :show_paged, @datatables_params response.should be_successful response.body.should == expected_response end describe "should search" do before do @params = @datatables_params.clone end it 'pass or fail' do @params['sSearch'] = 'pass' t = Factory.create :test_result, rubygem: @g, version: @v, result: true expected_response = {iTotalRecords: 1, iTotalDisplayRecords: 1, aaData: [t.datatables_attributes]}.to_json get :show_paged, @params response.should be_successful response.body.should == expected_response end end describe "should honor sorting in for" do before do @params = @datatables_params.clone end describe "result" do it "ascending" do @params['iSortCol_0'] = 0 @params['sSortDir_0'] = 'asc' Array.new(5).collect { |x| Factory.create :test_result, result: true, version: @v, rubygem: @g } Array.new(5).collect { |x| Factory.create :test_result, result: false, version: @v, rubygem: @g } Array.new(3).collect { |x| Factory.create :test_result, result: true, version: @v, rubygem: @g } get :show_paged, @params r = JSON::parse response.body r['aaData'].slice(0..4).collect { |x| x[0].should match(/FAIL/) } r['aaData'].slice(5..12).collect { |x| x[0].should match(/PASS/) } end it "descending" do @params['iSortCol_0'] = 0 @params['sSortDir_0'] = 'desc' Array.new(5).collect { |x| Factory.create :test_result, result: true, version: @v, rubygem: @g } Array.new(5).collect { |x| Factory.create :test_result, result: false, version: @v, rubygem: @g } Array.new(3).collect { |x| Factory.create :test_result, result: true, version: @v, rubygem: @g } get :show_paged, @params r = JSON::parse response.body r['aaData'].slice(0..7).collect { |x| x[0].should match(/PASS/) } r['aaData'].slice(8..12).collect { |x| x[0].should match(/FAIL/) } end end describe "gem version" do it "ascending" do @params['iSortCol_0'] = 1 @params['sSortDir_0'] = 'asc' v1 = Factory.create :version, number: '0.1.0' v3 = Factory.create :version, number: '1.2.0' v2 = Factory.create :version, number: '0.2.0' Array.new(5).collect { |x| Factory.create :test_result, result: true, version: v1, rubygem: @g } Array.new(5).collect { |x| Factory.create :test_result, result: false, version: v3, rubygem: @g } Array.new(3).collect { |x| Factory.create :test_result, result: true, version: v2, rubygem: @g } get :show_paged, @params r = JSON::parse response.body r['aaData'].slice(0..4).collect { |x| x[1].should match(/0.1.0/) } r['aaData'].slice(5..7).collect { |x| x[1].should match(/0.2.0/) } r['aaData'].slice(8..9).collect { |x| x[1].should match(/1.2.0/) } end it "descending" do @params['iSortCol_0'] = 1 @params['sSortDir_0'] = 'desc' v1 = Factory.create :version, number: '0.1.0' v3 = Factory.create :version, number: '1.2.0' v2 = Factory.create :version, number: '0.2.0' Array.new(5).collect { |x| Factory.create :test_result, result: true, version: v1, rubygem: @g } Array.new(5).collect { |x| Factory.create :test_result, result: false, version: v3, rubygem: @g } Array.new(3).collect { |x| Factory.create :test_result, result: true, version: v2, rubygem: @g } get :show_paged, @params r = JSON::parse response.body r['aaData'].slice(0..4).collect { |x| x[1].should match(/1.2.0/) } r['aaData'].slice(5..7).collect { |x| x[1].should match(/0.2.0/) } r['aaData'].slice(8..10).collect { |x| x[1].should match(/0.1.0/) } end end end end end
Java
using System; using System.IO; namespace Pulse.Core { /// <summary> /// НЕ потокобезопасный! /// </summary> public sealed class StreamSegment : Stream { private long _offset, _length; public readonly Stream BaseStream; public StreamSegment(Stream stream, long offset, long length, FileAccess access) { Exceptions.CheckArgumentNull(stream, "stream"); if (offset < 0 || offset >= stream.Length) throw new ArgumentOutOfRangeException("offset", offset, "Смещение выходит за границы потока."); if (offset + length > stream.Length) throw new ArgumentOutOfRangeException("length", length, "Недопустимая длина."); _offset = offset; _length = length; BaseStream = stream; switch (access) { case FileAccess.Read: BaseStream.Position = _offset; break; case FileAccess.Write: BaseStream.Position = _offset; break; default: BaseStream.Seek(_offset, SeekOrigin.Begin); break; } } public override bool CanRead { get { return BaseStream.CanRead; } } public override bool CanSeek { get { return BaseStream.CanSeek; } } public override bool CanWrite { get { return BaseStream.CanWrite; } } public override long Length { get { return _length; } } public override long Position { get { return BaseStream.Position - _offset; } set { BaseStream.Position = value + _offset; } } public override void Flush() { BaseStream.Flush(); } public override long Seek(long offset, SeekOrigin origin) { switch (origin) { case SeekOrigin.Begin: Position = offset; break; case SeekOrigin.Current: Position += offset; break; case SeekOrigin.End: Position = Length + offset; break; } return Position; } public void SetOffset(long value) { _offset = value; } public override void SetLength(long value) { _length = value; } public override int Read(byte[] buffer, int offset, int count) { return BaseStream.Read(buffer, offset, (int)Math.Min(count, Length - Position)); } public override void Write(byte[] buffer, int offset, int count) { BaseStream.Write(buffer, offset, count); } } }
Java
import Ember from 'ember'; export default Ember.Component.extend({ tagName: '', didInsertElement: function() { this.startPoppover(); }, willDestroyElement: function() { this.dismissPoppover(); }, startPoppover: function() { var options = this.getPoppoverOptions(); Ember.$(function() { Ember.$('[data-toggle="popover"]').popover(options); }); }, getPoppoverOptions: function() { var template = Ember.$('.poppover-template').innerHTML; var content = Ember.$('.poppover-content').html(); return { template: template, placement: 'right', title: 'Download Tip', trigger: 'hover', content: content, html: true }; }, dismissPoppover: function() { Ember.$('[data-toggle="popover"]').popover('hide'); } });
Java
#ifndef _RELLIK_H_ #define _RELLIK_H_ #include "gametime.h" typedef struct rellik Rellik; Rellik *rellik_Create(); void rellik_Destroy(Rellik *self); void rellik_Initialize(Rellik *self); void rellik_Update(Rellik *self, GameTime gameTime); void rellik_Render(Rellik *self); #endif
Java
header { width: 100%; color: #fff; text-align: center; } .container { width: 80%; margin: 0 auto; } .brand { background: linear-gradient(-225deg, #2c5499, #3e97e6); padding: 30px 0; } .brand img { cursor: pointer; } h1 { font-size: 3em; font-weight: normal; line-height: 60px; cursor: pointer; display: inline-block; } h3 { font-size: 1.375em; font-weight: normal; color: #bfd7ff; line-height: 30px; } .search-box { position: relative; width: 30%; min-width: 300px; margin: 15px auto; } #search-field { width: 100%; background: url(../../../assets/img/icon-search-32px.svg) no-repeat 16px 16px, rgba(255,255,255,0.4); border: none; font-size: 1.5em; color: rgba(62, 151, 230, 0.87);; padding: 16px 20px; } #search-field:focus, #search-field:valid { background: url(../../../assets/img/icon-search-32px.svg) no-repeat 16px 16px, #fff; } .search-box label { position: absolute; top: 16px; left: 54px; font-size: 1.5em; color: #fff; cursor: text; } #search-field:focus + label, #search-field:valid + label { display: none; } .brand a, .brand a:active, .brand a:visited { text-transform: uppercase; color: #fff; font-size: 0.875em; } .brand a:hover { opacity: 0.7; } .divider { background: #2c5499; font-size: 1.25em; color: rgba(255, 255, 255, 0.7); line-height: 32px; padding: 24px; } .container .page { width: 100%; margin-top: 30px; } .section-title { font-size: 1.5em; color: #78909C; margin-bottom: 20px; } .card { position: relative; float: left; height: 200px; width: calc(33% - 30px); background: #fff; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); padding: 24px; margin: 15px; margin-bottom: 28px; cursor: pointer; } .card:last-child { margin-bottom: 45px; } .card:hover { box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4); } .no-results { font-size: 1.5em; width: 100%; text-align: center; padding: 50px 0; } .row { clear: both; padding: 0px; margin: 0px; } .col { display: block; float: left; margin-bottom: 30px; padding-left: 30px; } .col:first-child { padding-left: 0; } .col-3 { width: 33%; } .publish-steps { background: linear-gradient(45deg, #2c5499, #3e97e6); text-align: center; color: #fff; padding-top: 30px; padding-bottom: 10px; } .how-to { font-size: 1.75em; color: #bfd7ff; margin-bottom: 30px; } .step-number { width: 64px; height: 64px; float: left; background: #fff; border-radius: 50%; font-size: 1.75em; color: #2c5499; line-height: 64px; margin-right: 16px; } .step-content { display: table-cell; vertical-align: middle; height: 64px; font-size: 1.25em; text-align: left; margin-left: 24px; } @media only screen and (max-width: 1200px) { .container { width: 90%; } .card { width: calc(50% - 30px); } } @media only screen and (max-width: 1020px) { .col, .col:first-child { padding-left: 10px; padding-right: 10px; } .col-3 { width: 100%; } } @media only screen and (max-width: 768px) { .container { width: 100%; } .card { width: calc(100% - 30px); } }
Java
FROM debian:8.2 MAINTAINER Stuart Ellis <stuart@stuartellis.eu> ENV REFRESHED_AT 2015-09-09 ENV PYTHON_VERSION 3.4.2-2 RUN apt-get update && \ apt-get install -qy python3=$PYTHON_VERSION && \ rm -rf /var/lib/apt/lists/*
Java
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Str; class TagsTableSeeder extends Seeder { /** * Run the database seeding. */ public function run() { DB::table('tags')->truncate(); DB::table('tags')->insert([ [ 'name' => 'Qnique', 'slug' => Str::slug('qnique'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Quilting', 'slug' => Str::slug('quilting'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Quilting Machine', 'slug' => Str::slug('quilting-machine'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Sewing Machine', 'slug' => Str::slug('sewing-machine'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Expert Quilter', 'slug' => Str::slug('expert-quilter'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Quilting Tutorial', 'slug' => Str::slug('quilting-tutorial'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Hand Quilting', 'slug' => Str::slug('hand-quilting'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Hand Quilting Frame', 'slug' => Str::slug('hand-quilting-frame'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Quilting Hoop', 'slug' => Str::slug('quilting-hoop'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Quilting Lap Hoop', 'slug' => Str::slug('quilting-lap-hoop'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Grace', 'slug' => Str::slug('grace'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Grace Company', 'slug' => Str::slug('grace-company'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Grace Frame', 'slug' => Str::slug('grace-frame'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Grace Manufacturing', 'slug' => Str::slug('grace-manufacturing'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], [ 'name' => 'Affordable Programmer', 'slug' => Str::slug('affordable-programmer'), 'created_at' => new DateTime(), 'updated_at' => new DateTime(), 'lang' => 'en', ], ]); } }
Java
/* * SonarLint for Visual Studio * Copyright (C) 2016-2021 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ using System; using System.Diagnostics; using Microsoft.CodeAnalysis; using SonarAnalyzer.Helpers; using SonarLint.VisualStudio.Integration.Vsix.Suppression; namespace SonarLint.VisualStudio.Integration.Vsix { // This workflow affects only the VSIX Analyzers internal class SonarAnalyzerConnectedWorkflow : SonarAnalyzerWorkflowBase { private readonly IRoslynSuppressionHandler suppressionHandler; public SonarAnalyzerConnectedWorkflow(Workspace workspace, IRoslynSuppressionHandler suppressionHandler) : base(workspace) { if (suppressionHandler == null) { throw new ArgumentNullException(nameof(suppressionHandler)); } this.suppressionHandler = suppressionHandler; SonarAnalysisContext.ReportDiagnostic = VsixAnalyzerReportDiagnostic; } internal /* for testing purposes */ void VsixAnalyzerReportDiagnostic(IReportingContext context) { Debug.Assert(context.SyntaxTree != null, "Not expecting to be called with a null SyntaxTree"); Debug.Assert(context.Diagnostic != null, "Not expecting to be called with a null Diagnostic"); Debug.Assert(GetProjectNuGetAnalyzerStatus(context.SyntaxTree) == ProjectAnalyzerStatus.NoAnalyzer, "Not expecting to be called when project contains any SonarAnalyzer NuGet"); if (this.suppressionHandler.ShouldIssueBeReported(context.SyntaxTree, context.Diagnostic)) { context.ReportDiagnostic(context.Diagnostic); } } } }
Java
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * SoundcloudSearch Schema */ var SoundcloudSearchSchema = new Schema({ // SoundcloudSearch model fields // ... search: { type: String, required: 'There must be a search term', trim: true }, result: { type: Object }, created: { type: Date, default: Date.now } }); mongoose.model('SoundcloudSearch', SoundcloudSearchSchema);
Java
--- layout: home title: All Posts description: "An archive of posts." comments: false --- {% for post in site.posts %} {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} {% if forloop.first %} <article> <h2 id="{{ this_year }}-ref">{{ this_year }}</h2> <ul> {% endif %} <li class="entry-title"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> </li> {% if forloop.last %} </ul> </article> {% else %} {% if this_year != next_year %} </ul> </article> <article> <h2 id="{{ next_year }}-ref" class="year-heading">{{next_year}}</h2> <ul> {% endif %} {% endif %} {% endfor %}
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>io: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.12.0 / io - 3.3.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> io <small> 3.3.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-03-02 09:40:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-02 09:40:27 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.0 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;dev@clarus.me&quot; homepage: &quot;https://github.com/clarus/io&quot; dev-repo: &quot;git+https://github.com/clarus/io.git&quot; bug-reports: &quot;https://github.com/clarus/io/issues&quot; authors: [&quot;Guillaume Claret&quot;] license: &quot;MIT&quot; build: [ [&quot;./configure.sh&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Io&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] synopsis: &quot;A library for effects in Coq&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-io/io/archive/3.3.0.tar.gz&quot; checksum: &quot;md5=0c5b884e9aabf39239fa42f8ae7ccda1&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-io.3.3.0 coq.8.12.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.12.0). The following dependencies couldn&#39;t be met: - coq-io -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-io.3.3.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
Java
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script> <script type="text/javascript" src="lens.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/kineticjs/4.7.2/kinetic.min.js"></script> <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.min.js"></script> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css" > </head> <body onload="startup()"> <div id="main"> <div id="toolbar" align="center"> <div id="lensgroup" title="Drag and Drop upto two lenses"> <div id="labels">Lens</div> <div id="lens" ><img id="lense0" name="convex_lense" class="lenses" width=100 height=100 src="Images/100b.png"></div> <div id="lens"><img id="lense1" name="concave_lense" class="lenses" width=100 height=100 src="Images/100a.png"></div> <div id="lens" ><img id="lense2" name="plano_convex_lense" class="lenses" width=100 height=100 src="Images/100plano.png"></div> <div id="lens"><img id="lense3" name="plano_concave_lense" class="lenses" width=100 height=100 src="Images/plano100.png"></div> <div id="lens" ><img id="lense4" name="meniscus_lense" class="lenses" width=100 height=100 src="Images/100po.png"></div> </div></div> <div id="container" align="center"></div> <div id="toolbar" align="center"> <div id="objectgroup" title="Click one of these objects" > <div id="labels">Objects</div> <div id="object"><img id="object_arrow" width=100% height=100% src="Images/arr.png"></div> <div id="object"><img id="object_triangle" width=100% height=100% src="Images/triangle.png"></div> <div id="object"><img id="object_square" width=100% height=100% src="Images/box.png"></div> </div> <div id="labels">Help</div> <div id="help1"><img id="help" width=100% height=100% src="Images/help.png"></div> </div> </div> <div class="overlay-bg"> </div> <div class="overlay-content popup1"> <p># In the toolbar there are five type of lenses avaiable. <br /><br /> # <b>Drag & Drop</b> the lens to the experiment area to place the lens <br /><br /> # <b>Click</b> on the Object to place the object in experimental area <br /><br /> # You can add upto <b>two lenses</b> , after added two lenses you can <b>replace</b> the lens by dragging the wanted lens near to the existing lens.<br /><br /> # You can <b>Drag</b> the lenses to get ray diagram after adding <b>second lens</b> <br /><br /> # <b>Double click</b> on the lens to remove the lens from the experimental area.<br /><br /> # There are three types of objects are available here <b>Arrow</b>, <b>Triangle</b> and <b>Rectangle</b> </p> <button class="close-btn">Close</button> </div> </body> </html>
Java
{% extends 'base.html' %} {% block body %} <div> rest: {{ restaurant.name }} </div> {% endblock %}
Java
import random # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): _largesize = 300 def __init__(self, head): self.head = head self.lsize = 0 while head.next: head = head.next self.lsize += 1 self.m1_idx = None self.m2_idx = None if self.lsize > self._largesize: self.m1_idx = self.lsize / 3 # start from 1/3 self.m1 = self._getN(self.m1_idx) self.m2_idx = self.m1_idx * 2 # start from 2/3 self.m2 = self._getN(self.m2_idx) def _getN(self, n): n -= 1 p = self.head while n: p = p.next n -= 1 return p def getRandom(self): def _get(delta, start): p = start while delta: p = p.next delta -= 1 return p.val nextpos = random.randint(0, self.lsize) if not self.m1_idx: return _get(nextpos, self.head) if nextpos < self.m1_idx: val = _get(nextpos, self.head) elif nextpos < self.m2_idx: val = _get(nextpos - self.m1_idx, self.m1) else: val = _get(nextpos - self.m2_idx, self.m2) return val
Java
package db import ( "io/ioutil" "os" . "fmt" "strings" . "github.com/yak-labs/chirp-lang" "github.com/yak-labs/smilax-web/table/levi" ) /* table get Site Table Row -> []Value table set Site Table Row []Value table match Site Table RowPattern ValuePattern -> []{row value} */ var Lev = levi.New("leveldb.dat") var data_dir = os.Getenv("SMILAX_DATA_DIR") var log_file = Sprintf("%s/table_log.txt", data_dir) func init() { if len(data_dir) == 0 { data_dir = "." } } func cmdTableLoad(fr *Frame, argv []T) T { Arg0(argv) TableLoad() return Empty } func cmdTableGet(fr *Frame, argv []T) T { site, table, row := Arg3(argv) return MkList(TableGet(site.String(), table.String(), row.String())) } func cmdTableSet(fr *Frame, argv []T) T { site, table, row, values := Arg4(argv) TableSet(site.String(), table.String(), row.String(), values.String()) return Empty } func cmdTableMatch(fr *Frame, argv []T) T { site, table, rowPat, valuePat := Arg4(argv) return MkList(TableMatch(site.String(), table.String(), rowPat.String(), valuePat.String())) } func TableLoad() { // Start with a fresh levelDB database. Lev.Close() err := os.RemoveAll("leveldb.data") if err != nil { panic(err) } Lev = levi.New("leveldb.dat") text, err := ioutil.ReadFile(log_file) if err != nil { panic(err) } lines := strings.Split(string(text), "\n") for _, line := range lines { line = strings.Trim(line, " \t") if line == "" || strings.HasPrefix(line, "#") { continue } words := ParseList(line) leviSet(words[0].String(), words[1].String(), words[2].String(), words[3].String()) } } func TableGet(site, table, row string) []T { key := Sprintf("/%s/%s/%s", site, table, row) vals := Lev.Get(key) return ParseList(vals) } func leviSet(site, table, row, values string) { key := Sprintf("/%s/%s/%s", site, table, row) Lev.Set(key, values) } func TableSet(site, table, row, values string) { leviSet(site, table, row, values) line := MkList( []T { MkString(site), MkString(table), MkString(row), MkString(values), }).String() line = Sprintf("%s\n", line) f, err := os.OpenFile(log_file, os.O_APPEND|os.O_WRONLY, 0600) if err != nil { panic(err) } defer f.Close() if _, err = f.WriteString(line); err != nil { panic(err) } } func TableMatch(site, table, rowPat, valuePat string) []T { threeSlashLen := len(site) + len(table) + 3 keyPattern := Sprintf("/%s/%s/%s", site, table, rowPat) prefix := keyPattern star := strings.IndexAny(prefix, "*[") if star >= 0 { prefix = prefix[:star] // Shorten prefix, stopping before '*'. } zz := make([]T, 0) it := Lev.Find(prefix) // for it.Next() // IF mappy for _ = it; it.Valid() ; it.Next() { key := string(it.Key()) value := string(it.Value()) if !strings.HasPrefix(key, prefix) { break // Gone too far. } if StringMatch(keyPattern, key) { z := make([]T, 0, 0) vv := ParseList(value) for _, v := range vv { if StringMatch(valuePat, v.String()) { z = append(z, v) } } if len(z) > 0 { zz = append(zz, MkList([]T{MkString(key[threeSlashLen:]), MkList(z)})) } } } if err := it.GetError(); err != nil { panic(err) } return zz } var tableEnsemble = []EnsembleItem{ EnsembleItem{Name: "load", Cmd: cmdTableLoad}, EnsembleItem{Name: "get", Cmd: cmdTableGet}, EnsembleItem{Name: "set", Cmd: cmdTableSet}, EnsembleItem{Name: "match", Cmd: cmdTableMatch}, } func init() { if Unsafes == nil { Unsafes = make(map[string]Command, 333) } Unsafes["table"] = MkEnsemble(tableEnsemble) }
Java
package com.github.wovnio.wovnjava; import java.util.HashMap; import javax.servlet.FilterConfig; import javax.servlet.http.HttpServletRequest; import org.easymock.EasyMock; import java.net.URL; import java.net.MalformedURLException; import junit.framework.TestCase; public class HeadersTest extends TestCase { private Lang japanese; protected void setUp() throws Exception { this.japanese = Lang.get("ja"); } private static FilterConfig mockConfigPath() { HashMap<String, String> parameters = new HashMap<String, String>() {{ put("urlPattern", "path"); }}; return TestUtil.makeConfigWithValidDefaults(parameters); } private static FilterConfig mockConfigSubdomain() { HashMap<String, String> parameters = new HashMap<String, String>() {{ put("urlPattern", "subdomain"); }}; return TestUtil.makeConfigWithValidDefaults(parameters); } private static FilterConfig mockConfigQuery() { HashMap<String, String> parameters = new HashMap<String, String>() {{ put("urlPattern", "query"); put("defaultLang", "en"); put("supportedLangs", "en,ja,zh-CHS"); }}; return TestUtil.makeConfigWithValidDefaults(parameters); } public void testHeaders() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/test"); FilterConfig mockConfig = mockConfigPath(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertNotNull(h); } public void testGetRequestLangPath() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/test"); FilterConfig mockConfig = mockConfigPath(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals(this.japanese, h.getRequestLang()); } public void testGetRequestLangSubdomain() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://ja.example.com/test"); FilterConfig mockConfig = mockConfigSubdomain(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals(this.japanese, h.getRequestLang()); } public void testGetRequestLangQuery() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/test?wovn=ja"); FilterConfig mockConfig = mockConfigQuery(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals(this.japanese, h.getRequestLang()); } public void testConvertToDefaultLanguage__PathPattern() throws ConfigurationError, MalformedURLException { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/test"); FilterConfig mockConfig = mockConfigPath(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); URL url = new URL("http://example.com/ja/test"); assertEquals("http://example.com/test", h.convertToDefaultLanguage(url).toString()); } public void testConvertToDefaultLanguage__SubdomainPattern() throws ConfigurationError, MalformedURLException { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://ja.example.com/test"); FilterConfig mockConfig = mockConfigSubdomain(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); URL url = new URL("http://ja.example.com/test"); assertEquals("http://example.com/test", h.convertToDefaultLanguage(url).toString()); } public void testConvertToDefaultLanguage__QueryPattern() throws ConfigurationError, MalformedURLException { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/test?wovn=ja"); FilterConfig mockConfig = mockConfigQuery(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); URL url = new URL("http://example.com/test?wovn=ja"); assertEquals("http://example.com/test", h.convertToDefaultLanguage(url).toString()); } public void testConvertToDefaultLanguage__PathPatternWithSitePrefixPath() throws ConfigurationError, MalformedURLException { Headers h = createHeaders("/global/en/foo", "/global/", ""); URL url; url = new URL("http://site.com/global/en/"); assertEquals("http://site.com/global/", h.convertToDefaultLanguage(url).toString()); url = new URL("http://site.com/en/global/"); assertEquals("http://site.com/en/global/", h.convertToDefaultLanguage(url).toString()); } public void testLocationWithDefaultLangCode() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/signin"); FilterConfig mockConfig = mockConfigPath(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals("http://example.com/", h.locationWithLangCode("http://example.com/")); assertEquals("https://example.com/", h.locationWithLangCode("https://example.com/")); assertEquals("https://example.com/dir/file", h.locationWithLangCode("https://example.com/dir/file")); } public void testLocationWithPath() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/dir/signin"); FilterConfig mockConfig = mockConfigPath(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals("http://example.com/ja/", h.locationWithLangCode("http://example.com/")); assertEquals("https://example.com/ja/", h.locationWithLangCode("https://example.com/")); assertEquals("https://example.com/ja/dir/file", h.locationWithLangCode("https://example.com/dir/file")); assertEquals("https://other.com/dir/file", h.locationWithLangCode("https://other.com/dir/file")); assertEquals("https://example.com/ja/", h.locationWithLangCode("/")); assertEquals("https://example.com/ja/dir/file", h.locationWithLangCode("/dir/file")); assertEquals("https://example.com/ja/dir/file", h.locationWithLangCode("./file")); assertEquals("https://example.com/ja/file", h.locationWithLangCode("../file")); assertEquals("https://example.com/ja/file", h.locationWithLangCode("../../file")); } public void testLocationWithPathAndTrailingSlash() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/dir/signin/"); FilterConfig mockConfig = mockConfigPath(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals("https://example.com/ja/dir/signin/file", h.locationWithLangCode("./file")); assertEquals("https://example.com/ja/dir/file", h.locationWithLangCode("../file")); assertEquals("https://example.com/ja/file", h.locationWithLangCode("../../file")); assertEquals("https://example.com/ja/file", h.locationWithLangCode("../../../file")); } public void testLocationWithPathAndTopLevel() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/location.jsp?wovn=ja"); FilterConfig mockConfig = mockConfigQuery(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals("https://example.com/index.jsp?wovn=ja", h.locationWithLangCode("./index.jsp")); } public void testLocationWithQuery() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/dir/signin?wovn=ja"); FilterConfig mockConfig = mockConfigQuery(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals("http://example.com/?wovn=ja", h.locationWithLangCode("http://example.com/")); assertEquals("https://example.com/?wovn=ja", h.locationWithLangCode("https://example.com/")); assertEquals("https://example.com/dir/file?wovn=ja", h.locationWithLangCode("https://example.com/dir/file")); assertEquals("https://other.com/dir/file", h.locationWithLangCode("https://other.com/dir/file")); assertEquals("https://example.com/?wovn=ja", h.locationWithLangCode("/")); assertEquals("https://example.com/dir/file?wovn=ja", h.locationWithLangCode("/dir/file")); assertEquals("https://example.com/dir/file?wovn=ja", h.locationWithLangCode("./file")); assertEquals("https://example.com/file?wovn=ja", h.locationWithLangCode("../file")); assertEquals("https://example.com/file?wovn=ja", h.locationWithLangCode("../../file")); assertEquals("https://example.com/file?q=hello&wovn=ja", h.locationWithLangCode("../../file?q=hello&wovn=zh-CHS")); assertEquals("https://example.com/file?wovn=ja", h.locationWithLangCode("../../file?wovn=zh-CHS")); } public void testLocationWithSubdomain() throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://ja.example.com/dir/signin"); FilterConfig mockConfig = mockConfigSubdomain(); Settings s = new Settings(mockConfig); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); Headers h = new Headers(mockRequest, s, ulph); assertEquals("http://ja.example.com/", h.locationWithLangCode("http://example.com/")); assertEquals("https://ja.example.com/", h.locationWithLangCode("https://example.com/")); assertEquals("https://ja.example.com/dir/file", h.locationWithLangCode("https://example.com/dir/file")); assertEquals("https://other.com/dir/file", h.locationWithLangCode("https://other.com/dir/file")); assertEquals("https://fr.example.com/dir/file", h.locationWithLangCode("https://fr.example.com/dir/file")); assertEquals("https://ja.example.com/", h.locationWithLangCode("/")); assertEquals("https://ja.example.com/dir/file", h.locationWithLangCode("/dir/file")); assertEquals("https://ja.example.com/dir/file", h.locationWithLangCode("./file")); assertEquals("https://ja.example.com/file", h.locationWithLangCode("../file")); assertEquals("https://ja.example.com/file", h.locationWithLangCode("../../file")); } public void testLocationWithSitePrefixPath() throws ConfigurationError { Headers h = createHeaders("/global/ja/foo", "/global/", ""); assertEquals("http://example.com/", h.locationWithLangCode("http://example.com/")); assertEquals("http://example.com/global/ja/", h.locationWithLangCode("http://example.com/global/")); assertEquals("https://example.com/global/ja/", h.locationWithLangCode("https://example.com/global/")); assertEquals("https://example.com/global/ja/", h.locationWithLangCode("https://example.com/global/ja/")); assertEquals("https://example.com/global/ja/th/", h.locationWithLangCode("https://example.com/global/th/")); // `th` not in supportedLangs assertEquals("https://example.com/global/ja/tokyo/", h.locationWithLangCode("https://example.com/global/tokyo/")); assertEquals("https://example.com/global/ja/file.html", h.locationWithLangCode("https://example.com/global/file.html")); assertEquals("https://example.com/global/ja/file.html", h.locationWithLangCode("https://example.com/pics/../global/file.html")); assertEquals("https://example.com/global/../../file.html", h.locationWithLangCode("https://example.com/global/../../file.html")); assertEquals("https://example.com/tokyo/", h.locationWithLangCode("https://example.com/tokyo/")); assertEquals("https://example.com/tokyo/global/", h.locationWithLangCode("https://example.com/tokyo/global/")); assertEquals("https://example.com/ja/global/", h.locationWithLangCode("https://example.com/ja/global/")); assertEquals("https://example.com/th/global/", h.locationWithLangCode("https://example.com/th/global/")); assertEquals("https://example.com/th/", h.locationWithLangCode("https://example.com/th/")); } public void testGetIsValidRequest() throws ConfigurationError { Headers h; h = createHeaders("/", "global", ""); assertEquals(false, h.getIsValidRequest()); h = createHeaders("/global", "global", ""); assertEquals(true, h.getIsValidRequest()); h = createHeaders("/global/ja/foo", "global", ""); assertEquals(true, h.getIsValidRequest()); h = createHeaders("/ja/global/foo", "global", ""); assertEquals(false, h.getIsValidRequest()); } public void testGetIsValidRequest__withIgnoredPaths() throws ConfigurationError { Headers h; h = createHeaders("/", "", "/admin,/wp-admin"); assertEquals(true, h.getIsValidRequest()); h = createHeaders("/user/admin", "", "/admin,/wp-admin"); assertEquals(true, h.getIsValidRequest()); h = createHeaders("/adminpage", "", "/admin,/wp-admin"); assertEquals(true, h.getIsValidRequest()); h = createHeaders("/admin", "", "/admin,/wp-admin"); assertEquals(false, h.getIsValidRequest()); h = createHeaders("/wp-admin/", "", "/admin,/wp-admin"); assertEquals(false, h.getIsValidRequest()); h = createHeaders("/wp-admin/page", "", "/admin,/wp-admin"); assertEquals(false, h.getIsValidRequest()); h = createHeaders("/ja/admin", "", "/admin,/wp-admin"); assertEquals(false, h.getIsValidRequest()); h = createHeaders("/ja/wp-admin/", "", "/admin,/wp-admin"); assertEquals(false, h.getIsValidRequest()); h = createHeaders("/en/admin", "", "/admin,/wp-admin"); assertEquals(false, h.getIsValidRequest()); h = createHeaders("/en/wp-admin/", "", "/admin,/wp-admin"); assertEquals(false, h.getIsValidRequest()); h = createHeaders("/city/wp-admin", "city", "/admin,/wp-admin"); assertEquals(true, h.getIsValidRequest()); h = createHeaders("/city/wp-admin", "city", "/city/admin,/city/wp-admin"); assertEquals(false, h.getIsValidRequest()); } private Headers createHeaders(String requestPath, String sitePrefixPath, String ignorePaths) throws ConfigurationError { HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com" + requestPath); HashMap<String, String> option = new HashMap<String, String>() {{ put("urlPattern", "path"); put("sitePrefixPath", sitePrefixPath); put("ignorePaths", ignorePaths); }}; Settings s = TestUtil.makeSettings(option); UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s); return new Headers(mockRequest, s, ulph); } public void testGetHreflangUrlMap__PathPattern() throws ConfigurationError { Settings settings = TestUtil.makeSettings(new HashMap<String, String>() {{ put("defaultLang", "en"); put("supportedLangs", "en,ja,fr"); put("urlPattern", "path"); put("sitePrefixPath", "/home"); }}); UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings); HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123"); Headers sut = new Headers(request, settings, patternHandler); HashMap<String, String> hreflangs = sut.getHreflangUrlMap(); assertEquals(3, hreflangs.size()); assertEquals("https://example.com/home?user=123", hreflangs.get("en")); assertEquals("https://example.com/home/ja?user=123", hreflangs.get("ja")); assertEquals("https://example.com/home/fr?user=123", hreflangs.get("fr")); } public void testGetHreflangUrlMap__QueryPattern() throws ConfigurationError { Settings settings = TestUtil.makeSettings(new HashMap<String, String>() {{ put("defaultLang", "ja"); put("supportedLangs", "ko"); put("urlPattern", "query"); }}); UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings); HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123"); Headers sut = new Headers(request, settings, patternHandler); HashMap<String, String> hreflangs = sut.getHreflangUrlMap(); assertEquals(2, hreflangs.size()); assertEquals("https://example.com/home?user=123", hreflangs.get("ja")); assertEquals("https://example.com/home?user=123&wovn=ko", hreflangs.get("ko")); } public void testGetHreflangUrlMap__SubdomainPattern__WithChineseSupportedLangs() throws ConfigurationError { Settings settings = TestUtil.makeSettings(new HashMap<String, String>() {{ put("defaultLang", "ja"); put("supportedLangs", "ko,th, zh-CHT, zh-CHS"); put("urlPattern", "subdomain"); }}); UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings); HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123"); Headers sut = new Headers(request, settings, patternHandler); HashMap<String, String> hreflangs = sut.getHreflangUrlMap(); assertEquals(5, hreflangs.size()); assertEquals("https://example.com/home?user=123", hreflangs.get("ja")); assertEquals("https://ko.example.com/home?user=123", hreflangs.get("ko")); assertEquals("https://th.example.com/home?user=123", hreflangs.get("th")); assertEquals("https://zh-CHT.example.com/home?user=123", hreflangs.get("zh-Hant")); assertEquals("https://zh-CHS.example.com/home?user=123", hreflangs.get("zh-Hans")); } public void testIsSearchEngineBot_NoUserAgent_False() throws ConfigurationError { String userAgent = null; Settings settings = TestUtil.makeSettings(); UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings); HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123", userAgent); Headers sut = new Headers(request, settings, patternHandler); assertEquals(false, sut.isSearchEngineBot()); } public void testIsSearchEngineBot_OrdinaryUserAgent_False() throws ConfigurationError { String userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.81 Safari/537.36"; Settings settings = TestUtil.makeSettings(); UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings); HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123"); Headers sut = new Headers(request, settings, patternHandler); assertEquals(false, sut.isSearchEngineBot()); } public void testIsSearchEngineBot_SearchEngineBotUserAgent_True() throws ConfigurationError { String userAgent = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"; Settings settings = TestUtil.makeSettings(); UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings); HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123", userAgent); Headers sut = new Headers(request, settings, patternHandler); assertEquals(true, sut.isSearchEngineBot()); } }
Java
package eu.cyfronoid.core.configuration.evaluator; import java.util.ArrayDeque; public class Stack extends ArrayDeque<Double> { private static final long serialVersionUID = 1L; @Override public void push(Double v) { super.push(v); } @Override public Double pop() { Double v = super.pop(); return v; } @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("["); for (Double v: this) { builder.append(v); builder.append(" "); } builder.append("]"); return builder.toString(); } }
Java
#!/usr/bin/python # -*- coding: utf-8 -*- import unittest import os from misura.canon import option from misura.canon.option import get_typed_cols, get_insert_cmd, base_col_def, print_tree import sqlite3 from misura.canon.tests import testdir db = testdir + 'storage/tmpdb' c1 = testdir + 'storage/Conf.csv' def go(t): o = option.Option(**{'handle': t, 'type': t}) o.validate() return o class SqlStore(unittest.TestCase): @classmethod def setUpClass(cls): if os.path.exists(db): os.remove(db) cls.conn = sqlite3.connect(db, detect_types=sqlite3.PARSE_DECLTYPES) st0 = option.CsvStore(kid='/base/') st0.merge_file(c1) st0.validate() cls.desc = st0.desc def test_get_typed_cols(self): print(get_typed_cols(go('Integer'))) print(get_typed_cols(go('String'))) print(get_typed_cols(go('Point'))) print(get_typed_cols(go('Role'))) print(get_typed_cols(go('RoleIO'))) print(get_typed_cols(go('Log'))) print(get_typed_cols(go('Meta'))) def test_get_insert_cmd(self): print(get_insert_cmd(go('Integer'), base_col_def)) print(get_insert_cmd(go('String'), base_col_def)) print(get_insert_cmd(go('Point'), base_col_def)) print(get_insert_cmd(go('Role'), base_col_def)) print(get_insert_cmd(go('RoleIO'), base_col_def)) print(get_insert_cmd(go('Log'), base_col_def)) print(get_insert_cmd(go('Meta'), base_col_def)) def test_column_definition(self): s = option.SqlStore() print(s.column_definition(go('Integer'))[1]) print(s.column_definition(go('String'))[1]) print(s.column_definition(go('Point'))[1]) print(s.column_definition(go('Role'))[1]) print(s.column_definition(go('RoleIO'))[1]) print(s.column_definition(go('Log'))[1]) print(s.column_definition(go('Meta'))[1]) def test_write_desc(self): s = option.SqlStore() s.cursor = self.conn.cursor() s.write_desc(self.desc) print('READING') r = s.read_tree() print(r) print('print(tree\n', print_tree(r)) print('WRITING AGAIN') s.write_tree(r) print("READING AGAIN") r = s.read_tree() print(r) print('print(tree2\n', print_tree(r)) # @unittest.skip('') def test_tables(self): st0 = option.CsvStore(kid='ciao') st0.merge_file(c1) st = option.SqlStore(kid='ciao') st.desc = st0.desc k0 = set(st.desc.keys()) cursor = self.conn.cursor() st.write_table(cursor, 'conf1') self.conn.commit() cursor.execute('select handle from conf1') r = cursor.fetchall() k1 = set([eval(k[0]) for k in r]) self.assertEqual(k0, k1) st2 = option.SqlStore(kid='ciao') st2.read_table(cursor, 'conf1') self.assertEqual(st.desc, st2.desc) if __name__ == "__main__": unittest.main()
Java
/* Taken from the popular Visual Studio Vibrant Ink Schema */ .cm-s-vibrant-ink.CodeMirror { background: black; color: white; } .cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; } .cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } .cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; } .cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; } .cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; } .cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; } .cm-s-vibrant-ink .cm-keyword { color: #CC7832; } .cm-s-vibrant-ink .cm-atom { color: #fdd733; } .cm-s-vibrant-ink .cm-number { color: #FFEE98; } .cm-s-vibrant-ink .cm-def { color: #8DA6CE; } .cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D } .cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def { color: #FFC66D } .cm-s-vibrant-ink .cm-operator { color: #888; } .cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; } .cm-s-vibrant-ink .cm-string { color: #A5C25C } .cm-s-vibrant-ink .cm-string-2 { color: red } .cm-s-vibrant-ink .cm-meta { color: #D8FA3C; } .cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; } .cm-s-vibrant-ink .cm-tag { color: #8DA6CE; } .cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; } .cm-s-vibrant-ink .cm-header { color: #FF6400; } .cm-s-vibrant-ink .cm-hr { color: #AEAEAE; } .cm-s-vibrant-ink .cm-link { color: blue; } .cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; } .cm-s-vibrant-ink .CodeMirror-activeline-background {background: #27282E !important;} .cm-s-vibrant-ink .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
Java
// * ———————————————————————————————————————————————————————— * // // * cli upload // * uploads image by providing a link by running: // * enduro upload http://www.imgur.com/asd.png // * ———————————————————————————————————————————————————————— * // var cli_upload = function () {} // vendor dependencies var Promise = require('bluebird') // local dependencies var logger = require(ENDURO_FOLDER + '/libs/logger') var file_uploader = require(ENDURO_FOLDER + '/libs/admin_utilities/file_uploader') // * ———————————————————————————————————————————————————————— * // // * cli upload // * generates object based on flag array // * // * @return {string} - url for uploaded link // * ———————————————————————————————————————————————————————— * // cli_upload.prototype.cli_upload = function (file_url) { if (!file_url) { logger.err('File url not specified\nUsage: $ enduro upload http://yourdomain.com/yourimage.png') return Promise.reject() } return file_uploader.upload_by_url(file_url) } module.exports = new cli_upload()
Java
import React from "react" import Img from "gatsby-image" import { StaticQuery, graphql } from "gatsby" import html5 from "../images/html5.svg" import js from "../images/javascript.svg" import jQuery from "../images/jquery.svg" import php from "../images/php.svg" import python from "../images/python.svg" import css3 from "../images/css3.svg" import sass from "../images/sass.svg" import react from "../images/react.svg" import redux from "../images/redux.svg" import angular from "../images/angular.svg" import nodejs from "../images/nodejs.svg" import express from "../images/express.svg" import graphQL from "../images/graphql.svg" import apollo from "../images/apollo.svg" import laravel from "../images/laravel.svg" import django from "../images/django.svg" import ruby from "../images/ruby.svg" import rails from "../images/rails.svg" import firebase from "../images/firebase.svg" import mongodb from "../images/mongodb.svg" import postgresql from "../images/postgresql.svg" const About = ({ id }) => ( <StaticQuery query={graphql` query AboutImgQuery { aboutImg: file(relativePath: { eq: "towers.jpg" }) { childImageSharp { fluid(maxWidth: 1200) { ...GatsbyImageSharpFluid } } } } `} render={data => ( <section id={id} className="section cover"> <Img title="About image" alt="Towers" fluid={data.aboutImg.childImageSharp.fluid} style={{ borderBottom: "2px solid #0F2027", position: "absolute", left: 0, top: 0, width: "100%", height: "100%", }} /> <div className="overlay" /> <div className="about"> <h1 className="name mt-5"> <b>About Me</b> </h1> <div className="description mb-4"> <h5 className="greetings"> I'm a developer who is driven by the motivation to learn and utilize all of the <br /> newest and leading software technologies, tools and frameworks.{" "} <br /> Here are some of the technologies I have worked with: </h5> </div> <div className="svg-container"> <div className="logo-container"> <a href="https://rebrand.ly/w1zfk5" target="_blank" rel="noopener noreferrer" > <img src={html5} alt="html5" /> </a> <h5>HTML</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/gpe80b" target="_blank" rel="noopener noreferrer" > <img src={css3} alt="css3" /> </a> <h5>CSS</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/ac3zez" target="_blank" rel="noopener noreferrer" > <img src={sass} alt="sass" /> </a> <h5>Sass</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/gdw8nf" target="_blank" rel="noopener noreferrer" > <img src={js} alt="js" /> </a> <h5>JavaScript</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/t8q4kk" target="_blank" rel="noopener noreferrer" > <img src={jQuery} alt="jQuery" /> </a> <h5>jQuery</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/5dmk0k" target="_blank" rel="noopener noreferrer" > <img src={php} alt="php" /> </a> <h5>PHP</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/51v3f7" target="_blank" rel="noopener noreferrer" > <img src={ruby} alt="ruby" /> </a> <h5>Ruby</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/u9f3bu" target="_blank" rel="noopener noreferrer" > <img src={python} alt="python" /> </a> <h5>Python</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/4711zo" target="_blank" rel="noopener noreferrer" > <img src={react} alt="react" /> </a> <h5>React</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/f4fdtb" target="_blank" rel="noopener noreferrer" > <img src={redux} alt="redux" /> </a> <h5>Redux</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/0af3pn" target="_blank" rel="noopener noreferrer" > <img src={angular} alt="angular" /> </a> <h5>Angular</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/fno5hy" target="_blank" rel="noopener noreferrer" > <img src={nodejs} alt="nodejs" /> </a> <h5>Node</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/8pwvla" target="_blank" rel="noopener noreferrer" > <img src={express} alt="express" /> </a> <h5>Express</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/chgco7" target="_blank" rel="noopener noreferrer" > <img src={graphQL} alt="graphQL" /> </a> <h5>GraphQL</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/s8v7qq" target="_blank" rel="noopener noreferrer" > <img src={apollo} alt="apollo" /> </a> <h5>Apollo</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/jm3gu8" target="_blank" rel="noopener noreferrer" > <img src={laravel} alt="laravel" /> </a> <h5>Laravel</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/hbkv6c" target="_blank" rel="noopener noreferrer" > <img src={django} alt="django" /> </a> <h5>Django</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/71jw07" target="_blank" rel="noopener noreferrer" > <img src={rails} alt="rails" /> </a> <h5>Ruby on Rails</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/8jg10f" target="_blank" rel="noopener noreferrer" > <img src={firebase} alt="firebase" /> </a> <h5>Firebase</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/1lamx3" target="_blank" rel="noopener noreferrer" > <img src={mongodb} alt="mongodb" /> </a> <h5>MongoDB</h5> </div> <div className="logo-container"> <a href="https://rebrand.ly/az0ssm" target="_blank" rel="noopener noreferrer" > <img src={postgresql} alt="postgresql" /> </a> <h5>PostgreSQL</h5> </div> </div> <div className="arrow animated bounceInDown" /> </div> </section> )} /> ) export default About
Java
var debug = require('debug')('harmonyhubjs:client:login:hub') var Client = require('node-xmpp-client') var Q = require('q') var util = require('../util') /** PrivateFunction: getIdentity * Logs in to a Harmony hub as a guest and uses the userAuthToken from logitech's * web service to retrieve an identity token. * * Parameters: * (String) hubhost - Hostname/IP of the Harmony hub to connect. * (int) hubport - Optional. Port of the Harmony hub to connect. By default, * this is set to 5222. * * Returns: * (Q.promise) - The resolved promise passes the retrieved identity token. */ function getIdentity (hubhost, hubport) { debug('retrieve identity by logging in as guest') // guest@x.com / guest // guest@connect.logitech.com/gatorade var deferred = Q.defer() var iqId var xmppClient = new Client({ jid: 'guest@x.com/gatorade', password: 'guest', host: hubhost, port: hubport, disallowTLS: true, reconnect: true }) xmppClient.on('online', function () { debug('XMPP client connected') var body = 'method=pair:name=harmonyjs#iOS6.0.1#iPhone' var iq = util.buildIqStanza( 'get', 'connect.logitech.com', 'vnd.logitech.connect/vnd.logitech.pair', body, 'guest') iqId = iq.attr('id') xmppClient.send(iq) }) xmppClient.on('error', function (e) { debug('XMPP client error', e) xmppClient.end() deferred.reject(e) }) xmppClient.on('stanza', function (stanza) { debug('received XMPP stanza: ' + stanza) if (stanza.attrs.id === iqId.toString()) { var body = stanza.getChildText('oa') var response = util.decodeColonSeparatedResponse(body) if (response.identity && response.identity !== undefined) { debug('received identity token: ' + response.identity) xmppClient.end() deferred.resolve(response.identity) } else { debug('could not find identity token') xmppClient.end() deferred.reject(new Error('Did not retrieve identity.')) } } }) return deferred.promise } /** PrivateFunction: loginWithIdentity * After fetching an identity from the Harmony hub, this function creates an * XMPP client using that identity. It returns a promise which, when resolved, * passes that XMPP client. * * Parameters: * (String) identity - Identity token to login to the Harmony hub. * (String) hubhost - Hostname/IP of the Harmony hub to connect. * (int) hubport - Optional. Port of the Harmony hub to connect. By default, * this is set to 5222. * * Returns: * (Q.promise) - When resolved, passes the logged in XMPP client, ready to * communicate with the Harmony hub. */ function loginWithIdentity (identity, hubhost, hubport) { debug('create xmpp client using retrieved identity token: ' + identity) var deferred = Q.defer() var jid = identity + '@connect.logitech.com/gatorade' var password = identity var xmppClient = new Client({ jid: jid, password: password, host: hubhost, port: hubport, disallowTLS: true }) xmppClient.on('error', function (e) { debug('XMPP login error', e) xmppClient.end() deferred.reject(e) }) xmppClient.once('online', function () { debug('XMPP client connected using identity token') deferred.resolve(xmppClient) }) return deferred.promise } /** Function: loginToHub * Uses a userAuthToken to login to a Harmony hub. * * Parameters: * (String) userAuthToken - A authentication token, retrieved from logitechs * web service. * (String) hubhost - Hostname/IP of the Harmony hub to connect. * (int) hubport - Optional. Port of the Harmony hub to connect. By default, * this is set to 5222. * * Returns: * (Q.promise) - The final resolved promise will pass a fully authenticated * XMPP client which can be used to communicate with the * Harmony hub. */ function loginToHub (hubhost, hubport) { debug('perform hub login') hubport = hubport || 5222 return getIdentity(hubhost, hubport) .then(function (identity) { return loginWithIdentity(identity, hubhost, hubport) }) } module.exports = loginToHub
Java
from players.player import player from auxiliar.aux_plot import * import random from collections import deque import sys sys.path.append('..') import tensorblock as tb import numpy as np import tensorflow as tf # PLAYER REINFORCE RNN class player_reinforce_rnn_2(player): # __INIT__ def __init__(self): player.__init__(self) self.experiences = deque() # CHOOSE NEXT ACTION def act(self, state): return self.calculate(state) # CALCULATE NETWORK def calculate(self, state): size = len( self.experiences ) if size < self.NUM_FRAMES: return self.create_random_action() states = np.zeros( (self.NUM_FRAMES , self.obsv_shape[0], self.obsv_shape[1] ) ) for i , j in enumerate( range( size - self.NUM_FRAMES , size ) ): states[i] = self.experiences[j][1] states = np.expand_dims( states, 0 ) output = np.squeeze( self.brain.run('Output', [['Observation', states]]) ) action = np.random.choice( np.arange(len(output)), p=output ) return self.create_action(action) # PREPARE NETWORK def operations(self): # Action Placeholders self.brain.addInput( shape = [ None , self.num_actions ] , name = 'Actions' ) self.brain.addInput( shape = [ None ] , name = 'Target' ) # Operations self.brain.addOperation( function = tb.ops.pgcost, input = [ 'Output', 'Actions', 'Target' ], name = 'Cost' ) # Optimizer self.brain.addOperation( function = tb.optims.adam, input = 'Cost', learning_rate = self.LEARNING_RATE, name = 'Optimizer' ) # TensorBoard self.brain.addSummaryScalar( input = 'Cost' ) self.brain.addSummaryHistogram( input = 'Target' ) self.brain.addWriter( name = 'Writer' , dir = './' ) self.brain.addSummary( name = 'Summary' ) self.brain.initialize() # TRAIN NETWORK def train(self, prev_state, curr_state, actn, rewd, done, episode): # Store New Experience Until Done self.experiences.append((prev_state, curr_state, actn, rewd, done)) batchsize = len( self.experiences ) - self.NUM_FRAMES + 1 # Check for Train if done: # Select Batch batch = self.experiences # Separate Batch Data prev_states = np.zeros( ( batchsize , self.NUM_FRAMES , self.obsv_shape[0], self.obsv_shape[1] ) ) curr_states = np.zeros( ( batchsize , self.NUM_FRAMES , self.obsv_shape[0], self.obsv_shape[1] ) ) actions = np.zeros( ( batchsize , self.num_actions ) ) rewards = np.zeros( ( batchsize ) ) dones = np.zeros( ( batchsize ) ) # Select Batches for i in range( 0 , batchsize ): for j in range( 0 , self.NUM_FRAMES ): prev_states[i,j,:,:] = self.experiences[ i + j ][0] curr_states[i,j,:,:] = self.experiences[ i + j ][1] actions[i] = self.experiences[ i + self.NUM_FRAMES - 1][2] rewards[i] = self.experiences[ i + self.NUM_FRAMES - 1][3] dones[i] = self.experiences[ i + self.NUM_FRAMES - 1][4] # Calculate Discounted Reward running_add = 0 discounted_r = np.zeros_like(rewards) for t in reversed(range(0, len(rewards))): if rewards[t] != 0: # pygame_catch specific running_add = 0 running_add = running_add * self.REWARD_DISCOUNT + rewards[t] discounted_r[t] = running_add # Optimize Neural Network _, summary = self.brain.run( ['Optimizer','Summary'], [ ['Observation', prev_states ], ['Actions', actions ], ['Target', discounted_r ] ] ) # TensorBoard self.brain.write( summary = summary, iter = episode ) # Reset Batch self.experiences = deque()
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fundamental-arithmetics: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.12.1 / fundamental-arithmetics - 8.9.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> fundamental-arithmetics <small> 8.9.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-26 01:44:44 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-26 01:44:44 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;http://perso.ens-lyon.fr/sebastien.briais/tools/Arith_080201.tar.gz&quot; license: &quot;LGPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/FundamentalArithmetics&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} ] tags: [ &quot;keyword: arithmetic&quot; &quot;keyword: number theory&quot; &quot;category: Mathematics/Arithmetic and Number Theory/Miscellaneous&quot; &quot;date: 2008-02-1&quot; ] authors: [ &quot;Sébastien Briais &lt;sebastien.briais at ens-lyon.fr&gt; [http://perso.ens-lyon.fr/sebastien.briais/]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/fundamental-arithmetics/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/fundamental-arithmetics.git&quot; synopsis: &quot;Fundamental theorems of arithmetic&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/fundamental-arithmetics/archive/v8.9.0.tar.gz&quot; checksum: &quot;md5=cf730613573d2738cfb63d9c1b887750&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-fundamental-arithmetics.8.9.0 coq.8.12.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.12.1). The following dependencies couldn&#39;t be met: - coq-fundamental-arithmetics -&gt; coq &lt; 8.10~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-fundamental-arithmetics.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>huffman: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.14.0 / huffman - 8.11.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> huffman <small> 8.11.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-23 01:13:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-23 01:13:15 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq 8.14.0 Formal proof management system dune 2.9.1 Fast, portable, and opinionated build system ocaml 4.10.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.10.2 Official release 4.10.2 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;palmskog@gmail.com&quot; homepage: &quot;https://github.com/coq-community/huffman&quot; dev-repo: &quot;git+https://github.com/coq-community/huffman.git&quot; bug-reports: &quot;https://github.com/coq-community/huffman/issues&quot; doc: &quot;https://coq-community.github.io/huffman/&quot; license: &quot;LGPL-2.1-or-later&quot; synopsis: &quot;Coq proof of the correctness of the Huffman coding algorithm&quot; description: &quot;&quot;&quot; This projects contains a Coq proof of the correctness of the Huffman coding algorithm, as described in David A. Huffman&#39;s paper A Method for the Construction of Minimum-Redundancy Codes, Proc. IRE, pp. 1098-1101, September 1952.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.12~&quot;} ] tags: [ &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms&quot; &quot;category:Miscellaneous/Extracted Programs/Combinatorics&quot; &quot;keyword:data compression&quot; &quot;keyword:code&quot; &quot;keyword:huffman tree&quot; &quot;logpath:Huffman&quot; &quot;date:2020-02-01&quot; ] authors: [ &quot;Laurent Théry&quot; ] url { src: &quot;https://github.com/coq-community/huffman/archive/v8.11.0.tar.gz&quot; checksum: &quot;sha512=5417b219b54a7e553a278cd3d8c8ae9e86d411c3277513cdef3a68840cce145062f601782620e495df2724b92cead9a78d19c26fa1ff4cd8d332526c6b5180a2&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-huffman.8.11.0 coq.8.14.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.14.0). The following dependencies couldn&#39;t be met: - coq-huffman -&gt; coq &lt; 8.12~ -&gt; ocaml &lt; 4.10 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-huffman.8.11.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
Java
<html> <head> <title>User agent detail - Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0 </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Source result (test suite)</th></tr><tr><td>woothee/woothee-testset<br /><small>/testsets/smartphone_ios.yaml</small></td><td>UNKNOWN </td><td>iOS </td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td>smartphone</td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-test">Detail</a> <!-- Modal Structure --> <div id="modal-test" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Testsuite result detail</h4> <p><pre><code class="php">Array ( [target] => Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0 [name] => UNKNOWN [os] => iOS [category] => smartphone ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapPhp<br /><small>6012</small></td><td>CFNetwork </td><td>WebKit </td><td>iOS 5.0</td><td style="border-left: 1px solid #555">Apple</td><td></td><td>Mobile Device</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.029</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-215ac98d-ccf8-4615-916e-5a819d6a59c9">Detail</a> <!-- Modal Structure --> <div id="modal-215ac98d-ccf8-4615-916e-5a819d6a59c9" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapPhp result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^.*cfnetwork\/548\.0.*$/ [browser_name_pattern] => *cfnetwork/548.0* [parent] => CFNetwork for iOS [comment] => CFNetwork for iOS [browser] => CFNetwork [browser_type] => Application [browser_bits] => 32 [browser_maker] => Apple Inc [browser_modus] => unknown [version] => 0.0 [majorver] => 0 [minorver] => 0 [platform] => iOS [platform_version] => 5.0 [platform_description] => iPod, iPhone & iPad [platform_bits] => 32 [platform_maker] => Apple Inc [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [backgroundsounds] => [javascript] => 1 [vbscript] => [javaapplets] => 1 [activexcontrols] => [ismobiledevice] => 1 [istablet] => [issyndicationreader] => [crawler] => [cssversion] => 0 [aolversion] => 0 [device_name] => general Mobile Device [device_maker] => Apple Inc [device_type] => Mobile Device [device_pointing_method] => touchscreen [device_code_name] => general Mobile Device [device_brand_name] => Apple [renderingengine_name] => WebKit [renderingengine_version] => unknown [renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3. [renderingengine_maker] => Apple Inc ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>Blogos 1.13</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661">Detail</a> <!-- Modal Structure --> <div id="modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => [browser] => Blogos [version] => 1.13 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small></td><td>Blogos 1.13</td><td><i class="material-icons">close</i></td><td>iOS 5.0.1</td><td style="border-left: 1px solid #555"></td><td></td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.30803</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc">Detail</a> <!-- Modal Structure --> <div id="modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [mobile_screen_height] => 0 [is_mobile] => 1 [type] => mobile-browser [mobile_brand] => [mobile_model] => [version] => 1.13 [is_android] => [browser_name] => Blogos [operating_system_family] => iOS [operating_system_version] => 5.0.1 [is_ios] => 1 [producer] => [operating_system] => iOS 5.0.1 [mobile_screen_width] => 0 [mobile_browser] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.2</small></td><td> </td><td> </td><td>iOS 5.0</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.007</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-21638055-738d-46ba-a1b1-f5114bc26475">Detail</a> <!-- Modal Structure --> <div id="modal-21638055-738d-46ba-a1b1-f5114bc26475" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => [operatingSystem] => Array ( [name] => iOS [short_name] => IOS [version] => 5.0 [platform] => ) [device] => Array ( [brand] => [brandName] => [model] => [device] => [deviceName] => ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [isPortableMediaPlayer] => [isSmartDisplay] => [isSmartphone] => [isTablet] => [isTV] => [isDesktop] => [isMobile] => 1 [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.0</small></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td>CFNetwork 548.0.4</td><td><i class="material-icons">close</i></td><td>iOS 5.0.1</td><td style="border-left: 1px solid #555">Apple</td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b">Detail</a> <!-- Modal Structure --> <div id="modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => 548 [minor] => 0 [patch] => 4 [family] => CFNetwork ) [os] => UAParser\Result\OperatingSystem Object ( [major] => 5 [minor] => 0 [patch] => 1 [patchMinor] => [family] => iOS ) [device] => UAParser\Result\Device Object ( [brand] => Apple [model] => iOS-Device [family] => iOS-Device ) [originalUserAgent] => Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentStringCom<br /><small></small></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>WhatIsMyBrowserCom<br /><small></small></td><td> </td><td> </td><td>Darwin </td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.40804</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-9795f66f-7271-430e-973a-a5c0e14dc35a">Detail</a> <!-- Modal Structure --> <div id="modal-9795f66f-7271-430e-973a-a5c0e14dc35a" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [operating_system_name] => Darwin [simple_sub_description_string] => [simple_browser_string] => [browser_version] => [extra_info] => Array ( ) [operating_platform] => [extra_info_table] => Array ( ) [layout_engine_name] => [detected_addons] => Array ( ) [operating_system_flavour_code] => [hardware_architecture] => [operating_system_flavour] => [operating_system_frameworks] => Array ( ) [browser_name_code] => [operating_system_version] => [simple_operating_platform_string] => [is_abusive] => [layout_engine_version] => [browser_capabilities] => Array ( ) [operating_platform_vendor_name] => [operating_system] => Darwin [operating_system_version_full] => [operating_platform_code] => [browser_name] => [operating_system_name_code] => darwin [user_agent] => Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0 [browser_version_full] => [browser] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>2.0.10</small></td><td>Blogos 1.13</td><td> </td><td>iOS 5.0.1</td><td style="border-left: 1px solid #555"></td><td></td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.013</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4">Detail</a> <!-- Modal Structure --> <div id="modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => Blogos [version] => 1.13 [type] => app:feedreader ) [os] => Array ( [name] => iOS [version] => 5.0.1 ) [device] => Array ( [type] => mobile [subtype] => smart ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td><td> </td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-3f285ff5-314b-4db4-9948-54572e92e7b6">Detail</a> <!-- Modal Structure --> <div id="modal-3f285ff5-314b-4db4-9948-54572e92e7b6" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [category] => smartphone [os] => iOS [name] => UNKNOWN [version] => UNKNOWN [vendor] => UNKNOWN [os_version] => UNKNOWN ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>Mobile Safari 5.0</td><td><i class="material-icons">close</i></td><td>iOS 5.0</td><td style="border-left: 1px solid #555">Apple</td><td>iPhone</td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.011</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-1a1aee36-7ce7-4111-a391-8e2c501f1532">Detail</a> <!-- Modal Structure --> <div id="modal-1a1aee36-7ce7-4111-a391-8e2c501f1532" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => false [is_ios] => true [is_windows_phone] => false [is_app] => true [is_full_desktop] => false [is_largescreen] => false [is_mobile] => true [is_robot] => false [is_smartphone] => true [is_touchscreen] => true [is_wml_preferred] => false [is_xhtmlmp_preferred] => false [is_html_preferred] => true [advertised_device_os] => iOS [advertised_device_os_version] => 5.0 [advertised_browser] => Mobile Safari [advertised_browser_version] => 5.0 [complete_device_name] => Apple iPhone [form_factor] => Smartphone [is_phone] => true [is_app_webview] => false ) [all] => Array ( [brand_name] => Apple [model_name] => iPhone [unique] => true [ununiqueness_handler] => [is_wireless_device] => true [device_claims_web_support] => true [has_qwerty_keyboard] => true [can_skip_aligned_link_row] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => iOS [mobile_browser] => Safari [mobile_browser_version] => 5.0 [device_os_version] => 5.0 [pointing_method] => touchscreen [release_date] => 2011_october [marketing_name] => [model_extra_info] => 5.0 [nokia_feature_pack] => 0 [can_assign_phone_number] => true [is_tablet] => false [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [built_in_back_button_support] => false [card_title_support] => false [softkey_support] => false [table_support] => false [numbered_menus] => false [menu_with_select_element_recommended] => false [menu_with_list_of_links_recommended] => false [icons_on_menu_items_support] => false [break_list_of_links_with_br_element_recommended] => false [access_key_support] => false [wrap_mode_support] => false [times_square_mode_support] => false [deck_prefetch_support] => false [elective_forms_recommended] => false [wizards_recommended] => false [image_as_link_support] => false [insert_br_element_after_widget_recommended] => false [wml_can_display_images_and_text_on_same_line] => false [wml_displays_image_in_center] => false [opwv_wml_extensions_support] => false [wml_make_phone_call_string] => none [chtml_display_accesskey] => false [emoji] => false [chtml_can_display_images_and_text_on_same_line] => false [chtml_displays_image_in_center] => false [imode_region] => none [chtml_make_phone_call_string] => tel: [chtml_table_support] => false [xhtml_honors_bgcolor] => true [xhtml_supports_forms_in_table] => false [xhtml_support_wml2_namespace] => false [xhtml_autoexpand_select] => false [xhtml_select_as_dropdown] => false [xhtml_select_as_radiobutton] => false [xhtml_select_as_popup] => false [xhtml_display_accesskey] => false [xhtml_supports_invisible_text] => false [xhtml_supports_inline_input] => false [xhtml_supports_monospace_font] => false [xhtml_supports_table_for_layout] => true [xhtml_supports_css_cell_table_coloring] => true [xhtml_format_as_css_property] => true [xhtml_format_as_attribute] => false [xhtml_nowrap_mode] => false [xhtml_marquee_as_css_property] => false [xhtml_readable_background_color1] => #D9EFFF [xhtml_readable_background_color2] => #FFFFFF [xhtml_allows_disabled_form_elements] => false [xhtml_document_title_support] => true [xhtml_preferred_charset] => utf8 [opwv_xhtml_extensions_support] => false [xhtml_make_phone_call_string] => tel: [xhtmlmp_preferred_mime_type] => text/html [xhtml_table_support] => true [xhtml_send_sms_string] => sms: [xhtml_send_mms_string] => none [xhtml_file_upload] => not_supported [cookie_support] => true [accept_third_party_cookie] => false [xhtml_supports_iframe] => full [xhtml_avoid_accesskeys] => false [xhtml_can_embed_video] => none [ajax_support_javascript] => true [ajax_manipulate_css] => true [ajax_support_getelementbyid] => true [ajax_support_inner_html] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [ajax_support_event_listener] => true [ajax_preferred_geoloc_api] => w3c_api [xhtml_support_level] => 4 [preferred_markup] => html_web_4_0 [wml_1_1] => false [wml_1_2] => false [wml_1_3] => false [html_wi_w3_xhtmlbasic] => true [html_wi_oma_xhtmlmp_1_0] => true [html_wi_imode_html_1] => false [html_wi_imode_html_2] => false [html_wi_imode_html_3] => false [html_wi_imode_html_4] => false [html_wi_imode_html_5] => false [html_wi_imode_htmlx_1] => false [html_wi_imode_htmlx_1_1] => false [html_wi_imode_compact_generic] => true [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [total_cache_disable_support] => false [time_to_live_support] => false [resolution_width] => 320 [resolution_height] => 480 [columns] => 20 [max_image_width] => 320 [max_image_height] => 480 [rows] => 20 [physical_screen_width] => 50 [physical_screen_height] => 74 [dual_orientation] => true [density_class] => 1.0 [wbmp] => false [bmp] => true [epoc_bmp] => false [gif_animated] => true [jpg] => true [png] => true [tiff] => false [transparent_png_alpha] => false [transparent_png_index] => false [svgt_1_1] => true [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => false [webp_lossless_support] => false [post_method_support] => true [basic_authentication_support] => true [empty_option_value_support] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 200 [wifi] => true [sdio] => false [vpn] => true [has_cellular_radio] => true [max_deck_size] => 100000 [max_url_length_in_requests] => 512 [max_url_length_homepage] => 0 [max_url_length_bookmark] => 0 [max_url_length_cached_page] => 0 [max_no_of_connection_settings] => 0 [max_no_of_bookmarks] => 0 [max_length_of_username] => 0 [max_length_of_password] => 0 [max_object_size] => 0 [downloadfun_support] => false [directdownload_support] => false [inline_support] => false [oma_support] => false [ringtone] => true [ringtone_3gpp] => false [ringtone_midi_monophonic] => true [ringtone_midi_polyphonic] => true [ringtone_imelody] => false [ringtone_digiplug] => false [ringtone_compactmidi] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => true [ringtone_awb] => false [ringtone_aac] => true [ringtone_wav] => true [ringtone_mp3] => true [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 12 [ringtone_df_size_limit] => 0 [ringtone_directdownload_size_limit] => 0 [ringtone_inline_size_limit] => 0 [ringtone_oma_size_limit] => 0 [wallpaper] => false [wallpaper_max_width] => 320 [wallpaper_max_height] => 480 [wallpaper_preferred_width] => 320 [wallpaper_preferred_height] => 480 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [wallpaper_df_size_limit] => 0 [wallpaper_directdownload_size_limit] => 0 [wallpaper_inline_size_limit] => 0 [wallpaper_oma_size_limit] => 0 [screensaver] => false [screensaver_max_width] => 0 [screensaver_max_height] => 0 [screensaver_preferred_width] => 0 [screensaver_preferred_height] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [screensaver_greyscale] => false [screensaver_colors] => 2 [screensaver_df_size_limit] => 0 [screensaver_directdownload_size_limit] => 0 [screensaver_inline_size_limit] => 0 [screensaver_oma_size_limit] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [picture_preferred_width] => 0 [picture_preferred_height] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [picture_df_size_limit] => 0 [picture_directdownload_size_limit] => 0 [picture_inline_size_limit] => 0 [picture_oma_size_limit] => 0 [video] => true [oma_v_1_0_forwardlock] => false [oma_v_1_0_combined_delivery] => false [oma_v_1_0_separate_delivery] => false [streaming_video] => true [streaming_3gpp] => true [streaming_mp4] => true [streaming_mov] => false [streaming_video_size_limit] => 0 [streaming_real_media] => none [streaming_flv] => false [streaming_3g2] => false [streaming_vcodec_h263_0] => 30 [streaming_vcodec_h263_3] => -1 [streaming_vcodec_mpeg4_sp] => 3 [streaming_vcodec_mpeg4_asp] => 3 [streaming_vcodec_h264_bp] => 3.0 [streaming_acodec_amr] => nb [streaming_acodec_aac] => lc [streaming_wmv] => none [streaming_preferred_protocol] => http [streaming_preferred_http_protocol] => apple_live_streaming [wap_push_support] => false [connectionless_service_indication] => false [connectionless_service_load] => false [connectionless_cache_operation] => false [connectionoriented_unconfirmed_service_indication] => false [connectionoriented_unconfirmed_service_load] => false [connectionoriented_unconfirmed_cache_operation] => false [connectionoriented_confirmed_service_indication] => false [connectionoriented_confirmed_service_load] => false [connectionoriented_confirmed_cache_operation] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [j2me_siemens_color_game] => false [j2me_siemens_extension] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [j2me_max_record_store_size] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [j2me_audio_capture_enabled] => false [j2me_video_capture_enabled] => false [j2me_photo_capture_enabled] => false [j2me_capture_image_formats] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [j2me_left_softkey_code] => 0 [j2me_right_softkey_code] => 0 [j2me_middle_softkey_code] => 0 [j2me_select_key_code] => 0 [j2me_return_key_code] => 0 [j2me_clear_key_code] => 0 [j2me_datefield_no_accepts_null_date] => false [j2me_datefield_broken] => false [receiver] => true [sender] => true [mms_max_size] => 1048576 [mms_max_height] => 1024 [mms_max_width] => 1024 [built_in_recorder] => false [built_in_camera] => true [mms_jpeg_baseline] => true [mms_jpeg_progressive] => true [mms_gif_static] => true [mms_gif_animated] => true [mms_png] => true [mms_bmp] => true [mms_wbmp] => false [mms_amr] => true [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [mms_midi_polyphonic_voices] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => true [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [mms_nokia_operatorlogo] => false [mms_nokia_3dscreensaver] => false [mms_nokia_ringingtone] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => true [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => true [mms_mp4] => true [mms_3gpp] => true [mms_3gpp2] => true [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [ems_variablesizedpictures] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [siemens_screensaver_width] => 101 [siemens_screensaver_height] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => true [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => true [mp3] => true [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => false [css_supports_width_as_percentage] => true [css_border_image] => webkit [css_rounded_corners] => webkit [css_gradient] => webkit [css_spriting] => true [css_gradient_linear] => webkit [is_transcoder] => false [transcoder_ua_header] => user-agent [rss_support] => true [pdf_support] => true [progressive_download] => true [playback_vcodec_h263_0] => 30 [playback_vcodec_h263_3] => -1 [playback_vcodec_mpeg4_sp] => 3 [playback_vcodec_mpeg4_asp] => 2 [playback_vcodec_h264_bp] => 3.0 [playback_real_media] => none [playback_3gpp] => true [playback_3g2] => true [playback_mp4] => true [playback_mov] => true [playback_acodec_amr] => nb [playback_acodec_aac] => lc [playback_df_size_limit] => 0 [playback_directdownload_size_limit] => 0 [playback_inline_size_limit] => 0 [playback_oma_size_limit] => 0 [playback_acodec_qcelp] => false [playback_wmv] => none [hinted_progressive_download] => false [html_preferred_dtd] => html4 [viewport_supported] => true [viewport_width] => device_width_token [viewport_userscalable] => no [viewport_initial_scale] => [viewport_maximum_scale] => [viewport_minimum_scale] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => full [image_inlining] => true [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => A [is_sencha_touch_ok] => true [controlcap_is_smartphone] => default [controlcap_is_ios] => default [controlcap_is_android] => default [controlcap_is_robot] => default [controlcap_is_app] => default [controlcap_advertised_device_os] => default [controlcap_advertised_device_os_version] => default [controlcap_advertised_browser] => default [controlcap_advertised_browser_version] => default [controlcap_is_windows_phone] => default [controlcap_is_full_desktop] => default [controlcap_is_largescreen] => default [controlcap_is_mobile] => default [controlcap_is_touchscreen] => default [controlcap_is_wml_preferred] => default [controlcap_is_xhtmlmp_preferred] => default [controlcap_is_html_preferred] => default [controlcap_form_factor] => default [controlcap_complete_device_name] => default ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-02-13 13:32:21</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
Java
<!DOCTYPE html> <html> <head> <title>MyFonts Webfonts Demo for iOS devices</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <style type="text/css" media="all"> h2 { font-weight:normal; } @font-face { font-family:"ProximaNova-Bold"; src:url("2FE569_0.svg#ProximaNova-Bold") format("svg"); } .webfont_0 { font-family: ProximaNova-Bold; } @font-face { font-family:"ProximaNova-Regular"; src:url("2FE569_1.svg#ProximaNova-Regular") format("svg"); } .webfont_1 { font-family: ProximaNova-Regular; } </style> </head> <body> <h1>MyFonts Webfonts Demo for iOS devices</h1> <h2>0. <span class='webfont_0'><a href='http://www.myfonts.com/search/style::148514/'>ProximaNova-Bold</a></span> <small>(VersionID 675566, ttf)</small> </h2> <p class='webfont_0'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <p class='webfont_0'>An, partus ancillae sitne in fructu habendus, disseretur inter principes civitatis, P. Scaevolam M'.que Manilium, ab iisque M. Brutus dissentiet -- quod et acutum genus est et ad usus civium non inutile, nosque ea scripta reliquaque eiusdem generis et legimus libenter et legemus --, haec, quae vitam omnem continent, neglegentur? nam, ut sint illa vendibiliora, haec uberiora certe sunt. quamquam id quidem licebit iis existimare, qui legerint. nos autem hanc omnem quaestionem de finibus bonorum et malorum fere a nobis explicatam esse his litteris arbitramur, in quibus, quantum potuimus, non modo quid nobis probaretur, sed etiam quid a singulis philosophiae disciplinis diceretur, persecuti sumus.</p> <p class='webfont_0'>Id qui in una virtute ponunt et splendore nominis capti quid natura postulet non intellegunt, errore maximo, si Epicurum audire voluerint, liberabuntur: istae enim vestrae eximiae pulchraeque virtutes nisi voluptatem efficerent, quis eas aut laudabilis aut expetendas arbitraretur? ut enim medicorum scientiam non ipsius artis, sed bonae valetudinis causa probamus, et gubernatoris ars, quia bene navigandi rationem habet, utilitate, non arte laudatur, sic sapientia, quae ars vivendi putanda est, non expeteretur, si nihil efficeret; nunc expetitur, quod est tamquam artifex conquirendae et comparandae voluptatis.</p> <h2>1. <span class='webfont_1'><a href='http://www.myfonts.com/search/style::148510/'>ProximaNova-Regular</a></span> <small>(VersionID 675574, ttf)</small> </h2> <p class='webfont_1'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <p class='webfont_1'>An, partus ancillae sitne in fructu habendus, disseretur inter principes civitatis, P. Scaevolam M'.que Manilium, ab iisque M. Brutus dissentiet -- quod et acutum genus est et ad usus civium non inutile, nosque ea scripta reliquaque eiusdem generis et legimus libenter et legemus --, haec, quae vitam omnem continent, neglegentur? nam, ut sint illa vendibiliora, haec uberiora certe sunt. quamquam id quidem licebit iis existimare, qui legerint. nos autem hanc omnem quaestionem de finibus bonorum et malorum fere a nobis explicatam esse his litteris arbitramur, in quibus, quantum potuimus, non modo quid nobis probaretur, sed etiam quid a singulis philosophiae disciplinis diceretur, persecuti sumus.</p> <p class='webfont_1'>Id qui in una virtute ponunt et splendore nominis capti quid natura postulet non intellegunt, errore maximo, si Epicurum audire voluerint, liberabuntur: istae enim vestrae eximiae pulchraeque virtutes nisi voluptatem efficerent, quis eas aut laudabilis aut expetendas arbitraretur? ut enim medicorum scientiam non ipsius artis, sed bonae valetudinis causa probamus, et gubernatoris ars, quia bene navigandi rationem habet, utilitate, non arte laudatur, sic sapientia, quae ars vivendi putanda est, non expeteretur, si nihil efficeret; nunc expetitur, quod est tamquam artifex conquirendae et comparandae voluptatis.</p> </body> </html>
Java
Namespace Media ''' <summary></summary> ''' <autogenerated>Generated from a T4 template. Modifications will be lost, if applicable use a partial class instead.</autogenerated> ''' <generator-date>17/02/2014 16:03:03</generator-date> ''' <generator-functions>1</generator-functions> ''' <generator-source>Deimos\_Media\Enums\WMT_ATTR_DATATYPE.tt</generator-source> ''' <generator-version>1</generator-version> <System.CodeDom.Compiler.GeneratedCode("Deimos\_Media\Enums\WMT_ATTR_DATATYPE.tt", "1")> _ Public Enum WMT_ATTR_DATATYPE As System.Int32 ''' <summary>WMT_TYPE_DWORD</summary> WMT_TYPE_DWORD = 0 ''' <summary>WMT_TYPE_STRING</summary> WMT_TYPE_STRING = 1 ''' <summary>WMT_TYPE_BINARY</summary> WMT_TYPE_BINARY = 2 ''' <summary>WMT_TYPE_BOOL</summary> WMT_TYPE_BOOL = 3 ''' <summary>WMT_TYPE_QWORD</summary> WMT_TYPE_QWORD = 4 ''' <summary>WMT_TYPE_WORD</summary> WMT_TYPE_WORD = 5 ''' <summary>WMT_TYPE_GUID</summary> WMT_TYPE_GUID = 6 End Enum End Namespace
Java
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package org.spongepowered.api.text; import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.collect.ImmutableList; import org.spongepowered.api.scoreboard.Score; import org.spongepowered.api.text.format.TextColor; import org.spongepowered.api.text.format.TextColors; import org.spongepowered.api.text.format.TextStyle; import org.spongepowered.api.text.format.TextStyles; import org.spongepowered.api.text.selector.Selector; import org.spongepowered.api.text.translation.Translatable; import org.spongepowered.api.text.translation.Translation; import java.util.Locale; /** * Utility class to work with and create {@link Text}. */ public final class Texts { private static final TextFactory factory = null; static final Text.Literal EMPTY = new Text.Literal(); private Texts() { } /** * Returns an empty, unformatted {@link Text} instance. * * @return An empty text */ public static Text of() { return EMPTY; } /** * Creates a {@link Text} with the specified plain text. The created message * won't have any formatting or events configured. * * @param content The content of the text * @return The created text * @see Text.Literal */ public static Text.Literal of(String content) { if (checkNotNull(content, "content").isEmpty()) { return EMPTY; } return new Text.Literal(content); } /** * Creates a new unformatted {@link Text.Translatable} with the given * {@link Translation} and arguments. * * @param translation The translation for the text * @param args The arguments for the translation * @return The created text * @see Text.Translatable */ public static Text.Translatable of(Translation translation, Object... args) { return new Text.Translatable(translation, ImmutableList.copyOf(checkNotNull(args, "args"))); } /** * Creates a new unformatted {@link Text.Translatable} from the given * {@link Translatable}. * * @param translatable The translatable for the text * @param args The arguments for the translation * @return The created text * @see Text.Translatable */ public static Text.Translatable of(Translatable translatable, Object... args) { return of(checkNotNull(translatable, "translatable").getTranslation(), args); } /** * Creates a new unformatted {@link Text.Selector} with the given selector. * * @param selector The selector for the text * @return The created text * @see Text.Selector */ public static Text.Selector of(Selector selector) { return new Text.Selector(selector); } /** * Creates a new unformatted {@link Text.Score} with the given score. * * @param score The score for the text * @return The created text * @see Text.Score */ public static Text.Score of(Score score) { return new Text.Score(score); } /** * Builds a {@link Text} from a given array of objects. * * <p>For instance, you can use this like * <code>Texts.of(TextColors.DARK_AQUA, "Hi", TextColors.AQUA, "Bye")</code> * </p> * * <p>This will create the correct {@link Text} instance if the input object * is the input for one of the {@link Text} types or convert the object to a * string otherwise.</p> * * @param objects The object array * @return The built text object */ public static Text of(Object... objects) { TextBuilder builder = builder(); TextColor color = TextColors.NONE; TextStyle style = TextStyles.NONE; for (Object obj : objects) { if (obj instanceof TextColor) { color = (TextColor) obj; } else if (obj instanceof TextStyle) { style = obj.equals(TextStyles.RESET) ? TextStyles.NONE : style.and((TextStyle) obj); } else if (obj instanceof Text) { builder.append((Text) obj); } else if (obj instanceof TextBuilder) { builder.append(((TextBuilder) obj).build()); } else { TextBuilder childBuilder; if (obj instanceof String) { childBuilder = Texts.builder((String) obj); } else if (obj instanceof Translation) { childBuilder = Texts.builder((Translation) obj); } else if (obj instanceof Selector) { childBuilder = Texts.builder((Selector) obj); } else if (obj instanceof Score) { childBuilder = Texts.builder((Score) obj); } else { childBuilder = Texts.builder(String.valueOf(obj)); } builder.append(childBuilder.color(color).style(style).build()); } } return builder.build(); } /** * Creates a {@link TextBuilder} with empty text. * * @return A new text builder with empty text */ public static TextBuilder builder() { return new TextBuilder.Literal(); } /** * Creates a new unformatted {@link TextBuilder.Literal} with the specified * content. * * @param content The content of the text * @return The created text builder * @see Text.Literal * @see TextBuilder.Literal */ public static TextBuilder.Literal builder(String content) { return new TextBuilder.Literal(content); } /** * Creates a new {@link TextBuilder.Literal} with the formatting and actions * of the specified {@link Text} and the given content. * * @param text The text to apply the properties from * @param content The content for the text builder * @return The created text builder * @see Text.Literal * @see TextBuilder.Literal */ public static TextBuilder.Literal builder(Text text, String content) { return new TextBuilder.Literal(text, content); } /** * Creates a new unformatted {@link TextBuilder.Translatable} with the given * {@link Translation} and arguments. * * @param translation The translation for the builder * @param args The arguments for the translation * @return The created text builder * @see Text.Translatable * @see TextBuilder.Translatable */ public static TextBuilder.Translatable builder(Translation translation, Object... args) { return new TextBuilder.Translatable(translation, args); } /** * Creates a new unformatted {@link TextBuilder.Translatable} from the given * {@link Translatable}. * * @param translatable The translatable for the builder * @param args The arguments for the translation * @return The created text builder * @see Text.Translatable * @see TextBuilder.Translatable */ public static TextBuilder.Translatable builder(Translatable translatable, Object... args) { return new TextBuilder.Translatable(translatable, args); } /** * Creates a new {@link TextBuilder.Translatable} with the formatting and * actions of the specified {@link Text} and the given {@link Translation} * and arguments. * * @param text The text to apply the properties from * @param translation The translation for the builder * @param args The arguments for the translation * @return The created text builder * @see Text.Translatable * @see TextBuilder.Translatable */ public static TextBuilder.Translatable builder(Text text, Translation translation, Object... args) { return new TextBuilder.Translatable(text, translation, args); } /** * Creates a new {@link TextBuilder.Translatable} with the formatting and * actions of the specified {@link Text} and the given {@link Translatable}. * * @param text The text to apply the properties from * @param translatable The translatable for the builder * @param args The arguments for the translation * @return The created text builder * @see Text.Translatable * @see TextBuilder.Translatable */ public static TextBuilder.Translatable builder(Text text, Translatable translatable, Object... args) { return new TextBuilder.Translatable(text, translatable, args); } /** * Creates a new unformatted {@link TextBuilder.Selector} with the given * selector. * * @param selector The selector for the builder * @return The created text builder * @see Text.Selector * @see TextBuilder.Selector */ public static TextBuilder.Selector builder(Selector selector) { return new TextBuilder.Selector(selector); } /** * Creates a new {@link TextBuilder.Selector} with the formatting and * actions of the specified {@link Text} and the given selector. * * @param text The text to apply the properties from * @param selector The selector for the builder * @return The created text builder * @see Text.Selector * @see TextBuilder.Selector */ public static TextBuilder.Selector builder(Text text, Selector selector) { return new TextBuilder.Selector(text, selector); } /** * Creates a new unformatted {@link TextBuilder.Score} with the given score. * * @param score The score for the text builder * @return The created text builder * @see Text.Score * @see TextBuilder.Score */ public static TextBuilder.Score builder(Score score) { return new TextBuilder.Score(score); } /** * Creates a new {@link TextBuilder.Score} with the formatting and actions * of the specified {@link Text} and the given score. * * @param text The text to apply the properties from * @param score The score for the text builder * @return The created text builder * @see Text.Score * @see TextBuilder.Score */ public static TextBuilder.Score builder(Text text, Score score) { return new TextBuilder.Score(text, score); } /** * Joins a sequence of text objects together. * * @param texts The texts to join * @return A text object that joins the given text objects */ public static Text join(Text... texts) { return builder().append(texts).build(); } /** * Joins a sequence of text objects together. * * @param texts The texts to join * @return A text object that joins the given text objects */ public static Text join(Iterable<? extends Text> texts) { return builder().append(texts).build(); } /** * Joins a sequence of text objects together along with a separator. * * @param separator The separator * @param texts The text to join * @return A text object that joins the given text objects */ public static Text join(Text separator, Text... texts) { switch (texts.length) { case 0: return of(); case 1: return texts[0]; default: TextBuilder builder = builder(); boolean appendSeparator = false; for (Text text : texts) { if (appendSeparator) { builder.append(separator); } else { appendSeparator = true; } builder.append(text); } return builder.build(); } } /** * Parses the specified JSON text and returns the parsed result. * * @param json The valid JSON text * @return The parsed text * @throws IllegalArgumentException If the JSON is invalid */ public static Text parseJson(String json) throws IllegalArgumentException { return factory.parseJson(json); } /** * Parses the specified JSON text and returns the parsed result. * * <p>Unlike {@link #parseJson(String)} this will ignore some formatting * errors and parse the JSON data more leniently.</p> * * @param json The JSON text * @return The parsed text * @throws IllegalArgumentException If the JSON couldn't be parsed */ public static Text parseJsonLenient(String json) throws IllegalArgumentException { return factory.parseJsonLenient(json); } /** * Returns a plain text representation of the {@link Text} without any * formatting. * * @param text The text to convert * @return The text converted to plain text */ public static String toPlain(Text text) { return factory.toPlain(text); } /** * Returns a JSON representation of the {@link Text} as used in commands. * * @param text The text to convert * @return The text converted to JSON */ public static String toJson(Text text) { return factory.toJson(text); } /** * Returns a plain text representation of the {@link Text} without any * formatting. * * @param text The text to convert * @return The text converted to plain text */ public static String toPlain(Text text, Locale locale) { return factory.toPlain(text, locale); } /** * Returns a JSON representation of the {@link Text} as used in commands. * * @param text The text to convert * @return The text converted to JSON */ public static String toJson(Text text, Locale locale) { return factory.toJson(text, locale); } /** * Returns the default legacy formatting character. * * @return The legacy formatting character * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated public static char getLegacyChar() { return factory.getLegacyChar(); } /** * Creates a Message from a legacy string using the default legacy. * * @param text The text to be converted as a String * @return The converted Message * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated @SuppressWarnings("deprecation") public static Text.Literal fromLegacy(String text) { return fromLegacy(text, getLegacyChar()); } /** * Creates a Message from a legacy string, given a color character. * * @param text The text to be converted as a String * @param color The color character to be replaced * @return The converted Message * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated public static Text.Literal fromLegacy(String text, char color) { return factory.parseLegacyMessage(text, color); } /** * Removes the legacy formatting character from a legacy string. * * @param text The legacy text as a String * @return The stripped text * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated @SuppressWarnings("deprecation") public static String stripCodes(String text) { return stripCodes(text, getLegacyChar()); } /** * Removes the legacy formatting character from a legacy string. * * @param text The legacy text as a String * @param color The color character to be replaced * @return The stripped text * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated public static String stripCodes(String text, char color) { return factory.stripLegacyCodes(text, color); } /** * Replaces the given formatting character with the default legacy * formatting character from a legacy string. * * @param text The legacy text as a String * @param from The color character to be replaced * @return The replaced text * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated @SuppressWarnings("deprecation") public static String replaceCodes(String text, char from) { return replaceCodes(text, from, getLegacyChar()); } /** * Replaces the given formatting character with another given formatting * character from a legacy string. * * @param text The legacy text as a String * @param from The color character to be replaced * @param to The color character to replace with * @return The replaced text * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated public static String replaceCodes(String text, char from, char to) { return factory.replaceLegacyCodes(text, from, to); } /** * Returns a representation of the {@link Text} using the legacy color * codes. * * @param text The text to convert * @return The text converted to the old color codes * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated @SuppressWarnings("deprecation") public static String toLegacy(Text text) { return toLegacy(text, getLegacyChar()); } /** * Returns a representation of the {@link Text} using the legacy color * codes. * * @param text The text to convert * @param code The legacy char to use for the message * @return The text converted to the old color codes * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated public static String toLegacy(Text text, char code) { return factory.toLegacy(text, code); } /** * Returns a representation of the {@link Text} using the legacy color * codes. * * @param text The text to convert * @param code The legacy char to use for the message * @param locale The language to return this representation in * @return The text converted to the old color codes * @deprecated Legacy formatting codes are being phased out of Minecraft */ @Deprecated public static String toLegacy(Text text, char code, Locale locale) { return factory.toLegacy(text, code, locale); } }
Java
module.exports = require('regenerate')(0x261D, 0x26F9, 0x1F385, 0x1F3C7, 0x1F46E, 0x1F47C, 0x1F4AA, 0x1F57A, 0x1F590, 0x1F6A3, 0x1F6C0, 0x1F6CC, 0x1F926).addRange(0x270A, 0x270D).addRange(0x1F3C2, 0x1F3C4).addRange(0x1F3CA, 0x1F3CC).addRange(0x1F442, 0x1F443).addRange(0x1F446, 0x1F450).addRange(0x1F466, 0x1F469).addRange(0x1F470, 0x1F478).addRange(0x1F481, 0x1F483).addRange(0x1F485, 0x1F487).addRange(0x1F574, 0x1F575).addRange(0x1F595, 0x1F596).addRange(0x1F645, 0x1F647).addRange(0x1F64B, 0x1F64F).addRange(0x1F6B4, 0x1F6B6).addRange(0x1F918, 0x1F91C).addRange(0x1F91E, 0x1F91F).addRange(0x1F930, 0x1F939).addRange(0x1F93D, 0x1F93E).addRange(0x1F9D1, 0x1F9DD);
Java
# VivaTalk Oh god it's time. run this to push to GH pages: rm output/images; cp -r images output; ghp-import -n output -p; rm -r output/images; ln -s ../images output/images
Java
module SupportEngine class SupportType < ActiveRecord::Base attr_accessible :name, :email has_many :tickets, inverse_of: :support_type # TODO: Detect background job def notify!(ticket) SupportEngine::TicketMailer.notify(self, ticket).deliver end end end
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>Story-Ly</title> <!-- Bootstrap core CSS --> <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom styles for this template --> <link href="css/2-col-portfolio.css" rel="stylesheet"> </head> <body> <!-- Navigation --> <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top"> <div class="container"> <a class="navbar-brand" href="#">Story-Ly</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarResponsive"> <ul class="navbar-nav ml-auto"> <li class="nav-item"> <a class="nav-link" href="/">1 Column <span class="sr-only">(current)</span> </a> </li> <li class="nav-item"> <a class="nav-link" href="/2Coll">2 Column</a> </li> <li class="nav-item"> <a class="nav-link" href="/3Coll">3 Column</a> </li> <li class="nav-item"> <a class="nav-link" href="/4Coll">4 Column</a> </li> </ul> </div> </div> </nav> <!-- Page Content --> <div class="container"> <!-- Page Heading --> <h1 class="my-4">Harjit's BS <small>Everyone loves BS test data</small> </h1> <div id="contentList" class="row"></div> <!-- /.row --> <!-- Pagination --> <ul class="pagination justify-content-center"> <li class="page-item"> <a class="page-link" href="#" aria-label="Previous"> <span aria-hidden="true">&laquo;</span> <span class="sr-only">Previous</span> </a> </li> <li class="page-item"> <a class="page-link" href="#">1</a> </li> <li class="page-item"> <a class="page-link" href="#">2</a> </li> <li class="page-item"> <a class="page-link" href="#">3</a> </li> <li class="page-item"> <a class="page-link" href="#" aria-label="Next"> <span aria-hidden="true">&raquo;</span> <span class="sr-only">Next</span> </a> </li> </ul> </div> <!-- /.container --> <!-- Footer --> <footer class="py-5 bg-dark"> <div class="container"> <p class="m-0 text-center text-white">Copyright &copy; Your Website 2017</p> </div> <!-- /.container --> </footer> <!-- Bootstrap core JavaScript --> <script src="vendor/jquery/jquery.min.js"></script> <script src="vendor/popper/popper.min.js"></script> <script src="vendor/bootstrap/js/bootstrap.min.js"></script> <script> GenerateCardForStory = function(content) { var html = `<div class='col-lg-6 portfolio-item' content-id='`+content.content_id+`'> <div class='card h-100'> <a href="#"> <img class="card-img-top" src="http://placehold.it/700x400" alt=""> </a> <div class="card-body"> <h4 class="card-title"> <a href="#">`+content.title+`</a> </h4> <p class="card-text">We need to add Description to DB. I am starting to think that this is honestly just a problem of not enough text which is a dumb problem to have if it is indeed the problem.</p> </div> </div> </div>`; $("#contentList").append(html); } $(document).ready(function(){ $.get("/data", function(data, status){ this.data = data; data.data.content.forEach(function(obj){ GenerateCardForStory(obj); GenerateCardForStory(obj); GenerateCardForStory(obj); GenerateCardForStory(obj); GenerateCardForStory(obj); }); }); }); </script> </body> </html>
Java
from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id_seq'), primary_key=True) analysis_id = Column(String(500)) experiment_id = Column(String(50)) sample_name_abbreviation = Column(String(500)) # equivalent to sample_name_abbreviation sample_name = Column(String(500)) # equivalent to sample_name_abbreviation time_point = Column(String(10)) # converted to intermediate in lineage analysis analysis_type = Column(String(100)); # time-course (i.e., multiple time points), paired (i.e., control compared to multiple replicates), group (i.e., single grouping of samples). used_ = Column(Boolean); comment_ = Column(Text); __table_args__ = ( UniqueConstraint('experiment_id','sample_name_abbreviation','sample_name','time_point','analysis_type','analysis_id'), ) def __init__(self, row_dict_I, ): self.analysis_id=row_dict_I['analysis_id']; self.experiment_id=row_dict_I['experiment_id']; self.sample_name_abbreviation=row_dict_I['sample_name_abbreviation']; self.sample_name=row_dict_I['sample_name']; self.time_point=row_dict_I['time_point']; self.analysis_type=row_dict_I['analysis_type']; self.used_=row_dict_I['used_']; self.comment_=row_dict_I['comment_']; def __set__row__(self,analysis_id_I, experiment_id_I, sample_name_abbreviation_I, sample_name_I, time_point_I, analysis_type_I, used__I, comment__I): self.analysis_id=analysis_id_I self.experiment_id=experiment_id_I self.sample_name_abbreviation=sample_name_abbreviation_I self.sample_name=sample_name_I self.time_point=time_point_I self.analysis_type=analysis_type_I self.used_=used__I self.comment_=comment__I def __repr__dict__(self): return {'id':self.id, 'analysis_id':self.analysis_id, 'experiment_id':self.experiment_id, 'sample_name_abbreviation':self.sample_name_abbreviation, 'sample_name':self.sample_name, 'time_point':self.time_point, 'analysis_type':self.analysis_type, 'used_':self.used_, 'comment_':self.comment_} def __repr__json__(self): return json.dumps(self.__repr__dict__())
Java
require 'faraday' # @private module Faraday module Disqussion # @private class RaiseHttp4xx < ::Faraday::Response::Middleware def on_complete(env) case env[:status].to_i when 400 raise ::Disqussion::BadRequest.new(error_message(env), env[:response_headers]) when 401 raise ::Disqussion::Unauthorized.new(error_message(env), env[:response_headers]) when 403 raise ::Disqussion::Forbidden.new(error_message(env), env[:response_headers]) when 404 raise ::Disqussion::NotFound.new(error_message(env), env[:response_headers]) end end private def error_message(env) "#{env[:method].to_s.upcase} #{env[:url].to_s}: (#{env[:status]}) #{error_body(env[:body])}" end def error_body(body) if body['code'] && body['response'] "Disqus Error #{body['code']}: #{body['response']}" else nil end end end end end
Java
#![alt text](http://farkhor.github.io/CuSha/images/CuSha-logo-small.png "CuSha") CuSha is a CUDA-based vertex-centric graph processing framework that uses G-Shards and Concatenated Windows (CW) representations to store graphs inside the GPU global memory. G-Shards and CW consume more space compared to Compressed Sparse Row (CSR) format but on the other hand provide better performance due to GPU-friendly representations. For completeness, provided package also includes Virtual Warp-Centric (VWC) processing method for GPU that uses CSR representation. [ [Paper](http://www.cs.ucr.edu/~fkhor001/index.html#publications) ] -- [ [Slides](http://www.cs.ucr.edu/~fkhor001/CuSha/CuSha_Slides.pptx) ] -- [ [Requirements and Usage](http://farkhor.github.io/CuSha/) ] #####Acknowledgements##### This work is supported by National Science Foundation grants CCF-1157377 and CCF-0905509 to UC Riverside.
Java
package jp.co.future.uroborosql.parameter.mapper; import static org.hamcrest.MatcherAssert.*; import static org.hamcrest.Matchers.*; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.math.BigDecimal; import java.sql.Connection; import java.sql.Timestamp; import java.text.ParseException; import java.time.Clock; import java.time.LocalDate; import java.time.Month; import java.time.ZoneId; import java.util.Date; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import jp.co.future.uroborosql.parameter.mapper.legacy.DateToStringParameterMapper; public class BindParameterMapperManagerTest { private Clock clock; @BeforeEach public void setUp() { this.clock = Clock.systemDefaultZone(); } @Test public void test() throws ParseException { var parameterMapperManager = new BindParameterMapperManager(this.clock); assertThat(parameterMapperManager.toJdbc(null, null), is(nullValue())); assertThat(parameterMapperManager.toJdbc(true, null), is(true)); assertThat(parameterMapperManager.toJdbc((byte) 1, null), is((byte) 1)); assertThat(parameterMapperManager.toJdbc((short) 1, null), is((short) 1)); assertThat(parameterMapperManager.toJdbc(1, null), is(1)); assertThat(parameterMapperManager.toJdbc(1L, null), is(1L)); assertThat(parameterMapperManager.toJdbc(1F, null), is(1F)); assertThat(parameterMapperManager.toJdbc(1D, null), is(1D)); assertThat(parameterMapperManager.toJdbc(BigDecimal.TEN, null), is(BigDecimal.TEN)); assertThat(parameterMapperManager.toJdbc("A", null), is("A")); assertThat(parameterMapperManager.toJdbc(new byte[] { 1, 2 }, null), is(new byte[] { 1, 2 })); assertThat(parameterMapperManager.toJdbc(new java.sql.Date(1), null), is(new java.sql.Date(1))); assertThat(parameterMapperManager.toJdbc(new java.sql.Time(1), null), is(new java.sql.Time(1))); assertThat(parameterMapperManager.toJdbc(new java.sql.Timestamp(1), null), is(new java.sql.Timestamp(1))); var array = newProxy(java.sql.Array.class); assertThat(parameterMapperManager.toJdbc(array, null), is(array)); var ref = newProxy(java.sql.Ref.class); assertThat(parameterMapperManager.toJdbc(ref, null), is(ref)); var blob = newProxy(java.sql.Blob.class); assertThat(parameterMapperManager.toJdbc(blob, null), is(blob)); var clob = newProxy(java.sql.Clob.class); assertThat(parameterMapperManager.toJdbc(clob, null), is(clob)); var sqlxml = newProxy(java.sql.SQLXML.class); assertThat(parameterMapperManager.toJdbc(sqlxml, null), is(sqlxml)); var struct = newProxy(java.sql.Struct.class); assertThat(parameterMapperManager.toJdbc(struct, null), is(struct)); var object = new Object(); assertThat(parameterMapperManager.toJdbc(object, null), is(object)); var date = Date.from(LocalDate.parse("2000-01-01").atStartOfDay(ZoneId.systemDefault()).toInstant()); assertThat(parameterMapperManager.toJdbc(date, null), is(new java.sql.Timestamp(date.getTime()))); assertThat(parameterMapperManager.toJdbc(Month.APRIL, null), is(4)); } @Test public void testWithCustom() throws ParseException { var original = new BindParameterMapperManager(this.clock); original.addMapper(new EmptyStringToNullParameterMapper()); var mapper = new DateToStringParameterMapper(); original.addMapper(mapper); var parameterMapperManager = new BindParameterMapperManager(original, this.clock); var date = Date.from(LocalDate.parse("2000-01-01").atStartOfDay(this.clock.getZone()).toInstant()); assertThat(parameterMapperManager.toJdbc(date, null), is("20000101")); assertThat(parameterMapperManager.canAcceptByStandard(date), is(true)); parameterMapperManager.removeMapper(mapper); assertThat(parameterMapperManager.toJdbc(date, null), is(instanceOf(Timestamp.class))); } @Test public void testCustom() { var parameterMapperManager = new BindParameterMapperManager(this.clock); parameterMapperManager.addMapper(new BindParameterMapper<String>() { @Override public Class<String> targetType() { return String.class; } @Override public Object toJdbc(final String original, final Connection connection, final BindParameterMapperManager parameterMapperManager) { return original.toLowerCase(); } }); assertThat(parameterMapperManager.toJdbc("S", null), is("s")); assertThat(parameterMapperManager.toJdbc(true, null), is(true)); } @Test public void testCustomWithClock() { var parameterMapperManager = new BindParameterMapperManager(this.clock); parameterMapperManager.addMapper(new BindParameterMapperWithClock<String>() { private Clock clock; @Override public Class<String> targetType() { return String.class; } @Override public Object toJdbc(final String original, final Connection connection, final BindParameterMapperManager parameterMapperManager) { return original.toLowerCase(); } @Override public Clock getClock() { return this.clock; } @Override public void setClock(final Clock clock) { this.clock = clock; } }); assertThat(parameterMapperManager.toJdbc("S", null), is("s")); assertThat(parameterMapperManager.toJdbc(true, null), is(true)); } interface ProxyContainer { Object getOriginal(); } @SuppressWarnings("unchecked") private static <I> I newProxy(final Class<I> interfaceType) { var o = new Object(); Method getOriginal; try { getOriginal = ProxyContainer.class.getMethod("getOriginal"); } catch (NoSuchMethodException | SecurityException e) { throw new AssertionError(e); } var proxyInstance = (I) Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class<?>[] { interfaceType, ProxyContainer.class }, (proxy, method, args) -> { if (getOriginal.equals(method)) { return o; } for (int i = 0; i < args.length; i++) { if (args[i] instanceof ProxyContainer) { args[i] = ((ProxyContainer) args[i]).getOriginal(); } } return method.invoke(o, args); }); return proxyInstance; } }
Java
<?php namespace Ejimba\Pesapal\OAuth; class OAuthRequest { private $parameters; private $http_method; private $http_url; // for debug purposes public $base_string; public static $version = '1.0'; public static $POST_INPUT = 'php://input'; function __construct($http_method, $http_url, $parameters=NULL) { @$parameters or $parameters = array(); $this->parameters = $parameters; $this->http_method = $http_method; $this->http_url = $http_url; } /** * attempt to build up a request from what was passed to the server */ public static function from_request($http_method=NULL, $http_url=NULL, $parameters=NULL) { $scheme = (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on") ? 'http' : 'https'; @$http_url or $http_url = $scheme . '://' . $_SERVER['HTTP_HOST'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI']; @$http_method or $http_method = $_SERVER['REQUEST_METHOD']; // We weren't handed any parameters, so let's find the ones relevant to // this request. // If you run XML-RPC or similar you should use this to provide your own // parsed parameter-list if (!$parameters) { // Find request headers $request_headers = OAuthUtil::get_headers(); // Parse the query-string to find GET parameters $parameters = OAuthUtil::parse_parameters($_SERVER['QUERY_STRING']); // It's a POST request of the proper content-type, so parse POST // parameters and add those overriding any duplicates from GET if ($http_method == "POST" && @strstr($request_headers["Content-Type"], "application/x-www-form-urlencoded") ) { $post_data = OAuthUtil::parse_parameters( file_get_contents(self::$POST_INPUT) ); $parameters = array_merge($parameters, $post_data); } // We have a Authorization-header with OAuth data. Parse the header // and add those overriding any duplicates from GET or POST if (@substr($request_headers['Authorization'], 0, 6) == "OAuth ") { $header_parameters = OAuthUtil::split_header( $request_headers['Authorization'] ); $parameters = array_merge($parameters, $header_parameters); } } return new OAuthRequest($http_method, $http_url, $parameters); } /** * pretty much a helper function to set up the request */ public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters=NULL) { @$parameters or $parameters = array(); $defaults = array("oauth_version" => OAuthRequest::$version, "oauth_nonce" => OAuthRequest::generate_nonce(), "oauth_timestamp" => OAuthRequest::generate_timestamp(), "oauth_consumer_key" => $consumer->key); if ($token) $defaults['oauth_token'] = $token->key; $parameters = array_merge($defaults, $parameters); return new OAuthRequest($http_method, $http_url, $parameters); } public function set_parameter($name, $value, $allow_duplicates = true) { if ($allow_duplicates && isset($this->parameters[$name])) { // We have already added parameter(s) with this name, so add to the list if (is_scalar($this->parameters[$name])) { // This is the first duplicate, so transform scalar (string) // into an array so we can add the duplicates $this->parameters[$name] = array($this->parameters[$name]); } $this->parameters[$name][] = $value; } else { $this->parameters[$name] = $value; } } public function get_parameter($name) { return isset($this->parameters[$name]) ? $this->parameters[$name] : null; } public function get_parameters() { return $this->parameters; } public function unset_parameter($name) { unset($this->parameters[$name]); } /** * The request parameters, sorted and concatenated into a normalized string. * @return string */ public function get_signable_parameters() { // Grab all parameters $params = $this->parameters; // Remove oauth_signature if present // Ref: Spec: 9.1.1 ("The oauth_signature parameter MUST be excluded.") if (isset($params['oauth_signature'])) { unset($params['oauth_signature']); } return OAuthUtil::build_http_query($params); } /** * Returns the base string of this request * * The base string defined as the method, the url * and the parameters (normalized), each urlencoded * and the concated with &. */ public function get_signature_base_string() { $parts = array( $this->get_normalized_http_method(), $this->get_normalized_http_url(), $this->get_signable_parameters() ); $parts = OAuthUtil::urlencode_rfc3986($parts); return implode('&', $parts); } /** * just uppercases the http method */ public function get_normalized_http_method() { return strtoupper($this->http_method); } /** * parses the url and rebuilds it to be * scheme://host/path */ public function get_normalized_http_url() { $parts = parse_url($this->http_url); $port = @$parts['port']; $scheme = $parts['scheme']; $host = $parts['host']; $path = @$parts['path']; $port or $port = ($scheme == 'https') ? '443' : '80'; if (($scheme == 'https' && $port != '443') || ($scheme == 'http' && $port != '80')) { $host = "$host:$port"; } return "$scheme://$host$path"; } /** * builds a url usable for a GET request */ public function to_url() { $post_data = $this->to_postdata(); $out = $this->get_normalized_http_url(); if ($post_data) { $out .= '?'.$post_data; } return $out; } /** * builds the data one would send in a POST request */ public function to_postdata() { return OAuthUtil::build_http_query($this->parameters); } /** * builds the Authorization: header */ public function to_header() { $out ='Authorization: OAuth realm=""'; $total = array(); foreach ($this->parameters as $k => $v) { if (substr($k, 0, 5) != "oauth") continue; if (is_array($v)) { throw new OAuthException('Arrays not supported in headers'); } $out .= ',' . OAuthUtil::urlencode_rfc3986($k) . '="' . OAuthUtil::urlencode_rfc3986($v) . '"'; } return $out; } public function __toString() { return $this->to_url(); } public function sign_request($signature_method, $consumer, $token) { $this->set_parameter( "oauth_signature_method", $signature_method->get_name(), false ); $signature = $this->build_signature($signature_method, $consumer, $token); $this->set_parameter("oauth_signature", $signature, false); } public function build_signature($signature_method, $consumer, $token) { $signature = $signature_method->build_signature($this, $consumer, $token); return $signature; } /** * util function: current timestamp */ private static function generate_timestamp() { return time(); } /** * util function: current nonce */ private static function generate_nonce() { mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up. $charid = strtoupper(md5(uniqid(rand(), true))); $hyphen = chr(45);// "-" $uuid = chr(123)// "{" .substr($charid, 0, 8).$hyphen .substr($charid, 8, 4).$hyphen .substr($charid,12, 4).$hyphen .substr($charid,16, 4).$hyphen .substr($charid,20,12) .chr(125);// "}" return $uuid; } }
Java
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; __webpack_require__(1); var _jquery = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"jquery\""); e.code = 'MODULE_NOT_FOUND'; throw e; }())); var _jquery2 = _interopRequireDefault(_jquery); var _cats = __webpack_require__(327); var _cats2 = _interopRequireDefault(_cats); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } (0, _jquery2.default)('<h1>Cats</h1>').appendTo('body'); var ul = (0, _jquery2.default)('<ul></ul>').appendTo('body'); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = _cats2.default[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var cat = _step.value; (0, _jquery2.default)('<li></li>').text(cat).appendTo(ul); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {"use strict"; __webpack_require__(2); __webpack_require__(323); __webpack_require__(324); if (global._babelPolyfill) { throw new Error("only one instance of babel-polyfill is allowed"); } global._babelPolyfill = true; var DEFINE_PROPERTY = "defineProperty"; function define(O, key, value) { O[key] || Object[DEFINE_PROPERTY](O, key, { writable: true, configurable: true, value: value }); } define(String.prototype, "padLeft", "".padStart); define(String.prototype, "padRight", "".padEnd); "pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) { [][key] && define(Array, key, Function.call.bind([][key])); }); /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(3); __webpack_require__(51); __webpack_require__(52); __webpack_require__(53); __webpack_require__(54); __webpack_require__(56); __webpack_require__(59); __webpack_require__(60); __webpack_require__(61); __webpack_require__(62); __webpack_require__(63); __webpack_require__(64); __webpack_require__(65); __webpack_require__(66); __webpack_require__(67); __webpack_require__(69); __webpack_require__(71); __webpack_require__(73); __webpack_require__(75); __webpack_require__(78); __webpack_require__(79); __webpack_require__(80); __webpack_require__(84); __webpack_require__(86); __webpack_require__(88); __webpack_require__(91); __webpack_require__(92); __webpack_require__(93); __webpack_require__(94); __webpack_require__(96); __webpack_require__(97); __webpack_require__(98); __webpack_require__(99); __webpack_require__(100); __webpack_require__(101); __webpack_require__(102); __webpack_require__(104); __webpack_require__(105); __webpack_require__(106); __webpack_require__(108); __webpack_require__(109); __webpack_require__(110); __webpack_require__(112); __webpack_require__(114); __webpack_require__(115); __webpack_require__(116); __webpack_require__(117); __webpack_require__(118); __webpack_require__(119); __webpack_require__(120); __webpack_require__(121); __webpack_require__(122); __webpack_require__(123); __webpack_require__(124); __webpack_require__(125); __webpack_require__(126); __webpack_require__(131); __webpack_require__(132); __webpack_require__(136); __webpack_require__(137); __webpack_require__(138); __webpack_require__(139); __webpack_require__(141); __webpack_require__(142); __webpack_require__(143); __webpack_require__(144); __webpack_require__(145); __webpack_require__(146); __webpack_require__(147); __webpack_require__(148); __webpack_require__(149); __webpack_require__(150); __webpack_require__(151); __webpack_require__(152); __webpack_require__(153); __webpack_require__(154); __webpack_require__(155); __webpack_require__(157); __webpack_require__(158); __webpack_require__(160); __webpack_require__(161); __webpack_require__(167); __webpack_require__(168); __webpack_require__(170); __webpack_require__(171); __webpack_require__(172); __webpack_require__(176); __webpack_require__(177); __webpack_require__(178); __webpack_require__(179); __webpack_require__(180); __webpack_require__(182); __webpack_require__(183); __webpack_require__(184); __webpack_require__(185); __webpack_require__(188); __webpack_require__(190); __webpack_require__(191); __webpack_require__(192); __webpack_require__(194); __webpack_require__(196); __webpack_require__(198); __webpack_require__(199); __webpack_require__(200); __webpack_require__(202); __webpack_require__(203); __webpack_require__(204); __webpack_require__(205); __webpack_require__(216); __webpack_require__(220); __webpack_require__(221); __webpack_require__(223); __webpack_require__(224); __webpack_require__(228); __webpack_require__(229); __webpack_require__(231); __webpack_require__(232); __webpack_require__(233); __webpack_require__(234); __webpack_require__(235); __webpack_require__(236); __webpack_require__(237); __webpack_require__(238); __webpack_require__(239); __webpack_require__(240); __webpack_require__(241); __webpack_require__(242); __webpack_require__(243); __webpack_require__(244); __webpack_require__(245); __webpack_require__(246); __webpack_require__(247); __webpack_require__(248); __webpack_require__(249); __webpack_require__(251); __webpack_require__(252); __webpack_require__(253); __webpack_require__(254); __webpack_require__(255); __webpack_require__(257); __webpack_require__(258); __webpack_require__(259); __webpack_require__(261); __webpack_require__(262); __webpack_require__(263); __webpack_require__(264); __webpack_require__(265); __webpack_require__(266); __webpack_require__(267); __webpack_require__(268); __webpack_require__(270); __webpack_require__(271); __webpack_require__(273); __webpack_require__(274); __webpack_require__(275); __webpack_require__(276); __webpack_require__(279); __webpack_require__(280); __webpack_require__(282); __webpack_require__(283); __webpack_require__(284); __webpack_require__(285); __webpack_require__(287); __webpack_require__(288); __webpack_require__(289); __webpack_require__(290); __webpack_require__(291); __webpack_require__(292); __webpack_require__(293); __webpack_require__(294); __webpack_require__(295); __webpack_require__(296); __webpack_require__(298); __webpack_require__(299); __webpack_require__(300); __webpack_require__(301); __webpack_require__(302); __webpack_require__(303); __webpack_require__(304); __webpack_require__(305); __webpack_require__(306); __webpack_require__(307); __webpack_require__(308); __webpack_require__(310); __webpack_require__(311); __webpack_require__(312); __webpack_require__(313); __webpack_require__(314); __webpack_require__(315); __webpack_require__(316); __webpack_require__(317); __webpack_require__(318); __webpack_require__(319); __webpack_require__(320); __webpack_require__(321); __webpack_require__(322); module.exports = __webpack_require__(9); /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // ECMAScript 6 symbols shim var global = __webpack_require__(4); var has = __webpack_require__(5); var DESCRIPTORS = __webpack_require__(6); var $export = __webpack_require__(8); var redefine = __webpack_require__(18); var META = __webpack_require__(22).KEY; var $fails = __webpack_require__(7); var shared = __webpack_require__(23); var setToStringTag = __webpack_require__(25); var uid = __webpack_require__(19); var wks = __webpack_require__(26); var wksExt = __webpack_require__(27); var wksDefine = __webpack_require__(28); var enumKeys = __webpack_require__(29); var isArray = __webpack_require__(44); var anObject = __webpack_require__(12); var isObject = __webpack_require__(13); var toIObject = __webpack_require__(32); var toPrimitive = __webpack_require__(16); var createDesc = __webpack_require__(17); var _create = __webpack_require__(45); var gOPNExt = __webpack_require__(48); var $GOPD = __webpack_require__(50); var $DP = __webpack_require__(11); var $keys = __webpack_require__(30); var gOPD = $GOPD.f; var dP = $DP.f; var gOPN = gOPNExt.f; var $Symbol = global.Symbol; var $JSON = global.JSON; var _stringify = $JSON && $JSON.stringify; var PROTOTYPE = 'prototype'; var HIDDEN = wks('_hidden'); var TO_PRIMITIVE = wks('toPrimitive'); var isEnum = {}.propertyIsEnumerable; var SymbolRegistry = shared('symbol-registry'); var AllSymbols = shared('symbols'); var OPSymbols = shared('op-symbols'); var ObjectProto = Object[PROTOTYPE]; var USE_NATIVE = typeof $Symbol == 'function'; var QObject = global.QObject; // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 var setSymbolDesc = DESCRIPTORS && $fails(function () { return _create(dP({}, 'a', { get: function () { return dP(this, 'a', { value: 7 }).a; } })).a != 7; }) ? function (it, key, D) { var protoDesc = gOPD(ObjectProto, key); if (protoDesc) delete ObjectProto[key]; dP(it, key, D); if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); } : dP; var wrap = function (tag) { var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); sym._k = tag; return sym; }; var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { return typeof it == 'symbol'; } : function (it) { return it instanceof $Symbol; }; var $defineProperty = function defineProperty(it, key, D) { if (it === ObjectProto) $defineProperty(OPSymbols, key, D); anObject(it); key = toPrimitive(key, true); anObject(D); if (has(AllSymbols, key)) { if (!D.enumerable) { if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); it[HIDDEN][key] = true; } else { if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; D = _create(D, { enumerable: createDesc(0, false) }); } return setSymbolDesc(it, key, D); } return dP(it, key, D); }; var $defineProperties = function defineProperties(it, P) { anObject(it); var keys = enumKeys(P = toIObject(P)); var i = 0; var l = keys.length; var key; while (l > i) $defineProperty(it, key = keys[i++], P[key]); return it; }; var $create = function create(it, P) { return P === undefined ? _create(it) : $defineProperties(_create(it), P); }; var $propertyIsEnumerable = function propertyIsEnumerable(key) { var E = isEnum.call(this, key = toPrimitive(key, true)); if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { it = toIObject(it); key = toPrimitive(key, true); if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; var D = gOPD(it, key); if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; return D; }; var $getOwnPropertyNames = function getOwnPropertyNames(it) { var names = gOPN(toIObject(it)); var result = []; var i = 0; var key; while (names.length > i) { if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); } return result; }; var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { var IS_OP = it === ObjectProto; var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); var result = []; var i = 0; var key; while (names.length > i) { if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); } return result; }; // 19.4.1.1 Symbol([description]) if (!USE_NATIVE) { $Symbol = function Symbol() { if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); var tag = uid(arguments.length > 0 ? arguments[0] : undefined); var $set = function (value) { if (this === ObjectProto) $set.call(OPSymbols, value); if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDesc(this, tag, createDesc(1, value)); }; if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); return wrap(tag); }; redefine($Symbol[PROTOTYPE], 'toString', function toString() { return this._k; }); $GOPD.f = $getOwnPropertyDescriptor; $DP.f = $defineProperty; __webpack_require__(49).f = gOPNExt.f = $getOwnPropertyNames; __webpack_require__(43).f = $propertyIsEnumerable; __webpack_require__(42).f = $getOwnPropertySymbols; if (DESCRIPTORS && !__webpack_require__(24)) { redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); } wksExt.f = function (name) { return wrap(wks(name)); }; } $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); for (var es6Symbols = ( // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { // 19.4.2.1 Symbol.for(key) 'for': function (key) { return has(SymbolRegistry, key += '') ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); }, // 19.4.2.5 Symbol.keyFor(sym) keyFor: function keyFor(sym) { if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; }, useSetter: function () { setter = true; }, useSimple: function () { setter = false; } }); $export($export.S + $export.F * !USE_NATIVE, 'Object', { // 19.1.2.2 Object.create(O [, Properties]) create: $create, // 19.1.2.4 Object.defineProperty(O, P, Attributes) defineProperty: $defineProperty, // 19.1.2.3 Object.defineProperties(O, Properties) defineProperties: $defineProperties, // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) getOwnPropertyDescriptor: $getOwnPropertyDescriptor, // 19.1.2.7 Object.getOwnPropertyNames(O) getOwnPropertyNames: $getOwnPropertyNames, // 19.1.2.8 Object.getOwnPropertySymbols(O) getOwnPropertySymbols: $getOwnPropertySymbols }); // 24.3.2 JSON.stringify(value [, replacer [, space]]) $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { var S = $Symbol(); // MS Edge converts symbol values to JSON as {} // WebKit converts symbol values to JSON as null // V8 throws on boxed symbols return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; })), 'JSON', { stringify: function stringify(it) { var args = [it]; var i = 1; var replacer, $replacer; while (arguments.length > i) args.push(arguments[i++]); $replacer = replacer = args[1]; if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined if (!isArray(replacer)) replacer = function (key, value) { if (typeof $replacer == 'function') value = $replacer.call(this, key, value); if (!isSymbol(value)) return value; }; args[1] = replacer; return _stringify.apply($JSON, args); } }); // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(10)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); // 19.4.3.5 Symbol.prototype[@@toStringTag] setToStringTag($Symbol, 'Symbol'); // 20.2.1.9 Math[@@toStringTag] setToStringTag(Math, 'Math', true); // 24.3.3 JSON[@@toStringTag] setToStringTag(global.JSON, 'JSON', true); /***/ }), /* 4 */ /***/ (function(module, exports) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func : Function('return this')(); if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef /***/ }), /* 5 */ /***/ (function(module, exports) { var hasOwnProperty = {}.hasOwnProperty; module.exports = function (it, key) { return hasOwnProperty.call(it, key); }; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty module.exports = !__webpack_require__(7)(function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /* 7 */ /***/ (function(module, exports) { module.exports = function (exec) { try { return !!exec(); } catch (e) { return true; } }; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); var core = __webpack_require__(9); var hide = __webpack_require__(10); var redefine = __webpack_require__(18); var ctx = __webpack_require__(20); var PROTOTYPE = 'prototype'; var $export = function (type, name, source) { var IS_FORCED = type & $export.F; var IS_GLOBAL = type & $export.G; var IS_STATIC = type & $export.S; var IS_PROTO = type & $export.P; var IS_BIND = type & $export.B; var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); var key, own, out, exp; if (IS_GLOBAL) source = name; for (key in source) { // contains in native own = !IS_FORCED && target && target[key] !== undefined; // export native or passed out = (own ? target : source)[key]; // bind timers to global for call from export context exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // extend global if (target) redefine(target, key, out, type & $export.U); // export if (exports[key] != out) hide(exports, key, exp); if (IS_PROTO && expProto[key] != out) expProto[key] = out; } }; global.core = core; // type bitmap $export.F = 1; // forced $export.G = 2; // global $export.S = 4; // static $export.P = 8; // proto $export.B = 16; // bind $export.W = 32; // wrap $export.U = 64; // safe $export.R = 128; // real proto method for `library` module.exports = $export; /***/ }), /* 9 */ /***/ (function(module, exports) { var core = module.exports = { version: '2.5.7' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(11); var createDesc = __webpack_require__(17); module.exports = __webpack_require__(6) ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); } : function (object, key, value) { object[key] = value; return object; }; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(12); var IE8_DOM_DEFINE = __webpack_require__(14); var toPrimitive = __webpack_require__(16); var dP = Object.defineProperty; exports.f = __webpack_require__(6) ? Object.defineProperty : function defineProperty(O, P, Attributes) { anObject(O); P = toPrimitive(P, true); anObject(Attributes); if (IE8_DOM_DEFINE) try { return dP(O, P, Attributes); } catch (e) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(13); module.exports = function (it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; /***/ }), /* 13 */ /***/ (function(module, exports) { module.exports = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { module.exports = !__webpack_require__(6) && !__webpack_require__(7)(function () { return Object.defineProperty(__webpack_require__(15)('div'), 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(13); var document = __webpack_require__(4).document; // typeof document.createElement is 'object' in old IE var is = isObject(document) && isObject(document.createElement); module.exports = function (it) { return is ? document.createElement(it) : {}; }; /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) var isObject = __webpack_require__(13); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function (it, S) { if (!isObject(it)) return it; var fn, val; if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; throw TypeError("Can't convert object to primitive value"); }; /***/ }), /* 17 */ /***/ (function(module, exports) { module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; /***/ }), /* 18 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); var hide = __webpack_require__(10); var has = __webpack_require__(5); var SRC = __webpack_require__(19)('src'); var TO_STRING = 'toString'; var $toString = Function[TO_STRING]; var TPL = ('' + $toString).split(TO_STRING); __webpack_require__(9).inspectSource = function (it) { return $toString.call(it); }; (module.exports = function (O, key, val, safe) { var isFunction = typeof val == 'function'; if (isFunction) has(val, 'name') || hide(val, 'name', key); if (O[key] === val) return; if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); if (O === global) { O[key] = val; } else if (!safe) { delete O[key]; hide(O, key, val); } else if (O[key]) { O[key] = val; } else { hide(O, key, val); } // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, TO_STRING, function toString() { return typeof this == 'function' && this[SRC] || $toString.call(this); }); /***/ }), /* 19 */ /***/ (function(module, exports) { var id = 0; var px = Math.random(); module.exports = function (key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { // optional / simple context binding var aFunction = __webpack_require__(21); module.exports = function (fn, that, length) { aFunction(fn); if (that === undefined) return fn; switch (length) { case 1: return function (a) { return fn.call(that, a); }; case 2: return function (a, b) { return fn.call(that, a, b); }; case 3: return function (a, b, c) { return fn.call(that, a, b, c); }; } return function (/* ...args */) { return fn.apply(that, arguments); }; }; /***/ }), /* 21 */ /***/ (function(module, exports) { module.exports = function (it) { if (typeof it != 'function') throw TypeError(it + ' is not a function!'); return it; }; /***/ }), /* 22 */ /***/ (function(module, exports, __webpack_require__) { var META = __webpack_require__(19)('meta'); var isObject = __webpack_require__(13); var has = __webpack_require__(5); var setDesc = __webpack_require__(11).f; var id = 0; var isExtensible = Object.isExtensible || function () { return true; }; var FREEZE = !__webpack_require__(7)(function () { return isExtensible(Object.preventExtensions({})); }); var setMeta = function (it) { setDesc(it, META, { value: { i: 'O' + ++id, // object ID w: {} // weak collections IDs } }); }; var fastKey = function (it, create) { // return primitive with prefix if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return 'F'; // not necessary to add metadata if (!create) return 'E'; // add missing metadata setMeta(it); // return object ID } return it[META].i; }; var getWeak = function (it, create) { if (!has(it, META)) { // can't set metadata to uncaught frozen object if (!isExtensible(it)) return true; // not necessary to add metadata if (!create) return false; // add missing metadata setMeta(it); // return hash weak collections IDs } return it[META].w; }; // add metadata on freeze-family methods calling var onFreeze = function (it) { if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); return it; }; var meta = module.exports = { KEY: META, NEED: false, fastKey: fastKey, getWeak: getWeak, onFreeze: onFreeze }; /***/ }), /* 23 */ /***/ (function(module, exports, __webpack_require__) { var core = __webpack_require__(9); var global = __webpack_require__(4); var SHARED = '__core-js_shared__'; var store = global[SHARED] || (global[SHARED] = {}); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ version: core.version, mode: __webpack_require__(24) ? 'pure' : 'global', copyright: '© 2018 Denis Pushkarev (zloirock.ru)' }); /***/ }), /* 24 */ /***/ (function(module, exports) { module.exports = false; /***/ }), /* 25 */ /***/ (function(module, exports, __webpack_require__) { var def = __webpack_require__(11).f; var has = __webpack_require__(5); var TAG = __webpack_require__(26)('toStringTag'); module.exports = function (it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); }; /***/ }), /* 26 */ /***/ (function(module, exports, __webpack_require__) { var store = __webpack_require__(23)('wks'); var uid = __webpack_require__(19); var Symbol = __webpack_require__(4).Symbol; var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; /***/ }), /* 27 */ /***/ (function(module, exports, __webpack_require__) { exports.f = __webpack_require__(26); /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); var core = __webpack_require__(9); var LIBRARY = __webpack_require__(24); var wksExt = __webpack_require__(27); var defineProperty = __webpack_require__(11).f; module.exports = function (name) { var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); }; /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { // all enumerable object keys, includes symbols var getKeys = __webpack_require__(30); var gOPS = __webpack_require__(42); var pIE = __webpack_require__(43); module.exports = function (it) { var result = getKeys(it); var getSymbols = gOPS.f; if (getSymbols) { var symbols = getSymbols(it); var isEnum = pIE.f; var i = 0; var key; while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); } return result; }; /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) var $keys = __webpack_require__(31); var enumBugKeys = __webpack_require__(41); module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); }; /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { var has = __webpack_require__(5); var toIObject = __webpack_require__(32); var arrayIndexOf = __webpack_require__(36)(false); var IE_PROTO = __webpack_require__(40)('IE_PROTO'); module.exports = function (object, names) { var O = toIObject(object); var i = 0; var result = []; var key; for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); // Don't enum bug & hidden keys while (names.length > i) if (has(O, key = names[i++])) { ~arrayIndexOf(result, key) || result.push(key); } return result; }; /***/ }), /* 32 */ /***/ (function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings var IObject = __webpack_require__(33); var defined = __webpack_require__(35); module.exports = function (it) { return IObject(defined(it)); }; /***/ }), /* 33 */ /***/ (function(module, exports, __webpack_require__) { // fallback for non-array-like ES3 and non-enumerable old V8 strings var cof = __webpack_require__(34); // eslint-disable-next-line no-prototype-builtins module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { return cof(it) == 'String' ? it.split('') : Object(it); }; /***/ }), /* 34 */ /***/ (function(module, exports) { var toString = {}.toString; module.exports = function (it) { return toString.call(it).slice(8, -1); }; /***/ }), /* 35 */ /***/ (function(module, exports) { // 7.2.1 RequireObjectCoercible(argument) module.exports = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; /***/ }), /* 36 */ /***/ (function(module, exports, __webpack_require__) { // false -> Array#indexOf // true -> Array#includes var toIObject = __webpack_require__(32); var toLength = __webpack_require__(37); var toAbsoluteIndex = __webpack_require__(39); module.exports = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIObject($this); var length = toLength(O.length); var index = toAbsoluteIndex(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm // eslint-disable-next-line no-self-compare if (IS_INCLUDES && el != el) while (length > index) { value = O[index++]; // eslint-disable-next-line no-self-compare if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not } else for (;length > index; index++) if (IS_INCLUDES || index in O) { if (O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; /***/ }), /* 37 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.15 ToLength var toInteger = __webpack_require__(38); var min = Math.min; module.exports = function (it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; /***/ }), /* 38 */ /***/ (function(module, exports) { // 7.1.4 ToInteger var ceil = Math.ceil; var floor = Math.floor; module.exports = function (it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(38); var max = Math.max; var min = Math.min; module.exports = function (index, length) { index = toInteger(index); return index < 0 ? max(index + length, 0) : min(index, length); }; /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { var shared = __webpack_require__(23)('keys'); var uid = __webpack_require__(19); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; /***/ }), /* 41 */ /***/ (function(module, exports) { // IE 8- don't enum bug keys module.exports = ( 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' ).split(','); /***/ }), /* 42 */ /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), /* 43 */ /***/ (function(module, exports) { exports.f = {}.propertyIsEnumerable; /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { // 7.2.2 IsArray(argument) var cof = __webpack_require__(34); module.exports = Array.isArray || function isArray(arg) { return cof(arg) == 'Array'; }; /***/ }), /* 45 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = __webpack_require__(12); var dPs = __webpack_require__(46); var enumBugKeys = __webpack_require__(41); var IE_PROTO = __webpack_require__(40)('IE_PROTO'); var Empty = function () { /* empty */ }; var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype var createDict = function () { // Thrash, waste and sodomy: IE GC bug var iframe = __webpack_require__(15)('iframe'); var i = enumBugKeys.length; var lt = '<'; var gt = '>'; var iframeDocument; iframe.style.display = 'none'; __webpack_require__(47).appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); iframeDocument.close(); createDict = iframeDocument.F; while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; return createDict(); }; module.exports = Object.create || function create(O, Properties) { var result; if (O !== null) { Empty[PROTOTYPE] = anObject(O); result = new Empty(); Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; } else result = createDict(); return Properties === undefined ? result : dPs(result, Properties); }; /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(11); var anObject = __webpack_require__(12); var getKeys = __webpack_require__(30); module.exports = __webpack_require__(6) ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); var keys = getKeys(Properties); var length = keys.length; var i = 0; var P; while (length > i) dP.f(O, P = keys[i++], Properties[P]); return O; }; /***/ }), /* 47 */ /***/ (function(module, exports, __webpack_require__) { var document = __webpack_require__(4).document; module.exports = document && document.documentElement; /***/ }), /* 48 */ /***/ (function(module, exports, __webpack_require__) { // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window var toIObject = __webpack_require__(32); var gOPN = __webpack_require__(49).f; var toString = {}.toString; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function (it) { try { return gOPN(it); } catch (e) { return windowNames.slice(); } }; module.exports.f = function getOwnPropertyNames(it) { return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); }; /***/ }), /* 49 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) var $keys = __webpack_require__(31); var hiddenKeys = __webpack_require__(41).concat('length', 'prototype'); exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return $keys(O, hiddenKeys); }; /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { var pIE = __webpack_require__(43); var createDesc = __webpack_require__(17); var toIObject = __webpack_require__(32); var toPrimitive = __webpack_require__(16); var has = __webpack_require__(5); var IE8_DOM_DEFINE = __webpack_require__(14); var gOPD = Object.getOwnPropertyDescriptor; exports.f = __webpack_require__(6) ? gOPD : function getOwnPropertyDescriptor(O, P) { O = toIObject(O); P = toPrimitive(P, true); if (IE8_DOM_DEFINE) try { return gOPD(O, P); } catch (e) { /* empty */ } if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); }; /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) $export($export.S, 'Object', { create: __webpack_require__(45) }); /***/ }), /* 52 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) $export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperty: __webpack_require__(11).f }); /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) $export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperties: __webpack_require__(46) }); /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) var toIObject = __webpack_require__(32); var $getOwnPropertyDescriptor = __webpack_require__(50).f; __webpack_require__(55)('getOwnPropertyDescriptor', function () { return function getOwnPropertyDescriptor(it, key) { return $getOwnPropertyDescriptor(toIObject(it), key); }; }); /***/ }), /* 55 */ /***/ (function(module, exports, __webpack_require__) { // most Object methods by ES6 should accept primitives var $export = __webpack_require__(8); var core = __webpack_require__(9); var fails = __webpack_require__(7); module.exports = function (KEY, exec) { var fn = (core.Object || {})[KEY] || Object[KEY]; var exp = {}; exp[KEY] = exec(fn); $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); }; /***/ }), /* 56 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 Object.getPrototypeOf(O) var toObject = __webpack_require__(57); var $getPrototypeOf = __webpack_require__(58); __webpack_require__(55)('getPrototypeOf', function () { return function getPrototypeOf(it) { return $getPrototypeOf(toObject(it)); }; }); /***/ }), /* 57 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.13 ToObject(argument) var defined = __webpack_require__(35); module.exports = function (it) { return Object(defined(it)); }; /***/ }), /* 58 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) var has = __webpack_require__(5); var toObject = __webpack_require__(57); var IE_PROTO = __webpack_require__(40)('IE_PROTO'); var ObjectProto = Object.prototype; module.exports = Object.getPrototypeOf || function (O) { O = toObject(O); if (has(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; } return O instanceof Object ? ObjectProto : null; }; /***/ }), /* 59 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 Object.keys(O) var toObject = __webpack_require__(57); var $keys = __webpack_require__(30); __webpack_require__(55)('keys', function () { return function keys(it) { return $keys(toObject(it)); }; }); /***/ }), /* 60 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.7 Object.getOwnPropertyNames(O) __webpack_require__(55)('getOwnPropertyNames', function () { return __webpack_require__(48).f; }); /***/ }), /* 61 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.5 Object.freeze(O) var isObject = __webpack_require__(13); var meta = __webpack_require__(22).onFreeze; __webpack_require__(55)('freeze', function ($freeze) { return function freeze(it) { return $freeze && isObject(it) ? $freeze(meta(it)) : it; }; }); /***/ }), /* 62 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.17 Object.seal(O) var isObject = __webpack_require__(13); var meta = __webpack_require__(22).onFreeze; __webpack_require__(55)('seal', function ($seal) { return function seal(it) { return $seal && isObject(it) ? $seal(meta(it)) : it; }; }); /***/ }), /* 63 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.15 Object.preventExtensions(O) var isObject = __webpack_require__(13); var meta = __webpack_require__(22).onFreeze; __webpack_require__(55)('preventExtensions', function ($preventExtensions) { return function preventExtensions(it) { return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it; }; }); /***/ }), /* 64 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.12 Object.isFrozen(O) var isObject = __webpack_require__(13); __webpack_require__(55)('isFrozen', function ($isFrozen) { return function isFrozen(it) { return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true; }; }); /***/ }), /* 65 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.13 Object.isSealed(O) var isObject = __webpack_require__(13); __webpack_require__(55)('isSealed', function ($isSealed) { return function isSealed(it) { return isObject(it) ? $isSealed ? $isSealed(it) : false : true; }; }); /***/ }), /* 66 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.11 Object.isExtensible(O) var isObject = __webpack_require__(13); __webpack_require__(55)('isExtensible', function ($isExtensible) { return function isExtensible(it) { return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false; }; }); /***/ }), /* 67 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.1 Object.assign(target, source) var $export = __webpack_require__(8); $export($export.S + $export.F, 'Object', { assign: __webpack_require__(68) }); /***/ }), /* 68 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 19.1.2.1 Object.assign(target, source, ...) var getKeys = __webpack_require__(30); var gOPS = __webpack_require__(42); var pIE = __webpack_require__(43); var toObject = __webpack_require__(57); var IObject = __webpack_require__(33); var $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug) module.exports = !$assign || __webpack_require__(7)(function () { var A = {}; var B = {}; // eslint-disable-next-line no-undef var S = Symbol(); var K = 'abcdefghijklmnopqrst'; A[S] = 7; K.split('').forEach(function (k) { B[k] = k; }); return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; }) ? function assign(target, source) { // eslint-disable-line no-unused-vars var T = toObject(target); var aLen = arguments.length; var index = 1; var getSymbols = gOPS.f; var isEnum = pIE.f; while (aLen > index) { var S = IObject(arguments[index++]); var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); var length = keys.length; var j = 0; var key; while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; } return T; } : $assign; /***/ }), /* 69 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.10 Object.is(value1, value2) var $export = __webpack_require__(8); $export($export.S, 'Object', { is: __webpack_require__(70) }); /***/ }), /* 70 */ /***/ (function(module, exports) { // 7.2.9 SameValue(x, y) module.exports = Object.is || function is(x, y) { // eslint-disable-next-line no-self-compare return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; /***/ }), /* 71 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.19 Object.setPrototypeOf(O, proto) var $export = __webpack_require__(8); $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(72).set }); /***/ }), /* 72 */ /***/ (function(module, exports, __webpack_require__) { // Works with __proto__ only. Old v8 can't work with null proto objects. /* eslint-disable no-proto */ var isObject = __webpack_require__(13); var anObject = __webpack_require__(12); var check = function (O, proto) { anObject(O); if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); }; module.exports = { set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line function (test, buggy, set) { try { set = __webpack_require__(20)(Function.call, __webpack_require__(50).f(Object.prototype, '__proto__').set, 2); set(test, []); buggy = !(test instanceof Array); } catch (e) { buggy = true; } return function setPrototypeOf(O, proto) { check(O, proto); if (buggy) O.__proto__ = proto; else set(O, proto); return O; }; }({}, false) : undefined), check: check }; /***/ }), /* 73 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 19.1.3.6 Object.prototype.toString() var classof = __webpack_require__(74); var test = {}; test[__webpack_require__(26)('toStringTag')] = 'z'; if (test + '' != '[object z]') { __webpack_require__(18)(Object.prototype, 'toString', function toString() { return '[object ' + classof(this) + ']'; }, true); } /***/ }), /* 74 */ /***/ (function(module, exports, __webpack_require__) { // getting tag from 19.1.3.6 Object.prototype.toString() var cof = __webpack_require__(34); var TAG = __webpack_require__(26)('toStringTag'); // ES3 wrong here var ARG = cof(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error var tryGet = function (it, key) { try { return it[key]; } catch (e) { /* empty */ } }; module.exports = function (it) { var O, T, B; return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T // builtinTag case : ARG ? cof(O) // ES3 arguments fallback : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; }; /***/ }), /* 75 */ /***/ (function(module, exports, __webpack_require__) { // 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...) var $export = __webpack_require__(8); $export($export.P, 'Function', { bind: __webpack_require__(76) }); /***/ }), /* 76 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var aFunction = __webpack_require__(21); var isObject = __webpack_require__(13); var invoke = __webpack_require__(77); var arraySlice = [].slice; var factories = {}; var construct = function (F, len, args) { if (!(len in factories)) { for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; // eslint-disable-next-line no-new-func factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); } return factories[len](F, args); }; module.exports = Function.bind || function bind(that /* , ...args */) { var fn = aFunction(this); var partArgs = arraySlice.call(arguments, 1); var bound = function (/* args... */) { var args = partArgs.concat(arraySlice.call(arguments)); return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); }; if (isObject(fn.prototype)) bound.prototype = fn.prototype; return bound; }; /***/ }), /* 77 */ /***/ (function(module, exports) { // fast apply, http://jsperf.lnkit.com/fast-apply/5 module.exports = function (fn, args, that) { var un = that === undefined; switch (args.length) { case 0: return un ? fn() : fn.call(that); case 1: return un ? fn(args[0]) : fn.call(that, args[0]); case 2: return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]); case 3: return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]); case 4: return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]); } return fn.apply(that, args); }; /***/ }), /* 78 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(11).f; var FProto = Function.prototype; var nameRE = /^\s*function ([^ (]*)/; var NAME = 'name'; // 19.2.4.2 name NAME in FProto || __webpack_require__(6) && dP(FProto, NAME, { configurable: true, get: function () { try { return ('' + this).match(nameRE)[1]; } catch (e) { return ''; } } }); /***/ }), /* 79 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var isObject = __webpack_require__(13); var getPrototypeOf = __webpack_require__(58); var HAS_INSTANCE = __webpack_require__(26)('hasInstance'); var FunctionProto = Function.prototype; // 19.2.3.6 Function.prototype[@@hasInstance](V) if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(11).f(FunctionProto, HAS_INSTANCE, { value: function (O) { if (typeof this != 'function' || !isObject(O)) return false; if (!isObject(this.prototype)) return O instanceof this; // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: while (O = getPrototypeOf(O)) if (this.prototype === O) return true; return false; } }); /***/ }), /* 80 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var $parseInt = __webpack_require__(81); // 18.2.5 parseInt(string, radix) $export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt }); /***/ }), /* 81 */ /***/ (function(module, exports, __webpack_require__) { var $parseInt = __webpack_require__(4).parseInt; var $trim = __webpack_require__(82).trim; var ws = __webpack_require__(83); var hex = /^[-+]?0[xX]/; module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { var string = $trim(String(str), 3); return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); } : $parseInt; /***/ }), /* 82 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var defined = __webpack_require__(35); var fails = __webpack_require__(7); var spaces = __webpack_require__(83); var space = '[' + spaces + ']'; var non = '\u200b\u0085'; var ltrim = RegExp('^' + space + space + '*'); var rtrim = RegExp(space + space + '*$'); var exporter = function (KEY, exec, ALIAS) { var exp = {}; var FORCE = fails(function () { return !!spaces[KEY]() || non[KEY]() != non; }); var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; if (ALIAS) exp[ALIAS] = fn; $export($export.P + $export.F * FORCE, 'String', exp); }; // 1 -> String#trimLeft // 2 -> String#trimRight // 3 -> String#trim var trim = exporter.trim = function (string, TYPE) { string = String(defined(string)); if (TYPE & 1) string = string.replace(ltrim, ''); if (TYPE & 2) string = string.replace(rtrim, ''); return string; }; module.exports = exporter; /***/ }), /* 83 */ /***/ (function(module, exports) { module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; /***/ }), /* 84 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var $parseFloat = __webpack_require__(85); // 18.2.4 parseFloat(string) $export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat }); /***/ }), /* 85 */ /***/ (function(module, exports, __webpack_require__) { var $parseFloat = __webpack_require__(4).parseFloat; var $trim = __webpack_require__(82).trim; module.exports = 1 / $parseFloat(__webpack_require__(83) + '-0') !== -Infinity ? function parseFloat(str) { var string = $trim(String(str), 3); var result = $parseFloat(string); return result === 0 && string.charAt(0) == '-' ? -0 : result; } : $parseFloat; /***/ }), /* 86 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var global = __webpack_require__(4); var has = __webpack_require__(5); var cof = __webpack_require__(34); var inheritIfRequired = __webpack_require__(87); var toPrimitive = __webpack_require__(16); var fails = __webpack_require__(7); var gOPN = __webpack_require__(49).f; var gOPD = __webpack_require__(50).f; var dP = __webpack_require__(11).f; var $trim = __webpack_require__(82).trim; var NUMBER = 'Number'; var $Number = global[NUMBER]; var Base = $Number; var proto = $Number.prototype; // Opera ~12 has broken Object#toString var BROKEN_COF = cof(__webpack_require__(45)(proto)) == NUMBER; var TRIM = 'trim' in String.prototype; // 7.1.3 ToNumber(argument) var toNumber = function (argument) { var it = toPrimitive(argument, false); if (typeof it == 'string' && it.length > 2) { it = TRIM ? it.trim() : $trim(it, 3); var first = it.charCodeAt(0); var third, radix, maxCode; if (first === 43 || first === 45) { third = it.charCodeAt(2); if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix } else if (first === 48) { switch (it.charCodeAt(1)) { case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i default: return +it; } for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { code = digits.charCodeAt(i); // parseInt parses a string to a first unavailable symbol // but ToNumber should return NaN if a string contains unavailable symbols if (code < 48 || code > maxCode) return NaN; } return parseInt(digits, radix); } } return +it; }; if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { $Number = function Number(value) { var it = arguments.length < 1 ? 0 : value; var that = this; return that instanceof $Number // check on 1..constructor(foo) case && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); }; for (var keys = __webpack_require__(6) ? gOPN(Base) : ( // ES3: 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES6 (in case, if modules with ES6 Number statics required before): 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' ).split(','), j = 0, key; keys.length > j; j++) { if (has(Base, key = keys[j]) && !has($Number, key)) { dP($Number, key, gOPD(Base, key)); } } $Number.prototype = proto; proto.constructor = $Number; __webpack_require__(18)(global, NUMBER, $Number); } /***/ }), /* 87 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(13); var setPrototypeOf = __webpack_require__(72).set; module.exports = function (that, target, C) { var S = target.constructor; var P; if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { setPrototypeOf(that, P); } return that; }; /***/ }), /* 88 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var toInteger = __webpack_require__(38); var aNumberValue = __webpack_require__(89); var repeat = __webpack_require__(90); var $toFixed = 1.0.toFixed; var floor = Math.floor; var data = [0, 0, 0, 0, 0, 0]; var ERROR = 'Number.toFixed: incorrect invocation!'; var ZERO = '0'; var multiply = function (n, c) { var i = -1; var c2 = c; while (++i < 6) { c2 += n * data[i]; data[i] = c2 % 1e7; c2 = floor(c2 / 1e7); } }; var divide = function (n) { var i = 6; var c = 0; while (--i >= 0) { c += data[i]; data[i] = floor(c / n); c = (c % n) * 1e7; } }; var numToString = function () { var i = 6; var s = ''; while (--i >= 0) { if (s !== '' || i === 0 || data[i] !== 0) { var t = String(data[i]); s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t; } } return s; }; var pow = function (x, n, acc) { return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); }; var log = function (x) { var n = 0; var x2 = x; while (x2 >= 4096) { n += 12; x2 /= 4096; } while (x2 >= 2) { n += 1; x2 /= 2; } return n; }; $export($export.P + $export.F * (!!$toFixed && ( 0.00008.toFixed(3) !== '0.000' || 0.9.toFixed(0) !== '1' || 1.255.toFixed(2) !== '1.25' || 1000000000000000128.0.toFixed(0) !== '1000000000000000128' ) || !__webpack_require__(7)(function () { // V8 ~ Android 4.3- $toFixed.call({}); })), 'Number', { toFixed: function toFixed(fractionDigits) { var x = aNumberValue(this, ERROR); var f = toInteger(fractionDigits); var s = ''; var m = ZERO; var e, z, j, k; if (f < 0 || f > 20) throw RangeError(ERROR); // eslint-disable-next-line no-self-compare if (x != x) return 'NaN'; if (x <= -1e21 || x >= 1e21) return String(x); if (x < 0) { s = '-'; x = -x; } if (x > 1e-21) { e = log(x * pow(2, 69, 1)) - 69; z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1); z *= 0x10000000000000; e = 52 - e; if (e > 0) { multiply(0, z); j = f; while (j >= 7) { multiply(1e7, 0); j -= 7; } multiply(pow(10, j, 1), 0); j = e - 1; while (j >= 23) { divide(1 << 23); j -= 23; } divide(1 << j); multiply(1, 1); divide(2); m = numToString(); } else { multiply(0, z); multiply(1 << -e, 0); m = numToString() + repeat.call(ZERO, f); } } if (f > 0) { k = m.length; m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f)); } else { m = s + m; } return m; } }); /***/ }), /* 89 */ /***/ (function(module, exports, __webpack_require__) { var cof = __webpack_require__(34); module.exports = function (it, msg) { if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg); return +it; }; /***/ }), /* 90 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var toInteger = __webpack_require__(38); var defined = __webpack_require__(35); module.exports = function repeat(count) { var str = String(defined(this)); var res = ''; var n = toInteger(count); if (n < 0 || n == Infinity) throw RangeError("Count can't be negative"); for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str; return res; }; /***/ }), /* 91 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $fails = __webpack_require__(7); var aNumberValue = __webpack_require__(89); var $toPrecision = 1.0.toPrecision; $export($export.P + $export.F * ($fails(function () { // IE7- return $toPrecision.call(1, undefined) !== '1'; }) || !$fails(function () { // V8 ~ Android 4.3- $toPrecision.call({}); })), 'Number', { toPrecision: function toPrecision(precision) { var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!'); return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision); } }); /***/ }), /* 92 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.1 Number.EPSILON var $export = __webpack_require__(8); $export($export.S, 'Number', { EPSILON: Math.pow(2, -52) }); /***/ }), /* 93 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.2 Number.isFinite(number) var $export = __webpack_require__(8); var _isFinite = __webpack_require__(4).isFinite; $export($export.S, 'Number', { isFinite: function isFinite(it) { return typeof it == 'number' && _isFinite(it); } }); /***/ }), /* 94 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.3 Number.isInteger(number) var $export = __webpack_require__(8); $export($export.S, 'Number', { isInteger: __webpack_require__(95) }); /***/ }), /* 95 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.3 Number.isInteger(number) var isObject = __webpack_require__(13); var floor = Math.floor; module.exports = function isInteger(it) { return !isObject(it) && isFinite(it) && floor(it) === it; }; /***/ }), /* 96 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.4 Number.isNaN(number) var $export = __webpack_require__(8); $export($export.S, 'Number', { isNaN: function isNaN(number) { // eslint-disable-next-line no-self-compare return number != number; } }); /***/ }), /* 97 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.5 Number.isSafeInteger(number) var $export = __webpack_require__(8); var isInteger = __webpack_require__(95); var abs = Math.abs; $export($export.S, 'Number', { isSafeInteger: function isSafeInteger(number) { return isInteger(number) && abs(number) <= 0x1fffffffffffff; } }); /***/ }), /* 98 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.6 Number.MAX_SAFE_INTEGER var $export = __webpack_require__(8); $export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); /***/ }), /* 99 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.10 Number.MIN_SAFE_INTEGER var $export = __webpack_require__(8); $export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); /***/ }), /* 100 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var $parseFloat = __webpack_require__(85); // 20.1.2.12 Number.parseFloat(string) $export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat }); /***/ }), /* 101 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var $parseInt = __webpack_require__(81); // 20.1.2.13 Number.parseInt(string, radix) $export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt }); /***/ }), /* 102 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.3 Math.acosh(x) var $export = __webpack_require__(8); var log1p = __webpack_require__(103); var sqrt = Math.sqrt; var $acosh = Math.acosh; $export($export.S + $export.F * !($acosh // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 && Math.floor($acosh(Number.MAX_VALUE)) == 710 // Tor Browser bug: Math.acosh(Infinity) -> NaN && $acosh(Infinity) == Infinity ), 'Math', { acosh: function acosh(x) { return (x = +x) < 1 ? NaN : x > 94906265.62425156 ? Math.log(x) + Math.LN2 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); } }); /***/ }), /* 103 */ /***/ (function(module, exports) { // 20.2.2.20 Math.log1p(x) module.exports = Math.log1p || function log1p(x) { return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); }; /***/ }), /* 104 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.5 Math.asinh(x) var $export = __webpack_require__(8); var $asinh = Math.asinh; function asinh(x) { return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1)); } // Tor Browser bug: Math.asinh(0) -> -0 $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh }); /***/ }), /* 105 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.7 Math.atanh(x) var $export = __webpack_require__(8); var $atanh = Math.atanh; // Tor Browser bug: Math.atanh(-0) -> 0 $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { atanh: function atanh(x) { return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2; } }); /***/ }), /* 106 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.9 Math.cbrt(x) var $export = __webpack_require__(8); var sign = __webpack_require__(107); $export($export.S, 'Math', { cbrt: function cbrt(x) { return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3); } }); /***/ }), /* 107 */ /***/ (function(module, exports) { // 20.2.2.28 Math.sign(x) module.exports = Math.sign || function sign(x) { // eslint-disable-next-line no-self-compare return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; }; /***/ }), /* 108 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.11 Math.clz32(x) var $export = __webpack_require__(8); $export($export.S, 'Math', { clz32: function clz32(x) { return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32; } }); /***/ }), /* 109 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.12 Math.cosh(x) var $export = __webpack_require__(8); var exp = Math.exp; $export($export.S, 'Math', { cosh: function cosh(x) { return (exp(x = +x) + exp(-x)) / 2; } }); /***/ }), /* 110 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.14 Math.expm1(x) var $export = __webpack_require__(8); var $expm1 = __webpack_require__(111); $export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 }); /***/ }), /* 111 */ /***/ (function(module, exports) { // 20.2.2.14 Math.expm1(x) var $expm1 = Math.expm1; module.exports = (!$expm1 // Old FF bug || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 // Tor Browser bug || $expm1(-2e-17) != -2e-17 ) ? function expm1(x) { return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; } : $expm1; /***/ }), /* 112 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.16 Math.fround(x) var $export = __webpack_require__(8); $export($export.S, 'Math', { fround: __webpack_require__(113) }); /***/ }), /* 113 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.16 Math.fround(x) var sign = __webpack_require__(107); var pow = Math.pow; var EPSILON = pow(2, -52); var EPSILON32 = pow(2, -23); var MAX32 = pow(2, 127) * (2 - EPSILON32); var MIN32 = pow(2, -126); var roundTiesToEven = function (n) { return n + 1 / EPSILON - 1 / EPSILON; }; module.exports = Math.fround || function fround(x) { var $abs = Math.abs(x); var $sign = sign(x); var a, result; if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32; a = (1 + EPSILON32 / EPSILON) * $abs; result = a - (a - $abs); // eslint-disable-next-line no-self-compare if (result > MAX32 || result != result) return $sign * Infinity; return $sign * result; }; /***/ }), /* 114 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) var $export = __webpack_require__(8); var abs = Math.abs; $export($export.S, 'Math', { hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars var sum = 0; var i = 0; var aLen = arguments.length; var larg = 0; var arg, div; while (i < aLen) { arg = abs(arguments[i++]); if (larg < arg) { div = larg / arg; sum = sum * div * div + 1; larg = arg; } else if (arg > 0) { div = arg / larg; sum += div * div; } else sum += arg; } return larg === Infinity ? Infinity : larg * Math.sqrt(sum); } }); /***/ }), /* 115 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.18 Math.imul(x, y) var $export = __webpack_require__(8); var $imul = Math.imul; // some WebKit versions fails with big numbers, some has wrong arity $export($export.S + $export.F * __webpack_require__(7)(function () { return $imul(0xffffffff, 5) != -5 || $imul.length != 2; }), 'Math', { imul: function imul(x, y) { var UINT16 = 0xffff; var xn = +x; var yn = +y; var xl = UINT16 & xn; var yl = UINT16 & yn; return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0); } }); /***/ }), /* 116 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.21 Math.log10(x) var $export = __webpack_require__(8); $export($export.S, 'Math', { log10: function log10(x) { return Math.log(x) * Math.LOG10E; } }); /***/ }), /* 117 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.20 Math.log1p(x) var $export = __webpack_require__(8); $export($export.S, 'Math', { log1p: __webpack_require__(103) }); /***/ }), /* 118 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.22 Math.log2(x) var $export = __webpack_require__(8); $export($export.S, 'Math', { log2: function log2(x) { return Math.log(x) / Math.LN2; } }); /***/ }), /* 119 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.28 Math.sign(x) var $export = __webpack_require__(8); $export($export.S, 'Math', { sign: __webpack_require__(107) }); /***/ }), /* 120 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.30 Math.sinh(x) var $export = __webpack_require__(8); var expm1 = __webpack_require__(111); var exp = Math.exp; // V8 near Chromium 38 has a problem with very small numbers $export($export.S + $export.F * __webpack_require__(7)(function () { return !Math.sinh(-2e-17) != -2e-17; }), 'Math', { sinh: function sinh(x) { return Math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); } }); /***/ }), /* 121 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.33 Math.tanh(x) var $export = __webpack_require__(8); var expm1 = __webpack_require__(111); var exp = Math.exp; $export($export.S, 'Math', { tanh: function tanh(x) { var a = expm1(x = +x); var b = expm1(-x); return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x)); } }); /***/ }), /* 122 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.34 Math.trunc(x) var $export = __webpack_require__(8); $export($export.S, 'Math', { trunc: function trunc(it) { return (it > 0 ? Math.floor : Math.ceil)(it); } }); /***/ }), /* 123 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var toAbsoluteIndex = __webpack_require__(39); var fromCharCode = String.fromCharCode; var $fromCodePoint = String.fromCodePoint; // length should be 1, old FF problem $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { // 21.1.2.2 String.fromCodePoint(...codePoints) fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars var res = []; var aLen = arguments.length; var i = 0; var code; while (aLen > i) { code = +arguments[i++]; if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); res.push(code < 0x10000 ? fromCharCode(code) : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00) ); } return res.join(''); } }); /***/ }), /* 124 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var toIObject = __webpack_require__(32); var toLength = __webpack_require__(37); $export($export.S, 'String', { // 21.1.2.4 String.raw(callSite, ...substitutions) raw: function raw(callSite) { var tpl = toIObject(callSite.raw); var len = toLength(tpl.length); var aLen = arguments.length; var res = []; var i = 0; while (len > i) { res.push(String(tpl[i++])); if (i < aLen) res.push(String(arguments[i])); } return res.join(''); } }); /***/ }), /* 125 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 21.1.3.25 String.prototype.trim() __webpack_require__(82)('trim', function ($trim) { return function trim() { return $trim(this, 3); }; }); /***/ }), /* 126 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $at = __webpack_require__(127)(true); // 21.1.3.27 String.prototype[@@iterator]() __webpack_require__(128)(String, 'String', function (iterated) { this._t = String(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %StringIteratorPrototype%.next() }, function () { var O = this._t; var index = this._i; var point; if (index >= O.length) return { value: undefined, done: true }; point = $at(O, index); this._i += point.length; return { value: point, done: false }; }); /***/ }), /* 127 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(38); var defined = __webpack_require__(35); // true -> String#at // false -> String#codePointAt module.exports = function (TO_STRING) { return function (that, pos) { var s = String(defined(that)); var i = toInteger(pos); var l = s.length; var a, b; if (i < 0 || i >= l) return TO_STRING ? '' : undefined; a = s.charCodeAt(i); return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; }; }; /***/ }), /* 128 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var LIBRARY = __webpack_require__(24); var $export = __webpack_require__(8); var redefine = __webpack_require__(18); var hide = __webpack_require__(10); var Iterators = __webpack_require__(129); var $iterCreate = __webpack_require__(130); var setToStringTag = __webpack_require__(25); var getPrototypeOf = __webpack_require__(58); var ITERATOR = __webpack_require__(26)('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` var FF_ITERATOR = '@@iterator'; var KEYS = 'keys'; var VALUES = 'values'; var returnThis = function () { return this; }; module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { $iterCreate(Constructor, NAME, next); var getMethod = function (kind) { if (!BUGGY && kind in proto) return proto[kind]; switch (kind) { case KEYS: return function keys() { return new Constructor(this, kind); }; case VALUES: return function values() { return new Constructor(this, kind); }; } return function entries() { return new Constructor(this, kind); }; }; var TAG = NAME + ' Iterator'; var DEF_VALUES = DEFAULT == VALUES; var VALUES_BUG = false; var proto = Base.prototype; var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; var $default = $native || getMethod(DEFAULT); var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; var methods, key, IteratorPrototype; // Fix native if ($anyNative) { IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { // Set @@toStringTag to native iterators setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); } } // fix Array#{values, @@iterator}.name in V8 / FF if (DEF_VALUES && $native && $native.name !== VALUES) { VALUES_BUG = true; $default = function values() { return $native.call(this); }; } // Define iterator if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { hide(proto, ITERATOR, $default); } // Plug for library Iterators[NAME] = $default; Iterators[TAG] = returnThis; if (DEFAULT) { methods = { values: DEF_VALUES ? $default : getMethod(VALUES), keys: IS_SET ? $default : getMethod(KEYS), entries: $entries }; if (FORCED) for (key in methods) { if (!(key in proto)) redefine(proto, key, methods[key]); } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); } return methods; }; /***/ }), /* 129 */ /***/ (function(module, exports) { module.exports = {}; /***/ }), /* 130 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var create = __webpack_require__(45); var descriptor = __webpack_require__(17); var setToStringTag = __webpack_require__(25); var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() __webpack_require__(10)(IteratorPrototype, __webpack_require__(26)('iterator'), function () { return this; }); module.exports = function (Constructor, NAME, next) { Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); setToStringTag(Constructor, NAME + ' Iterator'); }; /***/ }), /* 131 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $at = __webpack_require__(127)(false); $export($export.P, 'String', { // 21.1.3.3 String.prototype.codePointAt(pos) codePointAt: function codePointAt(pos) { return $at(this, pos); } }); /***/ }), /* 132 */ /***/ (function(module, exports, __webpack_require__) { // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) 'use strict'; var $export = __webpack_require__(8); var toLength = __webpack_require__(37); var context = __webpack_require__(133); var ENDS_WITH = 'endsWith'; var $endsWith = ''[ENDS_WITH]; $export($export.P + $export.F * __webpack_require__(135)(ENDS_WITH), 'String', { endsWith: function endsWith(searchString /* , endPosition = @length */) { var that = context(this, searchString, ENDS_WITH); var endPosition = arguments.length > 1 ? arguments[1] : undefined; var len = toLength(that.length); var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len); var search = String(searchString); return $endsWith ? $endsWith.call(that, search, end) : that.slice(end - search.length, end) === search; } }); /***/ }), /* 133 */ /***/ (function(module, exports, __webpack_require__) { // helper for String#{startsWith, endsWith, includes} var isRegExp = __webpack_require__(134); var defined = __webpack_require__(35); module.exports = function (that, searchString, NAME) { if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); return String(defined(that)); }; /***/ }), /* 134 */ /***/ (function(module, exports, __webpack_require__) { // 7.2.8 IsRegExp(argument) var isObject = __webpack_require__(13); var cof = __webpack_require__(34); var MATCH = __webpack_require__(26)('match'); module.exports = function (it) { var isRegExp; return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); }; /***/ }), /* 135 */ /***/ (function(module, exports, __webpack_require__) { var MATCH = __webpack_require__(26)('match'); module.exports = function (KEY) { var re = /./; try { '/./'[KEY](re); } catch (e) { try { re[MATCH] = false; return !'/./'[KEY](re); } catch (f) { /* empty */ } } return true; }; /***/ }), /* 136 */ /***/ (function(module, exports, __webpack_require__) { // 21.1.3.7 String.prototype.includes(searchString, position = 0) 'use strict'; var $export = __webpack_require__(8); var context = __webpack_require__(133); var INCLUDES = 'includes'; $export($export.P + $export.F * __webpack_require__(135)(INCLUDES), 'String', { includes: function includes(searchString /* , position = 0 */) { return !!~context(this, searchString, INCLUDES) .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); } }); /***/ }), /* 137 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); $export($export.P, 'String', { // 21.1.3.13 String.prototype.repeat(count) repeat: __webpack_require__(90) }); /***/ }), /* 138 */ /***/ (function(module, exports, __webpack_require__) { // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) 'use strict'; var $export = __webpack_require__(8); var toLength = __webpack_require__(37); var context = __webpack_require__(133); var STARTS_WITH = 'startsWith'; var $startsWith = ''[STARTS_WITH]; $export($export.P + $export.F * __webpack_require__(135)(STARTS_WITH), 'String', { startsWith: function startsWith(searchString /* , position = 0 */) { var that = context(this, searchString, STARTS_WITH); var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); var search = String(searchString); return $startsWith ? $startsWith.call(that, search, index) : that.slice(index, index + search.length) === search; } }); /***/ }), /* 139 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.2 String.prototype.anchor(name) __webpack_require__(140)('anchor', function (createHTML) { return function anchor(name) { return createHTML(this, 'a', 'name', name); }; }); /***/ }), /* 140 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var fails = __webpack_require__(7); var defined = __webpack_require__(35); var quot = /"/g; // B.2.3.2.1 CreateHTML(string, tag, attribute, value) var createHTML = function (string, tag, attribute, value) { var S = String(defined(string)); var p1 = '<' + tag; if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '&quot;') + '"'; return p1 + '>' + S + '</' + tag + '>'; }; module.exports = function (NAME, exec) { var O = {}; O[NAME] = exec(createHTML); $export($export.P + $export.F * fails(function () { var test = ''[NAME]('"'); return test !== test.toLowerCase() || test.split('"').length > 3; }), 'String', O); }; /***/ }), /* 141 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.3 String.prototype.big() __webpack_require__(140)('big', function (createHTML) { return function big() { return createHTML(this, 'big', '', ''); }; }); /***/ }), /* 142 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.4 String.prototype.blink() __webpack_require__(140)('blink', function (createHTML) { return function blink() { return createHTML(this, 'blink', '', ''); }; }); /***/ }), /* 143 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.5 String.prototype.bold() __webpack_require__(140)('bold', function (createHTML) { return function bold() { return createHTML(this, 'b', '', ''); }; }); /***/ }), /* 144 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.6 String.prototype.fixed() __webpack_require__(140)('fixed', function (createHTML) { return function fixed() { return createHTML(this, 'tt', '', ''); }; }); /***/ }), /* 145 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.7 String.prototype.fontcolor(color) __webpack_require__(140)('fontcolor', function (createHTML) { return function fontcolor(color) { return createHTML(this, 'font', 'color', color); }; }); /***/ }), /* 146 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.8 String.prototype.fontsize(size) __webpack_require__(140)('fontsize', function (createHTML) { return function fontsize(size) { return createHTML(this, 'font', 'size', size); }; }); /***/ }), /* 147 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.9 String.prototype.italics() __webpack_require__(140)('italics', function (createHTML) { return function italics() { return createHTML(this, 'i', '', ''); }; }); /***/ }), /* 148 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.10 String.prototype.link(url) __webpack_require__(140)('link', function (createHTML) { return function link(url) { return createHTML(this, 'a', 'href', url); }; }); /***/ }), /* 149 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.11 String.prototype.small() __webpack_require__(140)('small', function (createHTML) { return function small() { return createHTML(this, 'small', '', ''); }; }); /***/ }), /* 150 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.12 String.prototype.strike() __webpack_require__(140)('strike', function (createHTML) { return function strike() { return createHTML(this, 'strike', '', ''); }; }); /***/ }), /* 151 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.13 String.prototype.sub() __webpack_require__(140)('sub', function (createHTML) { return function sub() { return createHTML(this, 'sub', '', ''); }; }); /***/ }), /* 152 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // B.2.3.14 String.prototype.sup() __webpack_require__(140)('sup', function (createHTML) { return function sup() { return createHTML(this, 'sup', '', ''); }; }); /***/ }), /* 153 */ /***/ (function(module, exports, __webpack_require__) { // 20.3.3.1 / 15.9.4.4 Date.now() var $export = __webpack_require__(8); $export($export.S, 'Date', { now: function () { return new Date().getTime(); } }); /***/ }), /* 154 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var toObject = __webpack_require__(57); var toPrimitive = __webpack_require__(16); $export($export.P + $export.F * __webpack_require__(7)(function () { return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1; }), 'Date', { // eslint-disable-next-line no-unused-vars toJSON: function toJSON(key) { var O = toObject(this); var pv = toPrimitive(O); return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString(); } }); /***/ }), /* 155 */ /***/ (function(module, exports, __webpack_require__) { // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() var $export = __webpack_require__(8); var toISOString = __webpack_require__(156); // PhantomJS / old WebKit has a broken implementations $export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', { toISOString: toISOString }); /***/ }), /* 156 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() var fails = __webpack_require__(7); var getTime = Date.prototype.getTime; var $toISOString = Date.prototype.toISOString; var lz = function (num) { return num > 9 ? num : '0' + num; }; // PhantomJS / old WebKit has a broken implementations module.exports = (fails(function () { return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z'; }) || !fails(function () { $toISOString.call(new Date(NaN)); })) ? function toISOString() { if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value'); var d = this; var y = d.getUTCFullYear(); var m = d.getUTCMilliseconds(); var s = y < 0 ? '-' : y > 9999 ? '+' : ''; return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; } : $toISOString; /***/ }), /* 157 */ /***/ (function(module, exports, __webpack_require__) { var DateProto = Date.prototype; var INVALID_DATE = 'Invalid Date'; var TO_STRING = 'toString'; var $toString = DateProto[TO_STRING]; var getTime = DateProto.getTime; if (new Date(NaN) + '' != INVALID_DATE) { __webpack_require__(18)(DateProto, TO_STRING, function toString() { var value = getTime.call(this); // eslint-disable-next-line no-self-compare return value === value ? $toString.call(this) : INVALID_DATE; }); } /***/ }), /* 158 */ /***/ (function(module, exports, __webpack_require__) { var TO_PRIMITIVE = __webpack_require__(26)('toPrimitive'); var proto = Date.prototype; if (!(TO_PRIMITIVE in proto)) __webpack_require__(10)(proto, TO_PRIMITIVE, __webpack_require__(159)); /***/ }), /* 159 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var anObject = __webpack_require__(12); var toPrimitive = __webpack_require__(16); var NUMBER = 'number'; module.exports = function (hint) { if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint'); return toPrimitive(anObject(this), hint != NUMBER); }; /***/ }), /* 160 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) var $export = __webpack_require__(8); $export($export.S, 'Array', { isArray: __webpack_require__(44) }); /***/ }), /* 161 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var ctx = __webpack_require__(20); var $export = __webpack_require__(8); var toObject = __webpack_require__(57); var call = __webpack_require__(162); var isArrayIter = __webpack_require__(163); var toLength = __webpack_require__(37); var createProperty = __webpack_require__(164); var getIterFn = __webpack_require__(165); $export($export.S + $export.F * !__webpack_require__(166)(function (iter) { Array.from(iter); }), 'Array', { // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { var O = toObject(arrayLike); var C = typeof this == 'function' ? this : Array; var aLen = arguments.length; var mapfn = aLen > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; var index = 0; var iterFn = getIterFn(O); var length, result, step, iterator; if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); // if object isn't iterable or it's array with default iterator - use simple case if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); } } else { length = toLength(O.length); for (result = new C(length); length > index; index++) { createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); } } result.length = index; return result; } }); /***/ }), /* 162 */ /***/ (function(module, exports, __webpack_require__) { // call something on iterator step with safe closing on error var anObject = __webpack_require__(12); module.exports = function (iterator, fn, value, entries) { try { return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion) } catch (e) { var ret = iterator['return']; if (ret !== undefined) anObject(ret.call(iterator)); throw e; } }; /***/ }), /* 163 */ /***/ (function(module, exports, __webpack_require__) { // check on default Array iterator var Iterators = __webpack_require__(129); var ITERATOR = __webpack_require__(26)('iterator'); var ArrayProto = Array.prototype; module.exports = function (it) { return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); }; /***/ }), /* 164 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $defineProperty = __webpack_require__(11); var createDesc = __webpack_require__(17); module.exports = function (object, index, value) { if (index in object) $defineProperty.f(object, index, createDesc(0, value)); else object[index] = value; }; /***/ }), /* 165 */ /***/ (function(module, exports, __webpack_require__) { var classof = __webpack_require__(74); var ITERATOR = __webpack_require__(26)('iterator'); var Iterators = __webpack_require__(129); module.exports = __webpack_require__(9).getIteratorMethod = function (it) { if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; }; /***/ }), /* 166 */ /***/ (function(module, exports, __webpack_require__) { var ITERATOR = __webpack_require__(26)('iterator'); var SAFE_CLOSING = false; try { var riter = [7][ITERATOR](); riter['return'] = function () { SAFE_CLOSING = true; }; // eslint-disable-next-line no-throw-literal Array.from(riter, function () { throw 2; }); } catch (e) { /* empty */ } module.exports = function (exec, skipClosing) { if (!skipClosing && !SAFE_CLOSING) return false; var safe = false; try { var arr = [7]; var iter = arr[ITERATOR](); iter.next = function () { return { done: safe = true }; }; arr[ITERATOR] = function () { return iter; }; exec(arr); } catch (e) { /* empty */ } return safe; }; /***/ }), /* 167 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var createProperty = __webpack_require__(164); // WebKit Array.of isn't generic $export($export.S + $export.F * __webpack_require__(7)(function () { function F() { /* empty */ } return !(Array.of.call(F) instanceof F); }), 'Array', { // 22.1.2.3 Array.of( ...items) of: function of(/* ...args */) { var index = 0; var aLen = arguments.length; var result = new (typeof this == 'function' ? this : Array)(aLen); while (aLen > index) createProperty(result, index, arguments[index++]); result.length = aLen; return result; } }); /***/ }), /* 168 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 22.1.3.13 Array.prototype.join(separator) var $export = __webpack_require__(8); var toIObject = __webpack_require__(32); var arrayJoin = [].join; // fallback for not array-like strings $export($export.P + $export.F * (__webpack_require__(33) != Object || !__webpack_require__(169)(arrayJoin)), 'Array', { join: function join(separator) { return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator); } }); /***/ }), /* 169 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var fails = __webpack_require__(7); module.exports = function (method, arg) { return !!method && fails(function () { // eslint-disable-next-line no-useless-call arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); }); }; /***/ }), /* 170 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var html = __webpack_require__(47); var cof = __webpack_require__(34); var toAbsoluteIndex = __webpack_require__(39); var toLength = __webpack_require__(37); var arraySlice = [].slice; // fallback for not array-like ES3 strings and DOM objects $export($export.P + $export.F * __webpack_require__(7)(function () { if (html) arraySlice.call(html); }), 'Array', { slice: function slice(begin, end) { var len = toLength(this.length); var klass = cof(this); end = end === undefined ? len : end; if (klass == 'Array') return arraySlice.call(this, begin, end); var start = toAbsoluteIndex(begin, len); var upTo = toAbsoluteIndex(end, len); var size = toLength(upTo - start); var cloned = new Array(size); var i = 0; for (; i < size; i++) cloned[i] = klass == 'String' ? this.charAt(start + i) : this[start + i]; return cloned; } }); /***/ }), /* 171 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var aFunction = __webpack_require__(21); var toObject = __webpack_require__(57); var fails = __webpack_require__(7); var $sort = [].sort; var test = [1, 2, 3]; $export($export.P + $export.F * (fails(function () { // IE8- test.sort(undefined); }) || !fails(function () { // V8 bug test.sort(null); // Old WebKit }) || !__webpack_require__(169)($sort)), 'Array', { // 22.1.3.25 Array.prototype.sort(comparefn) sort: function sort(comparefn) { return comparefn === undefined ? $sort.call(toObject(this)) : $sort.call(toObject(this), aFunction(comparefn)); } }); /***/ }), /* 172 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $forEach = __webpack_require__(173)(0); var STRICT = __webpack_require__(169)([].forEach, true); $export($export.P + $export.F * !STRICT, 'Array', { // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg]) forEach: function forEach(callbackfn /* , thisArg */) { return $forEach(this, callbackfn, arguments[1]); } }); /***/ }), /* 173 */ /***/ (function(module, exports, __webpack_require__) { // 0 -> Array#forEach // 1 -> Array#map // 2 -> Array#filter // 3 -> Array#some // 4 -> Array#every // 5 -> Array#find // 6 -> Array#findIndex var ctx = __webpack_require__(20); var IObject = __webpack_require__(33); var toObject = __webpack_require__(57); var toLength = __webpack_require__(37); var asc = __webpack_require__(174); module.exports = function (TYPE, $create) { var IS_MAP = TYPE == 1; var IS_FILTER = TYPE == 2; var IS_SOME = TYPE == 3; var IS_EVERY = TYPE == 4; var IS_FIND_INDEX = TYPE == 6; var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; var create = $create || asc; return function ($this, callbackfn, that) { var O = toObject($this); var self = IObject(O); var f = ctx(callbackfn, that, 3); var length = toLength(self.length); var index = 0; var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; var val, res; for (;length > index; index++) if (NO_HOLES || index in self) { val = self[index]; res = f(val, index, O); if (TYPE) { if (IS_MAP) result[index] = res; // map else if (res) switch (TYPE) { case 3: return true; // some case 5: return val; // find case 6: return index; // findIndex case 2: result.push(val); // filter } else if (IS_EVERY) return false; // every } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; }; }; /***/ }), /* 174 */ /***/ (function(module, exports, __webpack_require__) { // 9.4.2.3 ArraySpeciesCreate(originalArray, length) var speciesConstructor = __webpack_require__(175); module.exports = function (original, length) { return new (speciesConstructor(original))(length); }; /***/ }), /* 175 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(13); var isArray = __webpack_require__(44); var SPECIES = __webpack_require__(26)('species'); module.exports = function (original) { var C; if (isArray(original)) { C = original.constructor; // cross-realm fallback if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; if (isObject(C)) { C = C[SPECIES]; if (C === null) C = undefined; } } return C === undefined ? Array : C; }; /***/ }), /* 176 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $map = __webpack_require__(173)(1); $export($export.P + $export.F * !__webpack_require__(169)([].map, true), 'Array', { // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg]) map: function map(callbackfn /* , thisArg */) { return $map(this, callbackfn, arguments[1]); } }); /***/ }), /* 177 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $filter = __webpack_require__(173)(2); $export($export.P + $export.F * !__webpack_require__(169)([].filter, true), 'Array', { // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg]) filter: function filter(callbackfn /* , thisArg */) { return $filter(this, callbackfn, arguments[1]); } }); /***/ }), /* 178 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $some = __webpack_require__(173)(3); $export($export.P + $export.F * !__webpack_require__(169)([].some, true), 'Array', { // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg]) some: function some(callbackfn /* , thisArg */) { return $some(this, callbackfn, arguments[1]); } }); /***/ }), /* 179 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $every = __webpack_require__(173)(4); $export($export.P + $export.F * !__webpack_require__(169)([].every, true), 'Array', { // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg]) every: function every(callbackfn /* , thisArg */) { return $every(this, callbackfn, arguments[1]); } }); /***/ }), /* 180 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $reduce = __webpack_require__(181); $export($export.P + $export.F * !__webpack_require__(169)([].reduce, true), 'Array', { // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue]) reduce: function reduce(callbackfn /* , initialValue */) { return $reduce(this, callbackfn, arguments.length, arguments[1], false); } }); /***/ }), /* 181 */ /***/ (function(module, exports, __webpack_require__) { var aFunction = __webpack_require__(21); var toObject = __webpack_require__(57); var IObject = __webpack_require__(33); var toLength = __webpack_require__(37); module.exports = function (that, callbackfn, aLen, memo, isRight) { aFunction(callbackfn); var O = toObject(that); var self = IObject(O); var length = toLength(O.length); var index = isRight ? length - 1 : 0; var i = isRight ? -1 : 1; if (aLen < 2) for (;;) { if (index in self) { memo = self[index]; index += i; break; } index += i; if (isRight ? index < 0 : length <= index) { throw TypeError('Reduce of empty array with no initial value'); } } for (;isRight ? index >= 0 : length > index; index += i) if (index in self) { memo = callbackfn(memo, self[index], index, O); } return memo; }; /***/ }), /* 182 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $reduce = __webpack_require__(181); $export($export.P + $export.F * !__webpack_require__(169)([].reduceRight, true), 'Array', { // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue]) reduceRight: function reduceRight(callbackfn /* , initialValue */) { return $reduce(this, callbackfn, arguments.length, arguments[1], true); } }); /***/ }), /* 183 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $indexOf = __webpack_require__(36)(false); var $native = [].indexOf; var NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0; $export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(169)($native)), 'Array', { // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex]) indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { return NEGATIVE_ZERO // convert -0 to +0 ? $native.apply(this, arguments) || 0 : $indexOf(this, searchElement, arguments[1]); } }); /***/ }), /* 184 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var toIObject = __webpack_require__(32); var toInteger = __webpack_require__(38); var toLength = __webpack_require__(37); var $native = [].lastIndexOf; var NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0; $export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(169)($native)), 'Array', { // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex]) lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) { // convert -0 to +0 if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0; var O = toIObject(this); var length = toLength(O.length); var index = length - 1; if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1])); if (index < 0) index = length + index; for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0; return -1; } }); /***/ }), /* 185 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) var $export = __webpack_require__(8); $export($export.P, 'Array', { copyWithin: __webpack_require__(186) }); __webpack_require__(187)('copyWithin'); /***/ }), /* 186 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) 'use strict'; var toObject = __webpack_require__(57); var toAbsoluteIndex = __webpack_require__(39); var toLength = __webpack_require__(37); module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { var O = toObject(this); var len = toLength(O.length); var to = toAbsoluteIndex(target, len); var from = toAbsoluteIndex(start, len); var end = arguments.length > 2 ? arguments[2] : undefined; var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to); var inc = 1; if (from < to && to < from + count) { inc = -1; from += count - 1; to += count - 1; } while (count-- > 0) { if (from in O) O[to] = O[from]; else delete O[to]; to += inc; from += inc; } return O; }; /***/ }), /* 187 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.3.31 Array.prototype[@@unscopables] var UNSCOPABLES = __webpack_require__(26)('unscopables'); var ArrayProto = Array.prototype; if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(10)(ArrayProto, UNSCOPABLES, {}); module.exports = function (key) { ArrayProto[UNSCOPABLES][key] = true; }; /***/ }), /* 188 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) var $export = __webpack_require__(8); $export($export.P, 'Array', { fill: __webpack_require__(189) }); __webpack_require__(187)('fill'); /***/ }), /* 189 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) 'use strict'; var toObject = __webpack_require__(57); var toAbsoluteIndex = __webpack_require__(39); var toLength = __webpack_require__(37); module.exports = function fill(value /* , start = 0, end = @length */) { var O = toObject(this); var length = toLength(O.length); var aLen = arguments.length; var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length); var end = aLen > 2 ? arguments[2] : undefined; var endPos = end === undefined ? length : toAbsoluteIndex(end, length); while (endPos > index) O[index++] = value; return O; }; /***/ }), /* 190 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) var $export = __webpack_require__(8); var $find = __webpack_require__(173)(5); var KEY = 'find'; var forced = true; // Shouldn't skip holes if (KEY in []) Array(1)[KEY](function () { forced = false; }); $export($export.P + $export.F * forced, 'Array', { find: function find(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); __webpack_require__(187)(KEY); /***/ }), /* 191 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) var $export = __webpack_require__(8); var $find = __webpack_require__(173)(6); var KEY = 'findIndex'; var forced = true; // Shouldn't skip holes if (KEY in []) Array(1)[KEY](function () { forced = false; }); $export($export.P + $export.F * forced, 'Array', { findIndex: function findIndex(callbackfn /* , that = undefined */) { return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); __webpack_require__(187)(KEY); /***/ }), /* 192 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(193)('Array'); /***/ }), /* 193 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var global = __webpack_require__(4); var dP = __webpack_require__(11); var DESCRIPTORS = __webpack_require__(6); var SPECIES = __webpack_require__(26)('species'); module.exports = function (KEY) { var C = global[KEY]; if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { configurable: true, get: function () { return this; } }); }; /***/ }), /* 194 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var addToUnscopables = __webpack_require__(187); var step = __webpack_require__(195); var Iterators = __webpack_require__(129); var toIObject = __webpack_require__(32); // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() module.exports = __webpack_require__(128)(Array, 'Array', function (iterated, kind) { this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind // 22.1.5.2.1 %ArrayIteratorPrototype%.next() }, function () { var O = this._t; var kind = this._k; var index = this._i++; if (!O || index >= O.length) { this._t = undefined; return step(1); } if (kind == 'keys') return step(0, index); if (kind == 'values') return step(0, O[index]); return step(0, [index, O[index]]); }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) Iterators.Arguments = Iterators.Array; addToUnscopables('keys'); addToUnscopables('values'); addToUnscopables('entries'); /***/ }), /* 195 */ /***/ (function(module, exports) { module.exports = function (done, value) { return { value: value, done: !!done }; }; /***/ }), /* 196 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); var inheritIfRequired = __webpack_require__(87); var dP = __webpack_require__(11).f; var gOPN = __webpack_require__(49).f; var isRegExp = __webpack_require__(134); var $flags = __webpack_require__(197); var $RegExp = global.RegExp; var Base = $RegExp; var proto = $RegExp.prototype; var re1 = /a/g; var re2 = /a/g; // "new" creates a new object, old webkit buggy here var CORRECT_NEW = new $RegExp(re1) !== re1; if (__webpack_require__(6) && (!CORRECT_NEW || __webpack_require__(7)(function () { re2[__webpack_require__(26)('match')] = false; // RegExp constructor can alter flags and IsRegExp works correct with @@match return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; }))) { $RegExp = function RegExp(p, f) { var tiRE = this instanceof $RegExp; var piRE = isRegExp(p); var fiU = f === undefined; return !tiRE && piRE && p.constructor === $RegExp && fiU ? p : inheritIfRequired(CORRECT_NEW ? new Base(piRE && !fiU ? p.source : p, f) : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) , tiRE ? this : proto, $RegExp); }; var proxy = function (key) { key in $RegExp || dP($RegExp, key, { configurable: true, get: function () { return Base[key]; }, set: function (it) { Base[key] = it; } }); }; for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); proto.constructor = $RegExp; $RegExp.prototype = proto; __webpack_require__(18)(global, 'RegExp', $RegExp); } __webpack_require__(193)('RegExp'); /***/ }), /* 197 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 21.2.5.3 get RegExp.prototype.flags var anObject = __webpack_require__(12); module.exports = function () { var that = anObject(this); var result = ''; if (that.global) result += 'g'; if (that.ignoreCase) result += 'i'; if (that.multiline) result += 'm'; if (that.unicode) result += 'u'; if (that.sticky) result += 'y'; return result; }; /***/ }), /* 198 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; __webpack_require__(199); var anObject = __webpack_require__(12); var $flags = __webpack_require__(197); var DESCRIPTORS = __webpack_require__(6); var TO_STRING = 'toString'; var $toString = /./[TO_STRING]; var define = function (fn) { __webpack_require__(18)(RegExp.prototype, TO_STRING, fn, true); }; // 21.2.5.14 RegExp.prototype.toString() if (__webpack_require__(7)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { define(function toString() { var R = anObject(this); return '/'.concat(R.source, '/', 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); }); // FF44- RegExp#toString has a wrong name } else if ($toString.name != TO_STRING) { define(function toString() { return $toString.call(this); }); } /***/ }), /* 199 */ /***/ (function(module, exports, __webpack_require__) { // 21.2.5.3 get RegExp.prototype.flags() if (__webpack_require__(6) && /./g.flags != 'g') __webpack_require__(11).f(RegExp.prototype, 'flags', { configurable: true, get: __webpack_require__(197) }); /***/ }), /* 200 */ /***/ (function(module, exports, __webpack_require__) { // @@match logic __webpack_require__(201)('match', 1, function (defined, MATCH, $match) { // 21.1.3.11 String.prototype.match(regexp) return [function match(regexp) { 'use strict'; var O = defined(this); var fn = regexp == undefined ? undefined : regexp[MATCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); }, $match]; }); /***/ }), /* 201 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var hide = __webpack_require__(10); var redefine = __webpack_require__(18); var fails = __webpack_require__(7); var defined = __webpack_require__(35); var wks = __webpack_require__(26); module.exports = function (KEY, length, exec) { var SYMBOL = wks(KEY); var fns = exec(defined, SYMBOL, ''[KEY]); var strfn = fns[0]; var rxfn = fns[1]; if (fails(function () { var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; })) { redefine(String.prototype, KEY, strfn); hide(RegExp.prototype, SYMBOL, length == 2 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) // 21.2.5.11 RegExp.prototype[@@split](string, limit) ? function (string, arg) { return rxfn.call(string, this, arg); } // 21.2.5.6 RegExp.prototype[@@match](string) // 21.2.5.9 RegExp.prototype[@@search](string) : function (string) { return rxfn.call(string, this); } ); } }; /***/ }), /* 202 */ /***/ (function(module, exports, __webpack_require__) { // @@replace logic __webpack_require__(201)('replace', 2, function (defined, REPLACE, $replace) { // 21.1.3.14 String.prototype.replace(searchValue, replaceValue) return [function replace(searchValue, replaceValue) { 'use strict'; var O = defined(this); var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; return fn !== undefined ? fn.call(searchValue, O, replaceValue) : $replace.call(String(O), searchValue, replaceValue); }, $replace]; }); /***/ }), /* 203 */ /***/ (function(module, exports, __webpack_require__) { // @@search logic __webpack_require__(201)('search', 1, function (defined, SEARCH, $search) { // 21.1.3.15 String.prototype.search(regexp) return [function search(regexp) { 'use strict'; var O = defined(this); var fn = regexp == undefined ? undefined : regexp[SEARCH]; return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O)); }, $search]; }); /***/ }), /* 204 */ /***/ (function(module, exports, __webpack_require__) { // @@split logic __webpack_require__(201)('split', 2, function (defined, SPLIT, $split) { 'use strict'; var isRegExp = __webpack_require__(134); var _split = $split; var $push = [].push; var $SPLIT = 'split'; var LENGTH = 'length'; var LAST_INDEX = 'lastIndex'; if ( 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || '.'[$SPLIT](/()()/)[LENGTH] > 1 || ''[$SPLIT](/.?/)[LENGTH] ) { var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group // based on es5-shim implementation, need to rework it $split = function (separator, limit) { var string = String(this); if (separator === undefined && limit === 0) return []; // If `separator` is not a regex, use native split if (!isRegExp(separator)) return _split.call(string, separator, limit); var output = []; var flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.unicode ? 'u' : '') + (separator.sticky ? 'y' : ''); var lastLastIndex = 0; var splitLimit = limit === undefined ? 4294967295 : limit >>> 0; // Make `global` and avoid `lastIndex` issues by working with a copy var separatorCopy = new RegExp(separator.source, flags + 'g'); var separator2, match, lastIndex, lastLength, i; // Doesn't need flags gy, but they don't hurt if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags); while (match = separatorCopy.exec(string)) { // `separatorCopy.lastIndex` is not reliable cross-browser lastIndex = match.index + match[0][LENGTH]; if (lastIndex > lastLastIndex) { output.push(string.slice(lastLastIndex, match.index)); // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG // eslint-disable-next-line no-loop-func if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () { for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined; }); if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); lastLength = match[0][LENGTH]; lastLastIndex = lastIndex; if (output[LENGTH] >= splitLimit) break; } if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop } if (lastLastIndex === string[LENGTH]) { if (lastLength || !separatorCopy.test('')) output.push(''); } else output.push(string.slice(lastLastIndex)); return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; }; // Chakra, V8 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { $split = function (separator, limit) { return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit); }; } // 21.1.3.17 String.prototype.split(separator, limit) return [function split(separator, limit) { var O = defined(this); var fn = separator == undefined ? undefined : separator[SPLIT]; return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit); }, $split]; }); /***/ }), /* 205 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var LIBRARY = __webpack_require__(24); var global = __webpack_require__(4); var ctx = __webpack_require__(20); var classof = __webpack_require__(74); var $export = __webpack_require__(8); var isObject = __webpack_require__(13); var aFunction = __webpack_require__(21); var anInstance = __webpack_require__(206); var forOf = __webpack_require__(207); var speciesConstructor = __webpack_require__(208); var task = __webpack_require__(209).set; var microtask = __webpack_require__(210)(); var newPromiseCapabilityModule = __webpack_require__(211); var perform = __webpack_require__(212); var userAgent = __webpack_require__(213); var promiseResolve = __webpack_require__(214); var PROMISE = 'Promise'; var TypeError = global.TypeError; var process = global.process; var versions = process && process.versions; var v8 = versions && versions.v8 || ''; var $Promise = global[PROMISE]; var isNode = classof(process) == 'process'; var empty = function () { /* empty */ }; var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; var USE_NATIVE = !!function () { try { // correct subclassing with @@species support var promise = $Promise.resolve(1); var FakePromise = (promise.constructor = {})[__webpack_require__(26)('species')] = function (exec) { exec(empty, empty); }; // unhandled rejections tracking support, NodeJS Promise without it fails @@species test return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 // we can't detect it synchronously, so just check versions && v8.indexOf('6.6') !== 0 && userAgent.indexOf('Chrome/66') === -1; } catch (e) { /* empty */ } }(); // helpers var isThenable = function (it) { var then; return isObject(it) && typeof (then = it.then) == 'function' ? then : false; }; var notify = function (promise, isReject) { if (promise._n) return; promise._n = true; var chain = promise._c; microtask(function () { var value = promise._v; var ok = promise._s == 1; var i = 0; var run = function (reaction) { var handler = ok ? reaction.ok : reaction.fail; var resolve = reaction.resolve; var reject = reaction.reject; var domain = reaction.domain; var result, then, exited; try { if (handler) { if (!ok) { if (promise._h == 2) onHandleUnhandled(promise); promise._h = 1; } if (handler === true) result = value; else { if (domain) domain.enter(); result = handler(value); // may throw if (domain) { domain.exit(); exited = true; } } if (result === reaction.promise) { reject(TypeError('Promise-chain cycle')); } else if (then = isThenable(result)) { then.call(result, resolve, reject); } else resolve(result); } else reject(value); } catch (e) { if (domain && !exited) domain.exit(); reject(e); } }; while (chain.length > i) run(chain[i++]); // variable length - can't use forEach promise._c = []; promise._n = false; if (isReject && !promise._h) onUnhandled(promise); }); }; var onUnhandled = function (promise) { task.call(global, function () { var value = promise._v; var unhandled = isUnhandled(promise); var result, handler, console; if (unhandled) { result = perform(function () { if (isNode) { process.emit('unhandledRejection', value, promise); } else if (handler = global.onunhandledrejection) { handler({ promise: promise, reason: value }); } else if ((console = global.console) && console.error) { console.error('Unhandled promise rejection', value); } }); // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should promise._h = isNode || isUnhandled(promise) ? 2 : 1; } promise._a = undefined; if (unhandled && result.e) throw result.v; }); }; var isUnhandled = function (promise) { return promise._h !== 1 && (promise._a || promise._c).length === 0; }; var onHandleUnhandled = function (promise) { task.call(global, function () { var handler; if (isNode) { process.emit('rejectionHandled', promise); } else if (handler = global.onrejectionhandled) { handler({ promise: promise, reason: promise._v }); } }); }; var $reject = function (value) { var promise = this; if (promise._d) return; promise._d = true; promise = promise._w || promise; // unwrap promise._v = value; promise._s = 2; if (!promise._a) promise._a = promise._c.slice(); notify(promise, true); }; var $resolve = function (value) { var promise = this; var then; if (promise._d) return; promise._d = true; promise = promise._w || promise; // unwrap try { if (promise === value) throw TypeError("Promise can't be resolved itself"); if (then = isThenable(value)) { microtask(function () { var wrapper = { _w: promise, _d: false }; // wrap try { then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); } catch (e) { $reject.call(wrapper, e); } }); } else { promise._v = value; promise._s = 1; notify(promise, false); } } catch (e) { $reject.call({ _w: promise, _d: false }, e); // wrap } }; // constructor polyfill if (!USE_NATIVE) { // 25.4.3.1 Promise(executor) $Promise = function Promise(executor) { anInstance(this, $Promise, PROMISE, '_h'); aFunction(executor); Internal.call(this); try { executor(ctx($resolve, this, 1), ctx($reject, this, 1)); } catch (err) { $reject.call(this, err); } }; // eslint-disable-next-line no-unused-vars Internal = function Promise(executor) { this._c = []; // <- awaiting reactions this._a = undefined; // <- checked in isUnhandled reactions this._s = 0; // <- state this._d = false; // <- done this._v = undefined; // <- value this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled this._n = false; // <- notify }; Internal.prototype = __webpack_require__(215)($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected) { var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; reaction.fail = typeof onRejected == 'function' && onRejected; reaction.domain = isNode ? process.domain : undefined; this._c.push(reaction); if (this._a) this._a.push(reaction); if (this._s) notify(this, false); return reaction.promise; }, // 25.4.5.1 Promise.prototype.catch(onRejected) 'catch': function (onRejected) { return this.then(undefined, onRejected); } }); OwnPromiseCapability = function () { var promise = new Internal(); this.promise = promise; this.resolve = ctx($resolve, promise, 1); this.reject = ctx($reject, promise, 1); }; newPromiseCapabilityModule.f = newPromiseCapability = function (C) { return C === $Promise || C === Wrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); }; } $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); __webpack_require__(25)($Promise, PROMISE); __webpack_require__(193)(PROMISE); Wrapper = __webpack_require__(9)[PROMISE]; // statics $export($export.S + $export.F * !USE_NATIVE, PROMISE, { // 25.4.4.5 Promise.reject(r) reject: function reject(r) { var capability = newPromiseCapability(this); var $$reject = capability.reject; $$reject(r); return capability.promise; } }); $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { // 25.4.4.6 Promise.resolve(x) resolve: function resolve(x) { return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); } }); $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(166)(function (iter) { $Promise.all(iter)['catch'](empty); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) all: function all(iterable) { var C = this; var capability = newPromiseCapability(C); var resolve = capability.resolve; var reject = capability.reject; var result = perform(function () { var values = []; var index = 0; var remaining = 1; forOf(iterable, false, function (promise) { var $index = index++; var alreadyCalled = false; values.push(undefined); remaining++; C.resolve(promise).then(function (value) { if (alreadyCalled) return; alreadyCalled = true; values[$index] = value; --remaining || resolve(values); }, reject); }); --remaining || resolve(values); }); if (result.e) reject(result.v); return capability.promise; }, // 25.4.4.4 Promise.race(iterable) race: function race(iterable) { var C = this; var capability = newPromiseCapability(C); var reject = capability.reject; var result = perform(function () { forOf(iterable, false, function (promise) { C.resolve(promise).then(capability.resolve, reject); }); }); if (result.e) reject(result.v); return capability.promise; } }); /***/ }), /* 206 */ /***/ (function(module, exports) { module.exports = function (it, Constructor, name, forbiddenField) { if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { throw TypeError(name + ': incorrect invocation!'); } return it; }; /***/ }), /* 207 */ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(20); var call = __webpack_require__(162); var isArrayIter = __webpack_require__(163); var anObject = __webpack_require__(12); var toLength = __webpack_require__(37); var getIterFn = __webpack_require__(165); var BREAK = {}; var RETURN = {}; var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); var f = ctx(fn, that, entries ? 2 : 1); var index = 0; var length, step, iterator, result; if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); // fast case for arrays with default iterator if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); if (result === BREAK || result === RETURN) return result; } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { result = call(iterator, f, step.value, entries); if (result === BREAK || result === RETURN) return result; } }; exports.BREAK = BREAK; exports.RETURN = RETURN; /***/ }), /* 208 */ /***/ (function(module, exports, __webpack_require__) { // 7.3.20 SpeciesConstructor(O, defaultConstructor) var anObject = __webpack_require__(12); var aFunction = __webpack_require__(21); var SPECIES = __webpack_require__(26)('species'); module.exports = function (O, D) { var C = anObject(O).constructor; var S; return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); }; /***/ }), /* 209 */ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(20); var invoke = __webpack_require__(77); var html = __webpack_require__(47); var cel = __webpack_require__(15); var global = __webpack_require__(4); var process = global.process; var setTask = global.setImmediate; var clearTask = global.clearImmediate; var MessageChannel = global.MessageChannel; var Dispatch = global.Dispatch; var counter = 0; var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; var defer, channel, port; var run = function () { var id = +this; // eslint-disable-next-line no-prototype-builtins if (queue.hasOwnProperty(id)) { var fn = queue[id]; delete queue[id]; fn(); } }; var listener = function (event) { run.call(event.data); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: if (!setTask || !clearTask) { setTask = function setImmediate(fn) { var args = []; var i = 1; while (arguments.length > i) args.push(arguments[i++]); queue[++counter] = function () { // eslint-disable-next-line no-new-func invoke(typeof fn == 'function' ? fn : Function(fn), args); }; defer(counter); return counter; }; clearTask = function clearImmediate(id) { delete queue[id]; }; // Node.js 0.8- if (__webpack_require__(34)(process) == 'process') { defer = function (id) { process.nextTick(ctx(run, id, 1)); }; // Sphere (JS game engine) Dispatch API } else if (Dispatch && Dispatch.now) { defer = function (id) { Dispatch.now(ctx(run, id, 1)); }; // Browsers with MessageChannel, includes WebWorkers } else if (MessageChannel) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = listener; defer = ctx(port.postMessage, port, 1); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { defer = function (id) { global.postMessage(id + '', '*'); }; global.addEventListener('message', listener, false); // IE8- } else if (ONREADYSTATECHANGE in cel('script')) { defer = function (id) { html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { html.removeChild(this); run.call(id); }; }; // Rest old browsers } else { defer = function (id) { setTimeout(ctx(run, id, 1), 0); }; } } module.exports = { set: setTask, clear: clearTask }; /***/ }), /* 210 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); var macrotask = __webpack_require__(209).set; var Observer = global.MutationObserver || global.WebKitMutationObserver; var process = global.process; var Promise = global.Promise; var isNode = __webpack_require__(34)(process) == 'process'; module.exports = function () { var head, last, notify; var flush = function () { var parent, fn; if (isNode && (parent = process.domain)) parent.exit(); while (head) { fn = head.fn; head = head.next; try { fn(); } catch (e) { if (head) notify(); else last = undefined; throw e; } } last = undefined; if (parent) parent.enter(); }; // Node.js if (isNode) { notify = function () { process.nextTick(flush); }; // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 } else if (Observer && !(global.navigator && global.navigator.standalone)) { var toggle = true; var node = document.createTextNode(''); new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new notify = function () { node.data = toggle = !toggle; }; // environments with maybe non-completely correct, but existent Promise } else if (Promise && Promise.resolve) { // Promise.resolve without an argument throws an error in LG WebOS 2 var promise = Promise.resolve(undefined); notify = function () { promise.then(flush); }; // for other environments - macrotask based on: // - setImmediate // - MessageChannel // - window.postMessag // - onreadystatechange // - setTimeout } else { notify = function () { // strange IE + webpack dev server bug - use .call(global) macrotask.call(global, flush); }; } return function (fn) { var task = { fn: fn, next: undefined }; if (last) last.next = task; if (!head) { head = task; notify(); } last = task; }; }; /***/ }), /* 211 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 25.4.1.5 NewPromiseCapability(C) var aFunction = __webpack_require__(21); function PromiseCapability(C) { var resolve, reject; this.promise = new C(function ($$resolve, $$reject) { if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); resolve = $$resolve; reject = $$reject; }); this.resolve = aFunction(resolve); this.reject = aFunction(reject); } module.exports.f = function (C) { return new PromiseCapability(C); }; /***/ }), /* 212 */ /***/ (function(module, exports) { module.exports = function (exec) { try { return { e: false, v: exec() }; } catch (e) { return { e: true, v: e }; } }; /***/ }), /* 213 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); var navigator = global.navigator; module.exports = navigator && navigator.userAgent || ''; /***/ }), /* 214 */ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(12); var isObject = __webpack_require__(13); var newPromiseCapability = __webpack_require__(211); module.exports = function (C, x) { anObject(C); if (isObject(x) && x.constructor === C) return x; var promiseCapability = newPromiseCapability.f(C); var resolve = promiseCapability.resolve; resolve(x); return promiseCapability.promise; }; /***/ }), /* 215 */ /***/ (function(module, exports, __webpack_require__) { var redefine = __webpack_require__(18); module.exports = function (target, src, safe) { for (var key in src) redefine(target, key, src[key], safe); return target; }; /***/ }), /* 216 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var strong = __webpack_require__(217); var validate = __webpack_require__(218); var MAP = 'Map'; // 23.1 Map Objects module.exports = __webpack_require__(219)(MAP, function (get) { return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.1.3.6 Map.prototype.get(key) get: function get(key) { var entry = strong.getEntry(validate(this, MAP), key); return entry && entry.v; }, // 23.1.3.9 Map.prototype.set(key, value) set: function set(key, value) { return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); } }, strong, true); /***/ }), /* 217 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var dP = __webpack_require__(11).f; var create = __webpack_require__(45); var redefineAll = __webpack_require__(215); var ctx = __webpack_require__(20); var anInstance = __webpack_require__(206); var forOf = __webpack_require__(207); var $iterDefine = __webpack_require__(128); var step = __webpack_require__(195); var setSpecies = __webpack_require__(193); var DESCRIPTORS = __webpack_require__(6); var fastKey = __webpack_require__(22).fastKey; var validate = __webpack_require__(218); var SIZE = DESCRIPTORS ? '_s' : 'size'; var getEntry = function (that, key) { // fast case var index = fastKey(key); var entry; if (index !== 'F') return that._i[index]; // frozen object case for (entry = that._f; entry; entry = entry.n) { if (entry.k == key) return entry; } }; module.exports = { getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { anInstance(that, C, NAME, '_i'); that._t = NAME; // collection type that._i = create(null); // index that._f = undefined; // first entry that._l = undefined; // last entry that[SIZE] = 0; // size if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); redefineAll(C.prototype, { // 23.1.3.1 Map.prototype.clear() // 23.2.3.2 Set.prototype.clear() clear: function clear() { for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { entry.r = true; if (entry.p) entry.p = entry.p.n = undefined; delete data[entry.i]; } that._f = that._l = undefined; that[SIZE] = 0; }, // 23.1.3.3 Map.prototype.delete(key) // 23.2.3.4 Set.prototype.delete(value) 'delete': function (key) { var that = validate(this, NAME); var entry = getEntry(that, key); if (entry) { var next = entry.n; var prev = entry.p; delete that._i[entry.i]; entry.r = true; if (prev) prev.n = next; if (next) next.p = prev; if (that._f == entry) that._f = next; if (that._l == entry) that._l = prev; that[SIZE]--; } return !!entry; }, // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) forEach: function forEach(callbackfn /* , that = undefined */) { validate(this, NAME); var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); var entry; while (entry = entry ? entry.n : this._f) { f(entry.v, entry.k, this); // revert to the last existing entry while (entry && entry.r) entry = entry.p; } }, // 23.1.3.7 Map.prototype.has(key) // 23.2.3.7 Set.prototype.has(value) has: function has(key) { return !!getEntry(validate(this, NAME), key); } }); if (DESCRIPTORS) dP(C.prototype, 'size', { get: function () { return validate(this, NAME)[SIZE]; } }); return C; }, def: function (that, key, value) { var entry = getEntry(that, key); var prev, index; // change existing entry if (entry) { entry.v = value; // create new entry } else { that._l = entry = { i: index = fastKey(key, true), // <- index k: key, // <- key v: value, // <- value p: prev = that._l, // <- previous entry n: undefined, // <- next entry r: false // <- removed }; if (!that._f) that._f = entry; if (prev) prev.n = entry; that[SIZE]++; // add to index if (index !== 'F') that._i[index] = entry; } return that; }, getEntry: getEntry, setStrong: function (C, NAME, IS_MAP) { // add .keys, .values, .entries, [@@iterator] // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 $iterDefine(C, NAME, function (iterated, kind) { this._t = validate(iterated, NAME); // target this._k = kind; // kind this._l = undefined; // previous }, function () { var that = this; var kind = that._k; var entry = that._l; // revert to the last existing entry while (entry && entry.r) entry = entry.p; // get next entry if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { // or finish the iteration that._t = undefined; return step(1); } // return step by kind if (kind == 'keys') return step(0, entry.k); if (kind == 'values') return step(0, entry.v); return step(0, [entry.k, entry.v]); }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); // add [@@species], 23.1.2.2, 23.2.2.2 setSpecies(NAME); } }; /***/ }), /* 218 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(13); module.exports = function (it, TYPE) { if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); return it; }; /***/ }), /* 219 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var global = __webpack_require__(4); var $export = __webpack_require__(8); var redefine = __webpack_require__(18); var redefineAll = __webpack_require__(215); var meta = __webpack_require__(22); var forOf = __webpack_require__(207); var anInstance = __webpack_require__(206); var isObject = __webpack_require__(13); var fails = __webpack_require__(7); var $iterDetect = __webpack_require__(166); var setToStringTag = __webpack_require__(25); var inheritIfRequired = __webpack_require__(87); module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { var Base = global[NAME]; var C = Base; var ADDER = IS_MAP ? 'set' : 'add'; var proto = C && C.prototype; var O = {}; var fixMethod = function (KEY) { var fn = proto[KEY]; redefine(proto, KEY, KEY == 'delete' ? function (a) { return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); } : KEY == 'has' ? function has(a) { return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); } : KEY == 'get' ? function get(a) { return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; } : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; } ); }; if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { new C().entries().next(); }))) { // create collection constructor C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); redefineAll(C.prototype, methods); meta.NEED = true; } else { var instance = new C(); // early implementations not supports chaining var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); // most early implementations doesn't supports iterables, most modern - not close it correctly var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new // for early implementations -0 and +0 not the same var BUGGY_ZERO = !IS_WEAK && fails(function () { // V8 ~ Chromium 42- fails only with 5+ elements var $instance = new C(); var index = 5; while (index--) $instance[ADDER](index, index); return !$instance.has(-0); }); if (!ACCEPT_ITERABLES) { C = wrapper(function (target, iterable) { anInstance(target, C, NAME); var that = inheritIfRequired(new Base(), target, C); if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); return that; }); C.prototype = proto; proto.constructor = C; } if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { fixMethod('delete'); fixMethod('has'); IS_MAP && fixMethod('get'); } if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); // weak collections should not contains .clear method if (IS_WEAK && proto.clear) delete proto.clear; } setToStringTag(C, NAME); O[NAME] = C; $export($export.G + $export.W + $export.F * (C != Base), O); if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); return C; }; /***/ }), /* 220 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var strong = __webpack_require__(217); var validate = __webpack_require__(218); var SET = 'Set'; // 23.2 Set Objects module.exports = __webpack_require__(219)(SET, function (get) { return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.2.3.1 Set.prototype.add(value) add: function add(value) { return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value); } }, strong); /***/ }), /* 221 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var each = __webpack_require__(173)(0); var redefine = __webpack_require__(18); var meta = __webpack_require__(22); var assign = __webpack_require__(68); var weak = __webpack_require__(222); var isObject = __webpack_require__(13); var fails = __webpack_require__(7); var validate = __webpack_require__(218); var WEAK_MAP = 'WeakMap'; var getWeak = meta.getWeak; var isExtensible = Object.isExtensible; var uncaughtFrozenStore = weak.ufstore; var tmp = {}; var InternalMap; var wrapper = function (get) { return function WeakMap() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }; var methods = { // 23.3.3.3 WeakMap.prototype.get(key) get: function get(key) { if (isObject(key)) { var data = getWeak(key); if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); return data ? data[this._i] : undefined; } }, // 23.3.3.5 WeakMap.prototype.set(key, value) set: function set(key, value) { return weak.def(validate(this, WEAK_MAP), key, value); } }; // 23.3 WeakMap Objects var $WeakMap = module.exports = __webpack_require__(219)(WEAK_MAP, wrapper, methods, weak, true, true); // IE11 WeakMap frozen keys fix if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { InternalMap = weak.getConstructor(wrapper, WEAK_MAP); assign(InternalMap.prototype, methods); meta.NEED = true; each(['delete', 'has', 'get', 'set'], function (key) { var proto = $WeakMap.prototype; var method = proto[key]; redefine(proto, key, function (a, b) { // store frozen objects on internal weakmap shim if (isObject(a) && !isExtensible(a)) { if (!this._f) this._f = new InternalMap(); var result = this._f[key](a, b); return key == 'set' ? this : result; // store all the rest on native weakmap } return method.call(this, a, b); }); }); } /***/ }), /* 222 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var redefineAll = __webpack_require__(215); var getWeak = __webpack_require__(22).getWeak; var anObject = __webpack_require__(12); var isObject = __webpack_require__(13); var anInstance = __webpack_require__(206); var forOf = __webpack_require__(207); var createArrayMethod = __webpack_require__(173); var $has = __webpack_require__(5); var validate = __webpack_require__(218); var arrayFind = createArrayMethod(5); var arrayFindIndex = createArrayMethod(6); var id = 0; // fallback for uncaught frozen keys var uncaughtFrozenStore = function (that) { return that._l || (that._l = new UncaughtFrozenStore()); }; var UncaughtFrozenStore = function () { this.a = []; }; var findUncaughtFrozen = function (store, key) { return arrayFind(store.a, function (it) { return it[0] === key; }); }; UncaughtFrozenStore.prototype = { get: function (key) { var entry = findUncaughtFrozen(this, key); if (entry) return entry[1]; }, has: function (key) { return !!findUncaughtFrozen(this, key); }, set: function (key, value) { var entry = findUncaughtFrozen(this, key); if (entry) entry[1] = value; else this.a.push([key, value]); }, 'delete': function (key) { var index = arrayFindIndex(this.a, function (it) { return it[0] === key; }); if (~index) this.a.splice(index, 1); return !!~index; } }; module.exports = { getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { var C = wrapper(function (that, iterable) { anInstance(that, C, NAME, '_i'); that._t = NAME; // collection type that._i = id++; // collection id that._l = undefined; // leak store for uncaught frozen objects if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); }); redefineAll(C.prototype, { // 23.3.3.2 WeakMap.prototype.delete(key) // 23.4.3.3 WeakSet.prototype.delete(value) 'delete': function (key) { if (!isObject(key)) return false; var data = getWeak(key); if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); return data && $has(data, this._i) && delete data[this._i]; }, // 23.3.3.4 WeakMap.prototype.has(key) // 23.4.3.4 WeakSet.prototype.has(value) has: function has(key) { if (!isObject(key)) return false; var data = getWeak(key); if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); return data && $has(data, this._i); } }); return C; }, def: function (that, key, value) { var data = getWeak(anObject(key), true); if (data === true) uncaughtFrozenStore(that).set(key, value); else data[that._i] = value; return that; }, ufstore: uncaughtFrozenStore }; /***/ }), /* 223 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var weak = __webpack_require__(222); var validate = __webpack_require__(218); var WEAK_SET = 'WeakSet'; // 23.4 WeakSet Objects __webpack_require__(219)(WEAK_SET, function (get) { return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.4.3.1 WeakSet.prototype.add(value) add: function add(value) { return weak.def(validate(this, WEAK_SET), value, true); } }, weak, false, true); /***/ }), /* 224 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var $typed = __webpack_require__(225); var buffer = __webpack_require__(226); var anObject = __webpack_require__(12); var toAbsoluteIndex = __webpack_require__(39); var toLength = __webpack_require__(37); var isObject = __webpack_require__(13); var ArrayBuffer = __webpack_require__(4).ArrayBuffer; var speciesConstructor = __webpack_require__(208); var $ArrayBuffer = buffer.ArrayBuffer; var $DataView = buffer.DataView; var $isView = $typed.ABV && ArrayBuffer.isView; var $slice = $ArrayBuffer.prototype.slice; var VIEW = $typed.VIEW; var ARRAY_BUFFER = 'ArrayBuffer'; $export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer }); $export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, { // 24.1.3.1 ArrayBuffer.isView(arg) isView: function isView(it) { return $isView && $isView(it) || isObject(it) && VIEW in it; } }); $export($export.P + $export.U + $export.F * __webpack_require__(7)(function () { return !new $ArrayBuffer(2).slice(1, undefined).byteLength; }), ARRAY_BUFFER, { // 24.1.4.3 ArrayBuffer.prototype.slice(start, end) slice: function slice(start, end) { if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix var len = anObject(this).byteLength; var first = toAbsoluteIndex(start, len); var fin = toAbsoluteIndex(end === undefined ? len : end, len); var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(fin - first)); var viewS = new $DataView(this); var viewT = new $DataView(result); var index = 0; while (first < fin) { viewT.setUint8(index++, viewS.getUint8(first++)); } return result; } }); __webpack_require__(193)(ARRAY_BUFFER); /***/ }), /* 225 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); var hide = __webpack_require__(10); var uid = __webpack_require__(19); var TYPED = uid('typed_array'); var VIEW = uid('view'); var ABV = !!(global.ArrayBuffer && global.DataView); var CONSTR = ABV; var i = 0; var l = 9; var Typed; var TypedArrayConstructors = ( 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array' ).split(','); while (i < l) { if (Typed = global[TypedArrayConstructors[i++]]) { hide(Typed.prototype, TYPED, true); hide(Typed.prototype, VIEW, true); } else CONSTR = false; } module.exports = { ABV: ABV, CONSTR: CONSTR, TYPED: TYPED, VIEW: VIEW }; /***/ }), /* 226 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var global = __webpack_require__(4); var DESCRIPTORS = __webpack_require__(6); var LIBRARY = __webpack_require__(24); var $typed = __webpack_require__(225); var hide = __webpack_require__(10); var redefineAll = __webpack_require__(215); var fails = __webpack_require__(7); var anInstance = __webpack_require__(206); var toInteger = __webpack_require__(38); var toLength = __webpack_require__(37); var toIndex = __webpack_require__(227); var gOPN = __webpack_require__(49).f; var dP = __webpack_require__(11).f; var arrayFill = __webpack_require__(189); var setToStringTag = __webpack_require__(25); var ARRAY_BUFFER = 'ArrayBuffer'; var DATA_VIEW = 'DataView'; var PROTOTYPE = 'prototype'; var WRONG_LENGTH = 'Wrong length!'; var WRONG_INDEX = 'Wrong index!'; var $ArrayBuffer = global[ARRAY_BUFFER]; var $DataView = global[DATA_VIEW]; var Math = global.Math; var RangeError = global.RangeError; // eslint-disable-next-line no-shadow-restricted-names var Infinity = global.Infinity; var BaseBuffer = $ArrayBuffer; var abs = Math.abs; var pow = Math.pow; var floor = Math.floor; var log = Math.log; var LN2 = Math.LN2; var BUFFER = 'buffer'; var BYTE_LENGTH = 'byteLength'; var BYTE_OFFSET = 'byteOffset'; var $BUFFER = DESCRIPTORS ? '_b' : BUFFER; var $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH; var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET; // IEEE754 conversions based on https://github.com/feross/ieee754 function packIEEE754(value, mLen, nBytes) { var buffer = new Array(nBytes); var eLen = nBytes * 8 - mLen - 1; var eMax = (1 << eLen) - 1; var eBias = eMax >> 1; var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0; var i = 0; var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0; var e, m, c; value = abs(value); // eslint-disable-next-line no-self-compare if (value != value || value === Infinity) { // eslint-disable-next-line no-self-compare m = value != value ? 1 : 0; e = eMax; } else { e = floor(log(value) / LN2); if (value * (c = pow(2, -e)) < 1) { e--; c *= 2; } if (e + eBias >= 1) { value += rt / c; } else { value += rt * pow(2, 1 - eBias); } if (value * c >= 2) { e++; c /= 2; } if (e + eBias >= eMax) { m = 0; e = eMax; } else if (e + eBias >= 1) { m = (value * c - 1) * pow(2, mLen); e = e + eBias; } else { m = value * pow(2, eBias - 1) * pow(2, mLen); e = 0; } } for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8); e = e << mLen | m; eLen += mLen; for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8); buffer[--i] |= s * 128; return buffer; } function unpackIEEE754(buffer, mLen, nBytes) { var eLen = nBytes * 8 - mLen - 1; var eMax = (1 << eLen) - 1; var eBias = eMax >> 1; var nBits = eLen - 7; var i = nBytes - 1; var s = buffer[i--]; var e = s & 127; var m; s >>= 7; for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8); m = e & (1 << -nBits) - 1; e >>= -nBits; nBits += mLen; for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8); if (e === 0) { e = 1 - eBias; } else if (e === eMax) { return m ? NaN : s ? -Infinity : Infinity; } else { m = m + pow(2, mLen); e = e - eBias; } return (s ? -1 : 1) * m * pow(2, e - mLen); } function unpackI32(bytes) { return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0]; } function packI8(it) { return [it & 0xff]; } function packI16(it) { return [it & 0xff, it >> 8 & 0xff]; } function packI32(it) { return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff]; } function packF64(it) { return packIEEE754(it, 52, 8); } function packF32(it) { return packIEEE754(it, 23, 4); } function addGetter(C, key, internal) { dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } }); } function get(view, bytes, index, isLittleEndian) { var numIndex = +index; var intIndex = toIndex(numIndex); if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); var store = view[$BUFFER]._b; var start = intIndex + view[$OFFSET]; var pack = store.slice(start, start + bytes); return isLittleEndian ? pack : pack.reverse(); } function set(view, bytes, index, conversion, value, isLittleEndian) { var numIndex = +index; var intIndex = toIndex(numIndex); if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); var store = view[$BUFFER]._b; var start = intIndex + view[$OFFSET]; var pack = conversion(+value); for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; } if (!$typed.ABV) { $ArrayBuffer = function ArrayBuffer(length) { anInstance(this, $ArrayBuffer, ARRAY_BUFFER); var byteLength = toIndex(length); this._b = arrayFill.call(new Array(byteLength), 0); this[$LENGTH] = byteLength; }; $DataView = function DataView(buffer, byteOffset, byteLength) { anInstance(this, $DataView, DATA_VIEW); anInstance(buffer, $ArrayBuffer, DATA_VIEW); var bufferLength = buffer[$LENGTH]; var offset = toInteger(byteOffset); if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!'); byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength); if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH); this[$BUFFER] = buffer; this[$OFFSET] = offset; this[$LENGTH] = byteLength; }; if (DESCRIPTORS) { addGetter($ArrayBuffer, BYTE_LENGTH, '_l'); addGetter($DataView, BUFFER, '_b'); addGetter($DataView, BYTE_LENGTH, '_l'); addGetter($DataView, BYTE_OFFSET, '_o'); } redefineAll($DataView[PROTOTYPE], { getInt8: function getInt8(byteOffset) { return get(this, 1, byteOffset)[0] << 24 >> 24; }, getUint8: function getUint8(byteOffset) { return get(this, 1, byteOffset)[0]; }, getInt16: function getInt16(byteOffset /* , littleEndian */) { var bytes = get(this, 2, byteOffset, arguments[1]); return (bytes[1] << 8 | bytes[0]) << 16 >> 16; }, getUint16: function getUint16(byteOffset /* , littleEndian */) { var bytes = get(this, 2, byteOffset, arguments[1]); return bytes[1] << 8 | bytes[0]; }, getInt32: function getInt32(byteOffset /* , littleEndian */) { return unpackI32(get(this, 4, byteOffset, arguments[1])); }, getUint32: function getUint32(byteOffset /* , littleEndian */) { return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0; }, getFloat32: function getFloat32(byteOffset /* , littleEndian */) { return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4); }, getFloat64: function getFloat64(byteOffset /* , littleEndian */) { return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8); }, setInt8: function setInt8(byteOffset, value) { set(this, 1, byteOffset, packI8, value); }, setUint8: function setUint8(byteOffset, value) { set(this, 1, byteOffset, packI8, value); }, setInt16: function setInt16(byteOffset, value /* , littleEndian */) { set(this, 2, byteOffset, packI16, value, arguments[2]); }, setUint16: function setUint16(byteOffset, value /* , littleEndian */) { set(this, 2, byteOffset, packI16, value, arguments[2]); }, setInt32: function setInt32(byteOffset, value /* , littleEndian */) { set(this, 4, byteOffset, packI32, value, arguments[2]); }, setUint32: function setUint32(byteOffset, value /* , littleEndian */) { set(this, 4, byteOffset, packI32, value, arguments[2]); }, setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) { set(this, 4, byteOffset, packF32, value, arguments[2]); }, setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) { set(this, 8, byteOffset, packF64, value, arguments[2]); } }); } else { if (!fails(function () { $ArrayBuffer(1); }) || !fails(function () { new $ArrayBuffer(-1); // eslint-disable-line no-new }) || fails(function () { new $ArrayBuffer(); // eslint-disable-line no-new new $ArrayBuffer(1.5); // eslint-disable-line no-new new $ArrayBuffer(NaN); // eslint-disable-line no-new return $ArrayBuffer.name != ARRAY_BUFFER; })) { $ArrayBuffer = function ArrayBuffer(length) { anInstance(this, $ArrayBuffer); return new BaseBuffer(toIndex(length)); }; var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE]; for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) { if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]); } if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer; } // iOS Safari 7.x bug var view = new $DataView(new $ArrayBuffer(2)); var $setInt8 = $DataView[PROTOTYPE].setInt8; view.setInt8(0, 2147483648); view.setInt8(1, 2147483649); if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], { setInt8: function setInt8(byteOffset, value) { $setInt8.call(this, byteOffset, value << 24 >> 24); }, setUint8: function setUint8(byteOffset, value) { $setInt8.call(this, byteOffset, value << 24 >> 24); } }, true); } setToStringTag($ArrayBuffer, ARRAY_BUFFER); setToStringTag($DataView, DATA_VIEW); hide($DataView[PROTOTYPE], $typed.VIEW, true); exports[ARRAY_BUFFER] = $ArrayBuffer; exports[DATA_VIEW] = $DataView; /***/ }), /* 227 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/ecma262/#sec-toindex var toInteger = __webpack_require__(38); var toLength = __webpack_require__(37); module.exports = function (it) { if (it === undefined) return 0; var number = toInteger(it); var length = toLength(number); if (number !== length) throw RangeError('Wrong length!'); return length; }; /***/ }), /* 228 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); $export($export.G + $export.W + $export.F * !__webpack_require__(225).ABV, { DataView: __webpack_require__(226).DataView }); /***/ }), /* 229 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Int8', 1, function (init) { return function Int8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); /***/ }), /* 230 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; if (__webpack_require__(6)) { var LIBRARY = __webpack_require__(24); var global = __webpack_require__(4); var fails = __webpack_require__(7); var $export = __webpack_require__(8); var $typed = __webpack_require__(225); var $buffer = __webpack_require__(226); var ctx = __webpack_require__(20); var anInstance = __webpack_require__(206); var propertyDesc = __webpack_require__(17); var hide = __webpack_require__(10); var redefineAll = __webpack_require__(215); var toInteger = __webpack_require__(38); var toLength = __webpack_require__(37); var toIndex = __webpack_require__(227); var toAbsoluteIndex = __webpack_require__(39); var toPrimitive = __webpack_require__(16); var has = __webpack_require__(5); var classof = __webpack_require__(74); var isObject = __webpack_require__(13); var toObject = __webpack_require__(57); var isArrayIter = __webpack_require__(163); var create = __webpack_require__(45); var getPrototypeOf = __webpack_require__(58); var gOPN = __webpack_require__(49).f; var getIterFn = __webpack_require__(165); var uid = __webpack_require__(19); var wks = __webpack_require__(26); var createArrayMethod = __webpack_require__(173); var createArrayIncludes = __webpack_require__(36); var speciesConstructor = __webpack_require__(208); var ArrayIterators = __webpack_require__(194); var Iterators = __webpack_require__(129); var $iterDetect = __webpack_require__(166); var setSpecies = __webpack_require__(193); var arrayFill = __webpack_require__(189); var arrayCopyWithin = __webpack_require__(186); var $DP = __webpack_require__(11); var $GOPD = __webpack_require__(50); var dP = $DP.f; var gOPD = $GOPD.f; var RangeError = global.RangeError; var TypeError = global.TypeError; var Uint8Array = global.Uint8Array; var ARRAY_BUFFER = 'ArrayBuffer'; var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER; var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'; var PROTOTYPE = 'prototype'; var ArrayProto = Array[PROTOTYPE]; var $ArrayBuffer = $buffer.ArrayBuffer; var $DataView = $buffer.DataView; var arrayForEach = createArrayMethod(0); var arrayFilter = createArrayMethod(2); var arraySome = createArrayMethod(3); var arrayEvery = createArrayMethod(4); var arrayFind = createArrayMethod(5); var arrayFindIndex = createArrayMethod(6); var arrayIncludes = createArrayIncludes(true); var arrayIndexOf = createArrayIncludes(false); var arrayValues = ArrayIterators.values; var arrayKeys = ArrayIterators.keys; var arrayEntries = ArrayIterators.entries; var arrayLastIndexOf = ArrayProto.lastIndexOf; var arrayReduce = ArrayProto.reduce; var arrayReduceRight = ArrayProto.reduceRight; var arrayJoin = ArrayProto.join; var arraySort = ArrayProto.sort; var arraySlice = ArrayProto.slice; var arrayToString = ArrayProto.toString; var arrayToLocaleString = ArrayProto.toLocaleString; var ITERATOR = wks('iterator'); var TAG = wks('toStringTag'); var TYPED_CONSTRUCTOR = uid('typed_constructor'); var DEF_CONSTRUCTOR = uid('def_constructor'); var ALL_CONSTRUCTORS = $typed.CONSTR; var TYPED_ARRAY = $typed.TYPED; var VIEW = $typed.VIEW; var WRONG_LENGTH = 'Wrong length!'; var $map = createArrayMethod(1, function (O, length) { return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length); }); var LITTLE_ENDIAN = fails(function () { // eslint-disable-next-line no-undef return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1; }); var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () { new Uint8Array(1).set({}); }); var toOffset = function (it, BYTES) { var offset = toInteger(it); if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!'); return offset; }; var validate = function (it) { if (isObject(it) && TYPED_ARRAY in it) return it; throw TypeError(it + ' is not a typed array!'); }; var allocate = function (C, length) { if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) { throw TypeError('It is not a typed array constructor!'); } return new C(length); }; var speciesFromList = function (O, list) { return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list); }; var fromList = function (C, list) { var index = 0; var length = list.length; var result = allocate(C, length); while (length > index) result[index] = list[index++]; return result; }; var addGetter = function (it, key, internal) { dP(it, key, { get: function () { return this._d[internal]; } }); }; var $from = function from(source /* , mapfn, thisArg */) { var O = toObject(source); var aLen = arguments.length; var mapfn = aLen > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; var iterFn = getIterFn(O); var i, length, values, result, step, iterator; if (iterFn != undefined && !isArrayIter(iterFn)) { for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) { values.push(step.value); } O = values; } if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2); for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) { result[i] = mapping ? mapfn(O[i], i) : O[i]; } return result; }; var $of = function of(/* ...items */) { var index = 0; var length = arguments.length; var result = allocate(this, length); while (length > index) result[index] = arguments[index++]; return result; }; // iOS Safari 6.x fails here var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); }); var $toLocaleString = function toLocaleString() { return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments); }; var proto = { copyWithin: function copyWithin(target, start /* , end */) { return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined); }, every: function every(callbackfn /* , thisArg */) { return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars return arrayFill.apply(validate(this), arguments); }, filter: function filter(callbackfn /* , thisArg */) { return speciesFromList(this, arrayFilter(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined)); }, find: function find(predicate /* , thisArg */) { return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }, findIndex: function findIndex(predicate /* , thisArg */) { return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }, forEach: function forEach(callbackfn /* , thisArg */) { arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, indexOf: function indexOf(searchElement /* , fromIndex */) { return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }, includes: function includes(searchElement /* , fromIndex */) { return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }, join: function join(separator) { // eslint-disable-line no-unused-vars return arrayJoin.apply(validate(this), arguments); }, lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars return arrayLastIndexOf.apply(validate(this), arguments); }, map: function map(mapfn /* , thisArg */) { return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined); }, reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars return arrayReduce.apply(validate(this), arguments); }, reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars return arrayReduceRight.apply(validate(this), arguments); }, reverse: function reverse() { var that = this; var length = validate(that).length; var middle = Math.floor(length / 2); var index = 0; var value; while (index < middle) { value = that[index]; that[index++] = that[--length]; that[length] = value; } return that; }, some: function some(callbackfn /* , thisArg */) { return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }, sort: function sort(comparefn) { return arraySort.call(validate(this), comparefn); }, subarray: function subarray(begin, end) { var O = validate(this); var length = O.length; var $begin = toAbsoluteIndex(begin, length); return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))( O.buffer, O.byteOffset + $begin * O.BYTES_PER_ELEMENT, toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin) ); } }; var $slice = function slice(start, end) { return speciesFromList(this, arraySlice.call(validate(this), start, end)); }; var $set = function set(arrayLike /* , offset */) { validate(this); var offset = toOffset(arguments[1], 1); var length = this.length; var src = toObject(arrayLike); var len = toLength(src.length); var index = 0; if (len + offset > length) throw RangeError(WRONG_LENGTH); while (index < len) this[offset + index] = src[index++]; }; var $iterators = { entries: function entries() { return arrayEntries.call(validate(this)); }, keys: function keys() { return arrayKeys.call(validate(this)); }, values: function values() { return arrayValues.call(validate(this)); } }; var isTAIndex = function (target, key) { return isObject(target) && target[TYPED_ARRAY] && typeof key != 'symbol' && key in target && String(+key) == String(key); }; var $getDesc = function getOwnPropertyDescriptor(target, key) { return isTAIndex(target, key = toPrimitive(key, true)) ? propertyDesc(2, target[key]) : gOPD(target, key); }; var $setDesc = function defineProperty(target, key, desc) { if (isTAIndex(target, key = toPrimitive(key, true)) && isObject(desc) && has(desc, 'value') && !has(desc, 'get') && !has(desc, 'set') // TODO: add validation descriptor w/o calling accessors && !desc.configurable && (!has(desc, 'writable') || desc.writable) && (!has(desc, 'enumerable') || desc.enumerable) ) { target[key] = desc.value; return target; } return dP(target, key, desc); }; if (!ALL_CONSTRUCTORS) { $GOPD.f = $getDesc; $DP.f = $setDesc; } $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', { getOwnPropertyDescriptor: $getDesc, defineProperty: $setDesc }); if (fails(function () { arrayToString.call({}); })) { arrayToString = arrayToLocaleString = function toString() { return arrayJoin.call(this); }; } var $TypedArrayPrototype$ = redefineAll({}, proto); redefineAll($TypedArrayPrototype$, $iterators); hide($TypedArrayPrototype$, ITERATOR, $iterators.values); redefineAll($TypedArrayPrototype$, { slice: $slice, set: $set, constructor: function () { /* noop */ }, toString: arrayToString, toLocaleString: $toLocaleString }); addGetter($TypedArrayPrototype$, 'buffer', 'b'); addGetter($TypedArrayPrototype$, 'byteOffset', 'o'); addGetter($TypedArrayPrototype$, 'byteLength', 'l'); addGetter($TypedArrayPrototype$, 'length', 'e'); dP($TypedArrayPrototype$, TAG, { get: function () { return this[TYPED_ARRAY]; } }); // eslint-disable-next-line max-statements module.exports = function (KEY, BYTES, wrapper, CLAMPED) { CLAMPED = !!CLAMPED; var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array'; var GETTER = 'get' + KEY; var SETTER = 'set' + KEY; var TypedArray = global[NAME]; var Base = TypedArray || {}; var TAC = TypedArray && getPrototypeOf(TypedArray); var FORCED = !TypedArray || !$typed.ABV; var O = {}; var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE]; var getter = function (that, index) { var data = that._d; return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN); }; var setter = function (that, index, value) { var data = that._d; if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff; data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN); }; var addElement = function (that, index) { dP(that, index, { get: function () { return getter(this, index); }, set: function (value) { return setter(this, index, value); }, enumerable: true }); }; if (FORCED) { TypedArray = wrapper(function (that, data, $offset, $length) { anInstance(that, TypedArray, NAME, '_d'); var index = 0; var offset = 0; var buffer, byteLength, length, klass; if (!isObject(data)) { length = toIndex(data); byteLength = length * BYTES; buffer = new $ArrayBuffer(byteLength); } else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { buffer = data; offset = toOffset($offset, BYTES); var $len = data.byteLength; if ($length === undefined) { if ($len % BYTES) throw RangeError(WRONG_LENGTH); byteLength = $len - offset; if (byteLength < 0) throw RangeError(WRONG_LENGTH); } else { byteLength = toLength($length) * BYTES; if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH); } length = byteLength / BYTES; } else if (TYPED_ARRAY in data) { return fromList(TypedArray, data); } else { return $from.call(TypedArray, data); } hide(that, '_d', { b: buffer, o: offset, l: byteLength, e: length, v: new $DataView(buffer) }); while (index < length) addElement(that, index++); }); TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$); hide(TypedArrayPrototype, 'constructor', TypedArray); } else if (!fails(function () { TypedArray(1); }) || !fails(function () { new TypedArray(-1); // eslint-disable-line no-new }) || !$iterDetect(function (iter) { new TypedArray(); // eslint-disable-line no-new new TypedArray(null); // eslint-disable-line no-new new TypedArray(1.5); // eslint-disable-line no-new new TypedArray(iter); // eslint-disable-line no-new }, true)) { TypedArray = wrapper(function (that, data, $offset, $length) { anInstance(that, TypedArray, NAME); var klass; // `ws` module bug, temporarily remove validation length for Uint8Array // https://github.com/websockets/ws/pull/645 if (!isObject(data)) return new Base(toIndex(data)); if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { return $length !== undefined ? new Base(data, toOffset($offset, BYTES), $length) : $offset !== undefined ? new Base(data, toOffset($offset, BYTES)) : new Base(data); } if (TYPED_ARRAY in data) return fromList(TypedArray, data); return $from.call(TypedArray, data); }); arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) { if (!(key in TypedArray)) hide(TypedArray, key, Base[key]); }); TypedArray[PROTOTYPE] = TypedArrayPrototype; if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray; } var $nativeIterator = TypedArrayPrototype[ITERATOR]; var CORRECT_ITER_NAME = !!$nativeIterator && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined); var $iterator = $iterators.values; hide(TypedArray, TYPED_CONSTRUCTOR, true); hide(TypedArrayPrototype, TYPED_ARRAY, NAME); hide(TypedArrayPrototype, VIEW, true); hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray); if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) { dP(TypedArrayPrototype, TAG, { get: function () { return NAME; } }); } O[NAME] = TypedArray; $export($export.G + $export.W + $export.F * (TypedArray != Base), O); $export($export.S, NAME, { BYTES_PER_ELEMENT: BYTES }); $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, { from: $from, of: $of }); if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES); $export($export.P, NAME, proto); setSpecies(NAME); $export($export.P + $export.F * FORCED_SET, NAME, { set: $set }); $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators); if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString; $export($export.P + $export.F * fails(function () { new TypedArray(1).slice(); }), NAME, { slice: $slice }); $export($export.P + $export.F * (fails(function () { return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString(); }) || !fails(function () { TypedArrayPrototype.toLocaleString.call([1, 2]); })), NAME, { toLocaleString: $toLocaleString }); Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator; if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator); }; } else module.exports = function () { /* empty */ }; /***/ }), /* 231 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Uint8', 1, function (init) { return function Uint8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); /***/ }), /* 232 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Uint8', 1, function (init) { return function Uint8ClampedArray(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }, true); /***/ }), /* 233 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Int16', 2, function (init) { return function Int16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); /***/ }), /* 234 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Uint16', 2, function (init) { return function Uint16Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); /***/ }), /* 235 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Int32', 4, function (init) { return function Int32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); /***/ }), /* 236 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Uint32', 4, function (init) { return function Uint32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); /***/ }), /* 237 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Float32', 4, function (init) { return function Float32Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); /***/ }), /* 238 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(230)('Float64', 8, function (init) { return function Float64Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); /***/ }), /* 239 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) var $export = __webpack_require__(8); var aFunction = __webpack_require__(21); var anObject = __webpack_require__(12); var rApply = (__webpack_require__(4).Reflect || {}).apply; var fApply = Function.apply; // MS Edge argumentsList argument is optional $export($export.S + $export.F * !__webpack_require__(7)(function () { rApply(function () { /* empty */ }); }), 'Reflect', { apply: function apply(target, thisArgument, argumentsList) { var T = aFunction(target); var L = anObject(argumentsList); return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L); } }); /***/ }), /* 240 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) var $export = __webpack_require__(8); var create = __webpack_require__(45); var aFunction = __webpack_require__(21); var anObject = __webpack_require__(12); var isObject = __webpack_require__(13); var fails = __webpack_require__(7); var bind = __webpack_require__(76); var rConstruct = (__webpack_require__(4).Reflect || {}).construct; // MS Edge supports only 2 arguments and argumentsList argument is optional // FF Nightly sets third argument as `new.target`, but does not create `this` from it var NEW_TARGET_BUG = fails(function () { function F() { /* empty */ } return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); }); var ARGS_BUG = !fails(function () { rConstruct(function () { /* empty */ }); }); $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { construct: function construct(Target, args /* , newTarget */) { aFunction(Target); anObject(args); var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget); if (Target == newTarget) { // w/o altered newTarget, optimization for 0-4 arguments switch (args.length) { case 0: return new Target(); case 1: return new Target(args[0]); case 2: return new Target(args[0], args[1]); case 3: return new Target(args[0], args[1], args[2]); case 4: return new Target(args[0], args[1], args[2], args[3]); } // w/o altered newTarget, lot of arguments case var $args = [null]; $args.push.apply($args, args); return new (bind.apply(Target, $args))(); } // with altered newTarget, not support built-in constructors var proto = newTarget.prototype; var instance = create(isObject(proto) ? proto : Object.prototype); var result = Function.apply.call(Target, instance, args); return isObject(result) ? result : instance; } }); /***/ }), /* 241 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) var dP = __webpack_require__(11); var $export = __webpack_require__(8); var anObject = __webpack_require__(12); var toPrimitive = __webpack_require__(16); // MS Edge has broken Reflect.defineProperty - throwing instead of returning false $export($export.S + $export.F * __webpack_require__(7)(function () { // eslint-disable-next-line no-undef Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 }); }), 'Reflect', { defineProperty: function defineProperty(target, propertyKey, attributes) { anObject(target); propertyKey = toPrimitive(propertyKey, true); anObject(attributes); try { dP.f(target, propertyKey, attributes); return true; } catch (e) { return false; } } }); /***/ }), /* 242 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.4 Reflect.deleteProperty(target, propertyKey) var $export = __webpack_require__(8); var gOPD = __webpack_require__(50).f; var anObject = __webpack_require__(12); $export($export.S, 'Reflect', { deleteProperty: function deleteProperty(target, propertyKey) { var desc = gOPD(anObject(target), propertyKey); return desc && !desc.configurable ? false : delete target[propertyKey]; } }); /***/ }), /* 243 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // 26.1.5 Reflect.enumerate(target) var $export = __webpack_require__(8); var anObject = __webpack_require__(12); var Enumerate = function (iterated) { this._t = anObject(iterated); // target this._i = 0; // next index var keys = this._k = []; // keys var key; for (key in iterated) keys.push(key); }; __webpack_require__(130)(Enumerate, 'Object', function () { var that = this; var keys = that._k; var key; do { if (that._i >= keys.length) return { value: undefined, done: true }; } while (!((key = keys[that._i++]) in that._t)); return { value: key, done: false }; }); $export($export.S, 'Reflect', { enumerate: function enumerate(target) { return new Enumerate(target); } }); /***/ }), /* 244 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.6 Reflect.get(target, propertyKey [, receiver]) var gOPD = __webpack_require__(50); var getPrototypeOf = __webpack_require__(58); var has = __webpack_require__(5); var $export = __webpack_require__(8); var isObject = __webpack_require__(13); var anObject = __webpack_require__(12); function get(target, propertyKey /* , receiver */) { var receiver = arguments.length < 3 ? target : arguments[2]; var desc, proto; if (anObject(target) === receiver) return target[propertyKey]; if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') ? desc.value : desc.get !== undefined ? desc.get.call(receiver) : undefined; if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); } $export($export.S, 'Reflect', { get: get }); /***/ }), /* 245 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) var gOPD = __webpack_require__(50); var $export = __webpack_require__(8); var anObject = __webpack_require__(12); $export($export.S, 'Reflect', { getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { return gOPD.f(anObject(target), propertyKey); } }); /***/ }), /* 246 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.8 Reflect.getPrototypeOf(target) var $export = __webpack_require__(8); var getProto = __webpack_require__(58); var anObject = __webpack_require__(12); $export($export.S, 'Reflect', { getPrototypeOf: function getPrototypeOf(target) { return getProto(anObject(target)); } }); /***/ }), /* 247 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.9 Reflect.has(target, propertyKey) var $export = __webpack_require__(8); $export($export.S, 'Reflect', { has: function has(target, propertyKey) { return propertyKey in target; } }); /***/ }), /* 248 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.10 Reflect.isExtensible(target) var $export = __webpack_require__(8); var anObject = __webpack_require__(12); var $isExtensible = Object.isExtensible; $export($export.S, 'Reflect', { isExtensible: function isExtensible(target) { anObject(target); return $isExtensible ? $isExtensible(target) : true; } }); /***/ }), /* 249 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.11 Reflect.ownKeys(target) var $export = __webpack_require__(8); $export($export.S, 'Reflect', { ownKeys: __webpack_require__(250) }); /***/ }), /* 250 */ /***/ (function(module, exports, __webpack_require__) { // all object keys, includes non-enumerable and symbols var gOPN = __webpack_require__(49); var gOPS = __webpack_require__(42); var anObject = __webpack_require__(12); var Reflect = __webpack_require__(4).Reflect; module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) { var keys = gOPN.f(anObject(it)); var getSymbols = gOPS.f; return getSymbols ? keys.concat(getSymbols(it)) : keys; }; /***/ }), /* 251 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.12 Reflect.preventExtensions(target) var $export = __webpack_require__(8); var anObject = __webpack_require__(12); var $preventExtensions = Object.preventExtensions; $export($export.S, 'Reflect', { preventExtensions: function preventExtensions(target) { anObject(target); try { if ($preventExtensions) $preventExtensions(target); return true; } catch (e) { return false; } } }); /***/ }), /* 252 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) var dP = __webpack_require__(11); var gOPD = __webpack_require__(50); var getPrototypeOf = __webpack_require__(58); var has = __webpack_require__(5); var $export = __webpack_require__(8); var createDesc = __webpack_require__(17); var anObject = __webpack_require__(12); var isObject = __webpack_require__(13); function set(target, propertyKey, V /* , receiver */) { var receiver = arguments.length < 4 ? target : arguments[3]; var ownDesc = gOPD.f(anObject(target), propertyKey); var existingDescriptor, proto; if (!ownDesc) { if (isObject(proto = getPrototypeOf(target))) { return set(proto, propertyKey, V, receiver); } ownDesc = createDesc(0); } if (has(ownDesc, 'value')) { if (ownDesc.writable === false || !isObject(receiver)) return false; if (existingDescriptor = gOPD.f(receiver, propertyKey)) { if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false; existingDescriptor.value = V; dP.f(receiver, propertyKey, existingDescriptor); } else dP.f(receiver, propertyKey, createDesc(0, V)); return true; } return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true); } $export($export.S, 'Reflect', { set: set }); /***/ }), /* 253 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.14 Reflect.setPrototypeOf(target, proto) var $export = __webpack_require__(8); var setProto = __webpack_require__(72); if (setProto) $export($export.S, 'Reflect', { setPrototypeOf: function setPrototypeOf(target, proto) { setProto.check(target, proto); try { setProto.set(target, proto); return true; } catch (e) { return false; } } }); /***/ }), /* 254 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/tc39/Array.prototype.includes var $export = __webpack_require__(8); var $includes = __webpack_require__(36)(true); $export($export.P, 'Array', { includes: function includes(el /* , fromIndex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); __webpack_require__(187)('includes'); /***/ }), /* 255 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap var $export = __webpack_require__(8); var flattenIntoArray = __webpack_require__(256); var toObject = __webpack_require__(57); var toLength = __webpack_require__(37); var aFunction = __webpack_require__(21); var arraySpeciesCreate = __webpack_require__(174); $export($export.P, 'Array', { flatMap: function flatMap(callbackfn /* , thisArg */) { var O = toObject(this); var sourceLen, A; aFunction(callbackfn); sourceLen = toLength(O.length); A = arraySpeciesCreate(O, 0); flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments[1]); return A; } }); __webpack_require__(187)('flatMap'); /***/ }), /* 256 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray var isArray = __webpack_require__(44); var isObject = __webpack_require__(13); var toLength = __webpack_require__(37); var ctx = __webpack_require__(20); var IS_CONCAT_SPREADABLE = __webpack_require__(26)('isConcatSpreadable'); function flattenIntoArray(target, original, source, sourceLen, start, depth, mapper, thisArg) { var targetIndex = start; var sourceIndex = 0; var mapFn = mapper ? ctx(mapper, thisArg, 3) : false; var element, spreadable; while (sourceIndex < sourceLen) { if (sourceIndex in source) { element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex]; spreadable = false; if (isObject(element)) { spreadable = element[IS_CONCAT_SPREADABLE]; spreadable = spreadable !== undefined ? !!spreadable : isArray(element); } if (spreadable && depth > 0) { targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1; } else { if (targetIndex >= 0x1fffffffffffff) throw TypeError(); target[targetIndex] = element; } targetIndex++; } sourceIndex++; } return targetIndex; } module.exports = flattenIntoArray; /***/ }), /* 257 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten var $export = __webpack_require__(8); var flattenIntoArray = __webpack_require__(256); var toObject = __webpack_require__(57); var toLength = __webpack_require__(37); var toInteger = __webpack_require__(38); var arraySpeciesCreate = __webpack_require__(174); $export($export.P, 'Array', { flatten: function flatten(/* depthArg = 1 */) { var depthArg = arguments[0]; var O = toObject(this); var sourceLen = toLength(O.length); var A = arraySpeciesCreate(O, 0); flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg)); return A; } }); __webpack_require__(187)('flatten'); /***/ }), /* 258 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/mathiasbynens/String.prototype.at var $export = __webpack_require__(8); var $at = __webpack_require__(127)(true); $export($export.P, 'String', { at: function at(pos) { return $at(this, pos); } }); /***/ }), /* 259 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end var $export = __webpack_require__(8); var $pad = __webpack_require__(260); var userAgent = __webpack_require__(213); // https://github.com/zloirock/core-js/issues/280 $export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', { padStart: function padStart(maxLength /* , fillString = ' ' */) { return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true); } }); /***/ }), /* 260 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-string-pad-start-end var toLength = __webpack_require__(37); var repeat = __webpack_require__(90); var defined = __webpack_require__(35); module.exports = function (that, maxLength, fillString, left) { var S = String(defined(that)); var stringLength = S.length; var fillStr = fillString === undefined ? ' ' : String(fillString); var intMaxLength = toLength(maxLength); if (intMaxLength <= stringLength || fillStr == '') return S; var fillLen = intMaxLength - stringLength; var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length)); if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen); return left ? stringFiller + S : S + stringFiller; }; /***/ }), /* 261 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/tc39/proposal-string-pad-start-end var $export = __webpack_require__(8); var $pad = __webpack_require__(260); var userAgent = __webpack_require__(213); // https://github.com/zloirock/core-js/issues/280 $export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', { padEnd: function padEnd(maxLength /* , fillString = ' ' */) { return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false); } }); /***/ }), /* 262 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim __webpack_require__(82)('trimLeft', function ($trim) { return function trimLeft() { return $trim(this, 1); }; }, 'trimStart'); /***/ }), /* 263 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/sebmarkbage/ecmascript-string-left-right-trim __webpack_require__(82)('trimRight', function ($trim) { return function trimRight() { return $trim(this, 2); }; }, 'trimEnd'); /***/ }), /* 264 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://tc39.github.io/String.prototype.matchAll/ var $export = __webpack_require__(8); var defined = __webpack_require__(35); var toLength = __webpack_require__(37); var isRegExp = __webpack_require__(134); var getFlags = __webpack_require__(197); var RegExpProto = RegExp.prototype; var $RegExpStringIterator = function (regexp, string) { this._r = regexp; this._s = string; }; __webpack_require__(130)($RegExpStringIterator, 'RegExp String', function next() { var match = this._r.exec(this._s); return { value: match, done: match === null }; }); $export($export.P, 'String', { matchAll: function matchAll(regexp) { defined(this); if (!isRegExp(regexp)) throw TypeError(regexp + ' is not a regexp!'); var S = String(this); var flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp); var rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags); rx.lastIndex = toLength(regexp.lastIndex); return new $RegExpStringIterator(rx, S); } }); /***/ }), /* 265 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(28)('asyncIterator'); /***/ }), /* 266 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(28)('observable'); /***/ }), /* 267 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-object-getownpropertydescriptors var $export = __webpack_require__(8); var ownKeys = __webpack_require__(250); var toIObject = __webpack_require__(32); var gOPD = __webpack_require__(50); var createProperty = __webpack_require__(164); $export($export.S, 'Object', { getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { var O = toIObject(object); var getDesc = gOPD.f; var keys = ownKeys(O); var result = {}; var i = 0; var key, desc; while (keys.length > i) { desc = getDesc(O, key = keys[i++]); if (desc !== undefined) createProperty(result, key, desc); } return result; } }); /***/ }), /* 268 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-object-values-entries var $export = __webpack_require__(8); var $values = __webpack_require__(269)(false); $export($export.S, 'Object', { values: function values(it) { return $values(it); } }); /***/ }), /* 269 */ /***/ (function(module, exports, __webpack_require__) { var getKeys = __webpack_require__(30); var toIObject = __webpack_require__(32); var isEnum = __webpack_require__(43).f; module.exports = function (isEntries) { return function (it) { var O = toIObject(it); var keys = getKeys(O); var length = keys.length; var i = 0; var result = []; var key; while (length > i) if (isEnum.call(O, key = keys[i++])) { result.push(isEntries ? [key, O[key]] : O[key]); } return result; }; }; /***/ }), /* 270 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-object-values-entries var $export = __webpack_require__(8); var $entries = __webpack_require__(269)(true); $export($export.S, 'Object', { entries: function entries(it) { return $entries(it); } }); /***/ }), /* 271 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var toObject = __webpack_require__(57); var aFunction = __webpack_require__(21); var $defineProperty = __webpack_require__(11); // B.2.2.2 Object.prototype.__defineGetter__(P, getter) __webpack_require__(6) && $export($export.P + __webpack_require__(272), 'Object', { __defineGetter__: function __defineGetter__(P, getter) { $defineProperty.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true }); } }); /***/ }), /* 272 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // Forced replacement prototype accessors methods module.exports = __webpack_require__(24) || !__webpack_require__(7)(function () { var K = Math.random(); // In FF throws only define methods // eslint-disable-next-line no-undef, no-useless-call __defineSetter__.call(null, K, function () { /* empty */ }); delete __webpack_require__(4)[K]; }); /***/ }), /* 273 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var toObject = __webpack_require__(57); var aFunction = __webpack_require__(21); var $defineProperty = __webpack_require__(11); // B.2.2.3 Object.prototype.__defineSetter__(P, setter) __webpack_require__(6) && $export($export.P + __webpack_require__(272), 'Object', { __defineSetter__: function __defineSetter__(P, setter) { $defineProperty.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true }); } }); /***/ }), /* 274 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var toObject = __webpack_require__(57); var toPrimitive = __webpack_require__(16); var getPrototypeOf = __webpack_require__(58); var getOwnPropertyDescriptor = __webpack_require__(50).f; // B.2.2.4 Object.prototype.__lookupGetter__(P) __webpack_require__(6) && $export($export.P + __webpack_require__(272), 'Object', { __lookupGetter__: function __lookupGetter__(P) { var O = toObject(this); var K = toPrimitive(P, true); var D; do { if (D = getOwnPropertyDescriptor(O, K)) return D.get; } while (O = getPrototypeOf(O)); } }); /***/ }), /* 275 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(8); var toObject = __webpack_require__(57); var toPrimitive = __webpack_require__(16); var getPrototypeOf = __webpack_require__(58); var getOwnPropertyDescriptor = __webpack_require__(50).f; // B.2.2.5 Object.prototype.__lookupSetter__(P) __webpack_require__(6) && $export($export.P + __webpack_require__(272), 'Object', { __lookupSetter__: function __lookupSetter__(P) { var O = toObject(this); var K = toPrimitive(P, true); var D; do { if (D = getOwnPropertyDescriptor(O, K)) return D.set; } while (O = getPrototypeOf(O)); } }); /***/ }), /* 276 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = __webpack_require__(8); $export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(277)('Map') }); /***/ }), /* 277 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var classof = __webpack_require__(74); var from = __webpack_require__(278); module.exports = function (NAME) { return function toJSON() { if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); return from(this); }; }; /***/ }), /* 278 */ /***/ (function(module, exports, __webpack_require__) { var forOf = __webpack_require__(207); module.exports = function (iter, ITERATOR) { var result = []; forOf(iter, false, result.push, result, ITERATOR); return result; }; /***/ }), /* 279 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = __webpack_require__(8); $export($export.P + $export.R, 'Set', { toJSON: __webpack_require__(277)('Set') }); /***/ }), /* 280 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of __webpack_require__(281)('Map'); /***/ }), /* 281 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://tc39.github.io/proposal-setmap-offrom/ var $export = __webpack_require__(8); module.exports = function (COLLECTION) { $export($export.S, COLLECTION, { of: function of() { var length = arguments.length; var A = new Array(length); while (length--) A[length] = arguments[length]; return new this(A); } }); }; /***/ }), /* 282 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/proposal-setmap-offrom/#sec-set.of __webpack_require__(281)('Set'); /***/ }), /* 283 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of __webpack_require__(281)('WeakMap'); /***/ }), /* 284 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of __webpack_require__(281)('WeakSet'); /***/ }), /* 285 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from __webpack_require__(286)('Map'); /***/ }), /* 286 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://tc39.github.io/proposal-setmap-offrom/ var $export = __webpack_require__(8); var aFunction = __webpack_require__(21); var ctx = __webpack_require__(20); var forOf = __webpack_require__(207); module.exports = function (COLLECTION) { $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { var mapFn = arguments[1]; var mapping, A, n, cb; aFunction(this); mapping = mapFn !== undefined; if (mapping) aFunction(mapFn); if (source == undefined) return new this(); A = []; if (mapping) { n = 0; cb = ctx(mapFn, arguments[2], 2); forOf(source, false, function (nextItem) { A.push(cb(nextItem, n++)); }); } else { forOf(source, false, A.push, A); } return new this(A); } }); }; /***/ }), /* 287 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/proposal-setmap-offrom/#sec-set.from __webpack_require__(286)('Set'); /***/ }), /* 288 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from __webpack_require__(286)('WeakMap'); /***/ }), /* 289 */ /***/ (function(module, exports, __webpack_require__) { // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from __webpack_require__(286)('WeakSet'); /***/ }), /* 290 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-global var $export = __webpack_require__(8); $export($export.G, { global: __webpack_require__(4) }); /***/ }), /* 291 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-global var $export = __webpack_require__(8); $export($export.S, 'System', { global: __webpack_require__(4) }); /***/ }), /* 292 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/ljharb/proposal-is-error var $export = __webpack_require__(8); var cof = __webpack_require__(34); $export($export.S, 'Error', { isError: function isError(it) { return cof(it) === 'Error'; } }); /***/ }), /* 293 */ /***/ (function(module, exports, __webpack_require__) { // https://rwaldron.github.io/proposal-math-extensions/ var $export = __webpack_require__(8); $export($export.S, 'Math', { clamp: function clamp(x, lower, upper) { return Math.min(upper, Math.max(lower, x)); } }); /***/ }), /* 294 */ /***/ (function(module, exports, __webpack_require__) { // https://rwaldron.github.io/proposal-math-extensions/ var $export = __webpack_require__(8); $export($export.S, 'Math', { DEG_PER_RAD: Math.PI / 180 }); /***/ }), /* 295 */ /***/ (function(module, exports, __webpack_require__) { // https://rwaldron.github.io/proposal-math-extensions/ var $export = __webpack_require__(8); var RAD_PER_DEG = 180 / Math.PI; $export($export.S, 'Math', { degrees: function degrees(radians) { return radians * RAD_PER_DEG; } }); /***/ }), /* 296 */ /***/ (function(module, exports, __webpack_require__) { // https://rwaldron.github.io/proposal-math-extensions/ var $export = __webpack_require__(8); var scale = __webpack_require__(297); var fround = __webpack_require__(113); $export($export.S, 'Math', { fscale: function fscale(x, inLow, inHigh, outLow, outHigh) { return fround(scale(x, inLow, inHigh, outLow, outHigh)); } }); /***/ }), /* 297 */ /***/ (function(module, exports) { // https://rwaldron.github.io/proposal-math-extensions/ module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) { if ( arguments.length === 0 // eslint-disable-next-line no-self-compare || x != x // eslint-disable-next-line no-self-compare || inLow != inLow // eslint-disable-next-line no-self-compare || inHigh != inHigh // eslint-disable-next-line no-self-compare || outLow != outLow // eslint-disable-next-line no-self-compare || outHigh != outHigh ) return NaN; if (x === Infinity || x === -Infinity) return x; return (x - inLow) * (outHigh - outLow) / (inHigh - inLow) + outLow; }; /***/ }), /* 298 */ /***/ (function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = __webpack_require__(8); $export($export.S, 'Math', { iaddh: function iaddh(x0, x1, y0, y1) { var $x0 = x0 >>> 0; var $x1 = x1 >>> 0; var $y0 = y0 >>> 0; return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0; } }); /***/ }), /* 299 */ /***/ (function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = __webpack_require__(8); $export($export.S, 'Math', { isubh: function isubh(x0, x1, y0, y1) { var $x0 = x0 >>> 0; var $x1 = x1 >>> 0; var $y0 = y0 >>> 0; return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0; } }); /***/ }), /* 300 */ /***/ (function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = __webpack_require__(8); $export($export.S, 'Math', { imulh: function imulh(u, v) { var UINT16 = 0xffff; var $u = +u; var $v = +v; var u0 = $u & UINT16; var v0 = $v & UINT16; var u1 = $u >> 16; var v1 = $v >> 16; var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16); return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16); } }); /***/ }), /* 301 */ /***/ (function(module, exports, __webpack_require__) { // https://rwaldron.github.io/proposal-math-extensions/ var $export = __webpack_require__(8); $export($export.S, 'Math', { RAD_PER_DEG: 180 / Math.PI }); /***/ }), /* 302 */ /***/ (function(module, exports, __webpack_require__) { // https://rwaldron.github.io/proposal-math-extensions/ var $export = __webpack_require__(8); var DEG_PER_RAD = Math.PI / 180; $export($export.S, 'Math', { radians: function radians(degrees) { return degrees * DEG_PER_RAD; } }); /***/ }), /* 303 */ /***/ (function(module, exports, __webpack_require__) { // https://rwaldron.github.io/proposal-math-extensions/ var $export = __webpack_require__(8); $export($export.S, 'Math', { scale: __webpack_require__(297) }); /***/ }), /* 304 */ /***/ (function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 var $export = __webpack_require__(8); $export($export.S, 'Math', { umulh: function umulh(u, v) { var UINT16 = 0xffff; var $u = +u; var $v = +v; var u0 = $u & UINT16; var v0 = $v & UINT16; var u1 = $u >>> 16; var v1 = $v >>> 16; var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16); return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16); } }); /***/ }), /* 305 */ /***/ (function(module, exports, __webpack_require__) { // http://jfbastien.github.io/papers/Math.signbit.html var $export = __webpack_require__(8); $export($export.S, 'Math', { signbit: function signbit(x) { // eslint-disable-next-line no-self-compare return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0; } }); /***/ }), /* 306 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-promise-finally 'use strict'; var $export = __webpack_require__(8); var core = __webpack_require__(9); var global = __webpack_require__(4); var speciesConstructor = __webpack_require__(208); var promiseResolve = __webpack_require__(214); $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { var C = speciesConstructor(this, core.Promise || global.Promise); var isFunction = typeof onFinally == 'function'; return this.then( isFunction ? function (x) { return promiseResolve(C, onFinally()).then(function () { return x; }); } : onFinally, isFunction ? function (e) { return promiseResolve(C, onFinally()).then(function () { throw e; }); } : onFinally ); } }); /***/ }), /* 307 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/tc39/proposal-promise-try var $export = __webpack_require__(8); var newPromiseCapability = __webpack_require__(211); var perform = __webpack_require__(212); $export($export.S, 'Promise', { 'try': function (callbackfn) { var promiseCapability = newPromiseCapability.f(this); var result = perform(callbackfn); (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); return promiseCapability.promise; } }); /***/ }), /* 308 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var toMetaKey = metadata.key; var ordinaryDefineOwnMetadata = metadata.set; metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) { ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey)); } }); /***/ }), /* 309 */ /***/ (function(module, exports, __webpack_require__) { var Map = __webpack_require__(216); var $export = __webpack_require__(8); var shared = __webpack_require__(23)('metadata'); var store = shared.store || (shared.store = new (__webpack_require__(221))()); var getOrCreateMetadataMap = function (target, targetKey, create) { var targetMetadata = store.get(target); if (!targetMetadata) { if (!create) return undefined; store.set(target, targetMetadata = new Map()); } var keyMetadata = targetMetadata.get(targetKey); if (!keyMetadata) { if (!create) return undefined; targetMetadata.set(targetKey, keyMetadata = new Map()); } return keyMetadata; }; var ordinaryHasOwnMetadata = function (MetadataKey, O, P) { var metadataMap = getOrCreateMetadataMap(O, P, false); return metadataMap === undefined ? false : metadataMap.has(MetadataKey); }; var ordinaryGetOwnMetadata = function (MetadataKey, O, P) { var metadataMap = getOrCreateMetadataMap(O, P, false); return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey); }; var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) { getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue); }; var ordinaryOwnMetadataKeys = function (target, targetKey) { var metadataMap = getOrCreateMetadataMap(target, targetKey, false); var keys = []; if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); }); return keys; }; var toMetaKey = function (it) { return it === undefined || typeof it == 'symbol' ? it : String(it); }; var exp = function (O) { $export($export.S, 'Reflect', O); }; module.exports = { store: store, map: getOrCreateMetadataMap, has: ordinaryHasOwnMetadata, get: ordinaryGetOwnMetadata, set: ordinaryDefineOwnMetadata, keys: ordinaryOwnMetadataKeys, key: toMetaKey, exp: exp }; /***/ }), /* 310 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var toMetaKey = metadata.key; var getOrCreateMetadataMap = metadata.map; var store = metadata.store; metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) { var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]); var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false; if (metadataMap.size) return true; var targetMetadata = store.get(target); targetMetadata['delete'](targetKey); return !!targetMetadata.size || store['delete'](target); } }); /***/ }), /* 311 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var getPrototypeOf = __webpack_require__(58); var ordinaryHasOwnMetadata = metadata.has; var ordinaryGetOwnMetadata = metadata.get; var toMetaKey = metadata.key; var ordinaryGetMetadata = function (MetadataKey, O, P) { var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P); var parent = getPrototypeOf(O); return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined; }; metadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) { return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); } }); /***/ }), /* 312 */ /***/ (function(module, exports, __webpack_require__) { var Set = __webpack_require__(220); var from = __webpack_require__(278); var metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var getPrototypeOf = __webpack_require__(58); var ordinaryOwnMetadataKeys = metadata.keys; var toMetaKey = metadata.key; var ordinaryMetadataKeys = function (O, P) { var oKeys = ordinaryOwnMetadataKeys(O, P); var parent = getPrototypeOf(O); if (parent === null) return oKeys; var pKeys = ordinaryMetadataKeys(parent, P); return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys; }; metadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) { return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); } }); /***/ }), /* 313 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var ordinaryGetOwnMetadata = metadata.get; var toMetaKey = metadata.key; metadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) { return ordinaryGetOwnMetadata(metadataKey, anObject(target) , arguments.length < 3 ? undefined : toMetaKey(arguments[2])); } }); /***/ }), /* 314 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var ordinaryOwnMetadataKeys = metadata.keys; var toMetaKey = metadata.key; metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) { return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1])); } }); /***/ }), /* 315 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var getPrototypeOf = __webpack_require__(58); var ordinaryHasOwnMetadata = metadata.has; var toMetaKey = metadata.key; var ordinaryHasMetadata = function (MetadataKey, O, P) { var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P); if (hasOwn) return true; var parent = getPrototypeOf(O); return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false; }; metadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) { return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2])); } }); /***/ }), /* 316 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var ordinaryHasOwnMetadata = metadata.has; var toMetaKey = metadata.key; metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) { return ordinaryHasOwnMetadata(metadataKey, anObject(target) , arguments.length < 3 ? undefined : toMetaKey(arguments[2])); } }); /***/ }), /* 317 */ /***/ (function(module, exports, __webpack_require__) { var $metadata = __webpack_require__(309); var anObject = __webpack_require__(12); var aFunction = __webpack_require__(21); var toMetaKey = $metadata.key; var ordinaryDefineOwnMetadata = $metadata.set; $metadata.exp({ metadata: function metadata(metadataKey, metadataValue) { return function decorator(target, targetKey) { ordinaryDefineOwnMetadata( metadataKey, metadataValue, (targetKey !== undefined ? anObject : aFunction)(target), toMetaKey(targetKey) ); }; } }); /***/ }), /* 318 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask var $export = __webpack_require__(8); var microtask = __webpack_require__(210)(); var process = __webpack_require__(4).process; var isNode = __webpack_require__(34)(process) == 'process'; $export($export.G, { asap: function asap(fn) { var domain = isNode && process.domain; microtask(domain ? domain.bind(fn) : fn); } }); /***/ }), /* 319 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; // https://github.com/zenparsing/es-observable var $export = __webpack_require__(8); var global = __webpack_require__(4); var core = __webpack_require__(9); var microtask = __webpack_require__(210)(); var OBSERVABLE = __webpack_require__(26)('observable'); var aFunction = __webpack_require__(21); var anObject = __webpack_require__(12); var anInstance = __webpack_require__(206); var redefineAll = __webpack_require__(215); var hide = __webpack_require__(10); var forOf = __webpack_require__(207); var RETURN = forOf.RETURN; var getMethod = function (fn) { return fn == null ? undefined : aFunction(fn); }; var cleanupSubscription = function (subscription) { var cleanup = subscription._c; if (cleanup) { subscription._c = undefined; cleanup(); } }; var subscriptionClosed = function (subscription) { return subscription._o === undefined; }; var closeSubscription = function (subscription) { if (!subscriptionClosed(subscription)) { subscription._o = undefined; cleanupSubscription(subscription); } }; var Subscription = function (observer, subscriber) { anObject(observer); this._c = undefined; this._o = observer; observer = new SubscriptionObserver(this); try { var cleanup = subscriber(observer); var subscription = cleanup; if (cleanup != null) { if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); }; else aFunction(cleanup); this._c = cleanup; } } catch (e) { observer.error(e); return; } if (subscriptionClosed(this)) cleanupSubscription(this); }; Subscription.prototype = redefineAll({}, { unsubscribe: function unsubscribe() { closeSubscription(this); } }); var SubscriptionObserver = function (subscription) { this._s = subscription; }; SubscriptionObserver.prototype = redefineAll({}, { next: function next(value) { var subscription = this._s; if (!subscriptionClosed(subscription)) { var observer = subscription._o; try { var m = getMethod(observer.next); if (m) return m.call(observer, value); } catch (e) { try { closeSubscription(subscription); } finally { throw e; } } } }, error: function error(value) { var subscription = this._s; if (subscriptionClosed(subscription)) throw value; var observer = subscription._o; subscription._o = undefined; try { var m = getMethod(observer.error); if (!m) throw value; value = m.call(observer, value); } catch (e) { try { cleanupSubscription(subscription); } finally { throw e; } } cleanupSubscription(subscription); return value; }, complete: function complete(value) { var subscription = this._s; if (!subscriptionClosed(subscription)) { var observer = subscription._o; subscription._o = undefined; try { var m = getMethod(observer.complete); value = m ? m.call(observer, value) : undefined; } catch (e) { try { cleanupSubscription(subscription); } finally { throw e; } } cleanupSubscription(subscription); return value; } } }); var $Observable = function Observable(subscriber) { anInstance(this, $Observable, 'Observable', '_f')._f = aFunction(subscriber); }; redefineAll($Observable.prototype, { subscribe: function subscribe(observer) { return new Subscription(observer, this._f); }, forEach: function forEach(fn) { var that = this; return new (core.Promise || global.Promise)(function (resolve, reject) { aFunction(fn); var subscription = that.subscribe({ next: function (value) { try { return fn(value); } catch (e) { reject(e); subscription.unsubscribe(); } }, error: reject, complete: resolve }); }); } }); redefineAll($Observable, { from: function from(x) { var C = typeof this === 'function' ? this : $Observable; var method = getMethod(anObject(x)[OBSERVABLE]); if (method) { var observable = anObject(method.call(x)); return observable.constructor === C ? observable : new C(function (observer) { return observable.subscribe(observer); }); } return new C(function (observer) { var done = false; microtask(function () { if (!done) { try { if (forOf(x, false, function (it) { observer.next(it); if (done) return RETURN; }) === RETURN) return; } catch (e) { if (done) throw e; observer.error(e); return; } observer.complete(); } }); return function () { done = true; }; }); }, of: function of() { for (var i = 0, l = arguments.length, items = new Array(l); i < l;) items[i] = arguments[i++]; return new (typeof this === 'function' ? this : $Observable)(function (observer) { var done = false; microtask(function () { if (!done) { for (var j = 0; j < items.length; ++j) { observer.next(items[j]); if (done) return; } observer.complete(); } }); return function () { done = true; }; }); } }); hide($Observable.prototype, OBSERVABLE, function () { return this; }); $export($export.G, { Observable: $Observable }); __webpack_require__(193)('Observable'); /***/ }), /* 320 */ /***/ (function(module, exports, __webpack_require__) { // ie9- setTimeout & setInterval additional parameters fix var global = __webpack_require__(4); var $export = __webpack_require__(8); var userAgent = __webpack_require__(213); var slice = [].slice; var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check var wrap = function (set) { return function (fn, time /* , ...args */) { var boundArgs = arguments.length > 2; var args = boundArgs ? slice.call(arguments, 2) : false; return set(boundArgs ? function () { // eslint-disable-next-line no-new-func (typeof fn == 'function' ? fn : Function(fn)).apply(this, args); } : fn, time); }; }; $export($export.G + $export.B + $export.F * MSIE, { setTimeout: wrap(global.setTimeout), setInterval: wrap(global.setInterval) }); /***/ }), /* 321 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(8); var $task = __webpack_require__(209); $export($export.G + $export.B, { setImmediate: $task.set, clearImmediate: $task.clear }); /***/ }), /* 322 */ /***/ (function(module, exports, __webpack_require__) { var $iterators = __webpack_require__(194); var getKeys = __webpack_require__(30); var redefine = __webpack_require__(18); var global = __webpack_require__(4); var hide = __webpack_require__(10); var Iterators = __webpack_require__(129); var wks = __webpack_require__(26); var ITERATOR = wks('iterator'); var TO_STRING_TAG = wks('toStringTag'); var ArrayValues = Iterators.Array; var DOMIterables = { CSSRuleList: true, // TODO: Not spec compliant, should be false. CSSStyleDeclaration: false, CSSValueList: false, ClientRectList: false, DOMRectList: false, DOMStringList: false, DOMTokenList: true, DataTransferItemList: false, FileList: false, HTMLAllCollection: false, HTMLCollection: false, HTMLFormElement: false, HTMLSelectElement: false, MediaList: true, // TODO: Not spec compliant, should be false. MimeTypeArray: false, NamedNodeMap: false, NodeList: true, PaintRequestList: false, Plugin: false, PluginArray: false, SVGLengthList: false, SVGNumberList: false, SVGPathSegList: false, SVGPointList: false, SVGStringList: false, SVGTransformList: false, SourceBufferList: false, StyleSheetList: true, // TODO: Not spec compliant, should be false. TextTrackCueList: false, TextTrackList: false, TouchList: false }; for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { var NAME = collections[i]; var explicit = DOMIterables[NAME]; var Collection = global[NAME]; var proto = Collection && Collection.prototype; var key; if (proto) { if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); Iterators[NAME] = ArrayValues; if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); } } /***/ }), /* 323 */ /***/ (function(module, exports) { /* WEBPACK VAR INJECTION */(function(global) {/** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * https://raw.github.com/facebook/regenerator/master/LICENSE file. An * additional grant of patent rights can be found in the PATENTS file in * the same directory. */ !(function(global) { "use strict"; var Op = Object.prototype; var hasOwn = Op.hasOwnProperty; var undefined; // More compressible than void 0. var $Symbol = typeof Symbol === "function" ? Symbol : {}; var iteratorSymbol = $Symbol.iterator || "@@iterator"; var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; var inModule = typeof module === "object"; var runtime = global.regeneratorRuntime; if (runtime) { if (inModule) { // If regeneratorRuntime is defined globally and we're in a module, // make the exports object identical to regeneratorRuntime. module.exports = runtime; } // Don't bother evaluating the rest of this file if the runtime was // already defined globally. return; } // Define the runtime globally (as expected by generated code) as either // module.exports (if we're in a module) or a new, empty object. runtime = global.regeneratorRuntime = inModule ? module.exports : {}; function wrap(innerFn, outerFn, self, tryLocsList) { // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; var generator = Object.create(protoGenerator.prototype); var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next, // .throw, and .return methods. generator._invoke = makeInvokeMethod(innerFn, self, context); return generator; } runtime.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion // record like context.tryEntries[i].completion. This interface could // have been (and was previously) designed to take a closure to be // invoked without arguments, but in all the cases we care about we // already have an existing method we want to call, so there's no need // to create a new function object. We can even get away with assuming // the method takes exactly one argument, since that happens to be true // in every case, so we don't have to touch the arguments object. The // only additional allocation required is the completion record, which // has a stable shape and so hopefully should be cheap to allocate. function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } var GenStateSuspendedStart = "suspendedStart"; var GenStateSuspendedYield = "suspendedYield"; var GenStateExecuting = "executing"; var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as // breaking out of the dispatch switch statement. var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and // .constructor.prototype properties for functions that return Generator // objects. For full spec compliance, you may wish to configure your // minifier not to mangle the names of these two functions. function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that // don't natively support it. var IteratorPrototype = {}; IteratorPrototype[iteratorSymbol] = function () { return this; }; var getProto = Object.getPrototypeOf; var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { // This environment has a native %IteratorPrototype%; use it instead // of the polyfill. IteratorPrototype = NativeIteratorPrototype; } var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; GeneratorFunctionPrototype.constructor = GeneratorFunction; GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the // Iterator interface in terms of a single ._invoke method. function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function(method) { prototype[method] = function(arg) { return this._invoke(method, arg); }; }); } runtime.isGeneratorFunction = function(genFun) { var ctor = typeof genFun === "function" && genFun.constructor; return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can // do is to check its .name property. (ctor.displayName || ctor.name) === "GeneratorFunction" : false; }; runtime.mark = function(genFun) { if (Object.setPrototypeOf) { Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); } else { genFun.__proto__ = GeneratorFunctionPrototype; if (!(toStringTagSymbol in genFun)) { genFun[toStringTagSymbol] = "GeneratorFunction"; } } genFun.prototype = Object.create(Gp); return genFun; }; // Within the body of any async function, `await x` is transformed to // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test // `hasOwn.call(value, "__await")` to determine if the yielded value is // meant to be awaited. runtime.awrap = function(arg) { return { __await: arg }; }; function AsyncIterator(generator) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (record.type === "throw") { reject(record.arg); } else { var result = record.arg; var value = result.value; if (value && typeof value === "object" && hasOwn.call(value, "__await")) { return Promise.resolve(value.__await).then(function(value) { invoke("next", value, resolve, reject); }, function(err) { invoke("throw", err, resolve, reject); }); } return Promise.resolve(value).then(function(unwrapped) { // When a yielded Promise is resolved, its final value becomes // the .value of the Promise<{value,done}> result for the // current iteration. If the Promise is rejected, however, the // result for this iteration will be rejected with the same // reason. Note that rejections of yielded Promises are not // thrown back into the generator function, as is the case // when an awaited Promise is rejected. This difference in // behavior between yield and await is important, because it // allows the consumer to decide what to do with the yielded // rejection (swallow it and continue, manually .throw it back // into the generator, abandon iteration, whatever). With // await, by contrast, there is no opportunity to examine the // rejection reason outside the generator function, so the // only option is to throw it from the await expression, and // let the generator function handle the exception. result.value = unwrapped; resolve(result); }, reject); } } if (typeof global.process === "object" && global.process.domain) { invoke = global.process.domain.bind(invoke); } var previousPromise; function enqueue(method, arg) { function callInvokeWithMethodAndArg() { return new Promise(function(resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = // If enqueue has been called before, then we want to wait until // all previous Promises have been resolved before calling invoke, // so that results are always delivered in the correct order. If // enqueue has not been called before, then it is important to // call invoke immediately, without waiting on a callback to fire, // so that the async generator function has the opportunity to do // any necessary setup in a predictable way. This predictability // is why the Promise constructor synchronously invokes its // executor callback, and why async functions synchronously // execute code before the first await. Since we implement simple // async functions in terms of async generators, it is especially // important to get this right, even though it requires care. previousPromise ? previousPromise.then( callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later // invocations of the iterator. callInvokeWithMethodAndArg ) : callInvokeWithMethodAndArg(); } // Define the unified helper method that is used to implement .next, // .throw, and .return (see defineIteratorMethods). this._invoke = enqueue; } defineIteratorMethods(AsyncIterator.prototype); AsyncIterator.prototype[asyncIteratorSymbol] = function () { return this; }; runtime.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of // AsyncIterator objects; they just return a Promise for the value of // the final result produced by the iterator. runtime.async = function(innerFn, outerFn, self, tryLocsList) { var iter = new AsyncIterator( wrap(innerFn, outerFn, self, tryLocsList) ); return runtime.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator. : iter.next().then(function(result) { return result.done ? result.value : iter.next(); }); }; function makeInvokeMethod(innerFn, self, context) { var state = GenStateSuspendedStart; return function invoke(method, arg) { if (state === GenStateExecuting) { throw new Error("Generator is already running"); } if (state === GenStateCompleted) { if (method === "throw") { throw arg; } // Be forgiving, per 25.3.3.3.3 of the spec: // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume return doneResult(); } context.method = method; context.arg = arg; while (true) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (context.method === "next") { // Setting context._sent for legacy support of Babel's // function.sent implementation. context.sent = context._sent = context.arg; } else if (context.method === "throw") { if (state === GenStateSuspendedStart) { state = GenStateCompleted; throw context.arg; } context.dispatchException(context.arg); } else if (context.method === "return") { context.abrupt("return", context.arg); } state = GenStateExecuting; var record = tryCatch(innerFn, self, context); if (record.type === "normal") { // If an exception is thrown from innerFn, we leave state === // GenStateExecuting and loop back for another invocation. state = context.done ? GenStateCompleted : GenStateSuspendedYield; if (record.arg === ContinueSentinel) { continue; } return { value: record.arg, done: context.done }; } else if (record.type === "throw") { state = GenStateCompleted; // Dispatch the exception by looping back around to the // context.dispatchException(context.arg) call above. context.method = "throw"; context.arg = record.arg; } } }; } // Call delegate.iterator[context.method](context.arg) and handle the // result, either by returning a { value, done } result from the // delegate iterator, or by modifying context.method and context.arg, // setting context.delegate to null, and returning the ContinueSentinel. function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (method === undefined) { // A .throw or .return when the delegate iterator has no .throw // method always terminates the yield* loop. context.delegate = null; if (context.method === "throw") { if (delegate.iterator.return) { // If the delegate iterator has a return method, give it a // chance to clean up. context.method = "return"; context.arg = undefined; maybeInvokeDelegate(delegate, context); if (context.method === "throw") { // If maybeInvokeDelegate(context) changed context.method from // "return" to "throw", let that override the TypeError below. return ContinueSentinel; } } context.method = "throw"; context.arg = new TypeError( "The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if (record.type === "throw") { context.method = "throw"; context.arg = record.arg; context.delegate = null; return ContinueSentinel; } var info = record.arg; if (! info) { context.method = "throw"; context.arg = new TypeError("iterator result is not an object"); context.delegate = null; return ContinueSentinel; } if (info.done) { // Assign the result of the finished delegate to the temporary // variable specified by delegate.resultName (see delegateYield). context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield). context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the // exception, let the outer generator proceed normally. If // context.method was "next", forget context.arg since it has been // "consumed" by the delegate iterator. If context.method was // "return", allow the original .return call to continue in the // outer generator. if (context.method !== "return") { context.method = "next"; context.arg = undefined; } } else { // Re-yield the result returned by the delegate method. return info; } // The delegate iterator is finished, so forget it and continue with // the outer generator. context.delegate = null; return ContinueSentinel; } // Define Generator.prototype.{next,throw,return} in terms of the // unified ._invoke helper method. defineIteratorMethods(Gp); Gp[toStringTagSymbol] = "Generator"; // A Generator should always return itself as the iterator object when the // @@iterator function is called on it. Some browsers' implementations of the // iterator prototype chain incorrectly implement this, causing the Generator // object to not be returned from this call. This ensures that doesn't happen. // See https://github.com/facebook/regenerator/issues/274 for more details. Gp[iteratorSymbol] = function() { return this; }; Gp.toString = function() { return "[object Generator]"; }; function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; if (1 in locs) { entry.catchLoc = locs[1]; } if (2 in locs) { entry.finallyLoc = locs[2]; entry.afterLoc = locs[3]; } this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal"; delete record.arg; entry.completion = record; } function Context(tryLocsList) { // The root entry object (effectively a try statement without a catch // or a finally block) gives us a place to store values thrown from // locations where there is no enclosing try statement. this.tryEntries = [{ tryLoc: "root" }]; tryLocsList.forEach(pushTryEntry, this); this.reset(true); } runtime.keys = function(object) { var keys = []; for (var key in object) { keys.push(key); } keys.reverse(); // Rather than returning an object with a next method, we keep // things simple and return the next function itself. return function next() { while (keys.length) { var key = keys.pop(); if (key in object) { next.value = key; next.done = false; return next; } } // To avoid creating an additional object, we just hang the .value // and .done properties off the next function object itself. This // also ensures that the minifier will not anonymize the function. next.done = true; return next; }; }; function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) { return iteratorMethod.call(iterable); } if (typeof iterable.next === "function") { return iterable; } if (!isNaN(iterable.length)) { var i = -1, next = function next() { while (++i < iterable.length) { if (hasOwn.call(iterable, i)) { next.value = iterable[i]; next.done = false; return next; } } next.value = undefined; next.done = true; return next; }; return next.next = next; } } // Return an iterator with no values. return { next: doneResult }; } runtime.values = values; function doneResult() { return { value: undefined, done: true }; } Context.prototype = { constructor: Context, reset: function(skipTempReset) { this.prev = 0; this.next = 0; // Resetting context._sent for legacy support of Babel's // function.sent implementation. this.sent = this._sent = undefined; this.done = false; this.delegate = null; this.method = "next"; this.arg = undefined; this.tryEntries.forEach(resetTryEntry); if (!skipTempReset) { for (var name in this) { // Not sure about the optimal order of these conditions: if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) { this[name] = undefined; } } } }, stop: function() { this.done = true; var rootEntry = this.tryEntries[0]; var rootRecord = rootEntry.completion; if (rootRecord.type === "throw") { throw rootRecord.arg; } return this.rval; }, dispatchException: function(exception) { if (this.done) { throw exception; } var context = this; function handle(loc, caught) { record.type = "throw"; record.arg = exception; context.next = loc; if (caught) { // If the dispatched exception was caught by a catch block, // then let that catch block handle the exception normally. context.method = "next"; context.arg = undefined; } return !! caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; var record = entry.completion; if (entry.tryLoc === "root") { // Exception thrown outside of any try block that could handle // it, so set the completion value of the entire function to // throw the exception. return handle("end"); } if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"); var hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } else if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else if (hasCatch) { if (this.prev < entry.catchLoc) { return handle(entry.catchLoc, true); } } else if (hasFinally) { if (this.prev < entry.finallyLoc) { return handle(entry.finallyLoc); } } else { throw new Error("try statement without catch or finally"); } } } }, abrupt: function(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) { // Ignore the finally entry if control is not jumping to a // location outside the try/catch block. finallyEntry = null; } var record = finallyEntry ? finallyEntry.completion : {}; record.type = type; record.arg = arg; if (finallyEntry) { this.method = "next"; this.next = finallyEntry.finallyLoc; return ContinueSentinel; } return this.complete(record); }, complete: function(record, afterLoc) { if (record.type === "throw") { throw record.arg; } if (record.type === "break" || record.type === "continue") { this.next = record.arg; } else if (record.type === "return") { this.rval = this.arg = record.arg; this.method = "return"; this.next = "end"; } else if (record.type === "normal" && afterLoc) { this.next = afterLoc; } return ContinueSentinel; }, finish: function(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) { this.complete(entry.completion, entry.afterLoc); resetTryEntry(entry); return ContinueSentinel; } } }, "catch": function(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (record.type === "throw") { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } // The context.catch method must only be called with a location // argument that corresponds to a known catch block. throw new Error("illegal catch attempt"); }, delegateYield: function(iterable, resultName, nextLoc) { this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }; if (this.method === "next") { // Deliberately forget the last sent value so that we don't // accidentally pass it on to the delegate. this.arg = undefined; } return ContinueSentinel; } }; })( // Among the various tricks for obtaining a reference to the global // object, this seems to be the most reliable technique that does not // use indirect eval (which violates Content Security Policy). typeof global === "object" ? global : typeof window === "object" ? window : typeof self === "object" ? self : this ); /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }), /* 324 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(325); module.exports = __webpack_require__(9).RegExp.escape; /***/ }), /* 325 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/benjamingr/RexExp.escape var $export = __webpack_require__(8); var $re = __webpack_require__(326)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); $export($export.S, 'RegExp', { escape: function escape(it) { return $re(it); } }); /***/ }), /* 326 */ /***/ (function(module, exports) { module.exports = function (regExp, replace) { var replacer = replace === Object(replace) ? function (part) { return replace[part]; } : replace; return function (it) { return String(it).replace(regExp, replacer); }; }; /***/ }), /* 327 */ /***/ (function(module, exports) { 'use strict'; module.exports = ['dave', 'henry', 'martha']; /***/ }) /******/ ]);
Java
#!/bin/sh # Capture the current version. VERSION=`cat ./VERSION` # Currently using YUI Compressor for minification. YUICOMPRESSOR=./3pty/yui/yuicompressor/yuicompressor-2.4.7.jar # To use the YUI Compressor, Java is required (http://java.com). JAVA=`which java` if [ "$JAVA" == "" ]; then echo "Not found: java" ; exit 1 ; fi # Output tmp version file (use comment style that works for both CSS and JS). echo "/* uducada v$VERSION - https://github.com/m5n/uducada */" > ./version.tmp # Process CSS files for each third-party UI framework. UIFWKFILES=`find ./src/css/adapters/uifwk -type f` for UIFWKFILE in $UIFWKFILES do # Extract framework identifier. # Note: remove "-" for readability, e.g. jquery-ui => jqueryui. UIFWKID=`expr "$UIFWKFILE" : ".*/\(.*\).css" | tr -d "-"` echo "Generating uducada-$UIFWKID CSS files..." # Generate unminified and minified versions of the CSS file. # Note: add adapter file before uducada files. cat $UIFWKFILE ./src/css/*.css > ./uducada.css.tmp $JAVA -jar $YUICOMPRESSOR --type css -o ./uducada.min.css.tmp ./uducada.css.tmp # Add the version file to the minified and unminified versions of the CSS file. cat ./version.tmp ./uducada.css.tmp > ./uducada-$UIFWKID.css cat ./version.tmp ./uducada.min.css.tmp > ./uducada-$UIFWKID.min.css done # Process JS files for each third-party JS and UI framework combination. FWKFILES=`find ./src/js/adapters/fwk -type f` for FWKFILE in $FWKFILES do # Extract framework identifier. # Note: remove "-" for readability, e.g. jquery-ui => jqueryui. FWKID=`expr "$FWKFILE" : ".*/\(.*\).js" | tr -d "-"` UIFWKFILES=`find ./src/js/adapters/uifwk -type f` for UIFWKFILE in $UIFWKFILES do # Extract framework identifier. # Note: remove "-" for readability, e.g. jquery-ui => jqueryui. UIFWKID=`expr "$UIFWKFILE" : ".*/\(.*\).js" | tr -d "-"` echo "Generating uducada-$FWKID-$UIFWKID JS files..." # Generate unminified and minified versions of the JS file. # Note: add adapter files before uducada files. cat $FWKFILE $UIFWKFILE ./src/js/*.js > ./uducada.js.tmp $JAVA -jar $YUICOMPRESSOR --type js -o ./uducada.min.js.tmp ./uducada.js.tmp # Add the version file to the minified and unminified versions of the CSS file. cat ./version.tmp ./uducada.js.tmp > ./uducada-$FWKID-$UIFWKID.js cat ./version.tmp ./uducada.min.js.tmp > ./uducada-$FWKID-$UIFWKID.min.js done done # Delete all tmp files. rm ./*.tmp
Java
<template name="home"> <div id="ww"> <div class="container"> <div class="row"> <div class="col-lg-8 col-md-offset-2 centered"> {{> me}} </div><!-- /col-lg-8 --> </div><!-- /row --> </div> <!-- /container --> </div><!-- /ww --> {{> work}} </template>
Java
/** * Scale Interpolation Function. * * @param {number} a start scale * @param {number} b end scale * @param {number} v progress * @returns {string} the interpolated scale */ export default function scale(a, b, v) { // eslint-disable-next-line no-bitwise return `scale(${((a + (b - a) * v) * 1000 >> 0) / 1000})`; }
Java
/* * jQuery ZenPen url/link action * * Copyright (c) 2013 Deux Huit Huit (http://www.deuxhuithuit.com/) * Licensed under the MIT (http://deuxhuithuit.mit-license.org) * Based on the work of Tim Holman (https://github.com/tholman/zenpen) * Licensed under the Apache License (https://github.com/tholman/zenpen/blob/master/licence.md) */ (function ($) { if (!$.zenpen) { return; } var api = $.zenpen.api; $.zenpen.actions.url = { validNode: function (node) { return !!node.closest('a').length; }, create: function (options) { var btn = api.createButtonFactory('url useicons', '&#xe005;', 'url')(); var input = $('<input />').addClass('url-input') .attr('type','text') .attr('placeholder','Type or Paste URL here'); var self = this; var exit = function () { setTimeout(function () { self._options.opts.removeClass('url-mode'); self._options.popup.width(self._options.popup.data().width); }, 100); }; var realExec = function () { var url = input.val(); api.rehighlightLastSelection(self._options.range); // Unlink any current links document.execCommand( 'unlink', false ); if (!!url) { // Insert HTTP if it doesn't exist. if ( !url.match("^(http|https|ftp|ftps|sftp)://") && !url.match("^(mailto|tel|fax|skype|irc):") && !url.match("^/") ) { url = "http://" + url; } document.execCommand( 'createLink', false, url ); input.val(''); // creates a blur self._options.popup.trigger('update'); } }; input.keyup(function (e) { if (e.which === 13) { realExec(); } else if (e.which === 27) { exit(); } }); input.blur(exit); return btn.add(input); }, exec: function ( btn, popup, lastSelection, options ) { var opts = popup.find('.zenpen-options'); if (!opts.hasClass('url-mode')) { var width = popup.width(); opts.addClass('url-mode'); var newWidth = /*popup.find('input.url-input').width()*/245 + btn.width(); popup.width(newWidth); // save options if (!!lastSelection && !lastSelection.isCollapsed) { this._options = { btn: btn, popup: popup, opts: opts, range: lastSelection.getRangeAt(0) }; popup.data('width', width); popup.find('input.url-input').val($(lastSelection.focusNode).closest('a').attr('href')); } setTimeout(function () { popup.find('input.url-input').focus(); }, 50); } } }; })(jQuery);
Java
-- aka combobox in java/win32 -- also menubar : multiple dropdown
Java
const mockMark = jest.fn(); const mockUnmark = jest.fn(); jest.mock('mark.js', () => () => ({ mark: mockMark, unmark: mockUnmark, })); import { MarkerService } from '../MarkerService'; describe('Marker service', () => { let marker: MarkerService; const element = document.createElement('span'); beforeEach(() => { marker = new MarkerService(); mockMark.mockClear(); mockUnmark.mockClear(); }); test('add element to Map', () => { marker.add(element); expect(marker.map.size).toBeGreaterThan(0); }); test('delete element from Map', () => { marker.add(element); marker.delete(element); expect(marker.map.size).toEqual(0); }); test('addOnly: should unmark and remove old elements', () => { const e1 = document.createElement('span'); const e2 = document.createElement('span'); const e3 = document.createElement('span'); marker.add(e1); marker.add(e2); marker.addOnly([element, e2, e3]); expect(mockUnmark).toHaveBeenCalledTimes(1); expect(marker.map.size).toEqual(3); }); test('unmark: should unmark all elements', () => { const e1 = document.createElement('span'); const e2 = document.createElement('span'); marker.add(e1); marker.add(e2); marker.add(element); marker.unmark(); expect(mockUnmark).toHaveBeenCalledTimes(3); expect(mockMark).not.toHaveBeenCalled(); }); test('clearAll: should unmark and remove all elements', () => { const e1 = document.createElement('span'); const e2 = document.createElement('span'); marker.add(e1); marker.add(e2); marker.add(element); marker.clearAll(); expect(mockUnmark).toHaveBeenCalledTimes(3); expect(mockMark).not.toHaveBeenCalled(); expect(marker.map.size).toEqual(0); }); test('mark: should unmark and mark again each element', () => { const e1 = document.createElement('span'); const e2 = document.createElement('span'); marker.add(e1); marker.add(e2); marker.add(element); marker.mark('test'); expect(mockUnmark).toHaveBeenCalledTimes(3); expect(mockMark).toHaveBeenCalledTimes(3); expect(mockMark).toHaveBeenCalledWith('test'); expect(marker.map.size).toEqual(3); }); test('mark: should do nothing if no term provided', () => { marker.add(element); marker.mark(); expect(mockMark).not.toHaveBeenCalled(); }); test('mark: should save previous marked term and use it if no term is provided', () => { marker.add(element); marker.mark('test'); marker.mark(); expect(mockMark).toHaveBeenLastCalledWith('test'); }); });
Java
# Copyright (c) 2010-2011 ProgressBound, Inc. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. class CreateArticles < ActiveRecord::Migration def self.up end def self.down end end
Java