text
stringlengths
1
22.8M
Baron Greystoke (or Greystock) is a title that has been created twice in the Peerage of England. It was first created when John de Greystok was summoned to Parliament in 1295. History John son of William de Greystok was summoned to Parliament by Edward I of England. In 1296 John's cousin Gilbert Fitzwilliam, descendant of John's aunt Joan de Graystock, died, and Gilbert's younger brother and heir, Ralph Fitzwilliam, did homage for Gilbert's lands and entered thereon. In August 1297 John obtained licence to enfeoff Ralph Fitzwilliam with the manor and whole Barony of Greystok, and with other manors and advowsons including his part of Morpeth, in fee simple, upon condition that Ralph should found a college in the church at Greystoke. Ralph, whose family were lords of Grimthorpe in the soke of Pocklington, Yorkshire, was then preparing to go abroad in the King's service, and in April 1298 he in return demised the feudal barony of Greystok and other manors for life to John (who thenceforward held them from Ralph as Ralph's sub-tenant), with reversion to Ralph. In 1300 Ralph made some provision for John's brother William Greystok. Following the death of John de Greystok in 1306, the Barony of Greystok reverted to Ralph FitzWilliam in fulfilment of the arrangements made eight years previously, and Ralph, who was summoned to Parliament from 1295 to 1315, made homage and received royal assent to enter upon the barony in October 1306. In 1315 he founded a chantry at the conventual church of Tynemouth, under the aegis and seal of St Albans Abbey, for the soul of John de Greystok "quondam baronis de Graistok cognati sui" (i.e., "sometime baron of Graystok, his kinsman"), and for his own soul, the abbey's award to him describing Ralph Fitzwilliam as Baro de Graystok and bearing his seal. Ralph Fitzwilliam (who married Marjory de Bolebec) died in 1316, and their son Robert FitzRalph (who married Elizabeth, daughter of Robert Nevill of Scotton, Lincolnshire) died in the following year, leaving as his heir his son Ralph FitzRobert. This younger Ralph received Parliamentary summons in the name of Ralph de Greystock, and so became the first of the Fitzwilliam (Lords of Grymthorp) lineage to carry the Greystock name and title (1321). The arms of Greystock as Barruly argent and azure, three chaplets of roses gules were originally those of Grymthorp, and as such were borne by Ralph Fitzwilliam at the Siege of Caerlaverock, and serve to identify his tomb effigy rescued from Neasham Priory, but were retained and quartered with the former Greystock arms by his successors. The barony went into abeyance in 1569, after it had passed into the Dacre family in 1487 through the marriage of Thomas Dacre, 2nd Baron Dacre to Elizabeth de Greystoke, 6th Baroness Greystoke. Barons Greystoke, first creation (1295) John de Greystoke, 1st Baron Greystoke (1264–1306) Barons Greystoke, second creation (1321) Ralph de Greystoke, 1st Baron Greystoke (1299–1323) William de Greystoke, 2nd Baron Greystoke (1320–1358) Ralph de Greystoke, 3rd Baron Greystoke (1352–1417) John de Greystoke, 4th Baron Greystoke (1390–1436) Ralph de Greystoke, 5th Baron Greystoke (1414–1487) Elizabeth de Greystoke, 6th Baroness Greystoke suo jure (10 July 1471 – 14 August 1516) William Dacre, 7th Baron Greystoke (1500–1563) Thomas Dacre, 8th Baron Greystoke (c. 1526–1566) George Dacre, 9th Baron Greystoke (1561–1569) (abeyant) References Extinct baronies in the Peerage of England 1295 establishments in England Abeyant baronies in the Peerage of England Noble titles created in 1295 Noble titles created in 1321
Raymond R. "Ray" Calverley (born 3 April 1951 in Haslingden) is a British retired slalom canoeist who competed from the late 1960s to the mid-1970s. He won a silver medal in the K-1 team event at the 1969 ICF Canoe Slalom World Championships in Bourg St.-Maurice. Calverley finished 32nd in the K-1 event at the 1972 Summer Olympics in Munich. Calverley was a graduate of Fitzwilliam College, Cambridge. References Sports-reference.com profile 1951 births English male canoeists Canoeists at the 1972 Summer Olympics Living people Olympic canoeists for Great Britain People from Haslingden Alumni of Fitzwilliam College, Cambridge British male canoeists Medalists at the ICF Canoe Slalom World Championships
```java /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.beam.sdk.io.gcp.spanner.changestreams.restriction; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import com.google.cloud.Timestamp; import org.junit.Before; import org.junit.Test; public class DetectNewPartitionsRangeTrackerTest { private TimestampRange range; private DetectNewPartitionsRangeTracker tracker; @Before public void setUp() throws Exception { range = TimestampRange.of(Timestamp.ofTimeMicroseconds(10L), Timestamp.ofTimeMicroseconds(20L)); tracker = new DetectNewPartitionsRangeTracker(range); } @Test public void testTryClaim() { assertEquals(range, tracker.currentRestriction()); assertTrue(tracker.tryClaim(Timestamp.ofTimeMicroseconds(10L))); assertTrue(tracker.tryClaim(Timestamp.ofTimeMicroseconds(10L))); assertTrue(tracker.tryClaim(Timestamp.ofTimeMicroseconds(11L))); assertTrue(tracker.tryClaim(Timestamp.ofTimeMicroseconds(11L))); assertTrue(tracker.tryClaim(Timestamp.ofTimeMicroseconds(19L))); assertFalse(tracker.tryClaim(Timestamp.ofTimeMicroseconds(20L))); } } ```
Macklin Airport is located north-east of Macklin, Saskatchewan, Canada. See also List of airports in Saskatchewan References Registered aerodromes in Saskatchewan Eye Hill No. 382, Saskatchewan
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\RealTimeBidding; class PretargetingConfig extends \Google\Collection { protected $collection_key = 'invalidGeoIds'; /** * @var string[] */ public $allowedUserTargetingModes; protected $appTargetingType = AppTargeting::class; protected $appTargetingDataType = ''; /** * @var string */ public $billingId; /** * @var string */ public $displayName; /** * @var string[] */ public $excludedContentLabelIds; protected $geoTargetingType = NumericTargetingDimension::class; protected $geoTargetingDataType = ''; protected $includedCreativeDimensionsType = CreativeDimensions::class; protected $includedCreativeDimensionsDataType = 'array'; /** * @var string[] */ public $includedEnvironments; /** * @var string[] */ public $includedFormats; /** * @var string[] */ public $includedLanguages; /** * @var string[] */ public $includedMobileOperatingSystemIds; /** * @var string[] */ public $includedPlatforms; /** * @var string[] */ public $includedUserIdTypes; /** * @var string */ public $interstitialTargeting; /** * @var string[] */ public $invalidGeoIds; /** * @var string */ public $maximumQps; /** * @var int */ public $minimumViewabilityDecile; /** * @var string */ public $name; protected $publisherTargetingType = StringTargetingDimension::class; protected $publisherTargetingDataType = ''; /** * @var string */ public $state; protected $userListTargetingType = NumericTargetingDimension::class; protected $userListTargetingDataType = ''; protected $verticalTargetingType = NumericTargetingDimension::class; protected $verticalTargetingDataType = ''; protected $webTargetingType = StringTargetingDimension::class; protected $webTargetingDataType = ''; /** * @param string[] */ public function setAllowedUserTargetingModes($allowedUserTargetingModes) { $this->allowedUserTargetingModes = $allowedUserTargetingModes; } /** * @return string[] */ public function getAllowedUserTargetingModes() { return $this->allowedUserTargetingModes; } /** * @param AppTargeting */ public function setAppTargeting(AppTargeting $appTargeting) { $this->appTargeting = $appTargeting; } /** * @return AppTargeting */ public function getAppTargeting() { return $this->appTargeting; } /** * @param string */ public function setBillingId($billingId) { $this->billingId = $billingId; } /** * @return string */ public function getBillingId() { return $this->billingId; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string[] */ public function setExcludedContentLabelIds($excludedContentLabelIds) { $this->excludedContentLabelIds = $excludedContentLabelIds; } /** * @return string[] */ public function getExcludedContentLabelIds() { return $this->excludedContentLabelIds; } /** * @param NumericTargetingDimension */ public function setGeoTargeting(NumericTargetingDimension $geoTargeting) { $this->geoTargeting = $geoTargeting; } /** * @return NumericTargetingDimension */ public function getGeoTargeting() { return $this->geoTargeting; } /** * @param CreativeDimensions[] */ public function setIncludedCreativeDimensions($includedCreativeDimensions) { $this->includedCreativeDimensions = $includedCreativeDimensions; } /** * @return CreativeDimensions[] */ public function getIncludedCreativeDimensions() { return $this->includedCreativeDimensions; } /** * @param string[] */ public function setIncludedEnvironments($includedEnvironments) { $this->includedEnvironments = $includedEnvironments; } /** * @return string[] */ public function getIncludedEnvironments() { return $this->includedEnvironments; } /** * @param string[] */ public function setIncludedFormats($includedFormats) { $this->includedFormats = $includedFormats; } /** * @return string[] */ public function getIncludedFormats() { return $this->includedFormats; } /** * @param string[] */ public function setIncludedLanguages($includedLanguages) { $this->includedLanguages = $includedLanguages; } /** * @return string[] */ public function getIncludedLanguages() { return $this->includedLanguages; } /** * @param string[] */ public function setIncludedMobileOperatingSystemIds($includedMobileOperatingSystemIds) { $this->includedMobileOperatingSystemIds = $includedMobileOperatingSystemIds; } /** * @return string[] */ public function getIncludedMobileOperatingSystemIds() { return $this->includedMobileOperatingSystemIds; } /** * @param string[] */ public function setIncludedPlatforms($includedPlatforms) { $this->includedPlatforms = $includedPlatforms; } /** * @return string[] */ public function getIncludedPlatforms() { return $this->includedPlatforms; } /** * @param string[] */ public function setIncludedUserIdTypes($includedUserIdTypes) { $this->includedUserIdTypes = $includedUserIdTypes; } /** * @return string[] */ public function getIncludedUserIdTypes() { return $this->includedUserIdTypes; } /** * @param string */ public function setInterstitialTargeting($interstitialTargeting) { $this->interstitialTargeting = $interstitialTargeting; } /** * @return string */ public function getInterstitialTargeting() { return $this->interstitialTargeting; } /** * @param string[] */ public function setInvalidGeoIds($invalidGeoIds) { $this->invalidGeoIds = $invalidGeoIds; } /** * @return string[] */ public function getInvalidGeoIds() { return $this->invalidGeoIds; } /** * @param string */ public function setMaximumQps($maximumQps) { $this->maximumQps = $maximumQps; } /** * @return string */ public function getMaximumQps() { return $this->maximumQps; } /** * @param int */ public function setMinimumViewabilityDecile($minimumViewabilityDecile) { $this->minimumViewabilityDecile = $minimumViewabilityDecile; } /** * @return int */ public function getMinimumViewabilityDecile() { return $this->minimumViewabilityDecile; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param StringTargetingDimension */ public function setPublisherTargeting(StringTargetingDimension $publisherTargeting) { $this->publisherTargeting = $publisherTargeting; } /** * @return StringTargetingDimension */ public function getPublisherTargeting() { return $this->publisherTargeting; } /** * @param string */ public function setState($state) { $this->state = $state; } /** * @return string */ public function getState() { return $this->state; } /** * @param NumericTargetingDimension */ public function setUserListTargeting(NumericTargetingDimension $userListTargeting) { $this->userListTargeting = $userListTargeting; } /** * @return NumericTargetingDimension */ public function getUserListTargeting() { return $this->userListTargeting; } /** * @param NumericTargetingDimension */ public function setVerticalTargeting(NumericTargetingDimension $verticalTargeting) { $this->verticalTargeting = $verticalTargeting; } /** * @return NumericTargetingDimension */ public function getVerticalTargeting() { return $this->verticalTargeting; } /** * @param StringTargetingDimension */ public function setWebTargeting(StringTargetingDimension $webTargeting) { $this->webTargeting = $webTargeting; } /** * @return StringTargetingDimension */ public function getWebTargeting() { return $this->webTargeting; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PretargetingConfig::class, 'Google_Service_RealTimeBidding_PretargetingConfig'); ```
```php <?php namespace App\Cancellation; use App\Models\Attendee; use App\Models\Order; use Superbalist\Money\Money; class OrderCancellation { /** @var Order $order */ private $order; /** @var array $attendees */ private $attendees; /** @var OrderRefund $orderRefund */ private $orderRefund; /** * OrderCancellation constructor. * * @param Order $order * @param $attendees */ public function __construct(Order $order, $attendees) { $this->order = $order; $this->attendees = $attendees; } /** * Create a new instance to be used statically * * @param Order $order * @param $attendees * @return OrderCancellation */ public static function make(Order $order, $attendees): OrderCancellation { return new static($order, $attendees); } /** * Cancels an order * * @throws OrderRefundException */ public function cancel(): void { $orderAwaitingPayment = false; if ($this->order->order_status_id == config('attendize.order.awaiting_payment')) { $orderAwaitingPayment = true; $orderCancel = OrderCancel::make($this->order, $this->attendees); $orderCancel->cancel(); } // If order can do a refund then refund first if ($this->order->canRefund() && !$orderAwaitingPayment) { $orderRefund = OrderRefund::make($this->order, $this->attendees); $orderRefund->refund(); $this->orderRefund = $orderRefund; } // TODO if no refunds can be done, mark the order as cancelled to indicate attendees are cancelled // Cancel the attendees $this->attendees->map(static function (Attendee $attendee) { $attendee->is_cancelled = true; $attendee->save(); }); } /** * Returns the return amount * * @return Money */ public function getRefundAmount() { if ($this->orderRefund === null) { return new Money('0'); } return $this->orderRefund->getRefundAmount(); } } ```
Giuliano Sonzogni (born 2 February 1949) is an Italian football manager. Previously he managed the Bulgarian football club Botev Vratsa. References 1949 births Living people Italian football managers AC Ponte San Pietro SSD managers Hellas Verona FC managers US Salernitana 1919 managers AS Siracusa managers Fidelis Andria 2018 managers ASD Gualdo Casacastalda managers Cosenza Calcio managers FC Lugano managers Palermo FC managers US Avellino 1912 managers SPAL managers AC Monza managers US Siracusa managers US Alessandria Calcio 1912 managers Italian expatriate football managers Expatriate football managers in Bulgaria Italian expatriate sportspeople in Bulgaria
Felix Christian Herbert Iversen (22 October 1887 – 31 July 1973) was a Finnish mathematician and a pacifist. He was a student of Ernst Lindelöf, and later an associate professor of mathematics at the University of Helsinki. Although he stopped performing serious research in mathematics around 1922, he continued working as a professor until his retirement in 1954 and published a textbook on mathematics in 1950. The Soviet Union awarded Felix Iversen the Stalin Peace Prize in 1954. References 1887 births 1973 deaths Finnish mathematicians Academic staff of the University of Helsinki Stalin Peace Prize recipients
Malaf Al Mostakbal () (also transliterated as Malaf al Mustaqbal) (The Future File) has been the title of an Egyptian science fiction series of novels written by Nabil Farouk and published by Modern Arab Association as a part of Rewayat since the year 1984. 160 titles were published from 1984 to 2009. Plot summary The events of the series happen in the not so distant future. Starting December 28, 2000 as stated vaguely in the very first issue, The Death Ray (أشعة الموت), which was published in 1984. In that era a fictional Egyptian Scientific Intelligence Agency (ESIA) (المخابرات العلمية المصرية) is protecting Egypt from numerous threats. The series begins when the main character, Nour El Deen Mahmoud (then a Lieutenant (ملازم)), is summoned by the High Commander of Scientific Intelligence for a secret mission to locate a newly developed death ray device which had been stolen from the agency. For this mission, Nour was assigned to head a team of scientists who would form the core team of main characters for the series: communications engineer Salwa, psychiatrist Ramzy, and radiation scientist Mahmoud. For some time, the team is focused solely on solving mysteries which require them to draw on both their policing and scientific skills. As the series progresses, Nour and Salwa get married (Issue #13: Lost Time (الزمن المفقود)). They have a daughter, Nashwa, who becomes the team's computer expert after her growth is artificially accelerated to adulthood as part of an alien weapons' test (Issue #63: The Inflamed Ocean (المحيط الملتهب)). A key milestone in the series takes place during a five-part storyline (Issues #76-80), in which the Earth is occupied by an alien warrior race from the planet Glorial (جلوريال). In the initial invasion (Issue #76: Invasion (الاحتلال)), Glorial's armies destroy nearly all of Earth's most significant military, scientific, and cultural assets and landmarks. Nour and his team lead an international resistance movement which, after a year-long campaign, liberates the Earth (Issue #80: Victory (النصر)). The storylines following the liberation often focused on the struggle for power between different countries and factions in the aftermath of Earth's scientific and cultural devastation, with Egypt becoming the world's leader in science and technology. During this period, Egypt's Scientific Intelligence is re-constituted under a new High Commander, and Nour's team resumes its mystery-solving work. Another milestone in the series takes place when the team travels to the planet Arghoran (أرغوران) to help liberate it from Glorial's occupation. This was the fulfillment of a promise Nour had made to Bodon (بودون), an Arghorian who once tried to lead his planet to occupy Earth (Issue #58: Battle of the Planets (معركة الكواكب)), but later died in the effort to liberate Earth from Glorial's occupation (Issue #78: Struggle (الصراع)). While they succeed in liberating Arghoran and returning to Earth, the team disbands after Mahmoud apparently dies (Issue #100: Time = Zero (الزمن = صفر)), and Salwa becomes pregnant. At the behest of the High Commander, Nour continues his work for Scientific Intelligence as part of a new, two-man team with Akram, a rogue fighter and ally of the team whom Nour and Ramzy first encountered in the aftermath of Earth's liberation (Issue #81: Symbol of Power (رمز القوة)). Shortly thereafter, however, the original team, absent Mahmoud, was re-constituted with Akram as the newest member. It also became increasingly clear to the team members that Mahmoud had not died, but that his consciousness was trapped in an unknown dimension from which he occasionally managed to communicate with and assist his former comrades. In its current form, the team continues to solve increasingly complex scientific mysteries, often involving time travel, as well as interstellar and inter-dimensional travels and encounters. Characters Nour Nour El Deen Mahmoud () is an agent of the ESIA. He is characterized with an outstanding ability to solve mysteries. According to the series, Nour is born in 1976. His father is a policeman. In 2000 at the age of 24, he forms his own team consisting of: Salwa, Ramzy and Mahmoud, a group of experts in different fields. He marries Salwa in novel 13 and they had a daughter - Nashwa - later in the series as well. Through the novels, Nour travels to the past and future many times. He also travels in space to other planets and even worlds in other dimensions. According to the novels Nour is highly trained on martial arts and in many novels Nour had to use his language skills such as Hebrew in novel 16 and French and German in novel 119. Salwa Salwa Mansour is a communication expert. She marries Nour and gives birth to their daughter, Nashwa. Ramzy Ramzy is a psychiatrist. He joins Nour's teams from the first book, and he later marries Mosheera Mahfooz (journalist). Ramzy and Mosheera gets a divorce later after a short while of being married to Ramzi, Ramzy falls in love with Nour's daughter: Nashwa and marries her. They called their son Mahmoud as a reminder of their friend Mahmoud who thought to be dead in book 100 to save the team. Mahmoud Mahmoud is a radiation expert. He was thought to be dead since book 100 but he turns out to be alive and trapped in a time tunnel later in the series. Nashwa Nashwa is Nour and Salwa's daughter. She went through some alien tests (Atlantis) which boosted her growth rate rapidly which made her an adult in a short period of time. She is the team's computer expert and later she marries Ramzy in book 101. Akram Akram an engineer. He meets up with Nour's the team in book 81. He becomes one of the team starting book 101. Akram doesn't like modern technology and loves his old style pistol. Tarek Tarek is a time traveler from the future who joins the team in book 115. In book 155 all the team members travel to the future where Tarek joins them again. In the same book, it is revealed that Tarek is the grandson of Nour and the son of Nashwa and Ramzy. Mohamed Hejazy Dr. Mohamed Hejazy is a physician and a friend of Nour's. Mosheera Mosheera Mahfouz a newspaper reporter. She marries Ramzy in book 52 and gets divorced in book 60. She falls in love with Akram and they get married in book 101. Seen Tamantashar X-18 Seen Tamantashar is a super robot that was manufactured thousands of years ago by the people of Atlantis. He saves the team many times through the novels. Themes Egyptian and Arab Nationalism Part of the premise of the series is that, in the future, Egypt becomes the a leading but peaceful world power. In various stories, Farouk regularly emphasizes the patriotism of his characters, and their willingness to make considerable sacrifices for Egypt. Additionally, a number of the stories in the series touch on the themes of pan-Arab solidarity, with Nour and his team members encountering and collaborating with a number of characters from different Arab countries. In these interactions, a sense of fraternity and comradeship between the Egyptians and other Arabs is emphasized. Beyond this, Farouk's stories often include strong criticisms of countries that are unpopular in Egypt and the Arab world today, most notably: the United States, Great Britain, and Israel. In the future which Farouk posits, these countries are shown to be strongly resentful of Egypt's success. The team confronts Israeli spies during numerous stories, and in one notable storyline, Akram goes up against a British spy called James Bradley (Issue #92: The Terrible Journey (الرحلة الرهيبة)), whose character is a ruthless and amoral version of the famous fictional British spy James Bond. The United States is often described as a country that deals only in the logic of military strength and force. Faith and Religion The heroes of the series are regularly shown to be people of strong faith in God. At times when a character is caught in a seemingly hopeless predicament, he or she will call on God, and a way out will present itself. On one mission, the team encounters an alien race living under the surface of the Moon (Issue #48: Prison of the Moon (سجن القمر)), who turn out to be a monotheistic society. A nemesis of Nour who appears in a number of storylines is the half-human son of the Devil (first introduced in Issue #72: The Devil's Son (ابن الشيطان)). See also List of titles of Malaf Al Mostakbal series References Egyptian novels Science fiction book series Arabic-language novels
Symphonic music in Iran encompasses Iranian musical pieces composed in the symphonic style. In addition to instrumental compositions, some of Iran's symphonic pieces are based on the country's folk songs, and some are based on poetry of both classical and contemporary Iranian poets. History Ali-Naqi Vaziri, one of the most prominent and influential musicians of the late Qajar and early Pahlavi periods, established a private music school in 1924, where he also created a school orchestra composed of his students, formed by a combination of the Iranian instrument of tar and some western instruments. Vaziri then founded an association named Music Club (), formed by a number of progressive-minded writers and scholars, where the school orchestra performed concerts that were conducted by himself. The Tehran Symphony Orchestra () was founded by Gholamhossein Minbashian in 1933. It was reformed by Parviz Mahmoud in 1946, and is currently the oldest and largest symphony orchestra in Iran. Later, Ruhollah Khaleqi, a student of Vaziri, established the Society for National Music () in 1949. He wrote his musical compositions within the parameters of classical Iranian modes, some of which involved Western triadic harmony. Many of Iran's folk songs have the potential of being adapted into major or minor tonalities, and therefore, a number of Iranian folk songs were arranged for orchestral accompaniment. Symphonische Dichtungen aus Persien ("Symphonic Poems from Persia"), a collection of Persian symphonic works, was performed by the German Nuremberg Symphony Orchestra and conducted by Iranian conductor Ali Rahbari in 1980. Loris Tjeknavorian, a celebrated Iranian Armenian composer and conductor, composed Rostam and Sohrab, an opera with Persian libretto that is based on the tragedy of Rostam and Sohrab from prominent medieval Persian poet Ferdowsi's epic poem Šāhnāme, in over two decades. It was first performed by the Tehran Symphony Orchestra at Tehran's Roudaki Hall in December 2003. List of composers The following are a number of Iranian composers of symphonic music. Ahmad Pejman Ali Rahbari Alireza Mashayekhi Alireza Motevaseli André Hossein Behzad Ranjbaran Fouzieh Majd Heshmat Sanjari Hormoz Farhat Hossein Alizâdeh Hossein Dehlavi Houshang Ostovar Loris Tjeknavorian Majid Entezami Mohammad Reza Tafazzoli Morteza Hannaneh Nader Mashayekhi Reza Vali Samin Baghtcheban Shahrdad Rouhani See also Music of Iran List of Iranian musicians References Iranian music
Lawrence “Law” Roach is a retired American fashion stylist, best-known for his work with Zendaya, Céline Dion and Anya Taylor-Joy. Additionally, he is recognized for his time spent serving as a primary judge on HBO Max’s vogue competition series, Legendary. Career Law Roach grew up in Chicago where he started his career as a vintage broker. Soon after he moved to New York City where he opened his boutique. Roach's styling debut was in a Deliciously Vintage boutique, when Kanye West walked into the store in 2009. For the 2021 Met Gala, Roach had the opportunity to style 10 celebrities, some include Alton Mason, Kehlani, and Hunter Schafer. He starred as a permanent judge on the HBO Max show Legendary alongside Megan Thee Stallion, Keke Palmer, Leiomy Maldonado, and Jameela Jamil. As a stylist, some of his most well-known clients are Celine Dion, Zendaya, Tom Holland, Kerry Washington, Anya Taylor-Joy, Ariana Grande, and Megan Thee Stallion. In 2016, Roach was announced as one of the judges for cycle 23 of America’s Next Top Model, alongside Ashley Graham, Rita Ora and Drew Elliott. The following year, he then partnered with Celine Dion to style her for Couture Week in Paris and became the first African American stylist to cover the annual The Hollywood Reporter’s Stylist & Stars issue. Dion and Zendaya joined Roach for the cover. He received the 2021 Gem Award for Jewelry Style. He received the inaugural stylist award for American Fashion at the 2022 CFDA Awards in New York. Roach announced his retirement from styling via Instagram in March 14, 2023, stating that “if this business was just about clothes I would do it for the rest of my life but unfortunately it’s not! The politics , the lies and false narratives finally got me! You win … I’m out.”(sic) However, Roach later clarified that he would still be working with Zendaya, stating that “So y’all really think I’m breaking up with Z….. we are forever!” and “She’s my little sister and it’s real love not the fake industry love.”(sic) Roach later stated that It was best for him to “walk away from the industry for a while to just, you know, you work on my mental, my mental health and my physical health.” In his March 17, 2023 interview with The Cut, Roach cited burnout and a desire to live a happier life as reasons for his retirement. Roach discussed the challenges he faces in the industry, including “false narratives perpetuated by gatekeepers and intermediaries”. He expressed frustration at the loss of clients due to these aforementioned narratives, which “are often untrue”. Roach additionally emphasized his love for fashion and his commitment to protecting his clients, but also expressed a desire to be better taken care of in return. He also mentioned that another one of his reasons for retirement was because he "got overwhelmed and never got a chance to properly grieve a great loss", which he refers to as the death of his nephew. Personal life Roach is openly gay. In 2023, Roach declared himself to be aromantic. Through a series of Instagram stories in 2021, Roach revealed the death of his three-year old nephew. According to the Chicago Police Department Office of Communications, Law's nephew died on Tuesday, Nov. 23, 2021, about 10:40 p.m. local time, after falling out of a window on the 17th story of a Chicago building with the screen drawn inward. Filmography References Year of birth missing (living people) Living people American LGBT broadcasters American LGBT businesspeople American gay men Aromantic men American fashion businesspeople Fashion stylists Gay businessmen African-American LGBT people Participants in American reality television series
Segundo García González (1958 – 18 May 2021), best known by his pseudonym Esegé, was a Spanish comics artist. He worked for Mortadelo and Mister K. He began his professional career at magazine TBO, where between 1977 and 1979 he produced the section La Habichuela alongside Paco Mir, Sirvent, Tha and T.P. Bigart.<ref>La Habichuela (del TBO), "13 Rue Bruguera" (in Spanish)</ref> Since 1981 he wrote for the magazine Mortadelo the series Neronius (a continuation of the French series Résidus, tyran de Rome by Blareau and Pierre Guilmard) about a crazy Roman emperor. After the closure of Bruguera publisher, he worked for the magazine Garibolo with the series Tito Sidecar, Pomponius Triponum and later for Ediciones B with Don Pyme (about the owner of a small business) and Parsley (about a jester in a medieval court). His last series was El Pequeño Quijote for Mister K''. García González died on 18 May 2021, aged 63. References External links Lambiek Comiclopedia article. Spanish comics artists 1958 births 2021 deaths People from the Province of Albacete Place of death missing 20th-century Spanish artists
Byrd's (officially Byrd's Food Stores) was a supermarket chain based in Burlington, North Carolina. It was a family owned and operated company by the Byrd family of Burlington. Operating mainly in the Piedmont and Coastal Plain of North Carolina and Southside Virginia, the chain was sold and became Lowes Foods in 1997 after establishing 43 stores. Defunct supermarkets of the United States Companies based in North Carolina Defunct companies based in North Carolina
Canal Trece (stilized as Trece.) Is a Colombian free-to-air television network with regional coverage, specialized in cultural programming. Being a public television station, it is owned by the Colombian Government and its operations are managed by the RTVC Public Media System. The headquarters of the channel are located in Bogotá. Conceived originally as part of a project to assign a departmental public television channel to the Boyacá department, the channel was officially launched on September 1, 1998, under the name of Teveandina. It was available in Bogotá and 14 other Colombian departments: Amazonas, Arauca, Boyacá, Caquetá, Casanare, Cundinamarca, Guainía, Guaviare, Huila, Meta, Putumayo, Tolima, Vaupés and Vichada. At first, the channel was limited to the broadcasting of programming blocks acquired by third-party companies on their own signal, who rented space to sell their productions. After the inauguration of the first private channels in the country in 1998, the channel went through a great economic crisis due to the fall in the audience that brought the opening of signals. Due to this, several production companies migrated to Caracol and RCN as main clients, so Teveandina started issuing infomercials to keep their signal on air. However, in 2000 the channel declared bankruptcy. But Telecom Colombia (currently Movistar Colombia), the majority shareholder of the channel, contributed 700 million pesos to maintain the company, and the National Television Authority (ANTV) contributed 200 million pesos more to pay the salaries of employees. In 2001 the channel administration was changed, and a new direction was sought for the business, identifying a market niche that until then was neglected by both public and private channels: Young people. With this new approach, the name of Teveandina was changed to Canal Trece, the image was redesigned and a new stage began. In this way, the structure of the canal was redesigned, creating programming for young people, which implied starting to produce in the channel's facilities, something that had not been conceived in its beginnings. In 2004, the management assumed a new administration that has sought to position and consolidate the image through various strategies, among which are adopting the color orange as a distinctive, reducing the percentage of videos and increasing the programming of other types. Special emphasis was given to the commercialization of the channel's programs, so that it became the channel's most important item and together with the production services, it has made the channel sustainable and profitable. With the liquidation of Telecom, Canal Trece became the property of RTVC and the Colombian ministry of telecommunications, since it owns 91% of the shares of the entity and the remaining 9% to the Governments of Boyacá, Caquetá, Casanare, Cundinamarca, Guaviare, Huila, Meta, Putumayo and Tolima. References External links Official website (in Spanish) Television networks in Colombia Television channels and stations established in 1998 Television stations in Colombia Spanish-language television stations
Harry Potter and the Deathly Hallows – Part 2 is a 2011 fantasy film, based on the 2007 novel, and the eighth and final film installment in the Harry Potter franchise. It may also refer to: Harry Potter and the Deathly Hallows – Part 2 (video game), a video game based on the film Harry Potter and the Deathly Hallows – Part 2 (soundtrack), the soundtrack to the 2011 film See also Deathly Hallows (disambiguation) Harry Potter and the Deathly Hallows – Part 1 (disambiguation)
Pannel Egboh (born March 23, 1986) is an American football defensive end. He was signed by the San Francisco 49ers as an undrafted free agent in 2009. He played college football at Stanford, under current University of Michigan head coach Jim Harbaugh. He currently attends McGovern Medical School. College career Egboh played college football at Stanford. He finished college with 141 tackles, 10 sacks, 3 pass deflections and 3 forced fumbles. In his Freshman year, he finished the season with 15 tackles, a sack and 2 pass deflections. On September 10, 2005, he had 6 tackles along with a sack against Navy in which Stanford won 41-38. In his Sophomore year, he finished the season with 45 tackles, 1.5 sacks and a pass deflections. On October 21, 2006, he recorded 3 tackles along with a sack against Arizona State. In his Junior year, he finished the season with 49 tackles, 6 sacks and 3 forced fumbles. Also as a junior (2007), Egboh led all Cardinal defensive linemen for the second straight season with a career-high 49 tackles, which was the fifth highest total on the team. Finished with 13.5 tackles for losses of 75 yards, which ranked third on the team. Tied for second on the team with six sacks. Earned Pac-10 Defensive Player of the Week honors after recording a career-best 10 tackles, a career-high-tying 2.5 tackles for loss, 1.5 sacks and his first blocked kick on an extra point attempt in Stanford’s upset victory over #1-ranked USC. On November 24, 2007, he had 4 tackles, 2 sacks and a forced fumble against Notre Dame. In his Senior year, he finished the season with 32 tackles, 1.5 sacks. Professional career San Francisco 49ers On April 26, 2009, he signed with the San Francisco 49ers as an undrafted free agent. He was released on September 5, 2009. Houston Texans On January 4, 2010, he signed with the Houston Texans to a reserve/future contract. He was released on August 29, 2010. Philadelphia Eagles On August 31, 2010, he was claimed off waivers by the Philadelphia Eagles. On September 3, 2010, he was released a couple of days later. On October 13, 2010, he was signed to the practice squad. Tennessee Titans On January 4, 2011, he signed with the Tennessee Titans to a reserve/future contract. On September 3, 2011, he was released. On September 5, 2011, he was signed to the practice squad. On January 2, 2012, he was signed to a reserve/future contract. On September 11, 2012, he was released along with Offensive tackle Troy Kropog after the team signed Deuce Lutui and reinstated Kenny Britt after serving his suspension. On September 26, 2012, he re-signed with the team after Keyunta Dawson was placed on Injured Reserve due to a Hamstring injury. Jacksonville Jaguars On April 18, 2013, Egboh signed with the Jacksonville Jaguars following a minicamp tryout. He was released on August 30, 2013. References External links Stanford Cardinals bio Tennessee Titans bio 1986 births Living people American football defensive ends Stanford Cardinal football players Tennessee Titans players Jacksonville Jaguars players Houston Texans players
Inge Marschall is Czech-born German model and film and television actress. Selected filmography Go for It, Baby (1968) Old Barge, Young Love (1973) Auch ich war nur ein mittelmäßiger Schüler (1974) Spring Symphony (1983) Der Fahnder (1997) References Bibliography External links 1943 births Living people German film actresses German television actresses German female models
Arild Olsen (born 14 January 1952) is a Norwegian footballer. He played in two matches for the Norway national football team from 1976 to 1979. References External links 1952 births Living people Norwegian men's footballers Norway men's international footballers Place of birth missing (living people) Men's association football players not categorized by position
The Prayer of the Apostle Paul is a New Testament apocryphal work, the first manuscript from the Jung Codex (Codex I) of the Nag Hammadi Library. Written on the inner flyleaf of the codex, the prayer seems to have been added after the longer tractates had been copied. Although the text, like the rest of the codices, is written in Coptic, the title is written in Greek, which was the original language of the text. The manuscript is missing approximately two lines at the beginning. Authorship and Composition Like other early Christian writings, the author of this prayer identifies themself with the historic Apostle Paul to give authority to the text. Consequently, the prayer is widely understood to be a pseudepigraphical work. Because the prayer lacks its opening lines, it is unclear whether there was a title at its beginning. However, a title written in Greek is preserved at the bottom of the treatise, reading "Prayer of the Apostle Paul" and followed by a colophon. The colophon, also written in Greek, states "In Peace. Holy is Christ." The prayer in its entirety was likely written in Greek and translated into Coptic. Content The prayer shows a distinctive Gnostic tone. It begins with a series of invocations addressed to the Redeemer. The term, with numerous meanings in both the Jewish Scriptures and the New Testament, has varied potential implications. The Redeemer is understood to be God in the Book of Job, just as he is known as the "Redeemer of Israel" in the Book of Isaiah. By contrast, in Paul's Letter to the Romans, Jesus is the Redeemer. In 3:24-25, Paul writes that believers "are now justified by his grace as a gift, through the redemption that is in Christ Jesus, whom God put forward as a sacrifice of atonement by his blood"—in essence, redemption is the saving nature of Jesus' death. The Redeemer might also be understood as the supreme, hidden God of the Gnostic belief system. Whomever the prayer intends to address, the author employs the formula "you are" four times to characterize the Redeemer as mind, treasury, fullness or pleroma, and repose. With the exception of the word "treasury"—translated into Coptic as aho, the terms remain in Greek as nous, pleroma, and anapausis, respectively. Although these terms are frequent in Valentinian literature, they are also found elsewhere. Many scholars have dubbed it as a Valentinian work due to characteristic phrases such as the "psychic God"—this would indicate that it was composed between 150 and 300 AD; if it is not of Valentinian origin it could date from as early as 75. Parallels to other works Scholars have found parallels to many other works which may be partial sources, including Corpus Hermeticum, the Three Steles of Seth, the Gospel of Philip, and the authentic Pauline letters. References External links A Translation by Dieter Mueller P The Prayers of Paul the Apostle Coptic literature Pseudepigraphy Nag Hammadi library
```handlebars {{layout/logo-heading title=(localize 'search') desc=(localize 'admin_search_explain') icon=constants.Icon.Search}} {{customize/search-index searchStatus=model reindex=(action "reindex")}} ```
```java /******************************************************************************* * * All rights reserved. This program and the accompanying materials * * path_to_url * path_to_url */ package org.eclipse.paho.android.sample.activity; import android.util.Log; import org.eclipse.paho.android.service.MqttTraceHandler; class MqttTraceCallback implements MqttTraceHandler { public void traceDebug(java.lang.String arg0, java.lang.String arg1) { Log.i(arg0, arg1); } public void traceError(java.lang.String arg0, java.lang.String arg1) { Log.e(arg0, arg1); } public void traceException(java.lang.String arg0, java.lang.String arg1, java.lang.Exception arg2) { Log.e(arg0, arg1, arg2); } } ```
The Burma Gallantry Medal (BGM) was a military decoration awarded for acts of gallantry, in both war and peace, by Governor's commissioned officers, non-commissioned Officers and other ranks of the British Burmese military. These included its Army, Frontier Force, Military Police, Royal Naval Volunteer Reserve and Auxiliary Air Force. Clasps, attached to the ribbon, could be awarded to mark further awards of the medal. When Burma ceased to be a province of British India in 1937 and became a separate colony, a distinct gallantry medal was required for its armed forces. In response, the Burma Gallantry Medal was established by royal warrant on 10 May 1940. Between 26 March 1942 and 28 November 1947, a total of 207 medals and 3 clasps were awarded. In addition to the medal, recipients were entitled to a monthly monetary allowance, paid for life. The medal became obsolete when Burma gained independence on 4 January 1948. Appearance The medal 36 mm in diameter, is circular and made of silver. The obverse bears the crowned effigy of King George VI facing left with the inscription GEORGIVS VI D:G:BR:OMN:REX ET INDIAE:IMP. The reverse bears a laurel wreath and the inscription "Burma" and "For Gallantry". The medal is suspended from a dark green ribbon with a crimson central stripe. The recipient's name, rank and unit were engraved on the rim of the medal. References Military awards and decorations of the United Kingdom Courage awards
```python # pylint: disable=missing-docstring from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import numpy as np # Weird imports / assignment because the normal import syntax doesn't work for tf.keras in tf 1.8 from tensorflow import keras # pylint:disable=wrong-import-position Sequential = keras.models.Sequential Dense = keras.layers.Dense Activation = keras.layers.Activation from cleverhans.utils_keras import KerasModelWrapper class TestKerasModelWrapper(unittest.TestCase): def setUp(self): import tensorflow as tf def dummy_model(): input_shape = (100,) return Sequential( [ Dense(20, name="l1", input_shape=input_shape), Dense(10, name="l2"), Activation("softmax", name="softmax"), ] ) self.sess = tf.Session() self.sess.as_default() self.model = dummy_model() def test_softmax_layer_name_is_softmax(self): model = KerasModelWrapper(self.model) softmax_name = model._get_softmax_name() self.assertEqual(softmax_name, "softmax") def test_logit_layer_name_is_logits(self): model = KerasModelWrapper(self.model) logits_name = model._get_logits_name() self.assertEqual(logits_name, "l2") def test_get_logits(self): import tensorflow as tf model = KerasModelWrapper(self.model) x = tf.placeholder(tf.float32, shape=(None, 100)) preds = model.get_probs(x) logits = model.get_logits(x) x_val = np.random.rand(2, 100) tf.global_variables_initializer().run(session=self.sess) p_val, logits = self.sess.run([preds, logits], feed_dict={x: x_val}) p_gt = np.exp(logits) / np.sum(np.exp(logits), axis=1, keepdims=True) self.assertTrue(np.allclose(p_val, p_gt, atol=1e-6)) def test_get_probs(self): import tensorflow as tf model = KerasModelWrapper(self.model) x = tf.placeholder(tf.float32, shape=(None, 100)) preds = model.get_probs(x) x_val = np.random.rand(2, 100) tf.global_variables_initializer().run(session=self.sess) p_val = self.sess.run(preds, feed_dict={x: x_val}) self.assertTrue(np.allclose(np.sum(p_val, axis=1), 1, atol=1e-6)) self.assertTrue(np.all(p_val >= 0)) self.assertTrue(np.all(p_val <= 1)) def test_get_layer_names(self): model = KerasModelWrapper(self.model) layer_names = model.get_layer_names() self.assertEqual(layer_names, ["l1", "l2", "softmax"]) def test_fprop(self): import tensorflow as tf model = KerasModelWrapper(self.model) x = tf.placeholder(tf.float32, shape=(None, 100)) out_dict = model.fprop(x) self.assertEqual(set(out_dict.keys()), set(["l1", "l2", "softmax"])) # Test the dimension of the hidden represetation self.assertEqual(int(out_dict["l1"].shape[1]), 20) self.assertEqual(int(out_dict["l2"].shape[1]), 10) # Test the caching x2 = tf.placeholder(tf.float32, shape=(None, 100)) out_dict2 = model.fprop(x2) self.assertEqual(set(out_dict2.keys()), set(["l1", "l2", "softmax"])) self.assertEqual(int(out_dict2["l1"].shape[1]), 20) if __name__ == "__main__": unittest.main() ```
Dariusz Białkowski (born 16 July 1970 in Białogard) is a Polish sprint canoeist who competed from the early 1990s to the early 2000s (decade). Competing in three Summer Olympics, he won two bronze medals. Kotowicz won them in the K-2 1000 m in 1992 and in the K-4 1000 m in 2000. He represent club Astoria Bydgoszcz. Białkowski also won four bronze medals at the ICF Canoe Sprint World Championships, earning them in the K-2 1000 m (1995, 1997), K-4 500 m (1995), and K-4 1000 m (1995) events. References 1970 births Canoeists at the 1992 Summer Olympics Canoeists at the 1996 Summer Olympics Canoeists at the 2000 Summer Olympics Astoria Bydgoszcz sportspeople Living people Olympic canoeists for Poland Olympic bronze medalists for Poland Polish male canoeists Olympic medalists in canoeing People from Białogard ICF Canoe Sprint World Championships medalists in kayak Sportspeople from West Pomeranian Voivodeship Medalists at the 2000 Summer Olympics Medalists at the 1992 Summer Olympics 20th-century Polish sportsmen
The 2008–09 season was the 38th in the history of Essex Senior Football League a football competition in England. The league featured 15 clubs which competed in the league last season, along with one new club: Takeley, promoted from the Essex Olympian League Romford were champions, winning their second Essex Senior League title and returned to the Isthmian League after seven seasons in the Essex Senior League. League table References Essex Senior Football League seasons 9
Swayne College, founded as the Swayne School, was a school for African American students in Montgomery, Alabama. Built in 1865 and dedicated in 1869, it was named for General Wager Swayne who led the U.S. Army in Alabama after the American Civil War and later oversaw the Freedmen's Bureau in the state. He helped establish schools for African Americans in Alabama. The school operated from 1868 to 1937 The school was located at 632 Union Street, near Grove Street, on a site submitted by Elijah Cook and was run by the American Missionary Association. George Stanley Pope was the school's first principal. Its first African American principal was Charles Duncan, a graduate of Fisk University. Richard Bailey writes that the school was among the first to utilize the "bush school" strategy, where educators sent the school's best students into the community to teach other African-American children. Tuition for Montgomery students was free, those from neighboring areas paid $1. Swayne College was demolished in 1948 and succeeded on the same site in 1949 by the Booker T. Washington School, Montgomery's first high school for African Americans. A historical marker commemorates the schools' site. The community's schools later included Booker T. Washington Magnet High School, a successor to George Washington Carver High School, and the Carver Creative and Performing Arts Center (CCPAC). See also Montgomery Industrial School for Girls References Montgomery, Alabama Defunct schools in Alabama
```racket #lang curly-fn racket/base (require racket/require hackett/private/util/require hackett/private/type-reqprov (for-syntax (multi-in racket [base contract string format list match syntax]) (multi-in syntax/parse [class/local-value class/paren-shape experimental/template]) syntax/apply-transformer threading hackett/private/expand+elaborate hackett/private/infix hackett/private/prop-case-pattern-expander hackett/private/util/list hackett/private/util/stx) (postfix-in - (multi-in racket [base match promise splicing])) syntax/parse/define (except-in hackett/private/base @%app) (only-in hackett/private/class class-id derive-instance) (only-in hackett/private/kernel [ plain-]) (only-in (unmangle-types-in #:no-introduce (only-types-in hackett/private/kernel)) forall [#%app @%app])) (provide (for-syntax type-constructor-spec data-constructor-spec type-constructor-val data-constructor-val data-constructor-field-types) (rename-out [ lambda] [* lambda*]) data case* case * defn _) (begin-for-syntax (provide (contract-out [struct type-constructor ([type type?] [arity exact-nonnegative-integer?] [data-constructors (listof identifier?)] [fixity (or/c operator-fixity? #f)])] [struct data-constructor ([macro procedure?] [type type?] [make-match-pat procedure?] [fixity (or/c operator-fixity? #f)])]))) (begin-for-syntax (define-splicing-syntax-class type-constructor-spec #:attributes [tag [arg 1] len nullary? fixity] #:commit #:description #f [pattern {~seq tag:id {~optional :fixity-annotation}} #:attr [arg 1] '() #:attr len 0 #:attr nullary? #t] [pattern {~seq (~parens tag:id arg:id ...+) {~optional :fixity-annotation}} #:attr len (length (attribute arg)) #:attr nullary? #f] [pattern {~seq {~braces a:id tag:id b:id} {~optional :fixity-annotation}} #:with [arg ...] #'[a b] #:attr len 2 #:attr nullary? #f] [pattern {~and (tag:id) {~fail (~a "types without arguments should not be enclosed in parentheses; perhaps" " you meant " (syntax-e #'tag) "?")}} #:attr [arg 1] #f #:attr len #f #:attr nullary? #f #:attr fixity #f]) (define-splicing-syntax-class data-constructor-spec #:attributes [tag [arg 1] len nullary? fixity] #:commit #:description #f [pattern {~seq tag:id {~optional :fixity-annotation}} #:attr [arg 1] '() #:attr len 0 #:attr nullary? #t] [pattern {~seq (~parens tag:id arg ...+) {~optional :fixity-annotation}} #:attr len (length (attribute arg)) #:attr nullary? #f] [pattern {~seq {~braces a tag:id b} {~optional :fixity-annotation}} #:with [arg ...] #'[a b] #:attr len 2 #:attr nullary? #f] [pattern {~and (tag:id) {~fail (~a "data constructors without arguments should not be enclosed in " "parentheses; perhaps you meant " (syntax-e #'tag) "?")}} #:attr [arg 1] #f #:attr len #f #:attr nullary? #f #:attr fixity #f]) (struct type-constructor (type arity data-constructors fixity) #:transparent #:property prop:procedure ( (ctor stx) ((make-variable-like-transformer (type-constructor-type ctor)) stx)) #:property prop:infix-operator ( (ctor) (type-constructor-fixity ctor))) (struct data-constructor (macro type make-match-pat fixity) #:transparent #:property prop:procedure (struct-field-index macro) #:property prop:infix-operator ( (ctor) (data-constructor-fixity ctor))) (define-syntax-class type-constructor-val #:attributes [local-value type arity data-constructors fixity] #:commit #:description #f [pattern {~var || (local-value type-constructor? #:failure-message "not bound as a type constructor")} #:attr type (type-constructor-type (attribute local-value)) #:attr arity (type-constructor-arity (attribute local-value)) #:attr data-constructors (type-constructor-data-constructors (attribute local-value)) #:attr fixity (type-constructor-fixity (attribute local-value))]) (define-syntax-class data-constructor-val #:attributes [local-value macro type make-match-pat fixity] #:commit #:description #f [pattern {~var || (local-value data-constructor? #:failure-message "not bound as a data constructor")} #:attr macro (data-constructor-macro (attribute local-value)) #:attr type (data-constructor-type (attribute local-value)) #:attr make-match-pat (data-constructor-make-match-pat (attribute local-value)) #:attr fixity (data-constructor-fixity (attribute local-value))]) ; Given a curried function type, produce a list of uncurried arguments and the result type. If the ; function is quantified, the type will be instantiated with fresh solver variables. ; ; Example: ; > (function-type-args/result ( a (-> a (-> B (C a))))) ; (list a^ B) ; (C a^) (define/contract function-type-args/result! (-> type? (values (listof type?) type?)) (syntax-parser #:context 'function-type-args/result! #:literal-sets [type-literals] [(~#%type:forall* [x ...] (~->* t ... r)) #:with [x^ ...] (generate-temporaries (attribute x)) #:do [(define inst-map (map cons (attribute x) (syntax->list #'[(#%type:wobbly-var x^) ...])))] (values (map #{insts % inst-map} (attribute t)) (insts #'r inst-map))])) (define/contract function-type-arity (-> type? exact-integer?) (syntax-parser #:context 'function-type-arity #:literal-sets [type-literals] [(~#%type:forall* _ (~->* t ...)) (sub1 (length (attribute t)))])) (define/contract (data-constructor-args/result! ctor) (-> data-constructor? (values (listof type?) type?)) (function-type-args/result! (data-constructor-type ctor))) (define/contract (data-constructor-arity ctor) (-> data-constructor? exact-integer?) (function-type-arity (data-constructor-type ctor))) (define/contract (data-constructor-all-tags ctor) (-> data-constructor? (listof identifier?)) (let ([t (data-constructor-type ctor)]) (syntax-parse (data-constructor-type ctor) #:context 'data-constructor-all-tags #:literal-sets [type-literals] [(~#%type:forall* _ (~->* _ ... (~#%type:app* (#%type:con type-id) _ ...))) (type-constructor-data-constructors (syntax-local-value #'type-id))]))) ; Given the type of a data constructor, returns the types of its fields, where all type variables ; are instantiated using the provided list of replacement types. Order of instantiation is ; consistent with the order of type arguments to the type constructor, so when fetching the fields ; for (Tuple a b), the first element of inst-tys will be used for a, and the second will be used ; for b. If the number of supplied replacement types is inconsistent with the number of arguments to ; the type constructor, a contract violation is raised. ; ; Example: ; > (data-constructor-field-types (list x^ y^) ; (forall [b a] {a -> Integer -> (Maybe b) -> (Foo a b)})) ; (list x^ Integer (Maybe y^)) ; ; While the data constructor type must be a fully-expanded type, the replacement types do not ; strictly need to be; they may be arbitrary syntax objects, in which case they will be left ; unexpanded in the result. (define/contract (data-constructor-field-types inst-tys con-ty) (-> (listof type?) type? (listof type?)) (define/syntax-parse {~#%type:forall* [x ...] t_fn} con-ty) (define/syntax-parse {~->* t_arg ... {~#%type:app* ({~literal #%type:con} _) con-var:id ...}} #'t_fn) (unless (equal? (length (attribute x)) (length (attribute con-var))) (raise-arguments-error 'data-constructor-field-types "unexpected number of quantified variables in constructor" "quantified" (length (attribute x)) "constructor" (length (attribute con-var)))) (unless (equal? (length (attribute con-var)) (length inst-tys)) (raise-arguments-error 'data-constructor-field-types (format "too ~a variables given for instantiation" (if (> (length (attribute con-var)) (length inst-tys)) "few" "many")) "expected" (length (attribute con-var)) "given" (length inst-tys))) (define var-subst (map cons (attribute con-var) inst-tys)) (map #{insts % var-subst} (attribute t_arg))) (struct pat-base (stx) #:transparent) (struct pat-var pat-base (id) #:transparent) (struct pat-hole pat-base () #:transparent) (struct pat-con pat-base (constructor) #:transparent) (struct pat-app pat-base (head pats) #:transparent) (struct pat-str pat-base (str) #:transparent) (struct pat-int pat-base (int) #:transparent) (define pat? pat-base?) (define-syntax-class pat #:description "a pattern" #:attributes [pat disappeared-uses] #:commit [pattern {~and pat-exp {~or pat-id (pat-id . _)}} #:declare pat-id (local-value case-pattern-expander?) #:do [(define trans (case-pattern-expander-transformer (attribute pat-id.local-value)))] #:with p:pat (local-apply-transformer trans #'pat-exp 'expression) #:attr pat (attribute p.pat) #:attr disappeared-uses (cons (syntax-local-introduce #'pat-id) (attribute p.disappeared-uses))] [pattern {~and constructor:data-constructor-val ~!} #:do [(define val (attribute constructor.local-value))] #:attr pat (pat-con #'constructor val) #:attr disappeared-uses (list (syntax-local-introduce #'constructor))] [pattern (~parens head:pat ~! arg:pat ...) #:attr pat (pat-app this-syntax (attribute head.pat) (attribute arg.pat)) #:attr disappeared-uses (append (attribute head.disappeared-uses) (append* (attribute arg.disappeared-uses)))] [pattern {~braces a:pat constructor:data-constructor-val b:pat} #:do [(define val (attribute constructor.local-value)) (define arity (data-constructor-arity val))] #:fail-when (zero? arity) (~a "cannot match " (syntax-e #'constructor) " infix; it is a value " "and should matched as a bare identifier") #:fail-when (not (= arity 2)) (~a "cannot match " (syntax-e #'constructor) " infix; it has arity " arity ", but constructors matched infix must have arity 2") #:attr pat (pat-app this-syntax (pat-con #'constructor val) (list (attribute a.pat) (attribute b.pat))) #:attr disappeared-uses (cons (syntax-local-introduce #'constructor) (append (attribute a.disappeared-uses) (attribute b.disappeared-uses)))] [pattern {~braces a:pat ctor:data-constructor-val b:pat {~seq ctors:data-constructor-val bs:expr} ...} #:when (eq? 'left (data-constructor-fixity (attribute ctor.local-value))) #:with ~! #f #:fail-unless (andmap #{eq? % 'left} (map data-constructor-fixity (attribute ctors.local-value))) (~a "cannot mix left- and right-associative operators in the same infix " "pattern") #:with :pat (template {{a ctor b} {?@ ctors bs} ...})] [pattern {~braces {~seq as:expr ctors:data-constructor-val} ... a:pat ctor:data-constructor-val b:pat} #:when (eq? 'right (data-constructor-fixity (attribute ctor.local-value))) #:and ~! #:fail-unless (andmap #{eq? % 'right} (map data-constructor-fixity (attribute ctors.local-value))) (~a "cannot mix left- and right-associative operators in the same infix " "pattern") #:with :pat (template {{?@ as ctors} ... {a ctor b}})] [pattern {~literal _} #:attr pat (pat-hole this-syntax) #:attr disappeared-uses (list (syntax-local-introduce this-syntax))] [pattern id:id #:attr pat (pat-var this-syntax #'id) #:attr disappeared-uses '()] [pattern str:str #:attr pat (pat-str this-syntax #'str) #:attr disappeared-uses '()] [pattern int:integer #:attr pat (pat-int this-syntax #'int) #:attr disappeared-uses '()]) (define/contract (pat! pat) (-> pat? (values type? ; the inferred type the pattern matches against; (listof (cons/c identifier? type?)))) ; the types of bindings produced by the pattern (match pat [(pat-var _ id) (let ([a^ (generate-temporary)]) (values #`(#%type:wobbly-var #,a^) (list (cons id #`(#%type:wobbly-var #,a^)))))] [(pat-hole _) (let ([a^ (generate-temporary)]) (values #`(#%type:wobbly-var #,a^) '()))] [(pat-str _ str) (values (expand-type #'String) '())] [(pat-int _ int) (values (expand-type #'Integer) '())] [(pat-con stx con) (define arity (data-constructor-arity con)) (unless (zero? arity) (raise-syntax-error #f (~a "cannot match " (syntax-e stx) " as a value; it is a " "constructor with arity " arity) stx)) (pat! (pat-app stx pat '()))] [(pat-app stx (pat-con cstx con) pats) (define arity (data-constructor-arity con)) (when {(length pats) . < . arity} (raise-syntax-error #f (~a "not enough arguments provided for constructor " (syntax-e cstx) ", which has arity " arity) stx)) (when {(length pats) . > . arity} (raise-syntax-error #f (~a "too many arguments provided for constructor " (syntax-e cstx) ", which has arity " arity) stx)) (let*-values ([(s_args _result) (data-constructor-args/result! con)] [(assumps) (pats! pats s_args)]) (values _result assumps))] [(pat-app outer-stx (pat-base inner-stx) _) (raise-syntax-error #f "expected a constructor" outer-stx inner-stx)])) (define/contract (pat! pat t) (-> pat? type? (listof (cons/c identifier? type?))) (let-values ([(t_ assumps) (pat! pat)]) (type<:! t t_ #:src (pat-base-stx pat)) assumps)) (define/contract (pats! pats) (-> (listof pat?) (values (listof type?) (listof (cons/c identifier? type?)))) (define-values [ts assumps] (for/lists [ts assumps] ([pat (in-list pats)]) (pat! pat))) (values ts (append* assumps))) (define/contract (pats! pats ts) (-> (listof pat?) (listof type?) (listof (cons/c identifier? type?))) (append* (for/list ([pat (in-list pats)] [t (in-list ts)]) (pat! pat t)))) ; Given a pattern, returns a function that produces a racket/match pattern given a list of binding ; identifiers. The input to this function may provide more identifiers than the pattern actually ; binds, and any leftover identifiers will be returned as the second value. ; ; The order in which identifiers are consumed by the produced function must agree with the order ; in which they are returned from pat! and pat!. (define/contract (pat->mk-match-pat pat) (-> pat? (-> (listof identifier?) (values syntax? (listof identifier?)))) (match pat [(pat-var _ _) (match-lambda [(cons id rest) (values id rest)])] [(pat-hole _) #{values #'_ %}] [(pat-str _ str) #{values #`(app force- #,str) %}] [(pat-int _ int) #{values #`(app force- #,int) %}] [(pat-con stx con) (pat->mk-match-pat (pat-app stx pat '()))] [(pat-app stx (pat-con cstx con) pats) (let ([mk-pats (combine-pattern-constructors (map pat->mk-match-pat pats))]) ( (ids) (let-values ([(match-pats rest) (mk-pats ids)]) (values ((data-constructor-make-match-pat con) match-pats) rest))))])) ; Combines a list of racket/match pattern constructors to properly run them against a list of ; identifiers in sequence, then combine the results into a list of patterns. Used by ; pat->mk-match-pat. (define/contract (combine-pattern-constructors mk-pats) (-> (listof (-> (listof identifier?) (values syntax? (listof identifier?)))) (-> (listof identifier?) (values (listof syntax?) (listof identifier?)))) ( (ids) (for/fold ([match-pats '()] [rest ids] #:result (values (reverse match-pats) rest)) ([mk-pat (in-list mk-pats)]) (let-values ([(match-pat rest*) (mk-pat rest)]) (values (cons match-pat match-pats) rest*))))) ;; your_sha256_hash--------------------------------- ;; Exhaustiveness checking (struct ideal-con (ctor-tag args)) ; An ideal pattern represents unmatched patterns, used by the exhaustiveness checker. ; Specifically, the current set of ideals represents the minimal set of patterns that would cover ; all uncovered cases without covering covered ones. As the exhaustiveness checker runs, it consults ; user provided patterns, and adjusts the set of ideals accordingly: it eliminates covered ideals ; and splits partially-covered ideals into more specific ones. ; ; An ideal pattern can be a variable, which corresponds to a pat-var or pat-hole (that is, it ; matches anything), or a constructor, which contains sub-ideals for each argument to the ; constructor. (define ideal? (or/c symbol? ; ideal variable ideal-con?)) ; ideal for specific constructor ; Creates a list of n fresh ideal variables. (define (generate-fresh-ideals n) (build-list n ( (_) (gensym)))) ; Returns a pretty representation of ideal. Uses syntax-e to turn constructor tags into strings, ; and replaces symbols with _. (define (ideal->string q) (define ideal->datum (match-lambda [(? symbol?) '_] [(ideal-con ctor-tag '()) (syntax-e ctor-tag)] [(ideal-con ctor-tag qs) (cons (syntax-e ctor-tag) (map ideal->datum qs))])) (format "~a" (ideal->datum q))) ; Generates a new ideal-con from a data constructors tag identifier (define (constructor-tag->ideal-con ctor-tag) (define arity (data-constructor-arity (syntax-local-value ctor-tag))) (ideal-con ctor-tag (generate-fresh-ideals arity))) ; Returns a substition function f for the given ideal q such that (f r) is just like q, except that ; all occurences of x are replaced by r. (define (ideal->subst-fn q x) (match q [(== x eq?) ( (r) r)] [(ideal-con ctor qs) (let ([fns (map #{ideal->subst-fn % x} qs)]) ( (r) (ideal-con ctor (map #{% r} fns))))] [_ ( (r) q)])) ; Substitutes occurences of symbol x with each ideal in rs, for each ideal in qs. ; ; e.g. ; (subs 'A '(B C) (list 'D (con "*" 'A))) ; = ; (list (list 'D (con "*" 'B)) ; (list 'D (con "*" 'C))) (define (substitute-ideals x rs qs) (let ([subst-fns (map #{ideal->subst-fn % x} qs)]) (for/list ([r (in-list rs)]) (for/list ([fn (in-list subst-fns)]) (fn r))))) (define current-exhaust-split-handler (make-parameter #f)) ; Checks if the ideals are covered by the patterns. Returns #t if the ideals are fully covered, #f ; if some ideals are left uncovered, or a pair of a symbol and its replacements if it needs to be ; split. (define (check-ideals ideals pats) (for/fold ([acc #t]) ([p (in-list pats)] [q (in-list ideals)]) #:break (not (eq? #t acc)) (match p ; The ideal is always satisfied when we hit a wildcard pattern, such as a variable or a hole, ; since they match everything. [(pat-var _ _) #t] [(pat-hole _) #t] ; When we hit a constructor pattern, we check the ideal. If it is a constructor, compare the ; tags and then recur for the sub-patterns. If it is a variable, then split the ideal into new ; ideals for each kind of constructor. [(or (pat-app _ (pat-con _ ctor) sub-pats) (and (pat-con _ ctor) (app ( (x) '()) sub-pats))) (match q [(ideal-con ctor-tag sub-ideals) (and (eq? (syntax-local-value ctor-tag) ctor) (check-ideals sub-ideals sub-pats))] [(? symbol? x) (let ([split-into (map constructor-tag->ideal-con (data-constructor-all-tags ctor))]) (cons x split-into))])] ; TODO: better exhaustiveness checking on strings. OCaml checks for the strings "*", "**", ; "***" etc. It would be fairly easy to do the same using splitting. [(pat-str _ s) #f] [(pat-int _ i) #f]))) ; Checks if patterns are exhaustive or not. Given a list of pattern-lists, returns #f if no ; un-matched patterns are found. Otherwise, returns an example of an un-matched pattern-list. (define/contract (check-exhaustiveness patss pat-count) (-> (listof (listof pat?)) exact-nonnegative-integer? (or/c #f (listof ideal?))) ; Initially, use a fresh ideal variable for each pattern. (let check ([idealss (list (generate-fresh-ideals pat-count))]) (match idealss ; No more ideals to check; #f signals that the pattern is exhaustive. ['() #f] ; Check if the most recent ideal is exhaustive, or if it split into more ideals. [(cons ideals rest-idealss) (match (for/or ([pats (in-list patss)]) (check-ideals ideals pats)) [#t (check rest-idealss)] ; Non-exhaustive! return un-matched ideals. [#f ideals] ; In case of split, substitute and append. [(cons x rs) (let ([new-idealss (substitute-ideals x rs ideals)]) (check (append new-idealss rest-idealss)))])])))) (define-syntax-parser define-data-constructor [(_ [:type-constructor-spec] [constructor:data-constructor-spec]) #:with tag- (generate-temporary #'constructor.tag) #:with tag-/curried (generate-temporary #'constructor.tag) ; calculate the result type of the data constructor, after being applied to args (if any) #:with _result (if (attribute .nullary?) #'.tag #'(@%app .tag .arg ...)) ; calculate the type of the underlying constructor, with arguments, unquantified #:with _con_unquantified (foldr #{begin #`(@%app -> #,%1 #,%2)} #'_result (map type-namespace-introduce (attribute constructor.arg))) ; quantify the type using the type variables in , then evaluate the type #:with _con:type #'(forall [.arg ...] _con_unquantified) #:with [field ...] (generate-temporaries (attribute constructor.arg)) #:with fixity (attribute constructor.fixity) #`(begin- (define-values- [] _con.residual) ; check if the constructor is nullary or not #,(if (attribute constructor.nullary?) ; if it is, just define a value #'(begin- (define- tag- (let- () (struct- constructor.tag ()) (constructor.tag))) (define-syntax- constructor.tag (data-constructor (make-typed-var-transformer #'tag- (quote-syntax _con.expansion)) (quote-syntax _con.expansion) (match-lambda [(list) #'(app force- (==- tag-))]) 'fixity))) ; if it isnt, define a constructor function #`(splicing-local- [(struct- tag- (field ...) #:transparent #:reflection-name 'constructor.tag) (define- #,(foldl #{begin #`(#,%2 #,%1)} #'tag-/curried (attribute field)) (tag- field ...))] (define-syntax- constructor.tag (data-constructor (make-typed-var-transformer #'tag-/curried (quote-syntax _con.expansion)) (quote-syntax _con.expansion) (match-lambda [(list field ...) #`(app force- (tag- #,field ...))]) 'fixity)))))]) (define-syntax-parser data [(_ :type-constructor-spec constructor:data-constructor-spec ... {~optional {~seq #:deriving [{~type {~var class-id (class-id #:require-deriving-transformer? #t)}} ...]} #:defaults ([[class-id 1] '()])}) #:with [*:type-constructor-spec] (type-namespace-introduce #') #:with fixity (attribute .fixity) #`(begin- (define-syntax- *.tag (type-constructor #'(#%type:con *.tag) '#,(attribute *.len) (list #'constructor.tag ...) 'fixity)) (define-data-constructor * constructor) ... (derive-instance class-id *.tag) ...)]) (begin-for-syntax (define-syntax-class (case*-clause num-pats) #:attributes [[pat 1] [pat.pat 1] body] #:description "a pattern-matching clause" [pattern [[p:pat ...+] body:expr] #:fail-unless (= (length (attribute p)) num-pats) (~a "mismatch between number of patterns and number of values (expected " num-pats " patterns, found " (length (attribute p)) ")") #:attr [pat 1] (attribute p) #:attr [pat.pat 1] (attribute p.pat)])) (define-syntax case* (make-elaborating-transformer #:allowed-passes '[expand] (syntax-parser [(_ [val:expr ...+] {~var clause (case*-clause (length (attribute val)))} ...+) #:do [; Determine the type to use to unify all of the body clauses. If there is ; an expected type (from /!), then use that type, otherwise generate a ; wobbly var that will be unified against each body type. (define t_body (or (get-expected this-syntax) #`(#%type:wobbly-var #,(generate-temporary #'body)))) ; Infer the types of each clause and expand the bodies. Each clause has N patterns, each ; of which match against a particular type, and it also has a body, which must be ; typechecked as well. Additionally, inferring the pattern types produces a racket/match ; pattern, which we can use to implement the untyped expression. (define-values [tss_pats bound-idss- bodies-] (for/lists [tss_pats bound-idss- bodies-] ([clause (in-list (attribute clause))] [body (in-list (attribute clause.body))] [pats (in-list (attribute clause.pat.pat))]) (match-let*-values ([; Infer the type each pattern will match against and collect the assumptions. (ts_pats assumpss) (for/lists [ts_pats assumpss] ([pat (in-list pats)]) (pat! pat))] ; Collect the set of bindings introduced by the patterns. [(assumps) (append* assumpss)] ; Typecheck the body expression against the expected type. [(bound-ids- body-) (/! body t_body assumps)]) ; Return all the results of the inference process. (values ts_pats bound-ids- body-)))) ; Now that weve inferred the types that each pattern can match against, we should infer ; the types of each value being matched and ensure that all the patterns match against it. ; In order to do this, we want to transpose the list of inferred pattern types so that we ; can group all the types together that correspond to the same value. We also want to do ; the same for the patterns themselves, though only to provide useful source location ; information for type errors errors. (define tss_pats-transposed (apply map list tss_pats)) (define patss-transposed (apply map list (attribute clause.pat)))] ; Now we can iterate over the types and ensure each value has the appropriate type. #:with [val- ...] (for/list ([val (in-list (attribute val))] [ts_pats (in-list tss_pats-transposed)] [pats (in-list patss-transposed)]) (let ([val^ (generate-temporary)]) (for ([t_pat (in-list ts_pats)] [pat (in-list pats)]) (type<:! t_pat #`(#%type:wobbly-var #,val^) #:src pat)) (! val (apply-current-subst #`(#%type:wobbly-var #,val^))))) #:do [; Perform exhaustiveness checking. (define non-exhaust (check-exhaustiveness (attribute clause.pat.pat) (length (attribute val))))] #:fail-when non-exhaust (string-append "non-exhaustive pattern match\n unmatched case" (if (= (length non-exhaust) 1) "" "s") ":" (string-append* (map #{string-append "\n " (ideal->string %)} non-exhaust))) #:do [; The resulting type of the case expression is the type we unified each clause against. (define t_result (apply-current-subst t_body))] ; Finally, we can actually emit the result syntax, using racket/match. #:with [[bound-id- ...] ...] bound-idss- #:with [body- ...] bodies- (~> (syntax/loc this-syntax (deferred-case* [val- ...] [[bound-id- ...] [clause.pat ...] body-] ...)) (attach-type t_result))]))) ; Since racket/match uses syntax-parameterize, which in turn uses local-expand, we need to avoid ; expanding to `match` too early, since that will potentially force expansion of things that should be ; deferred to elaboration. To accommodate this, this macro waits until finalization to actually expand ; into `match`. ; ; (This will hopefully get less ugly once Hackett has a real core language, since a core #%case form ; should be able to subsume this macro.) (define-syntax deferred-case* (make-elaborating-transformer (syntax-parser [(head [val-:expr ...+] [[x-:id ...] [pat:pat ...] body-:expr] ...) (match (syntax-local-elaborate-pass) ; In 'expand or 'elaborate mode, we need to manually expand the body forms, making sure the ; runtime binding are locally bound using a definition context. [(or 'expand 'elaborate) (let ([intdef-ctx (syntax-local-make-definition-context)]) (syntax-local-bind-syntaxes (append* (attribute x-)) #f intdef-ctx) (with-syntax ([[val-* ...] (for/list ([val- (in-list (attribute val-))]) (local-expand/defer-elaborate val- 'expression '()))] [[[x-* ...] ...] (internal-definition-context-introduce intdef-ctx #'[[x- ...] ...])] [[body-* ...] (for/list ([body- (in-list (attribute body-))]) (local-expand/defer-elaborate body- 'expression '() (list intdef-ctx)))]) (syntax-local-elaborate-defer (syntax/loc this-syntax (head [val-* ...] [[x-* ...] [pat ...] body-*] ...)))))] ; In 'finalize mode, we actually generate racket/match patterns from Hackett patterns and ; expand to a use of `match` from racket/match. ['finalize (with-syntax ([[match-pats- ...] (for/list ([xs- (in-list (attribute x-))] [pats (in-list (attribute pat.pat))]) (match-define-values [match-pats- (list)] (for/fold ([match-pats- '()] [xs- xs-]) ([pat (in-list pats)]) (let-values ([(match-pat- xs-*) ((pat->mk-match-pat pat) xs-)]) (values (cons match-pat- match-pats-) xs-*)))) (reverse match-pats-))]) (~> (quasisyntax/loc this-syntax (lazy- #,(syntax/loc this-syntax (match*- [val- ...] [match-pats- body-] ...)))) (syntax-property 'disappeared-use (attribute pat.disappeared-uses))))])]))) (define-syntax-parser case [(_ val:expr {~describe "a pattern-matching clause" [pat:pat body:expr]} ...+) (syntax/loc this-syntax (case* [val] [[pat] body] ...))]) (define-syntax-parser [(_ [pat:pat ...+] e:expr) (syntax/loc this-syntax (* [[pat ...] e]))]) (begin-for-syntax (define-splicing-syntax-class *-clauses #:description "a pattern-matching clause" #:attributes [[arg-id 1] [clause 1]] [pattern {~seq {~and clause [[pat:pat ...+] e:expr]} ...+} #:do [(define num-pats (length (first (attribute pat))))] #:fail-when (ormap #{and (not (= %1 num-pats)) %2} (rest (map length (attribute pat))) (rest (attribute clause))) "all clauses must have the same number of patterns" #:with [arg-id ...] (map #{datum->syntax %1 (syntax-e %1) %2} (generate-temporaries (first (attribute pat))) (first (attribute pat)))])) (define-syntax-parser * [(_ clauses:*-clauses) (quasisyntax/loc this-syntax (plain- [clauses.arg-id ...] #,(syntax/loc this-syntax (case* [clauses.arg-id ...] clauses.clause ...))))]) (define-syntax-parser defn #:literals [:] [(_ id:id {~or {~optional {~seq {~and : {~var :/use}} {~type t:type}}} {~optional fixity:fixity-annotation}} ... clauses:*-clauses) (quasitemplate (def id {?? {?@ :/use t}} {?? {?@ . fixity}} #,(syntax/loc this-syntax (* clauses.clause ...))))]) ```
Tirtha Man Rai is a Bhutanese politician who has been a member of the National Council of Bhutan, since May 2018. References Members of the National Council (Bhutan) 1980s births Living people Bhutanese people of Nepalese descent
Markets in Lagos, Nigeria, offer a broad and diverse range of new, second-hand goods, products and merchandise for consumers. Notable markets in Lagos include: ( Agbalata market badagry lagos ) Alaba international market Ajah Market Aratumi Market Balogun Market, Lagos Island Bar Beach Market Computer Village Èbúté Èrò Market, Lagos Island Epe Fish Market Iyana-Iba Market Ikotun Market Idumota Market Ita Faji Market Isale Eko Market, Lagos Island Jankarra Market, Lagos Island Ladipo Market Lekki Market Agboju Market Daleko Market Morocco I and II markets Mushin market Oyingbo Market Mile 12 Market Oniru New Market Fespar market Oshodi Market Rauf Aregbesola Market Téjúoshó Market Sangotedo Market Ajuwe Market Jakande Market Akodo Market, Epe Boundary Seafood Market Apongbo Market (household and souvenirs) Liverpool Crayfish Market Arena Market Cele Market Ijesha Market, Ijeshatedo State Market Agege Market Jankara Market, Ijaiye Owode Onirin Amu market Onipanu iron rod market Odunade market Orile Ojuwoye Market Plaintain Market Ladipo Paper Market Aswani Market Leather market References Further reading External links Postcard of market at Ebute Ero, Lagos, ca.1920 Lagos-related lists Lagos
Tatsuji (written: 達治, 達次 or 辰次) is a masculine Japanese given name. Notable people with the name include: (1900–1964), Japanese poet, writer, critic and editor (born 1922), Japanese scientist (1885–1945), Japanese military officer Japanese masculine given names Masculine given names
Assad Zaman is a British actor. He is known for his stage work and his roles in the BBC thriller Apple Tree Yard (2017), the period drama Hotel Portofino (2022–) and the AMC series Interview with the Vampire (2022–). Early life Zaman grew up in the west end of Newcastle upon Tyne. His parents had arrived in England from Bangladesh in the 1980s. Zaman trained at the Manchester School of Theatre, graduating in 2013 with a Bachelor of Arts in Acting. Career Zaman made his London stage debut in the 2014 National Theatre production of Behind the Beautiful Forevers. This was followed by his onscreen debut in an episode Russell T Davies' Cucumber on Channel 4. He went on tour with Ayub Khan Din's play East is East that same year. In 2017, Zaman played Sathnam in the BBC One adaptation of Apple Tree Yard. He had in the stage adaptation of Zadie Smith's White Teeth at the Kiln Theatre in 2018, The Funeral Director on tour and A Doll's House at the Lyric in Hammersmith in 2019, and The Winter's Tale in 2020. He appeared in the Red, White and Blue installment of Steve McQueen's Small Axe anthology. He returned to East is East in 2021 at the Birmingham Repertory Theatre. As of 2022, Zaman stars as Dr Anish Sengupta in the period drama Hotel Portofino and Armand in the AMC series Interview with the Vampire. Filmography Stage References External links Assad Zaman at Spotlight Living people 21st-century English male actors Male actors from Newcastle upon Tyne British male actors of Asian descent English male stage actors English people of Bangladeshi descent Year of birth missing (living people)
Valery Belodedov (born 16 June 1971) is a Soviet rower. He competed in the men's coxed pair event at the 1992 Summer Olympics. References 1971 births Living people Soviet male rowers Olympic rowers for the Unified Team Rowers at the 1992 Summer Olympics Place of birth missing (living people)
```smalltalk using System; using Android.App; using Android.Content; using Android.Content.Res; using Android.Runtime; using Android.Views; using Android.Widget; using Xamarin.Forms.Internals; namespace Xamarin.Forms.Platform.Android { [Obsolete("MasterDetailPage is obsolete as of version 5.0.0. Please use FlyoutPage instead.")] internal class MasterDetailContainer : ViewGroup { const int DefaultMasterSize = 320; const int DefaultSmallMasterSize = 240; readonly bool _isMaster; readonly MasterDetailPage _parent; VisualElement _childView; public MasterDetailContainer(MasterDetailPage parent, bool isMaster, Context context) : base(context) { _parent = parent; _isMaster = isMaster; } public MasterDetailContainer(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) { } IMasterDetailPageController MasterDetailPageController => _parent as IMasterDetailPageController; public VisualElement ChildView { get { return _childView; } set { if (_childView == value) return; RemoveAllViews(); if (_childView != null) DisposeChildRenderers(); _childView = value; if (_childView == null) return; AddChildView(_childView); } } protected virtual void AddChildView(VisualElement childView) { IVisualElementRenderer renderer = Platform.GetRenderer(childView); if (renderer == null) Platform.SetRenderer(childView, renderer = Platform.CreateRenderer(childView, Context)); if (renderer.View.Parent != this) { if (renderer.View.Parent != null) renderer.View.RemoveFromParent(); SetDefaultBackgroundColor(renderer); AddView(renderer.View); renderer.UpdateLayout(); } } public int TopPadding { get; set; } double DefaultWidthMaster { get { double w = Context.FromPixels(Resources.DisplayMetrics.WidthPixels); return w < DefaultSmallMasterSize ? w : (w < DefaultMasterSize ? DefaultSmallMasterSize : DefaultMasterSize); } } public override bool OnInterceptTouchEvent(MotionEvent ev) { bool isShowingPopover = _parent.IsPresented && !MasterDetailPageController.ShouldShowSplitMode; if (!_isMaster && isShowingPopover) return true; return base.OnInterceptTouchEvent(ev); } protected override void Dispose(bool disposing) { if (disposing) { RemoveAllViews(); DisposeChildRenderers(); } base.Dispose(disposing); } protected override void OnLayout(bool changed, int l, int t, int r, int b) { if (_childView == null) return; Rectangle bounds = GetBounds(_isMaster, l, t, r, b); if (_isMaster) MasterDetailPageController.MasterBounds = bounds; else MasterDetailPageController.DetailBounds = bounds; IVisualElementRenderer renderer = Platform.GetRenderer(_childView); renderer?.UpdateLayout(); } void DisposeChildRenderers() { IVisualElementRenderer childRenderer = Platform.GetRenderer(_childView); childRenderer?.Dispose(); _childView?.ClearValue(Platform.RendererProperty); } Rectangle GetBounds(bool isMasterPage, int left, int top, int right, int bottom) { double width = Context.FromPixels(right - left); double height = Context.FromPixels(bottom - top); double xPos = 0; bool supressPadding = false; //splitview if (MasterDetailPageController.ShouldShowSplitMode) { //to keep some behavior we have on iPad where you can toggle and it won't do anything bool isDefaultNoToggle = _parent.MasterBehavior == MasterBehavior.Default; xPos = isMasterPage ? 0 : (_parent.IsPresented || isDefaultNoToggle ? DefaultWidthMaster : 0); width = isMasterPage ? DefaultWidthMaster : _parent.IsPresented || isDefaultNoToggle ? width - DefaultWidthMaster : width; } else { //if we are showing the normal popover master doesn't have padding supressPadding = isMasterPage; //popover make the master smaller width = isMasterPage && (Device.Info.CurrentOrientation.IsLandscape() || Device.Idiom == TargetIdiom.Tablet) ? DefaultWidthMaster : width; } double padding = supressPadding ? 0 : Context.FromPixels(TopPadding); return new Rectangle(xPos, padding, width, height - padding); } protected void SetDefaultBackgroundColor(IVisualElementRenderer renderer) { if (ChildView.BackgroundColor == Color.Default) { TypedArray colors = Context.Theme.ObtainStyledAttributes(new[] { global::Android.Resource.Attribute.ColorBackground }); renderer.View.SetBackgroundColor(new global::Android.Graphics.Color(colors.GetColor(0, 0))); } } } } ```
Dwight D. Guilfoil Jr. (November 19, 1922 — March 4, 1989) was an American businessman and advocate for workers with disabilities. Early life and education Guilfoil was born in Chicago, Illinois. His father was an engineer and a veteran of World War I. The younger Dwight graduated from Lane Technical High School in Chicago in 1940. He attended the Art Institute of Chicago and worked as a commercial artist before he enlisted in the Army Air Corps in 1942. He was training to be an aerial reconnaissance photographer in Texas when he contracted both poliomyelitis and spinal meningitis. Guilfoil was discharged from the Army in 1945 after several years in a military hospital in Arkansas. Career After the war, Guilfoil and other disabled veterans founded Paraplegics Manufacturing Inc., or PAMCO, an electronics assembly plant in Bensenville, Illinois which employed up to a hundred physically disabled workers at its peak. "We decided from the start that we were not going to weave rugs or make baskets, or indulge in any of the usual workshop enterprises," Guilfoil recalled. Guilfoil was the company's president and public face, frequently giving talks or writing articles advocating for disabled workers. PAMCO's customers were often government agencies, and Guilfoil made a point of mentioning the factory's contributions to the space program. "Our workers so far have contributed parts for most of the space probes and we expect to do more." His essay "Let's Stop 'Handicapping' Americans" was widely syndicated in 1960. Guilfoil served on the President's Committee on Employment of the Handicapped, and on the Illinois State Commission on Employment of the Handicapped. He was also national president of the Paralyzed Veterans of America in 1959, and of the National Paraplegia Foundation in 1963. For his work, Guilfoil was recognized as one of the "Ten Outstanding Young Men of the United States" by the Junior Chamber of Commerce in 1957, and he won the President's Trophy for "Handicapped American of the Year" in 1960. He chaired a Chicago-area chapter of Easter Seals in 1961. Guilfoil is also credited to being the first man to provide the idea of Handicapped Parking spaces to President Richard Nixon, who also started a close working relationship thereafter with Guilfoil. Personal life Guilfoil was married to Margaret Cullerton in 1940, and was the father of eight children. He was named "Chicago Father of the Year" in 1953, and "Mr. Illinois" that same year. He was active in his local community, as commander of his local American Legion post, and a member of his local Rotary Club. Guilfoil was widowed in July 1988, and died in March 1989, at a nursing home in Arlington Heights, Illinois. He was 66 years old. References External links Video clip of Guilfoil receiving the "Handicapped American of the Year Award" from Vice President Richard Nixon in 1960 American disability rights activists Businesspeople from Chicago 1922 births 1989 deaths 20th-century American businesspeople United States Army Air Forces personnel of World War II American activists with disabilities
```objective-c // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_WASM_MACRO_GEN_H_ #define V8_WASM_MACRO_GEN_H_ #include "src/wasm/wasm-opcodes.h" #include "src/zone/zone-containers.h" #define U32_LE(v) \ static_cast<byte>(v), static_cast<byte>((v) >> 8), \ static_cast<byte>((v) >> 16), static_cast<byte>((v) >> 24) #define U16_LE(v) static_cast<byte>(v), static_cast<byte>((v) >> 8) #define WASM_MODULE_HEADER U32_LE(kWasmMagic), U32_LE(kWasmVersion) #define IMPORT_SIG_INDEX(v) U32V_1(v) #define FUNC_INDEX(v) U32V_1(v) #define TABLE_INDEX(v) U32V_1(v) #define NO_NAME U32V_1(0) #define NAME_LENGTH(v) U32V_1(v) #define ENTRY_COUNT(v) U32V_1(v) #define ZERO_ALIGNMENT 0 #define ZERO_OFFSET 0 #define BR_TARGET(v) U32V_1(v) #define MASK_7 ((1 << 7) - 1) #define MASK_14 ((1 << 14) - 1) #define MASK_21 ((1 << 21) - 1) #define MASK_28 ((1 << 28) - 1) #define U32V_1(x) static_cast<byte>((x)&MASK_7) #define U32V_2(x) \ static_cast<byte>(((x)&MASK_7) | 0x80), static_cast<byte>(((x) >> 7) & MASK_7) #define U32V_3(x) \ static_cast<byte>((((x)) & MASK_7) | 0x80), \ static_cast<byte>((((x) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((x) >> 14) & MASK_7) #define U32V_4(x) \ static_cast<byte>(((x)&MASK_7) | 0x80), \ static_cast<byte>((((x) >> 7) & MASK_7) | 0x80), \ static_cast<byte>((((x) >> 14) & MASK_7) | 0x80), \ static_cast<byte>(((x) >> 21) & MASK_7) #define U32V_5(x) \ static_cast<byte>(((x)&MASK_7) | 0x80), \ static_cast<byte>((((x) >> 7) & MASK_7) | 0x80), \ static_cast<byte>((((x) >> 14) & MASK_7) | 0x80), \ static_cast<byte>((((x) >> 21) & MASK_7) | 0x80), \ static_cast<byte>((((x) >> 28) & MASK_7)) // Convenience macros for building Wasm bytecode directly into a byte array. //your_sha256_hash-------------- // Control. //your_sha256_hash-------------- #define WASM_NOP kExprNop #define WASM_END kExprEnd #define ARITY_0 0 #define ARITY_1 1 #define ARITY_2 2 #define DEPTH_0 0 #define DEPTH_1 1 #define DEPTH_2 2 #define ARITY_2 2 #define WASM_BLOCK(...) kExprBlock, kLocalVoid, __VA_ARGS__, kExprEnd #define WASM_BLOCK_I(...) kExprBlock, kLocalI32, __VA_ARGS__, kExprEnd #define WASM_BLOCK_L(...) kExprBlock, kLocalI64, __VA_ARGS__, kExprEnd #define WASM_BLOCK_F(...) kExprBlock, kLocalF32, __VA_ARGS__, kExprEnd #define WASM_BLOCK_D(...) kExprBlock, kLocalF64, __VA_ARGS__, kExprEnd #define WASM_BLOCK_T(t, ...) \ kExprBlock, static_cast<byte>(ValueTypes::ValueTypeCodeFor(t)), __VA_ARGS__, \ kExprEnd #define WASM_BLOCK_X(index, ...) \ kExprBlock, static_cast<byte>(index), __VA_ARGS__, kExprEnd #define WASM_INFINITE_LOOP kExprLoop, kLocalVoid, kExprBr, DEPTH_0, kExprEnd #define WASM_LOOP(...) kExprLoop, kLocalVoid, __VA_ARGS__, kExprEnd #define WASM_LOOP_I(...) kExprLoop, kLocalI32, __VA_ARGS__, kExprEnd #define WASM_LOOP_L(...) kExprLoop, kLocalI64, __VA_ARGS__, kExprEnd #define WASM_LOOP_F(...) kExprLoop, kLocalF32, __VA_ARGS__, kExprEnd #define WASM_LOOP_D(...) kExprLoop, kLocalF64, __VA_ARGS__, kExprEnd #define WASM_LOOP_T(t, ...) \ kExprLoop, static_cast<byte>(ValueTypes::ValueTypeCodeFor(t)), __VA_ARGS__, \ kExprEnd #define WASM_LOOP_X(index, ...) \ kExprLoop, static_cast<byte>(index), __VA_ARGS__, kExprEnd #define WASM_IF(cond, ...) cond, kExprIf, kLocalVoid, __VA_ARGS__, kExprEnd #define WASM_IF_T(t, cond, ...) \ cond, kExprIf, static_cast<byte>(ValueTypes::ValueTypeCodeFor(t)), \ __VA_ARGS__, kExprEnd #define WASM_IF_X(index, cond, ...) \ cond, kExprIf, static_cast<byte>(index), __VA_ARGS__, kExprEnd #define WASM_IF_ELSE(cond, tstmt, fstmt) \ cond, kExprIf, kLocalVoid, tstmt, kExprElse, fstmt, kExprEnd #define WASM_IF_ELSE_I(cond, tstmt, fstmt) \ cond, kExprIf, kLocalI32, tstmt, kExprElse, fstmt, kExprEnd #define WASM_IF_ELSE_L(cond, tstmt, fstmt) \ cond, kExprIf, kLocalI64, tstmt, kExprElse, fstmt, kExprEnd #define WASM_IF_ELSE_F(cond, tstmt, fstmt) \ cond, kExprIf, kLocalF32, tstmt, kExprElse, fstmt, kExprEnd #define WASM_IF_ELSE_D(cond, tstmt, fstmt) \ cond, kExprIf, kLocalF64, tstmt, kExprElse, fstmt, kExprEnd #define WASM_IF_ELSE_T(t, cond, tstmt, fstmt) \ cond, kExprIf, static_cast<byte>(ValueTypes::ValueTypeCodeFor(t)), tstmt, \ kExprElse, fstmt, kExprEnd #define WASM_IF_ELSE_X(index, cond, tstmt, fstmt) \ cond, kExprIf, static_cast<byte>(index), tstmt, kExprElse, fstmt, kExprEnd #define WASM_SELECT(tval, fval, cond) tval, fval, cond, kExprSelect #define WASM_RETURN0 kExprReturn #define WASM_RETURN1(val) val, kExprReturn #define WASM_RETURNN(count, ...) __VA_ARGS__, kExprReturn #define WASM_BR(depth) kExprBr, static_cast<byte>(depth) #define WASM_BR_IF(depth, cond) cond, kExprBrIf, static_cast<byte>(depth) #define WASM_BR_IFD(depth, val, cond) \ val, cond, kExprBrIf, static_cast<byte>(depth), kExprDrop #define WASM_CONTINUE(depth) kExprBr, static_cast<byte>(depth) #define WASM_UNREACHABLE kExprUnreachable #define WASM_BR_TABLE(key, count, ...) \ key, kExprBrTable, U32V_1(count), __VA_ARGS__ #define WASM_CASE(x) static_cast<byte>(x), static_cast<byte>(x >> 8) #define WASM_CASE_BR(x) static_cast<byte>(x), static_cast<byte>(0x80 | (x) >> 8) //your_sha256_hash-------------- // Misc expressions. //your_sha256_hash-------------- #define WASM_ID(...) __VA_ARGS__ #define WASM_ZERO kExprI32Const, 0 #define WASM_ONE kExprI32Const, 1 #define I32V_MIN(length) -(1 << (6 + (7 * ((length)-1)))) #define I32V_MAX(length) ((1 << (6 + (7 * ((length)-1)))) - 1) #define I64V_MIN(length) -(1LL << (6 + (7 * ((length)-1)))) #define I64V_MAX(length) ((1LL << (6 + 7 * ((length)-1))) - 1) #define I32V_IN_RANGE(value, length) \ ((value) >= I32V_MIN(length) && (value) <= I32V_MAX(length)) #define I64V_IN_RANGE(value, length) \ ((value) >= I64V_MIN(length) && (value) <= I64V_MAX(length)) #define WASM_NO_LOCALS 0 namespace v8 { namespace internal { namespace wasm { inline void CheckI32v(int32_t value, int length) { DCHECK(length >= 1 && length <= 5); DCHECK(length == 5 || I32V_IN_RANGE(value, length)); } inline void CheckI64v(int64_t value, int length) { DCHECK(length >= 1 && length <= 10); DCHECK(length == 10 || I64V_IN_RANGE(value, length)); } inline WasmOpcode LoadStoreOpcodeOf(MachineType type, bool store) { switch (type.representation()) { case MachineRepresentation::kWord8: return store ? kExprI32StoreMem8 : type.IsSigned() ? kExprI32LoadMem8S : kExprI32LoadMem8U; case MachineRepresentation::kWord16: return store ? kExprI32StoreMem16 : type.IsSigned() ? kExprI32LoadMem16S : kExprI32LoadMem16U; case MachineRepresentation::kWord32: return store ? kExprI32StoreMem : kExprI32LoadMem; case MachineRepresentation::kWord64: return store ? kExprI64StoreMem : kExprI64LoadMem; case MachineRepresentation::kFloat32: return store ? kExprF32StoreMem : kExprF32LoadMem; case MachineRepresentation::kFloat64: return store ? kExprF64StoreMem : kExprF64LoadMem; case MachineRepresentation::kSimd128: return store ? kExprS128StoreMem : kExprS128LoadMem; default: UNREACHABLE(); } } } // namespace wasm } // namespace internal } // namespace v8 //your_sha256_hash-------------- // Int32 Const operations //your_sha256_hash-------------- #define WASM_I32V(val) kExprI32Const, U32V_5(val) #define WASM_I32V_1(val) \ static_cast<byte>(CheckI32v((val), 1), kExprI32Const), U32V_1(val) #define WASM_I32V_2(val) \ static_cast<byte>(CheckI32v((val), 2), kExprI32Const), U32V_2(val) #define WASM_I32V_3(val) \ static_cast<byte>(CheckI32v((val), 3), kExprI32Const), U32V_3(val) #define WASM_I32V_4(val) \ static_cast<byte>(CheckI32v((val), 4), kExprI32Const), U32V_4(val) #define WASM_I32V_5(val) \ static_cast<byte>(CheckI32v((val), 5), kExprI32Const), U32V_5(val) //your_sha256_hash-------------- // Int64 Const operations //your_sha256_hash-------------- #define WASM_I64V(val) \ kExprI64Const, \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 14) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 21) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 28) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 35) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 42) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 49) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 56) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 63) & MASK_7) #define WASM_I64V_1(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 1), kExprI64Const), \ static_cast<byte>(static_cast<int64_t>(val) & MASK_7) #define WASM_I64V_2(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 2), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 7) & MASK_7) #define WASM_I64V_3(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 3), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 14) & MASK_7) #define WASM_I64V_4(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 4), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 14) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 21) & MASK_7) #define WASM_I64V_5(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 5), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 14) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 21) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 28) & MASK_7) #define WASM_I64V_6(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 6), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 14) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 21) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 28) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 35) & MASK_7) #define WASM_I64V_7(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 7), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 14) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 21) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 28) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 35) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 42) & MASK_7) #define WASM_I64V_8(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 8), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 14) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 21) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 28) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 35) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 42) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 49) & MASK_7) #define WASM_I64V_9(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 9), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 14) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 21) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 28) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 35) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 42) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 49) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 56) & MASK_7) #define WASM_I64V_10(val) \ static_cast<byte>(CheckI64v(static_cast<int64_t>(val), 10), kExprI64Const), \ static_cast<byte>((static_cast<int64_t>(val) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 7) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 14) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 21) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 28) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 35) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 42) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 49) & MASK_7) | 0x80), \ static_cast<byte>(((static_cast<int64_t>(val) >> 56) & MASK_7) | 0x80), \ static_cast<byte>((static_cast<int64_t>(val) >> 63) & MASK_7) #define WASM_F32(val) \ kExprF32Const, \ static_cast<byte>(bit_cast<int32_t>(static_cast<float>(val))), \ static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 8), \ static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 16), \ static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 24) #define WASM_F64(val) \ kExprF64Const, \ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val))), \ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 8), \ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 16), \ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 24), \ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 32), \ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 40), \ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 48), \ static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 56) #define WASM_REF_NULL kExprRefNull #define WASM_GET_LOCAL(index) kExprGetLocal, static_cast<byte>(index) #define WASM_SET_LOCAL(index, val) val, kExprSetLocal, static_cast<byte>(index) #define WASM_TEE_LOCAL(index, val) val, kExprTeeLocal, static_cast<byte>(index) #define WASM_DROP kExprDrop #define WASM_GET_GLOBAL(index) kExprGetGlobal, static_cast<byte>(index) #define WASM_SET_GLOBAL(index, val) \ val, kExprSetGlobal, static_cast<byte>(index) #define WASM_LOAD_MEM(type, index) \ index, \ static_cast<byte>(v8::internal::wasm::LoadStoreOpcodeOf(type, false)), \ ZERO_ALIGNMENT, ZERO_OFFSET #define WASM_STORE_MEM(type, index, val) \ index, val, \ static_cast<byte>(v8::internal::wasm::LoadStoreOpcodeOf(type, true)), \ ZERO_ALIGNMENT, ZERO_OFFSET #define WASM_LOAD_MEM_OFFSET(type, offset, index) \ index, \ static_cast<byte>(v8::internal::wasm::LoadStoreOpcodeOf(type, false)), \ ZERO_ALIGNMENT, offset #define WASM_STORE_MEM_OFFSET(type, offset, index, val) \ index, val, \ static_cast<byte>(v8::internal::wasm::LoadStoreOpcodeOf(type, true)), \ ZERO_ALIGNMENT, offset #define WASM_LOAD_MEM_ALIGNMENT(type, index, alignment) \ index, \ static_cast<byte>(v8::internal::wasm::LoadStoreOpcodeOf(type, false)), \ alignment, ZERO_OFFSET #define WASM_STORE_MEM_ALIGNMENT(type, index, alignment, val) \ index, val, \ static_cast<byte>(v8::internal::wasm::LoadStoreOpcodeOf(type, true)), \ alignment, ZERO_OFFSET #define WASM_CALL_FUNCTION0(index) kExprCallFunction, static_cast<byte>(index) #define WASM_CALL_FUNCTION(index, ...) \ __VA_ARGS__, kExprCallFunction, static_cast<byte>(index) #define TABLE_ZERO 0 // TODO(titzer): change usages of these macros to put func last. #define WASM_CALL_INDIRECT0(index, func) \ func, kExprCallIndirect, static_cast<byte>(index), TABLE_ZERO #define WASM_CALL_INDIRECT1(index, func, a) \ a, func, kExprCallIndirect, static_cast<byte>(index), TABLE_ZERO #define WASM_CALL_INDIRECT2(index, func, a, b) \ a, b, func, kExprCallIndirect, static_cast<byte>(index), TABLE_ZERO #define WASM_CALL_INDIRECT3(index, func, a, b, c) \ a, b, c, func, kExprCallIndirect, static_cast<byte>(index), TABLE_ZERO #define WASM_CALL_INDIRECT4(index, func, a, b, c, d) \ a, b, c, d, func, kExprCallIndirect, static_cast<byte>(index), TABLE_ZERO #define WASM_CALL_INDIRECT5(index, func, a, b, c, d, e) \ a, b, c, d, e, func, kExprCallIndirect, static_cast<byte>(index), TABLE_ZERO #define WASM_CALL_INDIRECTN(arity, index, func, ...) \ __VA_ARGS__, func, kExprCallIndirect, static_cast<byte>(index), TABLE_ZERO #define WASM_NOT(x) x, kExprI32Eqz #define WASM_SEQ(...) __VA_ARGS__ //your_sha256_hash-------------- // Constructs that are composed of multiple bytecodes. //your_sha256_hash-------------- #define WASM_WHILE(x, y) \ kExprLoop, kLocalVoid, x, kExprIf, kLocalVoid, y, kExprBr, DEPTH_1, \ kExprEnd, kExprEnd #define WASM_INC_LOCAL(index) \ kExprGetLocal, static_cast<byte>(index), kExprI32Const, 1, kExprI32Add, \ kExprTeeLocal, static_cast<byte>(index) #define WASM_INC_LOCAL_BYV(index, count) \ kExprGetLocal, static_cast<byte>(index), kExprI32Const, \ static_cast<byte>(count), kExprI32Add, kExprTeeLocal, \ static_cast<byte>(index) #define WASM_INC_LOCAL_BY(index, count) \ kExprGetLocal, static_cast<byte>(index), kExprI32Const, \ static_cast<byte>(count), kExprI32Add, kExprSetLocal, \ static_cast<byte>(index) #define WASM_UNOP(opcode, x) x, static_cast<byte>(opcode) #define WASM_BINOP(opcode, x, y) x, y, static_cast<byte>(opcode) //your_sha256_hash-------------- // Int32 operations //your_sha256_hash-------------- #define WASM_I32_ADD(x, y) x, y, kExprI32Add #define WASM_I32_SUB(x, y) x, y, kExprI32Sub #define WASM_I32_MUL(x, y) x, y, kExprI32Mul #define WASM_I32_DIVS(x, y) x, y, kExprI32DivS #define WASM_I32_DIVU(x, y) x, y, kExprI32DivU #define WASM_I32_REMS(x, y) x, y, kExprI32RemS #define WASM_I32_REMU(x, y) x, y, kExprI32RemU #define WASM_I32_AND(x, y) x, y, kExprI32And #define WASM_I32_IOR(x, y) x, y, kExprI32Ior #define WASM_I32_XOR(x, y) x, y, kExprI32Xor #define WASM_I32_SHL(x, y) x, y, kExprI32Shl #define WASM_I32_SHR(x, y) x, y, kExprI32ShrU #define WASM_I32_SAR(x, y) x, y, kExprI32ShrS #define WASM_I32_ROR(x, y) x, y, kExprI32Ror #define WASM_I32_ROL(x, y) x, y, kExprI32Rol #define WASM_I32_EQ(x, y) x, y, kExprI32Eq #define WASM_I32_NE(x, y) x, y, kExprI32Ne #define WASM_I32_LTS(x, y) x, y, kExprI32LtS #define WASM_I32_LES(x, y) x, y, kExprI32LeS #define WASM_I32_LTU(x, y) x, y, kExprI32LtU #define WASM_I32_LEU(x, y) x, y, kExprI32LeU #define WASM_I32_GTS(x, y) x, y, kExprI32GtS #define WASM_I32_GES(x, y) x, y, kExprI32GeS #define WASM_I32_GTU(x, y) x, y, kExprI32GtU #define WASM_I32_GEU(x, y) x, y, kExprI32GeU #define WASM_I32_CLZ(x) x, kExprI32Clz #define WASM_I32_CTZ(x) x, kExprI32Ctz #define WASM_I32_POPCNT(x) x, kExprI32Popcnt #define WASM_I32_EQZ(x) x, kExprI32Eqz //your_sha256_hash-------------- // Asmjs Int32 operations //your_sha256_hash-------------- #define WASM_I32_ASMJS_DIVS(x, y) x, y, kExprI32AsmjsDivS #define WASM_I32_ASMJS_REMS(x, y) x, y, kExprI32AsmjsRemS #define WASM_I32_ASMJS_DIVU(x, y) x, y, kExprI32AsmjsDivU #define WASM_I32_ASMJS_REMU(x, y) x, y, kExprI32AsmjsRemU //your_sha256_hash-------------- // Int64 operations //your_sha256_hash-------------- #define WASM_I64_ADD(x, y) x, y, kExprI64Add #define WASM_I64_SUB(x, y) x, y, kExprI64Sub #define WASM_I64_MUL(x, y) x, y, kExprI64Mul #define WASM_I64_DIVS(x, y) x, y, kExprI64DivS #define WASM_I64_DIVU(x, y) x, y, kExprI64DivU #define WASM_I64_REMS(x, y) x, y, kExprI64RemS #define WASM_I64_REMU(x, y) x, y, kExprI64RemU #define WASM_I64_AND(x, y) x, y, kExprI64And #define WASM_I64_IOR(x, y) x, y, kExprI64Ior #define WASM_I64_XOR(x, y) x, y, kExprI64Xor #define WASM_I64_SHL(x, y) x, y, kExprI64Shl #define WASM_I64_SHR(x, y) x, y, kExprI64ShrU #define WASM_I64_SAR(x, y) x, y, kExprI64ShrS #define WASM_I64_ROR(x, y) x, y, kExprI64Ror #define WASM_I64_ROL(x, y) x, y, kExprI64Rol #define WASM_I64_EQ(x, y) x, y, kExprI64Eq #define WASM_I64_NE(x, y) x, y, kExprI64Ne #define WASM_I64_LTS(x, y) x, y, kExprI64LtS #define WASM_I64_LES(x, y) x, y, kExprI64LeS #define WASM_I64_LTU(x, y) x, y, kExprI64LtU #define WASM_I64_LEU(x, y) x, y, kExprI64LeU #define WASM_I64_GTS(x, y) x, y, kExprI64GtS #define WASM_I64_GES(x, y) x, y, kExprI64GeS #define WASM_I64_GTU(x, y) x, y, kExprI64GtU #define WASM_I64_GEU(x, y) x, y, kExprI64GeU #define WASM_I64_CLZ(x) x, kExprI64Clz #define WASM_I64_CTZ(x) x, kExprI64Ctz #define WASM_I64_POPCNT(x) x, kExprI64Popcnt #define WASM_I64_EQZ(x) x, kExprI64Eqz //your_sha256_hash-------------- // Float32 operations //your_sha256_hash-------------- #define WASM_F32_ADD(x, y) x, y, kExprF32Add #define WASM_F32_SUB(x, y) x, y, kExprF32Sub #define WASM_F32_MUL(x, y) x, y, kExprF32Mul #define WASM_F32_DIV(x, y) x, y, kExprF32Div #define WASM_F32_MIN(x, y) x, y, kExprF32Min #define WASM_F32_MAX(x, y) x, y, kExprF32Max #define WASM_F32_ABS(x) x, kExprF32Abs #define WASM_F32_NEG(x) x, kExprF32Neg #define WASM_F32_COPYSIGN(x, y) x, y, kExprF32CopySign #define WASM_F32_CEIL(x) x, kExprF32Ceil #define WASM_F32_FLOOR(x) x, kExprF32Floor #define WASM_F32_TRUNC(x) x, kExprF32Trunc #define WASM_F32_NEARESTINT(x) x, kExprF32NearestInt #define WASM_F32_SQRT(x) x, kExprF32Sqrt #define WASM_F32_EQ(x, y) x, y, kExprF32Eq #define WASM_F32_NE(x, y) x, y, kExprF32Ne #define WASM_F32_LT(x, y) x, y, kExprF32Lt #define WASM_F32_LE(x, y) x, y, kExprF32Le #define WASM_F32_GT(x, y) x, y, kExprF32Gt #define WASM_F32_GE(x, y) x, y, kExprF32Ge //your_sha256_hash-------------- // Float64 operations //your_sha256_hash-------------- #define WASM_F64_ADD(x, y) x, y, kExprF64Add #define WASM_F64_SUB(x, y) x, y, kExprF64Sub #define WASM_F64_MUL(x, y) x, y, kExprF64Mul #define WASM_F64_DIV(x, y) x, y, kExprF64Div #define WASM_F64_MIN(x, y) x, y, kExprF64Min #define WASM_F64_MAX(x, y) x, y, kExprF64Max #define WASM_F64_ABS(x) x, kExprF64Abs #define WASM_F64_NEG(x) x, kExprF64Neg #define WASM_F64_COPYSIGN(x, y) x, y, kExprF64CopySign #define WASM_F64_CEIL(x) x, kExprF64Ceil #define WASM_F64_FLOOR(x) x, kExprF64Floor #define WASM_F64_TRUNC(x) x, kExprF64Trunc #define WASM_F64_NEARESTINT(x) x, kExprF64NearestInt #define WASM_F64_SQRT(x) x, kExprF64Sqrt #define WASM_F64_EQ(x, y) x, y, kExprF64Eq #define WASM_F64_NE(x, y) x, y, kExprF64Ne #define WASM_F64_LT(x, y) x, y, kExprF64Lt #define WASM_F64_LE(x, y) x, y, kExprF64Le #define WASM_F64_GT(x, y) x, y, kExprF64Gt #define WASM_F64_GE(x, y) x, y, kExprF64Ge //your_sha256_hash-------------- // Type conversions. //your_sha256_hash-------------- #define WASM_I32_SCONVERT_F32(x) x, kExprI32SConvertF32 #define WASM_I32_SCONVERT_F64(x) x, kExprI32SConvertF64 #define WASM_I32_UCONVERT_F32(x) x, kExprI32UConvertF32 #define WASM_I32_UCONVERT_F64(x) x, kExprI32UConvertF64 #define WASM_I32_CONVERT_I64(x) x, kExprI32ConvertI64 #define WASM_I64_SCONVERT_F32(x) x, kExprI64SConvertF32 #define WASM_I64_SCONVERT_F64(x) x, kExprI64SConvertF64 #define WASM_I64_UCONVERT_F32(x) x, kExprI64UConvertF32 #define WASM_I64_UCONVERT_F64(x) x, kExprI64UConvertF64 #define WASM_I64_SCONVERT_I32(x) x, kExprI64SConvertI32 #define WASM_I64_UCONVERT_I32(x) x, kExprI64UConvertI32 #define WASM_F32_SCONVERT_I32(x) x, kExprF32SConvertI32 #define WASM_F32_UCONVERT_I32(x) x, kExprF32UConvertI32 #define WASM_F32_SCONVERT_I64(x) x, kExprF32SConvertI64 #define WASM_F32_UCONVERT_I64(x) x, kExprF32UConvertI64 #define WASM_F32_CONVERT_F64(x) x, kExprF32ConvertF64 #define WASM_F32_REINTERPRET_I32(x) x, kExprF32ReinterpretI32 #define WASM_F64_SCONVERT_I32(x) x, kExprF64SConvertI32 #define WASM_F64_UCONVERT_I32(x) x, kExprF64UConvertI32 #define WASM_F64_SCONVERT_I64(x) x, kExprF64SConvertI64 #define WASM_F64_UCONVERT_I64(x) x, kExprF64UConvertI64 #define WASM_F64_CONVERT_F32(x) x, kExprF64ConvertF32 #define WASM_F64_REINTERPRET_I64(x) x, kExprF64ReinterpretI64 #define WASM_I32_REINTERPRET_F32(x) x, kExprI32ReinterpretF32 #define WASM_I64_REINTERPRET_F64(x) x, kExprI64ReinterpretF64 //your_sha256_hash-------------- // Numeric operations //your_sha256_hash-------------- #define WASM_NUMERIC_OP(op) kNumericPrefix, static_cast<byte>(op) #define WASM_I32_SCONVERT_SAT_F32(x) x, WASM_NUMERIC_OP(kExprI32SConvertSatF32) #define WASM_I32_UCONVERT_SAT_F32(x) x, WASM_NUMERIC_OP(kExprI32UConvertSatF32) #define WASM_I32_SCONVERT_SAT_F64(x) x, WASM_NUMERIC_OP(kExprI32SConvertSatF64) #define WASM_I32_UCONVERT_SAT_F64(x) x, WASM_NUMERIC_OP(kExprI32UConvertSatF64) #define WASM_I64_SCONVERT_SAT_F32(x) x, WASM_NUMERIC_OP(kExprI64SConvertSatF32) #define WASM_I64_UCONVERT_SAT_F32(x) x, WASM_NUMERIC_OP(kExprI64UConvertSatF32) #define WASM_I64_SCONVERT_SAT_F64(x) x, WASM_NUMERIC_OP(kExprI64SConvertSatF64) #define WASM_I64_UCONVERT_SAT_F64(x) x, WASM_NUMERIC_OP(kExprI64UConvertSatF64) //your_sha256_hash-------------- // Memory Operations. //your_sha256_hash-------------- #define WASM_GROW_MEMORY(x) x, kExprGrowMemory, 0 #define WASM_MEMORY_SIZE kExprMemorySize, 0 #define SIG_ENTRY_v_v kWasmFunctionTypeCode, 0, 0 #define SIZEOF_SIG_ENTRY_v_v 3 #define SIG_ENTRY_v_x(a) kWasmFunctionTypeCode, 1, a, 0 #define SIG_ENTRY_v_xx(a, b) kWasmFunctionTypeCode, 2, a, b, 0 #define SIG_ENTRY_v_xxx(a, b, c) kWasmFunctionTypeCode, 3, a, b, c, 0 #define SIZEOF_SIG_ENTRY_v_x 4 #define SIZEOF_SIG_ENTRY_v_xx 5 #define SIZEOF_SIG_ENTRY_v_xxx 6 #define SIG_ENTRY_x(r) kWasmFunctionTypeCode, 0, 1, r #define SIG_ENTRY_x_x(r, a) kWasmFunctionTypeCode, 1, a, 1, r #define SIG_ENTRY_x_xx(r, a, b) kWasmFunctionTypeCode, 2, a, b, 1, r #define SIG_ENTRY_x_xxx(r, a, b, c) kWasmFunctionTypeCode, 3, a, b, c, 1, r #define SIZEOF_SIG_ENTRY_x 4 #define SIZEOF_SIG_ENTRY_x_x 5 #define SIZEOF_SIG_ENTRY_x_xx 6 #define SIZEOF_SIG_ENTRY_x_xxx 7 #define WASM_BRV(depth, ...) __VA_ARGS__, kExprBr, static_cast<byte>(depth) #define WASM_BRV_IF(depth, val, cond) \ val, cond, kExprBrIf, static_cast<byte>(depth) #define WASM_BRV_IFD(depth, val, cond) \ val, cond, kExprBrIf, static_cast<byte>(depth), kExprDrop #define WASM_IFB(cond, ...) cond, kExprIf, kLocalVoid, __VA_ARGS__, kExprEnd #define WASM_BR_TABLEV(val, key, count, ...) \ val, key, kExprBrTable, U32V_1(count), __VA_ARGS__ //your_sha256_hash-------------- // Atomic Operations. //your_sha256_hash-------------- #define WASM_ATOMICS_OP(op) kAtomicPrefix, static_cast<byte>(op) #define WASM_ATOMICS_BINOP(op, x, y, representation) \ x, y, WASM_ATOMICS_OP(op), \ static_cast<byte>(ElementSizeLog2Of(representation)), ZERO_OFFSET #define WASM_ATOMICS_TERNARY_OP(op, x, y, z, representation) \ x, y, z, WASM_ATOMICS_OP(op), \ static_cast<byte>(ElementSizeLog2Of(representation)), ZERO_OFFSET #define WASM_ATOMICS_LOAD_OP(op, x, representation) \ x, WASM_ATOMICS_OP(op), \ static_cast<byte>(ElementSizeLog2Of(representation)), ZERO_OFFSET #define WASM_ATOMICS_STORE_OP(op, x, y, representation) \ x, y, WASM_ATOMICS_OP(op), \ static_cast<byte>(ElementSizeLog2Of(representation)), ZERO_OFFSET //your_sha256_hash-------------- // Sign Externsion Operations. //your_sha256_hash-------------- #define WASM_I32_SIGN_EXT_I8(x) x, kExprI32SExtendI8 #define WASM_I32_SIGN_EXT_I16(x) x, kExprI32SExtendI16 #define WASM_I64_SIGN_EXT_I8(x) x, kExprI64SExtendI8 #define WASM_I64_SIGN_EXT_I16(x) x, kExprI64SExtendI16 #define WASM_I64_SIGN_EXT_I32(x) x, kExprI64SExtendI32 #endif // V8_WASM_MACRO_GEN_H_ ```
Osmo Heikki Puhakka (born 1 January 1948 in Elimäki) is a Finnish Lutheran clergyman and politician. He was a member of the Parliament of Finland from 1999 to 2003, representing the Centre Party. References 1948 births Living people People from Elimäki 20th-century Finnish Lutheran clergy Centre Party (Finland) politicians Members of the Parliament of Finland (1999–2003) University of Helsinki alumni 21st-century Finnish Lutheran clergy
Phillip Jeffrey McKellar is an Australian record producer and audio engineer. At the ARIA Music Awards McKellar has received nine nominations in the categories of either Producer of the Year or Engineer of the Year. These include You Am I's "Good Mornin'", "Tuesday" and Spiderbait's Ivy and the Big Apples (1997, engineer), The Cruel Sea's "Hard Times" (1998, producer), Spiderbait's Grand Slam (1999, engineer, producer), Grinspoon's New Detention (2002, engineer, producer), Sunk Loto's Between Birth and Death (2004, producer), and Something with Numbers' Perfect Distraction (2007, producer). Biography In the late 1970s Phil McKellar worked at the Australian Broadcasting Commission (later renamed as Australian Broadcasting Corporation). In 1978 a fellow worker, Steve Adam, invited him to join an experimental music outfit, the Informatics, alongside Ramesh Ayar, Valek Sadovchikoff and Michael Trudgeon. Trudgeon explained their stance "We were driven by a love of the possibilities of what synthesizers and sequencers could do... Quite often the songs were shaped by the textures and rhythms that this new and exciting technology could generate. I think we were more interested in what we could experiment with rather than compete with well-established genres. The future looked exciting." In August 1982 McKellar issued a solo track, "Some Good Things to Do", which was compiled on a give-away cassette, Fast Forward 12, with Fast Forward Magazine. From 1990 to 2000 McKellar worked as live music producer for national youth radio station, Triple J. McKellar later recalled "I'd been recording a lot of stuff for Triple J – Nirvana, Pearl Jam and Red Hot Chili Peppers." In April 1994 a demo version of "Tomorrow" by Newcastle teen band, Silverchair, won the Pick Me competition. McKellar produced the group's debut single at the Triple J studios in Sydney, he remembered "It sounded amazing and it was a strong song and as it got whittled down [from its original seven minutes] it focused it more and more... I guess it was obvious to me there was definitely talent involved." From 30 October 1994 it peaked at No. 1 for six weeks on the ARIA Singles Chart. At the ARIA Music Awards of 1995 "Tomorrow" won Single of the Year, Highest Selling Single, and Breakthrough Artist – Single. McKellar was nominated as Producer of the Year. McKellar worked as a producer and sound engineer at Hardboiled Productions (1996-2010). He has also worked with many rock bands such as Dirty Three, The Mark Of Cain, Frenzal Rhomb, The Butterfly Effect, Kisschasy, Ash, The Sunpilots, Tumbleweed, Nitocris, One Dollar Short, The Getaway Plan, The Hot Lies, Crash Arcadia and Chasing Gravity. He then worked at ABC Radio National as an audio engineer, and now at Double J. Discography The Lure of the Tropics – Dave Graney with the Coral Snakes (live album, July 1992, producer) Torn & Frayed Records (TORN CD1) Stompen Ground – Various Artists (live album, 1993, producer) ABC Music "Tomorrow" – Silverchair (September 1994, engineer, producer) Ivy and the Big Apples – Spiderbait (October 1996, engineer, producer) Universal/Polydor "Good Mornin'" (September 1996), "Tuesday" (February 1997) – You Am I (engineer) rooArt Records Licker Bottle Cozy – Grinspoon (EP, December 1996, engineer, producer) Grudge Records/MCA/Universal Guide to Better Living – Grinspoon (engineer, mixer, producer, September 1997) Grudge/Universal (UMD73086) "Hard Times" – The Cruel Sea (February 1998, producer) Pushing Buttons – Grinspoon (EP, September 1998, producer) Grand Slam – Spiderbait (April 1999, engineer, producer) Polydor Records Big Picture Lies – Sunk Loto (producer, October 2000) Epic/Sony Music New Detention – Grinspoon (June 2002, engineer, producer) Grudge Records Between Birth and Death – Sunk Loto (producer, November 2003) Sony Music Receiving Transmission – One Dollar Short (2004, producer) Rapido Records (30D0D511-D784-4AED-B84C-4281FD441DBF) Perfect Distraction – Something with Numbers (October 2006) Below Par/EMI References Australian record producers Living people Year of birth missing (living people)
Deanne Olivia Bell is an American television personality and engineer. Career Prior to her media career, Deanne designed optomechanics for military aircraft sensors in Los Angeles and worked as a senior application engineer for a software startup in Boston. She has previously worked on PBS's Design Squad, Discovery Channel's Smash Lab, and National Geographic's "The Egyptian Job". She has also co-hosted DIY Network's "Money Hunters" and ESPN's "Rise Up." Bell is originally from Palm Bay, Florida. In 2002, she graduated from Washington University in St. Louis, with a Bachelor of Science in mechanical engineering and is the 2019 Young Alumni Award recipient for its McKelvey School of Engineering. In 2014, Deanne founded Future Engineers, whose partnership with NASA and the American Society of Mechanical Engineers Foundation hosts a series of student invention challenges as a joint commitment to the White House Maker Initiative. As part of the first challenge, students were asked to create a digital 3D model of a space tool, and the winning design was 3D printed aboard the International Space Station. References External links Living people American women television personalities Washington University in St. Louis alumni McKelvey School of Engineering alumni People from Palm Bay, Florida American women engineers Year of birth missing (living people) Television personalities from Florida
```smalltalk namespace Xamarin.Forms { public interface IEffectControlProvider { void RegisterEffect(Effect effect); } } ```
Kaliesha West (born February 11, 1988) is a professional female boxer and the former 3 times WBO Female Bantamweight and IFBA super Bantamweight Boxing World Champion. She was born on February 11, 1988, in South Haven, Michigan. West currently resides in Moreno Valley California, a small suburb between Riverside and Palm Springs. West is a motivational speaker and an advocate for women's rights and women's boxing. On September 18, 2010, West won the WBO title, becoming the first world boxing champion from the Inland Empire. Her father, Juan West, is her boxing trainer and manager. She was also a contestant on the CW reality show Capture, placing 4th out of 12 teams. Currently, West is delivering her voice through social media networks, campaign, and protests across the United States in hopes to generate a following from those who believe in equal opportunities for women in sports. Some have compared her career to that of Billie Jean King. Multi-cultural heritage West is an athlete of multicultural heritage. Her father, Juan West, is African American and European. Her mother, Melissa, is of Mexican and Korean heritage. Early years West was first introduced to boxing while attending her father's boxing fights. However, her father was reluctant to involve her in the sport. Juan West tried to appease his 10-year-old daughter by showing her the proper boxing stance and how to punch. He gave her difficult training exercises to discourage her. When she persisted, Juan took her to a gym to fight a much bigger opponent, and she lost. West refused to give up boxing and continued her training. High school She attended Canyon Springs High School in Moreno Valley, where she started her freshmen year as Varsity Cross Country and track. She participated in boxing activities outside of school. Amateur career West began her amateur career in 1998 at the age of 10. West fought for 8 years and won numerous tournaments and honors, including 2001, 2002, 2003, 2004, Junior Olympic championships, 2003, 2004, 2005 Silver Gloves championships, 2002 125 lb. National Golden Gloves championships. 2004 USA Championships 2005 Blue & Gold Championships 2005 PAL Championships 2006 West furthered her boxing career by turning professional just two weeks after her 18th birthday. West turned professional after being advised that women will not be allowed to compete in the 2008 Olympics. Her overall amateur record was 98–10. West turns professional Just after turning eighteen years old, West made her pro debut on February 23, 2006, at San Manuel Indian Casino in San Bernardino, California, after knocking her to the floor in round one, West won a four-round unanimous decision over former World Title holder Suzannah Warner. West wins the WBO World Title On September 18, 2010, at the Staples Center in Los Angeles, California, West won the vacant WBO Bantamweight title with a seventh-round TKO over Angel Gladney of South Carolina at 0:59 in a scheduled ten-rounder. She made boxing history, as she became the first boxing champion from the Inland Empire. West also became the first female to win a world title on a Golden Boy Promotions fight card. West successfully defended her WBO title for three consecutive years traveling the world against Mexico, Argentina, and USA. West wins the IFBA World Title On October 6, 2012, at the Finish Line Sports Bar and Grill in Pomona, California, West won the vacant IFBA Junior Featherweight title with a 10-round unanimous decision over Christina Ruiz of Texas. West successfully moved up to the next weight division to become a two-division world champion. West also became the first female to headline for Sugar Shane Mosley Promotions. Public viewing In 2013, West participated as a contestant with her boyfriend Matt on the first season of Capture, an American reality competition television series on The CW. West was also featured as an athlete promoting Sony's new waterproof mp3 Walkman. Championships and accomplishments 2012 IFBA International Female Boxers Association Super Bantamweight World Title 2011 Moreno Valley Grand Marshall 2010 Proclamation from the city of Moreno Valley. 2010 WBO Female Bantamweight World Title (3 defenses) 2010 First-ever world champion between men and women from Inland Empire, CA. 2005 National Golden Gloves Champion 2004 First Female B.C.R. Champion 2004 Silver Gloves Champion 2003 Silver Gloves Champion 2003 Junior Olympic Champion 2002 Junior Olympic Champion Professional boxing record References External links Kaliesha West Awakening Profile People from Moreno Valley, California People from South Haven, Michigan 1982 births Living people American women boxers American boxers of Mexican descent Sportspeople from Michigan Sportspeople from California World boxing champions Super-bantamweight boxers Participants in American reality television series 21st-century American women
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|Win32"> <Configuration>Release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|x64"> <Configuration>Debug</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|x64"> <Configuration>Release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <ItemGroup> <ClCompile Include="cmp_wav.c" /> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{9102D366-6707-4789-938B-A373675F5B4C}</ProjectGuid> <Keyword>Win32Proj</Keyword> <RootNamespace>cmp_wav</RootNamespace> <OutDir>.\</OutDir> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v140</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v140</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v140</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v140</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Label="Shared"> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <PropertyGroup Label="UserMacros" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <LinkIncremental>true</LinkIncremental> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <LinkIncremental>true</LinkIncremental> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <LinkIncremental>false</LinkIncremental> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <LinkIncremental>false</LinkIncremental> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ClCompile> <PrecompiledHeader> </PrecompiledHeader> <WarningLevel>Level3</WarningLevel> <Optimization>Disabled</Optimization> <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>../../../pjsip/include;../../../pjlib/include;../../../pjlib-util/include;../../../pjmedia/include;../../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> </ClCompile> <Link> <SubSystem>Console</SubSystem> <GenerateDebugInformation>true</GenerateDebugInformation> <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;libpjproject-i386-Win32-vc14-Debug.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>..\..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <IgnoreSpecificDefaultLibraries>libcmtd.lib</IgnoreSpecificDefaultLibraries> <OutputFile>$(TargetName)$(TargetExt)</OutputFile> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <ClCompile> <PrecompiledHeader> </PrecompiledHeader> <WarningLevel>Level3</WarningLevel> <Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>../../../pjsip/include;../../../pjlib/include;../../../pjlib-util/include;../../../pjmedia/include;../../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> <Link> <SubSystem>Console</SubSystem> <GenerateDebugInformation>true</GenerateDebugInformation> <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;libpjproject-x86_64-x64-vc14-Debug.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>..\..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <IgnoreSpecificDefaultLibraries>libcmt.lib</IgnoreSpecificDefaultLibraries> <OutputFile>$(TargetName)$(TargetExt)</OutputFile> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader> </PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <AdditionalIncludeDirectories>../../../pjsip/include;../../../pjlib/include;../../../pjlib-util/include;../../../pjmedia/include;../../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> <Link> <SubSystem>Console</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <GenerateDebugInformation>true</GenerateDebugInformation> <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;libpjproject-i386-Win32-vc14-Release.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>..\..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <IgnoreSpecificDefaultLibraries>libcmt.lib</IgnoreSpecificDefaultLibraries> <OutputFile>$(TargetName)$(TargetExt)</OutputFile> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader> </PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <AdditionalIncludeDirectories>../../../pjsip/include;../../../pjlib/include;../../../pjlib-util/include;../../../pjmedia/include;../../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> <Link> <SubSystem>Console</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <GenerateDebugInformation>true</GenerateDebugInformation> <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;libpjproject-x86_64-x64-vc14-Release.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>..\..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <IgnoreSpecificDefaultLibraries>libcmt.lib</IgnoreSpecificDefaultLibraries> <OutputFile>$(TargetName)$(TargetExt)</OutputFile> </Link> </ItemDefinitionGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> </Project> ```
Epiphany proclamation () was a petition initiative to support Karel Schwarzenberg's presidential candidature. It was issued on 2 January 2013. It was signed by more than 100 personalities and celebrities. It was initiated by Michael Kocáb. Signatory members included Ladislav Špaček, Jaroslav Hutka, Miloš Forman, Věra Čáslavská, Jan Tříska, Jan Ruml and others. The proclamation was also connected to the family of former Czech president Václav Havel, whose legacy it aimed to support. More than 500 personalities signed the proclamation. Second proclamation A second proclamation was issued on 21 January, following the advancement of Schwarzenberg to the second round. Authors were Michael Kocáb, Ivan Gabal, Jan Ruml and Fedor Gál. It was signed by more than 20 personalities. Signatory members included Zdeněk Svěrák, Eliška Wagnerová, Michal Horáček and others. Proclamation supporters stated that they wanted a president who would unite the nation. Second proclamation was followed by petition of scientists and medics that was signed by more than 2,800 people. Kroměříž proclamation One of Epiphany proclamation's authors, Michael Kocáb, initiated the Kroměříž proclamation in 2016 to find a candidate that would defeat incumbent Miloš Zeman in 2018. References 2013 Czech presidential election
Ippolita Maria Sforza (18 April 1445 – 20 August 1488) was an Italian noblewoman, a member of the Sforza family which ruled the Duchy of Milan from 1450 until 1535. She was the first wife of the Duke of Calabria, who later reigned as King Alfonso II of Naples. Ippolita was a very intelligent and cultured young woman. Life Childhood Ippolita was born on April 18 1445 in Cremona to Francesco Sforza and Bianca Maria Visconti, the only daughter of the Duke of Milan Filippo Maria Visconti. Since she was a child she showed precocity of intellect, love for letters and a certain passion for hunting, favored in this by her father who often gave her greyhounds for their country estates. Francesco Sforza sometimes asked his young daughter to act as an intermediary between him and his mother, so that she could help him to return to the graces of Bianca Maria, the times when he and his wife entered into a quarrel for some reason. She had four masters Guiniforte Barzizza, by Baldo Martorelli, humanist from the Marche region heir to the humanist pedagogy of Vittorino da Feltre, and Costantino Lascaris, who gave her the study of Greek and dedicated a Greek Grammarto her. When she was 14 years old she made a Latin address to pope Pius II at the diet of Mantua, which became well known after it was circulated in manuscript. An alleged portrait of Ippolita was painted Domenico Ghirlandaio. Giovanni Sabatino degli Arienti describes it as follows: Marriage On 10 October 1465 she married the Duke of Calabria Alfonso of Aragon, son of King Ferrante of Naples. The latter sent his second son Federico with six hundred horses to Milan to marry Ippolita by proxy in the name of his brother and to accompany her to his new home. The bride had already left Milan with the wedding procession, when the marriage risked skipping due to the sudden death of the leader Jacopo Piccinino, son-in-law of Francesco Sforza. Ferrante of Aragon in fact had previously lured him to Naples with the false promise of conduct and then for revenge imprisoned, as the leader had fought against him during the first baronial revolt. Jacopo Piccinino died shortly after his arrest, according to Ferrante for having fallen from the window following a failed escape attempt, but according to most he was strangled in prison by order of the sovereign. Francesco Sforza was so enraged at his death that he blocked his daughter's wedding procession, threatening to cancel the wedding. The situation was finally resolved and Ippolita, after staying for two months in Siena and then having passed through Rome, reached Naples on September 14, where with great magnificence she was received by Alfonso her husband and her father-in-law Ferrante, who set up many parties and shows to celebrate the wedding. In the early days relations with her husband, three years younger than her, had to be good, if in that same year the fifteen-year-old Eleonora of Aragon, in turn about to marry Ippolita's younger brother, Sforza Maria Sforza, desired "even some of the carezone [which] she sees do no time from the Duke of Calabria to the duchess", and if Ippolita herself writes to her mother that she and Alfonso slept together every night and that they often had fun between hunts and tickling in country residences. In these terms she describes her husband, for example, in one of the many letters: "My Ill.mo consort [...] et con caccia di falconi et nebbii et con giugare al ballone et con leggere et interpretarme uno suo libro spagnuolo de regimento de stato et molte altre cose morale, me ha tenuto et tene in great pleasure". If so, then the relations between the spouses had to deteriorate later over time, both for the continuous and brazen betrayals of Alfonso, who would have found a new and complacent lover in Trogia Gazzella, and for the bad character that distinguished him. In fact, already a few weeks after the wedding we have news of the first jealousies of Ippolita towards her spouse: Alfonso is described by ladies and ambassadors as a very beautiful young man, "so pretty you couldn't tell", but "so much alive that he could not sit still for half an hour". Even Alfonso, however, was jealous of his wife: in the summer of 1466 he did not want Ippolita to play with Giovanna Sanseverino anymore when she went to visit her accompanied by her relative Gian Francesco. Starting from December 1466 some letters from both the ambassadors and the person directly concerned report an episode of jealousy on the part of Ippolita, at that time pregnant with the firstborn, who had commissioned her own servant, Donato, to stalk her husband wherever he went. Alfonso therefore, realizing that he was being followed, had reacted with a reckless gesture towards Donato that we are not given to know (Ambassador Pietro Landriani speaks of beatings), but which nevertheless must have been very serious if Ippolita shows herself very saddened, writing to her mother: "this thing of Donato that I will never forget [...] not a wound to the core, but I think if it opened by means so much it was my pain et serà". King Ferrante minimized the incident with the Milanese relatives, saying that "these wars of the day have peace in the evening", but the situation did not improve even with the announcement of the first pregnancy of the duchess. Alfonso's violent reaction should not be surprising: he was not by chance hated by the Neapolitan people for having offended his subjects with "cruel insults et iniurie", for having been guilty of the most nefarious crimes, such as "violar virgine, taking for his dilecto the women of others" and for practicing the "vitio detestando et abominevole de la sodomia", he was therefore only beginning to manifest his real character to his wife. Nevertheless, Ippolita as a wife always remained faithful to him, in fact she "distinguished herself for her high fidelity to her fearsome husband and for her unheard of modesty". King Ferrante, on the other hand, showed himself to be very satisfied with his daughter-in-law for her beauty, intelligence and custom, to such an extent that the Sforza ambassadors wrote that "the Majesty of the king has no other pleasure, nor any other paradise he does not seem to find, except when he sees her dancing and even singing". From the letters to the mother there is a certain discomfort for the perhaps excessive demonstrations of affection of the father-in-law, but it is to be considered that Ippolita was in Naples for a short time and that the very spontaneous character of King Ferrante could easily be misunderstood. She also formed excellent friendships with her brother-in-law Federico, like her lover of letters and a man with a very sensitive soul, who very often went to visit her in Castel Capuano or in the villa called della Duchesca staying in his company. Throughout her life Ippolita found herself playing the role of peacemaker between Milan and Naples and between Naples and Florence, as relations between the various powers were strained and Ferrante was partly responsible for the famous Pazzi conspiracy. In fact, in 1480 when Lorenzo de' Medici went, not without some fear, to Naples to try to mediate a peace with Ferrante, he did not leave Florence before being reassured by Ippolita that Ferrante would not imprison and kill him as he used to do with guests. Already in 1468 Ippolita had returned to the court of Milan to try to pacify her brother Galeazzo Maria, who became duke after the death of his father, with their mother Bianca Maria and also with his father-in-law Ferrante. However, the visit turned out to be very short, as Ippolita, at the time in the midst of her beauty as a woman, was forced to return quickly to Naples to escape, it seems, the flattery of her brother, who showed very ambiguous feelings towards her. As a mother she was very fond of her children, and this is demonstrated by the tender letter she wrote to her mother to announce the birth of the firstborn Ferrandino, in which she hopes that her little son, growing up, will show her the same affection that she still showed to her mother. In addition to the three children had by Alfonso, Ippolita also raised as her own two grandchildren, Beatrice and Ferrante d'Este, children of her sister-in-law Eleonora d'Aragona, who had left them still children at the court of Naples by the will of their father Ferrante. Death Ippolita died suddenly on August 19, 1488 in Castel Capuano, shortly before the wedding of her daughter Isabella, according to Arienti due to an "apostema in the head". Her death was prophesied by Friar Francis of Aragon, who was in the city of Florence: from there the friar wrote to the duchess, who recommended her to pray for the soul of her mother, having had a vision in which the deceased Bianca Maria Visconti told him that she had begged God to let his daughter enter heaven with her, adding that by now the bread was baked and that the Almighty was eager to taste it at his own convito. Two or three days after receiving the letter, Ippolita was seriously ill and sixteen days later died, despite all the processions and relics - such as the blood of St. Januarius, the crucifix to which St. Thomas Aquinas spoke and the head of St. Luke the Evangelist - brought to her bedside. Her family members were always close to her, including the king and queen, and so also the eldest son Ferrandino who, initially very far from home, as soon as he received news of his mother's illness immediately returned to comfort her, being loved by the latter maximally. The second son Peter was instead sick in bed and on the verge of death, and for this reason the departure of his mother was kept secret from him, so as not to cause him a displeasure that could have killed him. Great funerals were made and the deceased, dressed in white brocade, with a golden circle on her head and jewels and rings on her fingers, was buried in the church of theAnnunziata in Naples. She composed many letters. These have been published in Italy in a single volume entitled, The Letters of Ippolita Maria Sforza, and edited by Serena Castaldo. Previously, in 1893, in Bologna, F. Gabotto published a collection of Ippolita's letters which she had written in Naples from 1475 to 1482. Apart from epistolary activity, her notable writings include poetry and a Latin eulogy for her father Francesco. Religious fervor Ippolita died in the smell of holiness because of the deeply religious conduct she had kept alive: every day she listened to three masses, sometimes even four or five, in any case no less than two. So she recited the rosary daily and read a prayer book as big as a psalter and one as big as a vesperal, kneeling before the image of the Virgin. She also recited seven penitential psalms and prayers in suffrage for her deceased parents and relatives, maintaining this habit for more than twenty years. All the vigils of the Immaculate recited a thousand hail marys to honor the Virgin, to whom she always turned her thoughts, and very often she wept thinking of her sufferings. Every Saturday she recited the rosary three times with great devotion, having been the one who brought this litany from Lombardy to Naples, and all the vigils of the Immaculate recited it six times. On Friday morning she used to enter the chapel before Mass and, left alone, she closed the door, then prayed prostrate on the floor with her arms on the cross to remember the passion of Christ, saying a hundred paternostri and a hundred hail marys. Then she opened the doors and let in the chaplains who were to celebrate Mass. Every day she also wanted to hear the prayers of vespers. Her soul was not satisfied by so many prayers, so that she also made other people pray: when the house of Aragon was in a state of serious calamity, in her house she prayed uninterruptedly: her women were ready two by two, in strict order, kneeling before the crucifix, then giving themselves the change, often continuing so day and night. The candles before the images of Christ and the Virgin were to remain by her will always lit until she had obtained the required grace. While her husband risked his life in Otranto, fighting for the liberation of the city from the Turks, Ippolita spent the nights kneeling in prayer in front of the altar; once she stayed there nine consecutive hours, other times six or seven, depending on the need she felt at that moment, and her knees were wounded to the bone. When her loved ones were sick, she, in addition to endless prayers, also organized processions and pilgrimages, always obtaining their grace. Once her eldest son Ferrandino was reduced to the end of life, with no hope of healing, so that Ippolita, followed by a multitude of naked children, up to a thousand, and by numerous praying virgins, several days walked the streets of Naples barefoot to invite the people to pray for her son, then - always barefoot - went to Sorrento through an impervious mountain, traveling more than thirty miles, and finally obtained that Ferrandino was healed. After this feat her feet needed to be medicated for several days because of the sores caused by the long journey. As soon as a vow was fulfilled, she immediately wanted to fulfill her promises: she fasted, fed the poor, or called masses, then repeated the commitment in suffrage of the souls of her parents. These facts are all told to us by Fra' Bernardino da Rende, who often celebrated Masses for her, while Giovanni Sabadino degli Arienti even tells of miraculous events: it happened one day that her son Ferrandino, at the time about twenty years old, "for grandeza et prestantia de animo, tormenting a gallant horse, that falls on them, so that he was raised believing himself dead spindle". The young prince then remained in a coma for thirteen days, until his mother Ippolita, weeping and devoutly invoking the help of the Virgin with endless prayers, obtained that "lost them, or lost lost spirits restored in the former body of the son". In similar ways she had also obtained the healings of her other two children, Isabella and Pietro, also reduced to serious condition, as well as her husband Alfonso and father-in-law Ferrante. As for almsgiving, every day she gave more than thirty poor people meat, bread and wine, and increased them to another nineteen on the eve of the Immaculate Conception and on all the feasts of his Protector. Once a month she visited all the prisoners to console them and used to send the court doctors to the poor sick out of pity. She made numerous donations to monasteries and provided dowry to poor girls who were ashamed to beg. All these benefits she wanted to be done as secretly as possible, so that the praise in this life would not take away that of the other, nevertheless they were made known at her death by the people who were close to her. She never wanted to be thanked for what she did, nor could she bear to be praised. She had a particular devotion to the observant orders, which is why she wore the rope of Friar Minor around her shirt. She fasted during the four canonical times and their vigils, and with great sacrifice also for the whole of Lent, as well as punctually every Saturday. Every evening he aned the foreheads of her children with holy oil, drawing the sign of the cross, and blessed them with love before sending them to bed, then repeated the same operation in the morning. Even in the course of the illness that led her to the tomb, Ippolita did not disturb or upset, but remained persevering in her virtue. On her last day of life, feeling that she was about to die, she asked to be able to listen to a mass of the angels, to go with them accompanied. Her relatives were estranged by this request, since the duchess did not usually ask for such a mass, and asked her if she did not rather want a mass of the Nunciata, but Ippolita remained firm in her initial purpose. All this happened on a Tuesday, which is the day proper to the angels and which also in that year occurred with the feast of the Nunziata, to which the duchess was deeply devoted. Lineage The marriage with Alfonso produced three children: Ferdinand II of Naples known as "Ferrandino" (26 June 1467 - 7 October 1496), King of Naples from 1495 to 1496; Isabella (2 October 1470 – 11 February 1524), Duchess of Milan by marriage to her cousin Gian Galeazzo Sforza and later Duchess of Bari. She was the mother of Bona Sforza of Aragon, wife of Sigismund I of Poland; Pietro (31 March 1472 - 17 February 1491), Prince of Rossano. In mass culture Literature The Trattato della laudanda vita e della profetata morte di Ippolita Sforza d'Aragona by Bernardino da Rende is dedicated to her. Television In the Netflix series Medici Ippolita is played by the French actress Gaia Weiss. In the historical fantasy drama series Da Vinci's Demons Ippolita is played by Jeany Spark. In both television series, however, the character of Ippolita appears totally distorted, as she never nurtured towards Lorenzo de' Medici, with whom she entertained an exchange of letters, other than a sincere friendship, which was never love, nor therefore Ippolita, as a woman famous for her singular modesty, would never have granted herself to him thus betraying her husband, nor King Ferrante, in love with his daughter-in-law, would have ever exploited her by pushing her to prostitute herself at the Medici. References Sources 15th-century Italian nobility 1446 births 1488 deaths People from Cremona 15th-century Italian women writers Ippolita Maria Ippolita Maria 15th-century Italian writers 15th-century Italian women
```smalltalk using System.Collections.Generic; using System.Linq; using WalletWasabi.Tor.Control.Exceptions; using WalletWasabi.Tor.Control.Messages.CircuitStatus; namespace WalletWasabi.Tor.Control.Messages; public record GetInfoCircuitStatusReply { public GetInfoCircuitStatusReply(IList<CircuitInfo> circuits) { Circuits = circuits; } public IList<CircuitInfo> Circuits { get; } /// <exception cref="TorControlReplyParseException"/> public static GetInfoCircuitStatusReply FromReply(TorControlReply reply) { if (!reply.Success) { throw new TorControlReplyParseException("GETINFO[circuit-status]: Expected reply with OK status."); } if (reply.ResponseLines.First() != "circuit-status=") { throw new TorControlReplyParseException("GETINFO[circuit-status]: First line is invalid."); } if (reply.ResponseLines[^2] != ".") { throw new TorControlReplyParseException("GETINFO[circuit-status]: Last line must be equal to dot ('.')."); } IList<CircuitInfo> circuits = new List<CircuitInfo>(); foreach (string line in reply.ResponseLines.Skip(1).SkipLast(2)) { circuits.Add(CircuitInfo.ParseLine(line)); } return new GetInfoCircuitStatusReply(circuits); } } ```
Quaternary Geochronology is a peer-reviewed scientific journal addressing methods and results in the dating of samples from the Quaternary Period. External links Quaternary science journals Elsevier academic journals Bimonthly journals English-language journals Academic journals established in 2006
Saen To (, ) is a village and tambon (sub-district) of Mueang Uttaradit District, in Uttaradit Province, Thailand. In 2005 it had a population of 3374 people. The tambon contains eight villages. References Tambon of Uttaradit province Populated places in Uttaradit province
Sekiu Airport is a public airport serving the small community of Sekiu, in Clallam County, Washington, United States. It is owned by the Port of Port Angeles. Facilities and aircraft Sekiu Airport covers an area of which contains a 2,997 x 50 ft (913 x 15 m) lighted runway (8/26) with a visual approach indicator. Due to a 900 ft (275 m) displaced threshold, aircraft approaching from the west (runway 08) have only 2097 feet (639 m) on which to land. For the 12-month period ending December 31, 2005, the airport had 498 aircraft operations: 95% general aviation and 5% air taxi. References External links Sekiu Airport at Port of Port Angeles Sekiu Airport at Washington State DOT Airports in Washington (state)
Nyssodrysternum is a genus of beetles in the family Cerambycidae, containing the following species: Nyssodrysternum amparense (Melzer, 1934) Nyssodrysternum analogum Monne & Tavakilian, 2011 Nyssodrysternum basale (Melzer, 1934) Nyssodrysternum bolivianum Monne & Tavakilian, 2011 Nyssodrysternum borneanum (Breuning, 1970) Nyssodrysternum capixaba Monne & Tavakilian, 2011 Nyssodrysternum caudatum (Bates, 1864) Nyssodrysternum cingillum Monne, 2009 Nyssodrysternum colombianum Monne & Tavakilian, 2011 Nyssodrysternum conspicillare (Erichson, 1847) Nyssodrysternum conspicuum Monné, 1985 Nyssodrysternum cotopaxi Monne & Tavakilian, 2011 Nyssodrysternum cretatum Monné, 1985 Nyssodrysternum decoratum Monné, 1992 Nyssodrysternum diopticum (Bates, 1864) Nyssodrysternum efflictum (Bates, 1864) Nyssodrysternum fasciatum Gilmour, 1960 Nyssodrysternum flavoguttatum Monne & Tavakilian, 2011 Nyssodrysternum flavolineatum Monné, 1985 Nyssodrysternum freyorum (Gilmour, 1963) Nyssodrysternum fulminans (Bates, 1864) Nyssodrysternum gilvolineatum Monne & Tavakilian, 2011 Nyssodrysternum gratum Monné, 1985 Nyssodrysternum hovorei Monne & Tavakilian, 2011 Nyssodrysternum impensum Monné, 1985 Nyssodrysternum instabile Monné, 1992 Nyssodrysternum insulorum Monne & Tavakilian, 2011 Nyssodrysternum lanceolatum Monne & Tavakilian, 2011 Nyssodrysternum laterale (Melzer, 1931) Nyssodrysternum lepidum Monné, 1992 Nyssodrysternum lineolatum (Bates, 1864) Nyssodrysternum multilineatum Monne & Tavakilian, 2011 Nyssodrysternum nitidum Monne & Tavakilian, 2011 Nyssodrysternum ocellatum (Bates, 1885) Nyssodrysternum picticolle (Melzer, 1934) Nyssodrysternum pictulum (Bates, 1881) Nyssodrysternum plaumanni Monné, 1992 Nyssodrysternum poriferum (Bates, 1885) Nyssodrysternum promeces (Bates, 1864) Nyssodrysternum propinquum (Bates, 1864) Nyssodrysternum proximum Monne & Tavakilian, 2011 Nyssodrysternum ptericoptum (Bates, 1864) Nyssodrysternum reticulatum (Melzer, 1934) Nyssodrysternum rodens (Bates, 1864) Nyssodrysternum rubiginosum Monné, 1975 Nyssodrysternum schmithi (Melzer, 1931) Nyssodrysternum serpentinum (Erichson, 1847) Nyssodrysternum signiferum (Bates, 1864) Nyssodrysternum simulatum (Bates, 1864) Nyssodrysternum spilotum Monné, 1975 Nyssodrysternum stillatum (Bates, 1864) Nyssodrysternum striatellum (Tippmann, 1960) Nyssodrysternum sulphurescens (Bates, 1885) Nyssodrysternum taeniatum Monné, 1985 Nyssodrysternum tucurui Monne & Tavakilian, 2011 Nyssodrysternum univittis (Bates, 1885) Nyssodrysternum vanini Monne & Tavakilian, 2011 Nyssodrysternum variabile Monné, 1985 Nyssodrysternum zonatum Monné, 1985 References Acanthocinini
```java package razerdp.demo.model.common; import android.content.Context; import android.view.Gravity; import android.view.View; import android.widget.TextView; import androidx.annotation.NonNull; import com.google.android.material.bottomsheet.BottomSheetDialog; import razerdp.basepopup.R; import razerdp.demo.model.DemoCommonUsageInfo; import razerdp.demo.popup.DemoPopup; import razerdp.demo.popup.PopupDesc; /** * Created by on 2019/9/26. * - BottomSheetDialog */ public class CommonBottomSheetDialogInfo extends DemoCommonUsageInfo { TestSheetDialog mSheetDialog; PopupDesc mPopupDesc; public CommonBottomSheetDialogInfo() { title = "BottomSheetDialogBasePopup"; option = ""; sourceVisible = false; } @Override public void toShow(View v) { if (mSheetDialog == null) { mSheetDialog = new TestSheetDialog(v.getContext()); } mSheetDialog.show(); } @Override public void toOption(View v) { if (mPopupDesc == null) { mPopupDesc = new PopupDesc(v.getContext()); mPopupDesc.setTitle("BottomSheetDialogBasePopup") .setDesc(new StringBuilder("") .append('\n') .append("BottomSheetDialogFragmentBasePopupActivityDecorViewWindowTokenBottomSheetDialogFragment") .append('\n') .append("BasePopupBasePopup-Compat")); } mPopupDesc.showPopupWindow(); } static class TestSheetDialog extends BottomSheetDialog { TextView tvShow; DemoPopup mDemoPopup; TestSheetDialog(@NonNull Context context) { super(context); setContentView(R.layout.view_bottom_sheet); tvShow = findViewById(R.id.tv_show); tvShow.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { showPopup(); } }); } private void showPopup() { if (mDemoPopup == null) { mDemoPopup = new DemoPopup(this).setText("\n\nBttomSheetDialogBasePopup"); } mDemoPopup.setPopupGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL); mDemoPopup.showPopupWindow(tvShow); } } } ```
Gogana fragilis is a moth in the family Drepanidae first described by Swinhoe in 1902. It is found on Borneo. Adults are dark shining grey with a red-brown streak at the end of the cell on the forewings, as well as some minute silvery specks along the costa, in the cell and interspace below the subcostal vein and along the outer margin. The marginal borders of both wings are dark. References Moths described in 1902 Drepaninae
DnaJ heat shock protein family (Hsp40) member A4 is a protein that in humans is encoded by the DNAJA4 gene. References Further reading
The Queen and the Conqueror (Spanish: La reina de Indias y el conquistador), is a Colombian historical drama television series created by Johhny Ortiz, and directed by Camilo Villamizar, and Juan Carlos Vásquez. The series revolves around the history that led to the founding of the city of Cartagena de Indias, of major importance in The Americas. The series is recorded in 4K Ultra-high-definition television. The show is filmed in Colombia, specifically in Sierra Nevada de Santa Marta, the banks of the Magdalena River and Palomino, Villa de Leyva, and Santa Fe de Antioquia. It stars Essined Rivera Aponte, and Emmanuel Esparza as the main's characters. The series it premiered on streaming on 20 May 2020 on Netflix. Cast Essined Rivera Aponte as La India Catalina Emmanuel Esparza as Pedro de Heredia Juliette Arrieta as Sanya Manuel Navarro as Diego Nicuesa Carlos Kajú as Enriquillo Gilma Escobar as Abuela de Toto Ilenia Antonini as Luz Aroha Hafez as Beatriz Alejandro Rodríguez as Pedro Badillo Wolframio Sinué as Cacique Galeras Cristina Warner as Gloria Badillo Maia Landaburu as Constaza Franco Fernando Campo as Alberto de Heredía Álvaro Benet as José Buendía Camilo Jiménez as Falla Patricia Castañeda as Criada Carmela Jairo Camargo as Arturo Adelaida Buscato as Genoveva Mercedes Salazar as Inés de López Luis Mesa as Fernando de Valenzuela Tahimí Alvariño as Isabela I de Castilla Kepa Amuchastegui as Bartolomé de las Casas Lucho Velasco as Moa Alejandro Muñoz as Alonso Montes Awards and nominations References External links Spanish-language Netflix original programming 2020 Colombian television series debuts Caracol Televisión telenovelas 2020 telenovelas Television series set in the 16th century
John Hamilton Constable (born 22 July 1952) is an English playwright, poet, performer and activist, author of The Southwark Mysteries. He is also known as John Crow, the urban shaman of Cross Bones. Life Constable was born in Much Wenlock, Shropshire in 1952. He was educated at Oswestry School (1963–69) and Queens' College, Cambridge (1970–73). In the mid-1970s, he performed at David Medalla's Artists For Democracy. From 1977-79, he lived in Japan and travelled widely in the Far East, and from 1980–82, toured Europe with the street theatre group Sheer Madness, playing Hamlet in the devised show Shakespeare’s Greatest Hits. From 1984, following the production of Black Mas by Foco Novo he returned to live in London. His plays included The Fit Up, Tulip Futures, Iceman and The False Hairpiece. He also wrote children's plays, radio dramas, and dramatisations of Gormenghast and The Mosquito Coast for the David Glass Ensemble. In 1986 he moved to The Borough, in Southwark, then a poor and much maligned part of south London. The area had a profound influence on his work, which draws freely on its 2,000 year history and the far-reaching changes that saw it reinvented as prime real estate in the heart of London. In Sicily in 1994 he met his companion Katharine Nicholls, a craftworker and community outreach worker. In their activism and esoteric work at Crossbones and with outsiders, she also became known as Katy Kaos. One of the poems in The Southwark Mysteries is entitled kateEkaos. She stage-managed his solo shows and site-specific events, co-produced the epic productions of The Southwark Mysteries and created the original “Hand-Maid” limited edition of The Book of The Goose. In 1995 he wrote and performed a solo show I Was An Alien Sex God. This inaugurated a new phase of experimental writing which produced his best-known work, The Southwark Mysteries. These began in 1996 as a cycle of mystical poems revealed to his shamanistic alter-ego, John Crow, by “The Goose”, who claimed to have been buried in the unconsecrated Cross Bones Graveyard. The Winchester Geese were medieval sex workers in the Bankside brothels licensed by the Bishop of Winchester under Ordinances dating back to 1161. The Southwark Mysteries grew from a poem cycle to a contemporary mystery play, first performed in Shakespeare's Globe and Southwark Cathedral on 23 April 2000. From 2004 to 2012 he was artistic director of the community arts group Southwark Mysteries, conducting guided walks, workshops and site-specific performances inspired by the work. The Halloween of Cross Bones, conducted annually from 1998 to 2010, ended with a candle-lit procession to the gates of Crossbones, the outcasts' burial ground. He led a long campaign to protect the burial ground and to establish a garden of remembrance on the site. A new production of The Southwark Mysteries was staged in Southwark Cathedral in 2010. In November 2010 John Constable was awarded an Honorary Fellowship of London South Bank University for services to the arts and community: “… for his vision and imagination, for his deep commitment to our local area, for his work in reclaiming lost histories and, above all, for his belief in the transformative power of writing and drama... At Southwark's Civic Award Ceremony in May 2011, he received The Liberty of the Old Metropolitan Borough of Southwark. In recognition of his work at Crossbones, and for the human rights of sex workers and other outsiders, Constable was named Campaigner of the Year at the 2011 Erotic Awards. His Sha-Manic Plays, Gormenghast, The Southwark Mysteries and Secret Bankside – Walks In The Outlaw Borough are published by Oberon Books. In 2014 Thin Man Press published Spark In The Dark, his first collection of poetry In 2020 he moved to Glastonbury, drawing on his first year living in the town for his book 'Grail' (2022). Plays John Constable's first play, Black Mas, was inspired by a visit to the Trinidad Carnival in 1982. It explores the adventures of two white British musicians visiting Trinidad for fresh inspiration and getting out of their depth under the heady influence of Carnival. The Guardian'''s Robin Thornber wrote: "It's a powerful piece that works on many levels, using the exotic trappings of its setting to cast its spell, but probing incessantly into the murky depths of racial and sexual mythology." The play, directed by Roland Rees for Foco Novo, opened at the New End Theatre, Hampstead followed by a UK tour. Other early work includes The Fit Up (Nuffield Theatre Southampton) and The Complete Casanova (Proteus-Horshoe Theatre, Croydon Warehouse). He was commissioned by RADA to write Hot Fondue, a contemporary play loosely based on Schnitzler's La Ronde, directed by Roland Rees14. In the 1990s, having worked with physical theatre director David Glass on the devised show Bozo's Dead, he was commissioned to write the stage adaptation of Gormenghast for the David Glass Ensemble. His 1994 play Tulip Futures concerned Tulip mania, the seventeenth century speculation on tulips which nearly bankrupt the Dutch economy. Tulip Futures was nominated for the Peggy Ramsay Award.Iceman is a black comedy about the war on drugs: an undercover policeman gets so deep into his cover, he winds up busting himself. It was short-listed for the Verity Bargate Award and produced by Brute Farce at the White Bear Theatre, Kennington. In 1995, Constable wrote and performed I Was an Alien Sex God, directed by Di Sherlock. The show opened in London at Battersea Arts Centre, followed by a popular and critically acclaimed run on the Edinburgh Fringe. Ian Shuttleworth's review began by quoting its most memorable line: '... "Let's get this straight, Commissioner - you're saying that if David Bowie and I have sex, it'll destroy the universe?" John Constable fully exploits his passing resemblance to the Thin White Duke in his mind-blowingly weird one-man show which takes in acid trips, mind-body transference, quantum physics, Berlin gay clubs and the end of the world as we know it.' Constable's subsequent work seems intent on dissolving the lines between art and life. In the introduction to Sha-Manic Plays, he acknowledged John Crow as a literary persona appearing in his work in various guises. In his next work, John Crow took on a life of his own. According to Constable, The Southwark Mysteries was "revealed by The Goose to John Crow at Crossbones... on the night of the 23rd November 1996. My shamanic double had somehow raised the Spirit of a medieval Whore, licensed by a Bishop, yet allegedly denied Christian burial." In The Book of The Constable, one of the poems of The Southwark Mysteries, 'The Goose and the Crow' seem to prophesy the chain of coincidences that lead Constable to write a contemporary mystery play with the support of the Very Rev'd Colin Slee, Dean of Southwark Cathedral, and the actor Mark Rylance, then artistic director of Shakespeare's Globe. In the play, Jesus ('The Son of Man in the street') returns to Southwark to save its lost souls, the heretic John Crow, and The Goose in the guise of Mary Magdalene. The play premièred in Shakespeare's Globe – with the climactic Harrowing of Hell scene staged in Southwark Cathedral – on Easter Sunday, 23 April 2000. The Dean defended the performance of this controversial work in the Cathedral. A headline in The Sunday Telegraph read: 'Dean rejects critics of Southwark's "swearing Jesus" Mystery Play'. Selected texts from The Southwark Mysteries featured in his site-specific ritual dramas - The Anatomy Class (The Old Operating Theatre), The Goose At Liberty (Southwark Playhouse), The Halloween of Cross Bones, conducted annually from 1998 to 2010, which culminated at the gates of the former burial ground. Constable's later work similarly drew on the history and contemporary culture of his south London neighbourhood. He wrote the libretto for South of the River, the ENO community opera performed in a big top in Potters Fields. In 2013, he wrote a one-man show Spare - inspired by the life and work of the south London artist and magician Austin Osman Spare – which he performed in Treadwell's Bookshop and in the White Bear Theatre, Kennington, where Spare himself used to drink and had once exhibited his paintings. In 2022 he was commissioned to write a new Mummers Play based on Glastonbury's St George legend. The 'Glastonbury St George and The Dragon Mummers Play' was performed in Glastonbury Abbey on 3rd June as part of the town's Queens Platinum Jubilee celebrations. Poetry The first part of The Southwark Mysteries comprises a cycle of mystical poems, seven Vision Books in which The Goose initiates John Crow into her “Secret History” and “Mysteries”. These two literary personas guide the reader on a journey through 2,000 years of Southwark's history, reimagined through the eyes of outcasts and outsiders. The verses range freely, from archaic ballad form to contemporary rap..The Glossolalia asserts that these are magical texts, including “The Goose's Heresy”, an “Hermetic tradition passed down by Bankside actors and whores”. In the lead-up to the millennium, Constable performed poetry and ritual dramas at The Warp, a series of fortnightly 24-hour parties in the caverns under London Bridge. In the first decade of the 21st century, he appeared, often as John Crow, in theatres, clubs and festivals worldwide. He hosted The Palace of Wisdom, an all-night poetry tent at the Glastonbury Festival, where he was a regular performer in the legendary underground Irish Piano Bar. In 2014, Spark In The Dark was published by Thin Man Press. This first collection of Constable's poetry ranges from satirical Burlesques to lyrical Spirit Songs. In Mrs God the poet draws on his Welsh Borders upbringing in a “burlesque” that comically subverts the image of a Divine patriarch. The book also features two experimental prose-poems. Winchester Cathedral:Time Out Of Mind, written during an Arts Council residency at Winchester Cathedral, evokes the misadventures of a medieval monk troubled by visions of the future. Wennefer is “a cautionary tale”, a visceral retelling of the Isis-Osiris myth set in south London club culture. Songs Songs from The Southwark Mysteries with music by Richard Kilgour featured in the 2000 and 2010 stage productions. Others, with music by Niall McDevitt, were performed at The Halloween of Crossbones. Constable subsequently wrote a number of his own songs - released on goose & crow : spirit songs, featuring Nigel Hoyle and Katy Carr. On the Gemini City album, Nigel of Bermondsey covered his song The Green Man Is Come. His texts for Beltane, Lammas and Samhain featured on the MegaT album with music by Universal Mind Sound System. His poems Spark In the Dark and I Am The Wind featured on Hawklords' 2012 album We Are One. He also contributed lyrics for songs on Hawklords' next two albums - White Rag on Dream, and Damned on Censored. In 2022 he released the album 'Ancestor Souls' by John Crow and Queen Space Baroque, performing his poems and incantations with music by Queen Space Baroque Radio, television and film Constable wrote Undesirable Activities for the BBC drama series Black Silk. He adapted the John Wyndham novels The Kraken Wakes and Chocky for BBC Radio 4 - subsequently released on DVD in the BBC Classic Radio Sci-Fi series. He has been interviewed many times on the radio about his literary work and appears in many films about the work at Crossbones. In the lead-up to the 2010 production of The Southwark Mysteries he and the Dean of Southwark Cathedral were interviewed on the BBCs Songs of Praise. Children's plays and workshops In 1987, for Proteus Theatre Company, Constable devised Forgotten But Not Gone for actors with learning difficulties. He was artistic director of the company during 1989. In the 1990s, he wrote many children's plays for Proteus, including adaptations of Maeterlinck's The Bluebird, Thackeray's The Rose and The Ring, Dickens' A Christmas Carol, Rumpelstiltskin and The Emperor's New Clothes. As artistic director of the community arts group, Southwark Mysteries, he conducted children's workshops in schools and community centres. His popular workshops included the Our Place and Our Story programmes, which used local history and cultural identity as springboards for the participants' own devised work. His George And The Dragon workshops, first performed in schools in south London, were taken to Cumbria as part of an anti-racist programme. In 2014, he was the dramaturg for Half Moon Young People's Theatre's #LimehouseLandmark programme, featuring devised performances inspired by the history of their building in Limehouse. Walks, talks and activism Since 1998, Constable has conducted guided walks around his Borough and Bankside neighbourhood. In 2007, Oberon Books published Secret Bankside – Walks In The Outlaw Borough, a collection of his walks exploring alternative histories of the area. He has been commissioned every year since 2003 to create unusual themed walks for the City of London Festival. He has given talks for groups as diverse as Southwark Council, The Moot With No Name, South East London Folklore Society, Radical Anthropology Group and The Salon For The City. He is the patron of REWRITE, a Southwark-based charity bringing together young people from different backgrounds to fight prejudice and injustice through the power of drama and creative writing. He championed community involvement and local identity in the face of the redevelopment of The Borough and wrote a scathing report on the MIPIM Global Property Fair in Cannes. A long-standing advocate of decriminilisation, he strongly criticised the “War On Drugs”, and supported the Sexual Freedom Coalition (SFC)'s campaign for sexual freedom between consenting adults. He performed his poetry at the SFC's 1998 “Sex Symposium” and escorted Dr Tuppy Owens to present their petition at No 10 Downing Street. Since 1998, he has led a campaign by “Friends of Crossbones” to protect the site of the Crossbones burial ground and to establish a garden of remembrance on the site. He and Katharine Nicholls curate a shrine to “the outcast dead” at the gates in Redcross Way, to which hundreds of people have contributed mementos. He performed The Halloween of Crossbones every year from 1998 to 2010, and has led vigils at the gates on the 23rd of every month since June 2004. Having raised public awareness of Crossbones' historic and cultural importance, he lobbied the site owners Transport for London (TfL) to open a public garden there. 2014 marked an important new phase in this work, when TfL granted a lease for a 'meanwhile garden' to Bankside Open Spaces Trust (BOST). Urban shamanism, magic and mysticism Beginning in 1998 Constable began conducting The Halloween of Crossbones and other ritual dramas. In this capacity he himself became widely known as John Crow, the south London shaman who channels The Goose, the spirit of a medieval prostitute he encountered at Cross Bones cemetery. Constable's work is inherently syncretic. In the Glossolalia he states that shamanism is not a fixed belief-system. The Southwark Mysteries explicitly honour the poetic “Spirit” above “the letter of the law”, art over religion, “Liberty” as a spiritual state in which contrary energies find creative expression. His essay Transgressive Shamanism considers how the West has appropriated the practices of indigenous shamans, especially relating to the use of psychoactive sacraments. It charts the transgressive use of such substances by artists, suggesting alternative “lines of transmission” in art. His Shamanic Playhouse workshops explore other ways of effecting altered mind-states. He speaks of “repatterning reality” and of the associations of the number 23 with “revelation and transformation”. Interviewed about his 2013 play, Spare, Constable expresses a sense of kinship with the south London artist and magician Austin Osman Spare and his intuitive approach to magic. The 2014 poetry book 'Spark In The Dark' is prefaced by Blake's epigram: “Without Contraries is no progression” - and this idea is implicit in many of the poems. The last part of the book, Spirit Songs'', draws freely on British traditions like the Queen of the May at Beltane. By contrast, the final poem Queen of the Moon ('Queen of the vision revealed in the vine / And the leaves of the Shining Tree...') evokes the Brazilian Santo Daime tradition. In 2022 he published a new book 'Grail', interweaving history and legends with poetic "spells and invocations" and vignettes of contemporary Glastonbury life. List of works Plays Black Mas 1984 Foco Novo tour, New End Theatre Hampstead and Albany Theatre Deptford The Fit Up 1988 Nuffield Theatre Southampton The Complete Casanova 1991 Proteus-Horseshoe Theatre Company, Croydon Warehouse Hot Fondue 1992 RADA Tulip Futures 1994 Soho Theatre Company Dead Man's Handle 1994 Soho Theatre Company Iceman 1997 Brute Farce, White Bear Kennington The False Hairpiece 1997 Proteus Theatre Company, Southwark Playhouse The Goose At Liberty 2000 Southwark Playhouse The Southwark Mysteries 2000, 2010 Shakespeare's Globe and Southwark Cathedral The Glastonbury St George and The Dragon Mummers Play 2022 Glastonbury Abbey Solo shows I Was An Alien Sex God 1995 Edinburgh Festival, BAC and Grahamstown Festival (SA) Raingods Become Me 2002 BAC Spare 2013 Treadwells and White Bear Theatre, Kennington Stage adaptations A Christmas Carol 1986 Proteus Theatre Company The Bluebird 1988 Proteus Theatre Company The Rose and The Ring 1990 Proteus Theatre Company Rumpelstiltskin 1991 Proteus Theatre Company The Emperor's New Clothes 1992 Proteus Theatre Company Gormenghast 1992 David Glass Ensemble The Mosquito Coast 1994 David Glass Ensemble Devised work Forgotten But Not Gone 1987 Proteus Theatre Company Bozo's Dead 1991 David Glass Ensemble South of the River 2002 libretto for English National Opera community opera Books Sha-Manic Plays (Black Mas, Dead Man's Handle, Iceman,The False Hairpiece) 1997 Oberon Books The Southwark Mysteries 1999 Oberon Books Gormenghast 2006 Oberon Books Secret Bankside – Walks In The Outcast Borough 2007 Oberon Books Spark In The Dark 2014 Thin Man Press Grail 2022 Blue Cedar References 1952 births Living people Writers from Shropshire People educated at Oswestry School Alumni of Queens' College, Cambridge 20th-century English poets English male poets 20th-century English male writers
Pérès is a French surname derived from Gascon language Etymology From Gascon language péré and mostly its plural form pérès, meaning pear trees. Surname People with the surname Pérès include: Jean-Baptiste Pérès, French physicist Joseph Pérès, French mathematician Gil-Pérès, real name Jules-Charles Pérès Jolin, French stage actor and vaudevilliste Marcel Pérès, French musicologist, composer, choral director and singer Marcel Pérès (actor), French actor See also Peres Notes and references Occitan-language surnames
Joseph Thomas Logano (born May 24, 1990) is an American professional stock car racing driver. He competes full-time in the NASCAR Cup Series, driving the No. 22 Ford Mustang for Team Penske and part-time in the NASCAR Craftsman Truck Series, driving the No. 66 Ford F-150 for ThorSport Racing. He previously competed in the NASCAR Xfinity Series as well as what is now the ARCA Menards Series, ARCA Menards Series East and ARCA Menards Series West. Logano is the 2018 and 2022 NASCAR Cup Series champion. He previously drove the No. 20 Toyota Camry for Joe Gibbs Racing from 2009 to 2012, scoring two wins, 16 top-five finishes, and 41 top tens. He also competed in the No. 02 Toyota Camry for Joe Gibbs Racing and the No. 96 Toyota Camry for Hall of Fame Racing, both in 2008 on a part-time basis. Logano's first major NASCAR win came during the Meijer 300 at Kentucky Speedway in just his third start in the 2008 Nationwide Series. He became the youngest driver to win a Nationwide Series race at old. The previous youngest was Casey Atwood in 1999 at . Logano became the youngest winner in Cup Series history when he won the 2009 Lenox Industrial Tools 301 at New Hampshire Motor Speedway at . The previous youngest was Kyle Busch in 2005 at . Logano is currently the youngest ever winner in two of NASCAR's three top divisions. Logano is also the first NASCAR driver born in the 1990s that has competed in NASCAR's three major divisions. In 2015, he became the second-youngest Daytona 500 winner, only older than Trevor Bayne. He is also the youngest ever driver to win in both the Cup and Xfinity Series. Racing career Early racing career Logano began his racing career in 1996 as a 6-year-old quarter midget racer living in Connecticut. In 1997, he won his first Eastern Grand National Championship in the Junior Stock Car Division. He followed it up with a Junior Honda Division Championship in 1998 and in early 1999 a Lt. Mod. Division Championship. Later in 1999, Logano won three New England Regional Championships in Sr. Stock, Lt. Mod, and Lt. B divisions. He spent a couple of years racing on various forms of pavement Late Model racing. Veteran Nextel Cup Series driver Mark Martin, who was driving for Jack Roush (Roush Fenway Racing) at the time, called Logano "the real deal"; when Logano was 15, Martin said "I am high on Joey Logano because I am absolutely, 100-percent positive, without a doubt that he can be one of the greatest that ever raced in NASCAR. I'm positive. There's no doubt in mind." Logano was also nicknamed "sliced bread" (as in the greatest thing since) by two-time Busch Series champion Randy LaJoie. In 2005, he ran in one FASCAR Pro Truck Series race at the New Smyrna Speedway, started first and finished second. He raced in the USAR Hooters Pro Cup Series, competing seven times in the Northern Division, and winning once at Mansfield, two Southern Division races, and five Championship Series races. The following season, he continued racing in the USAR Hooters Pro Cup Series. He raced in twelve Southern Division races, winning twice at South Georgia Motorsports Park and USA International Speedway. He ran in one USAR Hooters Pro Cup Series, Northern Division race, and six Championship Series races. In 2007, a new NASCAR rule allowed drivers aged 16 and up to race in the Grand National Division, allowing Logano to compete in the series. He finished the 2007 Grand National season with 13 starts in Camping World East Series, winning five races, three poles, 10 Top 5's, and 10 Top 10's, and winning the championship with wins at Greenville-Pickens Speedway, Iowa Speedway, two wins at New Hampshire International Speedway, and Adirondack International Speedway. He also has made one NASCAR West Series start at Phoenix International Raceway, where he started second and won in the No. 10 Joe Gibbs Racing Toyota. On October 20, 2007, Logano won the Toyota All-Star Showdown at Irwindale Speedway, leading 87 laps and held off Peyton Sellers for the win. On May 4, 2008, Logano won the Carolina 500 during his ARCA RE/MAX Series debut with Venturini Motorsports in racing's return to Rockingham Speedway. Logano also made his NASCAR Craftsman Truck Series debut, at Talladega, in the Mountain Dew 250, starting sixth and finishing 26th. Logano attempted to defend his Toyota All-Star Showdown title he won in the 2007 season by driving in the January 2008 race and was disqualified for crashing into Peyton Sellers in an unsportsmanlike manner on the final lap, in an attempt to win the race. Not only was Logano disqualified but he was credited as having run none of the laps of the race completing zero laps. Xfinity Series and Craftsman Truck Series Logano made his NASCAR Nationwide Series debut at the Dover International Speedway in the 2008 Heluva Good! 200. Logano became the youngest winner in Nationwide history by winning his first major NASCAR series race at the 2008 Meijer 300 in only his third start, the previous holder of the achievement was Casey Atwood. On July 10, 2009, Logano won the Dollar General 300 by deciding not to pit unlike his teammate Kyle Busch, who took four tires with twelve laps to go. By leading the pack, the clean air made it easy to beat Joe Gibbs Racing teammate Kyle Busch by five car lengths making it the first time he won at the racetrack in Chicago. He took his fifth series victory at the Kansas Speedway after a late-race pass over teammate Kyle Busch. He earned his sixth Nationwide Series victory at the Auto Club Speedway. In April 2009, Logano won the NASCAR Nationwide Series race in Nashville. On July 1, 2011, he won the Subway Jalapeño 250 at Daytona International Speedway, avoiding a last-second crash. In mid-2011, Logano made a cameo appearance in the A&E series The Glades, in the episode "Moonlighting", as himself. In 2012, he won nine times in the Nationwide Series. He won at Auto Club Speedway, after dominating the race in the Trans-Lux Camry. He won his second race of the season at Talladega Superspeedway after a push from Kyle Busch and holding off Ricky Stenhouse Jr. and Cole Whitt. His third win of the year came with controversy after on a late restart, he took out Points leader Elliott Sadler and went on to take the win. His fourth win came at Dover International Speedway, after passing Ryan Truex with four laps to go after being held back in lapped traffic. His fifth win came at Michigan International Speedway after holding off James Buescher on the final restart. In August at Bristol, Logano took the lead from Kevin Harvick during pits and on the restart, he held off Elliott Sadler to win his first win at Bristol in his career. He went on the complete the year sweep of the Nationwide races at Dover, and in October winning his eighth race of the year at Charlotte. In November, he won the Nationwide race at Phoenix. This would ultimately be the final race win Logano would score in a Joe Gibbs Racing car. The Joe Gibbs Racing No. 18 Nationwide car won the 2012 NASCAR Nationwide Owners Championship mostly due in part to Logano's success in the car during the 2012 season. In 2013 at Dover, Logano won both the NNS races for a third and fourth consecutive time in the Nationwide series. This made him the only driver to win four consecutive races at Dover in any series, and the all-time wins leader in the Nationwide Series at the track. In addition to his wins at Dover, he took home a Nationwide win at Chicagoland Speedway during a cup series off week in July. The Team Penske No. 22 car won the Nationwide Series owners title in 2013, a feat Logano has now contributed to three times in his career—once at Penske and twice at JGR. The 2013 Nationwide Series owners title was a first for Team Penske. In May 2014 at Dover, Logano saw his four-race winning streak come to an end when Kyle Busch won the spring race at the track. Logano looked to be in a good position to win, starting from the pole for the fourth time at the track, but he was held up by Matt Kenseth for over 60 laps making Busch unreachable. He had to settle for a third-place finish. In his next start in the Nationwide Series at Michigan, Logano was leading with four laps to go and was well on his way to his first win of the season, but suffered a blown tire and was relegated to a 16th-place finish. Logano started his 2015 Xfinity Series schedule at Atlanta by winning the pole and finishing second. In his second race of the season, Logano finally returned to victory lane in the Xfinity Series at Phoenix International Raceway on March 14, 2015. He won from the pole and led 176 of 200 laps. He also scored his 2nd career perfect driver rating by dominating the race. On April 18, 2015, Logano led every lap of the Drive to Stop Diabetes 300 at Bristol after starting 2nd. As a result, he scored his second Bristol win in the series and third career perfect driver rating. On March 28, 2015, Logano driving for Brad Keselowski Racing started on Pole, led 150 of the 258 laps, and easily won his first Camping World Truck Series race in the Kroger 250 at Martinsville. He became the 26th different driver to win in all three major series, the first since his teammate and truck owner Brad Keselowski did it when he won the UNOH 200 Truck race at Bristol in August 2014. His first pole and win in the series came in his seventh career start. The 2016 Xfinity Series started well for Logano with a close second to Chase Elliott in the season opener at Daytona. In the coming races however the Penske No.22 car lacked the speed, it had done in previous years with Logano only able to take ninth at Bristol and seventh at Dover. In between these two races, Logano had been in contention for a victory at Talladega up until a last-lap crash relegating him to the 27th position. Charlotte, Pocono, and Michigan saw finishes of third, fifth, and sixth respectively. Logano would have to wait till Watkins Glen claim his first win of the season driving a secondary Penske entry the number 12 at Watkins Glen, the majority of the race was a hard-fought contest between Logano and Keselowski who would eventually encounter issues and retire allowing Logano to collect his 26th career win. Chicagoland saw Logano struggle again with a lack of speed driving the 22 to a seventh-place finish. Back in the number 12, Logano would take his 27th career win in the Drive for Cure 300 at Charlotte stealing the race win from a dominant Kyle Larson, this would be his second and final win of the year. His Xfinity Series campaign ended with a solid fourth at Kansas, unable to take the flagship 22 car to victory lane in 2016. Logano returned to the Truck Series in 2022, driving the David Gilliland Racing No. 54 to a sixth place finish at the Bristol dirt race. For the 2023 season, Logano drove the ThorSport Racing No. 66 to victory at the Bristol dirt race after leading 138 of 150 laps. Cup Series Joe Gibbs Racing 2008: First starts On August 25, 2008, Joe Gibbs Racing called a press conference to announce that Logano would drive the No. 20 Home Depot -sponsored Toyota Camry in the 2009 Sprint Cup Series. Logano replaced Tony Stewart who left JGR to form and drive for his own team, Stewart-Haas Racing. Logano was also a candidate for the 2008 Rookie of the Year award and was scheduled to make his first Sprint Cup start in the No. 02 Home Depot-sponsored car at Richmond, but failed to qualify for the event. On August 28, 2008, Hall of Fame Racing announced that Logano would drive five races in their No. 96 car during the 2008 Sprint Cup Series season. His official debut was at the 2008 Sylvania 300 at New Hampshire on September 14, 2008, by starting that race, he became the first NASCAR driver born in the 1990s to run a Cup Series event. On September 5, 2008, Logano made his first appearance in a Sprint Cup car at Richmond International Raceway in the two-hour-long Friday practice for the Chevy Rock & Roll 400. Due to Tropical Storm Hanna, qualifying was rained out. A NASCAR rule states that when qualifying is rained out, the Top 43 drivers in owners points are then set for the race. Logano was not in the Top 43 in owners points, so he did not get to debut. Logano is the youngest modern-era driver to compete full-time in NASCAR's top division (records show drivers as young as 15 competing in NASCAR's top division, but those records will stand due to age requirements). 2009: Rookie in the spotlight In 2009, Logano finished fourth in his first Gatorade Duel, and would become the youngest driver to start the Daytona 500, however, he would crash midway through the race and finish dead last. Logano's first three starts in the Sprint Cup Series saw three finishes of 30th place or worse. Las Vegas was his sixth start in the Sprint Cup Series, he finished 13th. In April, Logano finished ninth for his first Top 10 finish at Talladega; later that month at Darlington, he led 19 laps late in the race and finished ninth. Logano won the fan vote for the 2009 NASCAR Sprint All-Star Race and finished eighth. On June 28, 2009, Logano won the rain-shortened Lenox Industrial Tools 301 at Loudon, New Hampshire, beating Jeff Gordon and Tony Stewart, becoming the youngest winner ever in the Sprint Cup Series at the age of only 19 years, one month, and four days old. On November 22, 2009, Logano was crowned the official 2009 Sprint Cup Series Raybestos Rookie of the Year, having beat out other rookies Scott Speed and Max Papis. 2010: Youngest pole winner Logano won his first Coors Light Pole Award on March 19, 2010, for the Food City 500 at Bristol Motor Speedway. Despite going winless, he scored seven Top 5's and 16 Top 10's en route to a then-best 16th-place finish in the final points standing. 2011: Forgettable season Logano struggled through the 2011 season, with just four Top 5's, six Top 10's, and two pole positions, en route to a career-worst 24th-place finish in the final points standings. 2012: Final season at Gibbs Crew chief Greg Zipadelli left the No. 20 team at the end of the 2011 season to become the competition director at Stewart-Haas Racing. Jason Ratcliff was named Logano's new crew chief beginning with the 2012 season. In 2012, following several wins in the Nationwide Series, Logano won his second Sprint Cup Series race at the Pocono 400 at Pocono Raceway, after bumping Mark Martin with four laps to go, and holding off Martin and Tony Stewart. Logano became the first driver in 30 races to win a race from the pole position. It was also the first time Logano had won a race that had gone the scheduled distance (as his 2009 victory had been in a rain-shortened event). He scored one other Top 5 and 11 other Top 10 finishes en route to a 17th-place finish in the final points standings. He also ended his final Nationwide series at Joe Gibbs Racing on a high note, winning a series-high nine races. Team Penske 2013: Career redemption On September 4, 2012, it was announced that Logano would be leaving Joe Gibbs Racing and heading to Penske Racing in 2013, following an announcement that Matt Kenseth would drive the No. 20 Toyota. Logano moved to the No. 22 Shell / Pennzoil-sponsored Ford for Penske, finishing 17th at Bristol after losing control after contact with Denny Hamlin. Late in the race, it would appear that Logano passed Hamlin on the track, but both had issues and Hamlin finished 23rd; Logano claimed that his former teammate intentionally wrecked him. The next week, at Auto Club Speedway, Logano had his breakout race, leading 41 laps. The final laps saw an intense dogfight between him and Hamlin; on the last lap proper, Logano and Hamlin were driving hard side by side down the straightaway, in what looked like what was going to be a repeat of the photo finish from Darlington in 2003 but on the last corner, neither car lifted, both wrecked, while Kyle Busch slipped past and took the victory. Hamlin fractured his vertebra in the crash and after the race, Logano was confronted by Tony Stewart, who slipped back to 22nd after Logano blocked him on the final restart. Stewart pushed Logano, who responded by throwing a water bottle at him. Logano was scored in 3rd place. Just before the start of the NRA 500 at Texas Motor Speedway, both Penske Racing cars driven by Logano and Keselowski failed pre-race inspection due to an issue with the cars' rear-end housings. Logano was forced to start from the rear of the field because his car wasn't on the starting grid until after the command had been given, but he rallied for a fifth-place finish. Three days later, NASCAR unveiled large penalties for the infraction. Logano and Keselowski were each docked 25 points in the drivers' championship standings; Logano's crew chief, Todd Gordon, was also fined $100,000 and suspended six weeks. Car chief Raymond Fox and team engineer Samuel Stanley were suspended for the same length of time as well. Identical penalties were also handed down to all of the people in the same positions on Keselowski's team. Penske Racing released a statement saying the organization planned to appeal the penalties, but on May 1, the NASCAR Appeals Panel unanimously upheld the penalties. Team owner Roger Penske said he would further appeal the ruling to NASCAR Chief Appellate Officer John Middlebrook. Meanwhile, on the track after Logano's fifth-place finish at Texas, he had a low weekend at Kansas when he collided with a spinning Kyle Busch on lap 105, destroying the front ends of both cars and ending their days. This would relegate Logano to a 39th-place finish. He was able to rebound the following week at Richmond with a third-place run. At Talladega, Logano finished 35th with an engine failure after 143 laps. At Darlington, he struggled with the handling of his car and finished 22nd, two laps down. After racing at Darlington, Logano rallied to finish in the Top 11 in a six straight race streak going into the summer — fifth at Charlotte, seventh at Dover, 10th at Pocono, ninth at Michigan, 11th at Sonoma, and fourth at Kentucky. Returning to Daytona for the Coke Zero 400, Logano was running well until he cut a tire and hit the outside wall on lap 71, leaving him with a 40th-place finish. He then had another 40th-place finish the following week at New Hampshire after being involved in a crash early in the race. After a two-race streak of bad luck, Logano picked up steam again, with six straight Top 10 finishes — eighth at Indianapolis, and then seventh at both Pocono and Watkins Glen. In qualifying at Michigan, Logano won his sixth career pole position with a track-record lap speed of ; this was at the time the ninth fastest qualifying speed in NASCAR history, and the fastest since Bill Elliott's qualifying run at Talladega in 1987. He later went on to win the Pure Michigan 400, making it his first win with Penske Racing. Thanks to that win, and two more Top 5's at both Bristol and Atlanta (where he led 78 laps and almost won), he entered Richmond eighth in the standings with a shot to make the Chase for the first time in his career. At Richmond, he struggled with an ill-handling racecar to a 22nd-place finish, but it was good enough to where he beat Jeff Gordon (who finished eighth) by just one point for 10th in the points and made his first-ever appearance in the Chase. Even if he had fallen to 11th, he still would have had the second wild card thanks to being ahead of Martin Truex Jr. and Ryan Newman in points (Kasey Kahne had already locked up the first Wildcard with wins at Bristol and Pocono). Also thanks to the win, Logano seeded sixth in the Cup standings after it was reset. Logano started his first Chase run by qualifying on pole in GEICO 400 at Chicagoland with a new track qualifying speed record of 189.414 mph. However, he finished 37th due to an engine failure late in the race. This was followed by a 14th-place finish at New Hampshire. Logano then had back-to-back Top 5's with a third-place finish at Dover and a fourth-place finish at Kansas. This was followed by three Top 20 finishes — 18th at Charlotte, 16th at Talladega, and 14th at Martinsville. He finished out the season with three straight Top 10 finishes — third at Texas, ninth at Phoenix, and eighth at Homestead-Miami, leading him to a career-best eighth-place finish in the final points. 2014: Breakout season Logano started with an 11th-place finish in the 2014 Daytona 500, followed by a fourth-place run at Phoenix. He won his first pole of the year at Las Vegas, taking another fourth-place finish. At Texas, Logano running with consistent speed got his first win of the season after leading the most laps (108) and performing a last-lap pass on Jeff Gordon during a green-white-checkered finish. This win locked him into the 2014 Chase. At Richmond (a track where he had seen little success in his short career), Logano led late and pulled a Ron Bouchard-style move during a shuffle between Jeff Gordon, Brad Keselowski, and Matt Kenseth in the last nine laps, to slip away with a victory. The victory marked 2014 as Logano's first season with multiple career victories. Logano made his 200th cup series start at Kentucky Speedway on June 28 at the age of 24. At Loudon, Logano was running second to Keselowski when he was involved in an accident with the lap-down car of Morgan Shepherd. Logano said in an interview that Shepherd should have not have been on the track running those very slow speeds, but NASCAR responded that Shepherd maintained minimum speed. Logano took his third win of the season at Bristol in the Irwin Tools Night Race. Keselowski finished second in the same race, making this Team Penske's second 1–2 finish in its history, the other coming in the 2008 Daytona 500. Logano started the Chase seeded fifth. He finished in fourth place in the Challenger Round opener at Chicagoland Speedway moving him to third in points. Logano would go on to win at New Hampshire, locking him into the Contender Round. He took four tires on lap 247, while the other front-runners ran on older tires, giving Logano the advantage. Remarkably, he was able to move from 16th to second in 11 laps. He took the lead with 27 to go and won the race after a green-white-checkered finish. The win moved him to second in the points standings – one point behind Keselowski. This win marked Penske's third win in a row and fourth in five races. On September 25, 2014, it was announced that Logano had signed a multi-year contract extension with Team Penske. This extension came a full season before his contract was due to expire at the end of the 2015 season. The contract extends Logano's tenure with Team Penske to at least 2018. At Dover, Logano would finish fourth, making him the only driver to finish Top 5 in all three races of the contender round. He would finish the round second in points. Logano started the Contender Round by winning at Kansas. This gave him the lead in the point standings for the first time in his career. With the win, he was the first driver to advance to the Eliminator Round in the Chase for the Sprint Cup. Logano followed this up with a fourth-place finish at Charlotte. This was his fifth straight top-five finish, making him the first driver to start the Chase with five straight Top 5 finishes, beating the previous record of four set by Juan Pablo Montoya in 2009. At Talladega, Logano finished 11th after helping Keselowski get to the front on the final restart. Keselowski required a win to advance to the next round of the Chase and was able to achieve that in part thanks to Logano. Logano entered the Eliminator Round as the points leader, beginning with a fifth-place finish at Martinsville. At Texas, he fought back from pit road tire issues that led to a spin-out and finished 12th. Going into the final race of the Eliminator round, Logano was tied for first in points with a 13-point advantage over the final transfer spot. He would finish sixth at Phoenix, easily advancing to the Championship round alongside Denny Hamlin, Ryan Newman, and Kevin Harvick. In the final round, he ended up finishing last of the final four drivers. The result was affected by some mistakes made by his pit crew, relegating him to a 16th-place finish. Logano and his teammate Keselowski were both dominant in the new knockout-style qualifying in 2014. Logano had one pole, eight Top 2 starts, and started in the Top 10 in 26 of 36 races. He missed the final round of qualifying in only five of the 36 races, a series best. Logano was consistently near the top of most major statistical categories in 2014 including; laps led, average start, average finish, and average driver rating. He was one of only seven drivers that won multiple races in 2014 (the others being Keselowski, Jimmie Johnson, Jeff Gordon, Dale Earnhardt Jr., series champion Kevin Harvick, and Carl Edwards). 2015: Failed Championship run Logano's season began with an incident with Kevin Harvick during the Sprint Unlimited. Harvick, who questioned a late-race incident with Logano, exchanged heated words with Logano. The following week Logano held off Harvick to win the Daytona 500. Logano also became the second-youngest winner of the Daytona 500 (Second only to Trevor Bayne) and also gave team owner Roger Penske his second victory in the race, his first coming with Ryan Newman in 2008. The next week, he won the pole at Atlanta Motor Speedway and finished fourth. At Las Vegas Motor Speedway, he qualified second and led early but would ultimately fade to finish 10th after having two pit-road speeding penalties. At Phoenix International Raceway, he started on the front row for the third consecutive week and led laps early, even though he would ultimately finish eighth. At Auto Club Speedway, Logano started 13th and ran in the Top 5 most of the day, but a controversial late-race pit road violation set him back in the field; however, he recovered quickly to finish seventh. With his finish on the lead lap at Auto Club, Logano broke the record for most consecutive finishes on the lead lap with 22 (he would extend that record to 24 races). The previous record was held by Jeff Gordon and Dale Earnhardt Jr. with 21 each. The next week at Martinsville he became the 26th driver (after teammate Brad Keselowski) to have won in each of the Top 3 series by winning the Kroger 250 from the pole after leading the most laps, his final start in the Truck Series to date. He also won his second Cup pole of the season and during the race, led the second-most laps and finished third. At Texas, he started sixth, led 19 laps, and finished fourth. At Bristol, Logano and Keselowski wrecked out early, ending Logano's streak of finishes on the lead lap. At Richmond, Logano won the pole and finished fifth. At Talladega, Logano was caught up in a multicar wreck on the back straightaway on lap 47 and finished 33rd. He dropped from second to fourth in the points standings after the race. At Kansas, Logano did much better. He won the pole for the fourth time and once again, finished fifth. In August, Logano ran out of fuel while leading the final laps at Pocono. At Watkins Glen, Logano started 16th, and went on to win the race, leading only the final lap after Harvick ran out of fuel before entering the final two turns. For Logano, the win also marked a complete sweep of the weekend, having won the Xfinity race. At Michigan, Logano went on to bring home a seventh-place finish in the Pure Michigan 400. At Bristol, he took his third victory of the year with a win in the Irwin Tools Night Race. In the Chase, he swept the Contender Round races by dominating Charlotte, passing Matt Kenseth by purposely spinning him out with five laps remaining to win at Kansas and a dramatic win at Talladega that knocked Dale Earnhardt Jr. out of the Chase by one position. Also in the process, he became the second driver in 2015 after Kyle Busch to sweep three consecutive races. The next week at Martinsville, Logano had the dominant car for most of the race. However, Matt Kenseth, in retaliation for Logano spinning him out a couple of weeks earlier, deliberately crashed Logano with less than 50 laps to go; an action that was met with mixed emotions from drivers, but the fans erupted with applause. Kenseth was suspended for the next two races and placed on probation until December 31. Logano didn't do well at Texas, cutting a tire and spinning out, winding up 40th. Heading into Phoenix, Logano needed a win in order to advance to the final round. Ultimately, he failed, as he finished third and was eliminated from the Chase at Phoenix International Raceway after a controversial finish where Dale Earnhardt Jr. won the race thanks to a storm in the area. Logano went on to finish fourth at the season finale, and finished sixth in the final point standings. 2016: Heartbreak at Homestead In 2016, Logano had a rocky start compared to 2015. Logano won his third straight pole at Martinsville, however, he would struggle throughout the race before finishing 11th. At Kansas and Talladega, Logano went back to back with DNFs from crashes. Logano won his first Sprint Cup All-Star Race after making a pass on Kyle Larson with two laps remaining. He won the FireKeepers Casino 400 after a good final restart. He won the race from the pole, the second time he won from the pole at Michigan. This was followed by a third-place finish at Sonoma and fourth place at Daytona. At Kentucky, Logano had an early exit on lap 54 after cutting a right-front tire, finishing 39th. Logano fought back with a third-place finish at New Hampshire and a seventh-place finish at Indianapolis. At Pocono, while on lap 115, Logano was racing Ryan Newman to his outside and Denny Hamlin to his inside when Chase Elliott got to his inside, got loose, got into Logano and sent both of them into the wall. Logano finished 37th. Following this, Logano went on a seven-race stretch with a worst finish of 11th place: second place at Watkins Glen, 10th place at Bristol and Michigan, fifth place at Darlington, 10th place at Richmond, second place in Chicagoland, 11th in New Hampshire, and fifth place at Dover. At Charlotte, the opening race in the Round of 12, Logano's day ended early with a series of tire blowouts, leaving him with a 36th-place finish. This was followed by a third-place finish at Kansas. At Talladega, Logano was penalized early when his car left pit road dragging the jack during the first round of green-flag pit stops, but went on to win the race in overtime and clinched a spot in the Round of 8. The win marked the third straight restrictor-plate victory for Team Penske, after Keselowski's earlier victories at Talladega and Daytona. A win at Phoenix guaranteed Logano a place in the final 4 at Homestead. Logano led 45 laps at Homestead and had a significant chance to win his first Cup series championship. With 10 laps left, Logano restarted under leader Carl Edwards and Edwards on the restart attempted a block the 22 but it was too late, spinning the 19 of Edwards into the inside wall, resulting in a DNF for the 19 and some damage to the 22. After a 30-minute red flag, Logano's car was too damaged to contend any further and Logano finished the race in fourth place, finishing second in the standings to Jimmie Johnson. 2017: Championship 4 to missing the playoffs Unlike in previous years at Penske, Logano had a miserable year. He started the year however by winning the Advance Auto Parts Clash after sneaking through the last lap incident between Brad Keselowski and Denny Hamlin. Logano's 2017 season started with a sixth-place finish in the Daytona 500. In the Kobalt 400 at Las Vegas, Logano collided with Kyle Busch as the two battled for a Top 5 finish on the final lap. The contact spun Busch out and onto pit road; Logano finished fourth, while Busch dropped to 22nd. After the race, Busch confronted Logano on pit road, attempting to punch him as their pit crews became involved. Busch suffered a bloody forehead in the ensuing brawl, though neither driver was penalized for the fight. In an ironic twist at the following week's race in Phoenix, Logano's tire blew with five laps to go to bring out the caution as Busch was in contention to win. As a result, Ryan Newman stayed out for the final restart and went on to win. At Richmond, Logano made his 300th cup start. Despite qualifying fifth, he would start from the 37th spot due to a transmission change. Logano would slowly work his way to the front, before winning his second career race at Richmond. Logano became the sixth driver to win in his 300th start. However, Logano's car was discovered to have a rear suspension issue, forcing NASCAR to declare his victory an "encumbered" win; as a result, while his win was not stripped, it did not allow him to lock a spot into the playoffs. At Kansas on May 13, Logano entered sixth on points. He had a rough race that saw him fall from second on the start to mid-pack. Logano battled setbacks such as a speeding penalty, and a cut tire which caused him to stay mid-pack for the rest of his race. Logano was charging towards the Top 10, when his car's brakes broke, causing him to crash Danica Patrick and cause a fiery accident. The accident led to Aric Almirola being injured and airlifted to a local hospital for evaluation. Logano was visibly shaken following the wreck in a post-race interview. His contention to make it to the playoffs immediately started to fade away. His best finishes after Richmond were third at Michigan and his fourth-place finish at Indianapolis. After a series of bad races, Logano missed the playoffs by one spot, finishing behind Kyle Larson after having finished second at Richmond. This is the first time Logano missed the playoffs since his last year with Joe Gibbs Racing in 2012. Due to his encumbered win, Logano's chance at a championship ended with his runner-up finish as after Darlington, he was in a must-win situation since the maximum points available in a race was 60 points as Logano was more than that many points away and points didn't matter anymore to make the playoffs. Ironically, the driver that benefited off of Logano's misfortune was Matt Kenseth, who barely made the playoffs by only about 100 points over Logano, keeping Logano out of the playoffs, reminiscent of their 2015-2016 feud. He then had consistent finishes like his seventh at Chicagoland Speedway, and fourth at Talladega. He finished the season with a 6th-place finish at Homestead-Miami Speedway. He finished the season 17th in the points standings. 2018: Championship redemption 2018 was a very quiet but productive year for Logano. Logano started the season with a second-place finish in the Clash. He followed that up with a second-place finish in his duel, losing to teammate Ryan Blaney. Logano had his ups and downs at the 2018 Daytona 500 with a tire rub and a pit penalty but rebounded to finish fourth after avoiding a wreck with two laps left. At the 2018 GEICO 500, he held off Kurt Busch to win the race and lock him in the Playoffs. While the "Big Three" were making all the noise, Logano was quietly and patiently posting one of his best-ever seasons. He had finished every race up until the second Daytona race, where he was involved in one of the pile-ups triggered by Ricky Stenhouse Jr. Then weeks later he finished dead last for only the second time in his career at Watkins Glen. On the opening laps, Logano was battling for position inside the top-five when the leaders stacked up and Logano made contact with the rear of Kyle Larson's No. 42. The damage resulted in a cracked radiator, eliminating the team from the race. The rest of the regular season was filled with Top 10 finishes. He ended the regular season sixth in points heading into the playoffs. Logano started off the playoffs with a strong fourth-place finish at Las Vegas. Richmond, however, was a quiet race but he ended it a lap down finishing 14th. A quiet race at Charlotte ended in a 10th-place finish and advanced to the next round. He started the Round of 12 by finishing third at Dover and fifth at Talladega. He became the evident flag bearer for his team. After the Kansas playoff race, Logano became the sole Penske driver in the Round of 8 of the Playoffs after teammates Keselowski and Blaney were eliminated. entering the round of 8, Logano had a good chance to make it to Homestead and win the championship. He won the fall Martinsville race after a fierce battle with Martin Truex Jr. towards the finish line and secured his spot in the Championship 4. Logano had dominated the event, leading 309 of 500 laps, taking home his first grandfather clock. He then made a consecutive streak of Top 10's with a third-place finish at Texas. Logano had a bad weekend at Phoenix, but prior in the press, he felt that he was the favorite for the championship, he suffered a flat tire in the second stage of the race in which ended his race, and his sixth-consecutive Top 10 finishes, although he still advanced, even if he had finished second to fifth, in which he would have won a tiebreaker over Chase Elliott if he finished fifth. As the sun fell and the lights came on, Logano won at Homestead and became the 2018 Monster Energy NASCAR Cup Series Champion after passing Martin Truex Jr. with a pass on the high side with 12 laps to go. Rounding out a stout season, in addition to his first title, he ended the season scoring three wins, 13 Top 5 finishes, 26 Top 10 finishes, and an average finish of 10.7. 2019: Title defense Logano started the season with a third-place finish in the rain-delayed Clash, in the duel, he made a big move on Clint Bowyer who led 41 laps on the final lap and won the duel only leading one lap, the last one. He started 4th at the Daytona, starting the season as a strong contender for the championship. Logano battled back and forth for the win all day, such as avoiding "The Big One" that took out 21 other drivers but came up short to a 1-2-3 finish with the Joe Gibbs Racing team. After the race, Logano had confronted fellow Ford teammate Michael McDowell for not giving Logano the push he needed for the win. He left Daytona second in points, tied for the points lead with Denny Hamlin. At qualifying at Atlanta, he had problems in his qualifying laps and started 27th. The problems continued through the race. While he did contend for the win late, he suffered from tire issues to finish 23rd. Logano rebounded at Las Vegas, holding off teammate Brad Keselowski for his first win at the track. The win at Vegas was fitting as it would be Logano's 22nd spring race in Las Vegas, his 22nd Cup win, and won in a Pennzoil-sponsored No. 22 car. Logano followed up his win with a 10th-place run at Phoenix and a runner-up finish at Fontana. At Martinsville, Logano scored his fifth pole in seven races, making it the 10th consecutive season where he has won a pole. It was a rough go at the start of the race. He led the first five laps and didn't lead the race again. He started on the pole and finished 19th. It was not the result that the 22 team wanted. Afterward at Texas, he won Stage 1 but pit lane issues saw him lose positions and drop to and finish 17th. At Bristol, he had a car capable of winning, but he pitted late in the race and restarted a few spots from where he finished. He finished third eventually behind the Busch brothers of Kyle and Kurt. Late in the day at Richmond, having won Stage 2 and finished 2nd at Stage 1, Logano had the better car and was chasing Martin Truex Jr. Unfortunately, he didn't have enough time to pass Truex and finished second. At Talladega, he had another good qualifying. He started fifth and led by lap 182. He led at the restart but was no match for the pack of Chevrolet Camaros of Chase Elliott, Bowman, and rookie Ryan Preece and ended up finishing fourth. Logano then qualified 4th at Dover. He won Stage 1 ahead of teammate Keselowski. He finished seventh, extending his stretch of Top 10 finishes to four. In the standings though, he is second, five points behind leader Kyle Busch after having decreased it since Richmond. Logano qualified 20th at Kansas but failed pre-race inspection so he started 30th. During the first 10 laps, Logano had already gained about 10 spots. He finished 10th in the first stage and finished 15th, 1 lap down, however, though, Kyle Busch, the points leader after Dover, finished 30th, and as a result, Logano took the lead in points. With his two wins, Logano made his way into the playoffs. At the Charlotte Roval, he overcame a collision with a tire barrier to finish 10th and advance to the Round of 12. At Dover, Logano was forced to head to the garage before the opening laps to have a busted rear axle fixed. He returned to the race 24 laps down and was criticized by Denny Hamlin for racing the lead cars hard. At Martinsville, Hamlin collided with Logano on turn four, squeezing Logano into the outside wall and causing him to lose a tire and spin out two laps later. Despite the damage, Logano finished eighth. After the race, Logano and Hamlin discussed the incident before Logano slapped Hamlin's right shoulder, sparking a fight between the two. NASCAR suspended Dave Nichols Jr., the No. 22 team's tire technician, for one race for pulling Hamlin down to the ground during the altercation. Logano's Title defense ended after being eliminated in the Round of 8 despite finishing ninth at Phoenix, with Hamlin and eventual Champion Kyle Busch ultimately beating him out for the remaining Championship 4 spots by winning the race and finishing 2nd respectively. At Homestead, Logano finished fifth in the race and the final points standings, the highest in points among non-Championship 4 drivers. Logano also was running at the finish in every single race in 2019, alongside Ty Dillon as the only two to accomplish the feat. 2020: Return to the Championship 4 With Paul Wolfe replacing Todd Gordon as his crew chief, Logano started the 2020 season by winning Duel 1 of the Bluegreen Vacations Duels. He finished 26th at the Daytona 500 due to a collision with Ross Chastain. A week later, he rebounded with a win at Las Vegas later, Logano would find himself in victory lane at Phoenix. At Bristol, Logano held the lead in a battle with Chase Elliott in the final laps until both competitors crashed into the wall, leaving Logano's teammate Brad Keselowski to win the race while Logano finished 21st. Logano's two wins earned him a spot in the 2020 Playoffs. He locked himself in the Championship 4 after beating Kevin Harvick at Kansas. In the championship race at Phoenix Raceway, he ran upfront for all of stage 1. A late-race https://tenor.com/view/123-gif-23393735 vibration and pit strategy caused him to finish 3rd in the race, and third of the Championship 4. 2021: Dirt win On the final lap of the 2021 Daytona 500, Logano led teammate Keselowski before he attempted to pass Logano with momentum from Michael McDowell, resulting in a fiery crash. While McDowell avoided the wreck to win, Logano finished 12th. Later, he would win the inaugural Bristol Dirt race. While running third at the end of Stage 1 during the GEICO 500, Logano was turned by Hamlin and clipped in the left-rear by Stenhouse Jr., sending his car into a blow over and Logano went upside down before his car rolled back over. He was uninjured, but showed displeasure with NASCAR over safety concerns and the package in his interview, bringing up Ryan Newman's accident at the Daytona 500 the previous year. Logano got into the playoffs with his Bristol win. He made it all the way to the Round of 8 before being eliminated after Martinsville. He finished the season 8th in the points standings. 2022: Second championship Logano began the 2022 season by winning the 2022 Busch Light Clash at The Coliseum. He scored his first win of the season at Darlington by bumping William Byron to the wall with two laps to go, infuriating both Byron and the crowd. Logano scored his second win of the season at the inaugural Gateway race. During the playoffs, he won at Las Vegas to make the Championship 4, before winning at Phoenix to claim his second Cup Series championship. Later on Logano paid tribute to his former boss at Joe Gibbs Racing Coy Gibbs who had passed away the day before Logano lifted his trophy. 2023: Second title defense Logano started the 2023 season with a second-place finish at the 2023 Daytona 500. He scored his first win of the season at Atlanta. During the playoffs, Logano was eliminated at the conclusion of the Round of 16 at Bristol after being caught in a wreck involving Corey LaJoie, Ryan Newman, Justin Haley, and Kevin Harvick. Other media appearances In 2009, Logano co-hosted an episode of WWE Raw with Kyle Busch. Logano has made cameo appearances in various TV shows. He appeared in Cartoon Network's Destroy Build Destroy in the episode "NASCAR Pile-Up Logano vs. Edwards", where he would beat Carl Edwards. The episode aired on October 20, 2010. In 2011, along with Carl Edwards and other NASCAR drivers, he was in the A&E series The Glades. During the year, he also participated in Man v. Food Nation, taking on the Atomic Bomb Challenge at Sticky Lips BBQ in Rochester, New York. He lost the challenge. During its 2011 season, Logano and Trevor Bayne were on a live portion of American Idol. In 2013, Logano guest-starred on a season two episode of Disney XD's Lab Rats. Logano appeared on an episode of the American reality television series Pawn Stars where he inspected a Mustang GT alongside Rick Harrison. Logano, along with Penske teammate Brad Keselowski, appeared in the movie Sharknado 3: Oh Hell No!. He also had a cameo appearance as a security guard in the 2017 film Logan Lucky. In October 2015, he appeared on 60 Minutes alongside a Make A Wish Child who wanted to meet him, Gavin Grubbs. The two speak about the Make-A-Wish Foundation's granting of Gavin's wish. In 2016, Logano was a Fox NASCAR guest analyst for the Xfinity Series races at Phoenix and Richmond. A year later, Logano was a color commentator for the Fox broadcast of the Xfinity race at Pocono. Part of a Cup drivers-only coverage, he worked alongside Kevin Harvick and Clint Bowyer in the broadcast booth. On April 30, 2019, Logano was invited to White House in Washington D.C. by the President of United States, Donald Trump. Personal life Logano was born in Middletown, Connecticut, the son of Deborah B. and Thomas J. Logano. His father Thomas is of Italian ancestry. As a child, he also played ice hockey in addition to racing. They initially lived in Portland near the Connecticut River and eventually moved to Georgia to further his racing career. As he started his career, he earned the nickname “sliced bread” because he won a lot as a young racer. On November 13, 2013, Logano announced his engagement to childhood sweetheart Brittany Baca. He announced, via Twitter, that their wedding date was set for December 2014, during the NASCAR off-season. Logano and Baca were married on December 13, 2014. The couple announced the birth of their first child, a son named Hudson Joseph Logano, in January 2018. Their second child, a son named Jameson Jett Logano, was born on May 7, 2020. Their third child, and first daughter, was born in February 2022. Her name is Emilia Love Logano. In September 2019, Logano was diagnosed with Alopecia areata, an autoimmune disorder that attacks hair follicles. While the disease does not cause any health risks or physical effects, it does lead to patches of thinning hair or baldness, which Logano has often joked about. In December 2022, after winning his second NASCAR Cup Series Championship, Logano received hair treatment, sporting it in a twitter post. Philanthropy In March 2020, the Joey Logano Foundation partnered with Bobbee O's BBQ in Charlotte, North Carolina, to offer free meals to children during the COVID-19 lockdown. Motorsports career results Stock car career summary † As Logano was a guest driver, he was ineligible for championship points. NASCAR (key) (Bold – Pole position awarded by qualifying time. Italics – Pole position earned by points standings or practice time. * – Most laps led. ** – All laps led.) Cup Series Daytona 500 Xfinity Series Craftsman Truck Series Season still in progress Ineligible for series points Busch East Series K&N Pro Series West ARCA Re/Max Series (key) (Bold – Pole position awarded by qualifying time. Italics – Pole position earned by points standings or practice time. * – Most laps led.) References External links Official profile at Team Penske Living people 1990 births Sportspeople from Middletown, Connecticut Racing drivers from Connecticut NASCAR drivers ARCA Menards Series drivers CARS Tour drivers Rolex Sports Car Series drivers American people of Italian descent The Home Depot people NASCAR Cup Series champions Joe Gibbs Racing drivers Team Penske drivers
Sylvans S.C. is a football club based on the Channel Island of Guernsey. They are affiliated to the Guernsey Football Association and play in the FNB Priaulx League. History The club was formed in 1922. References External links Official website Football clubs in Guernsey
Le Cerneux-Péquignot is a municipality in the canton of Neuchâtel in Switzerland. History Le Cerneux-Péquignot is first mentioned in the 13th century in connection with the Pequignot of Montlebon family. Geography Le Cerneux-Péquignot has an area, , of . Of this area, or 54.9% is used for agricultural purposes, while or 40.5% is forested. Of the rest of the land, or 2.9% is settled (buildings or roads), or 0.1% is either rivers or lakes and or 1.5% is unproductive land. Of the built up area, housing and buildings made up 1.4% and transportation infrastructure made up 1.1%. Out of the forested land, 36.2% of the total land area is heavily forested and 4.2% is covered with orchards or small clusters of trees. Of the agricultural land, 0.1% is used for growing crops and 35.2% is pastures and 19.7% is used for alpine pastures. All the water in the municipality is in lakes. The municipality was located in the district of Le Locle, until the district level was eliminated on 1 January 2018. It is at an elevation of . It consists of the village of Le Cerneux-Péquignot, near the French border, along with a number of scattered hamlets and farm houses. Coat of arms The blazon of the municipal coat of arms is Between four, one in dexter and three in sinister, Pine trees Vert, issuant from Base of the same a Plough Sable. Demographics Le Cerneux-Péquignot has a population () of . , 2.9% of the population are resident foreign nationals. Over the last 10 years (2000–2010 ) the population has changed at a rate of 2.5%. It has changed at a rate of -0.9% due to migration and at a rate of 5% due to births and deaths. Most of the population () speaks French (300 or 95.8%) as their first language, German is the second most common (8 or 2.6%) and Portuguese is the third (3 or 1.0%). , the population was 53.1% male and 46.9% female. The population was made up of 167 Swiss men (51.5% of the population) and 5 (1.5%) non-Swiss men. There were 145 Swiss women (44.8%) and 7 (2.2%) non-Swiss women. Of the population in the municipality, 141 or about 45.0% were born in Le Cerneux-Péquignot and lived there in 2000. There were 99 or 31.6% who were born in the same canton, while 42 or 13.4% were born somewhere else in Switzerland, and 20 or 6.4% were born outside of Switzerland. , children and teenagers (0–19 years old) make up 26.2% of the population, while adults (20–64 years old) make up 58.8% and seniors (over 64 years old) make up 15%. , there were 120 people who were single and never married in the municipality. There were 170 married individuals, 17 widows or widowers and 6 individuals who are divorced. , there were 115 private households in the municipality, and an average of 2.7 persons per household. There were 21 households that consist of only one person and 14 households with five or more people. , a total of 109 apartments (86.5% of the total) were permanently occupied, while 14 apartments (11.1%) were seasonally occupied and 3 apartments (2.4%) were empty. The historical population is given in the following chart: Politics In the 2007 federal election the most popular party was the SVP which received 27.35% of the vote. The next three most popular parties were the LPS Party (24.22%), the Green Party (15.65%) and the SP (11.56%). In the federal election, a total of 155 votes were cast, and the voter turnout was 62.5%. Economy , Le Cerneux-Péquignot had an unemployment rate of 1.9%. , there were 48 people employed in the primary economic sector and about 20 businesses involved in this sector. 28 people were employed in the secondary sector and there were 6 businesses in this sector. 24 people were employed in the tertiary sector, with 10 businesses in this sector. There were 152 residents of the municipality who were employed in some capacity, of which females made up 40.1% of the workforce. the total number of full-time equivalent jobs was 80. The number of jobs in the primary sector was 36, all of which were in agriculture. The number of jobs in the secondary sector was 26, all of which were in manufacturing. The number of jobs in the tertiary sector was 18. In the tertiary sector; 4 or 22.2% were in wholesale or retail sales or the repair of motor vehicles, 4 or 22.2% were in a hotel or restaurant, 1 was in the information industry, 2 or 11.1% were technical professionals or scientists, 3 or 16.7% were in education. , there were 24 workers who commuted into the municipality and 70 workers who commuted away. The municipality is a net exporter of workers, with about 2.9 workers leaving the municipality for every one entering. About 29.2% of the workforce coming into Le Cerneux-Péquignot are coming from outside Switzerland. Of the working population, 5.9% used public transportation to get to work, and 44.1% used a private car. Religion From the , 171 or 54.6% were Roman Catholic, while 86 or 27.5% belonged to the Swiss Reformed Church. Of the rest of the population, there was 1 member of an Orthodox church and 1 individual who was Islamic. 40 (or about 12.78% of the population) belonged to no church, are agnostic or atheist, and 14 individuals (or about 4.47% of the population) did not answer the question. Education In Le Cerneux-Péquignot about 115 or (36.7%) of the population have completed non-mandatory upper secondary education, and 21 or (6.7%) have completed additional higher education (either university or a Fachhochschule). Of the 21 who completed tertiary schooling, 76.2% were Swiss men, 19.0% were Swiss women. In the canton of Neuchâtel most municipalities provide two years of non-mandatory kindergarten, followed by five years of mandatory primary education. The next four years of mandatory secondary education is provided at thirteen larger secondary schools, which many students travel out of their home municipality to attend. During the 2010-11 school year, there were 0.5 kindergarten classes with a total of 6 students in Le Cerneux-Péquignot. In the same year, there were 1.5 primary classes with a total of 22 students. , there was one student in Le Cerneux-Péquignot who came from another municipality, while 31 residents attended schools outside the municipality. References External links Municipalities of the canton of Neuchâtel
Events from the year 2004 in Denmark. Incumbents Monarch – Margrethe II Prime minister – Anders Fogh Rasmussen Events 14 May – The wedding of Frederik, Crown Prince of Denmark, and Mary Donaldson takes place in Copenhagen Cathedral, in Copenhagen. 26 December – Several hundreds of Danish people are among the thousands of people killed by the 2004 Indian Ocean tsunami, at least 2,000 Scandinavians still missing in Thailand. The arts 10 June – Gala concert with the Danish National Symphony Orchestra in Tivoli Concert Hall, celebrating Henrik, the Prince Consort of Denmark's 70th birthday, with the premiere performance of Frederik Magle's symphonic poem Souffle le vent from the Cantabile suite. Sports 13–29 August — Denmark at the 2004 Summer Olympics in Athens: Two gold medals and six bronze medals Football 20 May — FC Copenhagen wins the 2003–04 Danish Cup by defeating Aalborg BK 1–0 in the final. 12 June – 4 July — Denmark participates at the UEFA Euro 2004 in Portugal. 22 June – Denmark qualifies for the quarter-finals by drawing with Sweden in the last group stage match. 27 June – Denmark is defeated by Czech Republic in the quarter-final. Badminton Greve Strands BK wins Europe Cup. 914 March – Jens Eriksen and Martin Lundgaard Hansen wins gold in men's double at the 2004 All England Open Badminton Championships. 16–24 April – With three gold medals, three silver medals and five bronze medals, Denmark finishes as the best nation at the 19th European Badminton Championships in Geneve, Switzerland. Handball 1 February — Denmark takes bronze at the 2004 European Men's Handball Championship by defeating Croatia 31–27 in the third place play-off. 29 August — Denmark wins gold in the Women's handball tournament at the 2004 Summer Olympics by defeating South Korea in the final. 15 December — Denmark wins silver at the 2004 European Women's Handball Championship after being defeated 27–25 by Norway in the final. Other 13 June — Tom Kristensen wins the 2004 24 Hours of Le Mans as part of Audi Sport Japan Team Goh, his sixth win of the 24 Hours of Le Mans race. 5–16 May Denmark wins two bronze medals at the 2004 European Aquatics Championships. 25 July — Michael Rasmussen finishes 3rd in the Mountains classification in the 2004 Tour de France. 12 November — Mikkel Kessler becomes WBA championship ny defeating Manny Siaca in Copenhagen after taking on the match on a short notice after his stablemate, Mads Larsen, had been injured in training. Births 20 June William Clem, footballer Deaths JanuaryMarch 6 February – Jørgen Jersild, composer and music educator (born 1913) 5 March – Hanne Budtz, politician and lawyer (born 1915) AprilJune 1 May – Ejler Bille, artist (born 1910) 5 May – Kate Mundt, actress (born 1930) JulySeptember 4 September Rasmus Nellemannm painter and graphic artist (died 1923) 14 September – Ove Sprogøe, actor (born 1919) OctoberDecember 13 December – Jørn Larsen, painter and sculptor (born 1926) See also 2004 in Danish television References Denmark Years of the 21st century in Denmark 2000s in Denmark Denmark
Get In () is a 2019 French horror thriller film written and directed by Olivier Abbou. The film stars Adama Niane, Stéphane Caillard and Paul Hamy in the lead roles. It was released in France on 6 November 2019 and received positive reviews from critics. It was later released on Netflix on 1 May 2020. Plot Upon returning home from their motor-homing vacation, Paul Diallo, his wife Chloé (Stéphane Caillard), and their son Louis find their house occupied by squatters who refuse to leave, claiming that it is in fact their house. It is soon revealed that the squatters are Sabrina Bolso (the family's regular babysitter) and her partner Eric, who had come to an informal agreement with the family to stay in their home whilst they were on holiday. With all parties having signed a document agreeing to the unspecific occupancy of the house, the police claim the family have no legal right to formally evict them, and could be accused of assault should they enforce eviction themselves. Defeated, the family resort to living from their motorhome in an abandoned campsite owned by the insouciant Mickey, an old school-friend of Chloé. After unhelpful meetings with their solicitor, and hopes of regaining their home dwindling with delayed court dates, Paul grows frustrated and seeks comfort in Mickey and his carefree friends. Mickey tells Paul he believes Paul is "choosing to be a victim" and encourages him to start taking charge of his life. Following several wild late-night parties out with Mickey, Paul grows accustomed to their anarchic, often male-chauvinistic, way of life, and follows their advice to take back control through severe means. In an attempt to intimidate, he permanently parks the motorhome in their backyard, claiming the squatters can't legally force them to leave either, as they are still tenants too. Tension between Paul and Chloé mounts right away. At school, where Paul teaches teenagers history, the camera draws attention to a young couple in class who is mixed much like Paul and Chloé are. A discussion of John Locke’s ideas on property leads the black male student of the couple, Kevin, to proclaim that a robbery is the fault of the robbed for being weak and insufficiently masculine. Paul is incensed and immediately dismisses the boy who storms out bemoaning Paul for being an “Oreo” —- explained later as “black on the outside; white on the inside.” Growing worried for her husband's stability, Chloé warns Mickey to stay away from Paul - wherein it is revealed that the pair previously shared an intimate relationship, and likely had an affair whilst Paul and Chloé have been married. However, Mickey takes Paul out one last time. Paul becomes disgusted and overwhelmed when, in a drunken, drug-fueled state, he accepts oral sex from a strange woman at a party. Whilst she goes down on him in a bathroom stall he begins to trip. The experience seems positive at first but Paul ultimately finds her vampire fangs too much and runs out of the club. There in the club parking lot Paul finds none other than Kevin being beaten unrecognizable by Mickey and his gang armed with bats and brass knuckles. Off to the side his girlfriend is being restrained, forced to watch with no recourse, screaming for help. Upon noticing Paul the girl cries out in terror “Mr. Diallo! Help us Mr. Diallo! Please help us!” Franck tries to assuage Paul's concerns and the camera fades to black. It then fades to Paul laboriously walking down the side of some road when Mickey and Franck spot him and stop their truck alongside him. Paul effectively tells Mickey to leave him alone and Mickey strikes him and drives off laughing. Later that same night, Paul and Chloé are shocked to see Mickey and his friends storm the house, armed with Molotov cocktails and baseball bats. When confronted by Paul, Mickey tells him "I'll take your house, as you can't do it yourself," and decides to burn the entire house. Mickey viciously beats Eric to a bloody pulp before he and his friends attack Paul and Chloé. As Paul retains consciousness, he watches helplessly as Mickey's friends destroy the family's belongings. Aware that Paul won't fight back, Mickey mounts and strips the semi-conscious, bloodied Chloé - while his friends torture Sabrina and Eric by forcibly vacuum packing them, slowly suffocating them. Paul manages to hide Chloé in a closet, and sneaks outside to the motorhome, wherein he drives into the side of the house, knocking down a few of Mickey's friends. Managing to ambush Franck from under the motorhome, Paul brutally smashes his skull with a brick. Now faced only with Mickey, he opens the RVs cooking gas valve, lures him inside the motorhome, and throws a Molotov cocktail at the vehicle, causing it to explode. Miraculously, though weak and burned, Mickey survives and attacks Paul. Chloé is able to incapacitate him using a pressure washer, before Paul mercilessly beats him with a baseball bat. As Paul looks down at Mickey's bloodied face, he sees a flash of his own face, before the body briefly springs back to life to utter, "You got your house back.", before falling back down. The couple return to the burning house to rescue Sabrina, only for Paul to glance back at Mickey's body to find he has vanished. Some time later, the family has successfully moved back into what remains of their home. After putting Louis to bed, the couple (both visually bruised and scarred) engage in passionate sex. Neither Mickey's ultimate whereabouts, nor Kevin and his girlfriend's ultimate well-being are ever addressed. Cast Adama Niane as Paul Diallo Stéphane Caillard as Chloé Diallo Paul Hamy as Mickey Matthieu Kacou as Louis Diallo Marie Bourin as Sabrina Bolso Hubert Delattre as Eric Bolso Coline Beal as La rousse Eddy Leduc as Franck Jacques Herlin as Le juge Critical reception Writing for Movie Nation, Roger Moore called the movie "a taut, troubling and topical French thriller". Albert Nowicki of His Name Is Death opined that the film was inspired by 1970s psychological thrillers, most notably Straw Dogs. He also praised the dynamics between the two central characters portrayed by Paul Hamy and Adama Niane. References External links 2019 films 2019 horror thriller films French horror thriller films 2010s French-language films Home invasions in film New French Extremity films Squatting in film 2010s French films
```javascript /******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ var parentJsonpFunction = window["webpackJsonp"]; /******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) { /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0, callbacks = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(installedChunks[chunkId]) /******/ callbacks.push.apply(callbacks, installedChunks[chunkId]); /******/ installedChunks[chunkId] = 0; /******/ } /******/ for(moduleId in moreModules) { /******/ modules[moduleId] = moreModules[moduleId]; /******/ } /******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules); /******/ while(callbacks.length) /******/ callbacks.shift().call(null, __webpack_require__); /******/ if(moreModules[0]) { /******/ installedModules[0] = 0; /******/ return __webpack_require__(0); /******/ } /******/ }; /******/ // The module cache /******/ var installedModules = {}; /******/ // object to store loaded and loading chunks /******/ // "0" means "already loaded" /******/ // Array means "loading", array contains callbacks /******/ var installedChunks = { /******/ 1:0 /******/ }; /******/ // 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; /******/ } /******/ // This file contains only the entry chunk. /******/ // The chunk loading function for additional chunks /******/ __webpack_require__.e = function requireEnsure(chunkId, callback) { /******/ // "0" is the signal for "already loaded" /******/ if(installedChunks[chunkId] === 0) /******/ return callback.call(null, __webpack_require__); /******/ // an array means "currently loading". /******/ if(installedChunks[chunkId] !== undefined) { /******/ installedChunks[chunkId].push(callback); /******/ } else { /******/ // start chunk loading /******/ installedChunks[chunkId] = [callback]; /******/ var head = document.getElementsByTagName('head')[0]; /******/ var script = document.createElement('script'); /******/ script.type = 'text/javascript'; /******/ script.charset = 'utf-8'; /******/ script.async = true; /******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"app"}[chunkId]||chunkId) + ".js"; /******/ head.appendChild(script); /******/ } /******/ }; /******/ // 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__) { __webpack_require__(1); module.exports = __webpack_require__(159); /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; module.exports = __webpack_require__(2); /***/ }, /* 2 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule React */ 'use strict'; var ReactDOM = __webpack_require__(3); var ReactDOMServer = __webpack_require__(148); var ReactIsomorphic = __webpack_require__(152); var assign = __webpack_require__(39); var deprecated = __webpack_require__(157); // `version` will be added here by ReactIsomorphic. var React = {}; assign(React, ReactIsomorphic); assign(React, { // ReactDOM findDOMNode: deprecated('findDOMNode', 'ReactDOM', 'react-dom', ReactDOM, ReactDOM.findDOMNode), render: deprecated('render', 'ReactDOM', 'react-dom', ReactDOM, ReactDOM.render), unmountComponentAtNode: deprecated('unmountComponentAtNode', 'ReactDOM', 'react-dom', ReactDOM, ReactDOM.unmountComponentAtNode), // ReactDOMServer renderToString: deprecated('renderToString', 'ReactDOMServer', 'react-dom/server', ReactDOMServer, ReactDOMServer.renderToString), renderToStaticMarkup: deprecated('renderToStaticMarkup', 'ReactDOMServer', 'react-dom/server', ReactDOMServer, ReactDOMServer.renderToStaticMarkup) }); React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOM; React.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOMServer; module.exports = React; /***/ }, /* 3 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOM */ /* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/ 'use strict'; var ReactCurrentOwner = __webpack_require__(5); var ReactDOMTextComponent = __webpack_require__(6); var ReactDefaultInjection = __webpack_require__(71); var ReactInstanceHandles = __webpack_require__(45); var ReactMount = __webpack_require__(28); var ReactPerf = __webpack_require__(18); var ReactReconciler = __webpack_require__(50); var ReactUpdates = __webpack_require__(54); var ReactVersion = __webpack_require__(146); var findDOMNode = __webpack_require__(91); var renderSubtreeIntoContainer = __webpack_require__(147); var warning = __webpack_require__(25); ReactDefaultInjection.inject(); var render = ReactPerf.measure('React', 'render', ReactMount.render); var React = { findDOMNode: findDOMNode, render: render, unmountComponentAtNode: ReactMount.unmountComponentAtNode, version: ReactVersion, /* eslint-disable camelcase */ unstable_batchedUpdates: ReactUpdates.batchedUpdates, unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer }; // Inject the runtime into a devtools global hook regardless of browser. // Allows for debugging when the hook is injected on the page. /* eslint-enable camelcase */ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') { __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ CurrentOwner: ReactCurrentOwner, InstanceHandles: ReactInstanceHandles, Mount: ReactMount, Reconciler: ReactReconciler, TextComponent: ReactDOMTextComponent }); } if (process.env.NODE_ENV !== 'production') { var ExecutionEnvironment = __webpack_require__(9); if (ExecutionEnvironment.canUseDOM && window.top === window.self) { // First check if devtools is not installed if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { // If we're in Chrome or Firefox, provide a download link if not installed. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) { console.debug('Download the React DevTools for a better development experience: ' + 'path_to_url } } // If we're in IE8, check to see if we are in compatibility mode and provide // information on preventing compatibility mode var ieCompatibilityMode = document.documentMode && document.documentMode < 8; process.env.NODE_ENV !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '<meta http-equiv="X-UA-Compatible" content="IE=edge" />') : undefined; var expectedFeatures = [ // shims Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.split, String.prototype.trim, // shams Object.create, Object.freeze]; for (var i = 0; i < expectedFeatures.length; i++) { if (!expectedFeatures[i]) { console.error('One or more ES5 shim/shams expected by React are not available: ' + 'path_to_url break; } } } } module.exports = React; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 4 */ /***/ function(module, exports) { // shim for using process in browser var process = module.exports = {}; var queue = []; var draining = false; var currentQueue; var queueIndex = -1; function cleanUpNextTick() { draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { drainQueue(); } } function drainQueue() { if (draining) { return; } var timeout = setTimeout(cleanUpNextTick); draining = true; var len = queue.length; while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { if (currentQueue) { currentQueue[queueIndex].run(); } } queueIndex = -1; len = queue.length; } currentQueue = null; draining = false; clearTimeout(timeout); } process.nextTick = function (fun) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i = 1; i < arguments.length; i++) { args[i - 1] = arguments[i]; } } queue.push(new Item(fun, args)); if (queue.length === 1 && !draining) { setTimeout(drainQueue, 0); } }; // v8 likes predictible objects function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.binding = function (name) { throw new Error('process.binding is not supported'); }; process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; /***/ }, /* 5 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactCurrentOwner */ 'use strict'; /** * Keeps track of the current owner. * * The current owner is the component who should own any components that are * currently being constructed. */ var ReactCurrentOwner = { /** * @internal * @type {ReactComponent} */ current: null }; module.exports = ReactCurrentOwner; /***/ }, /* 6 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMTextComponent * @typechecks static-only */ 'use strict'; var DOMChildrenOperations = __webpack_require__(7); var DOMPropertyOperations = __webpack_require__(22); var ReactComponentBrowserEnvironment = __webpack_require__(26); var ReactMount = __webpack_require__(28); var assign = __webpack_require__(39); var escapeTextContentForBrowser = __webpack_require__(21); var setTextContent = __webpack_require__(20); var validateDOMNesting = __webpack_require__(70); /** * Text nodes violate a couple assumptions that React makes about components: * * - When mounting text into the DOM, adjacent text nodes are merged. * - Text nodes cannot be assigned a React root ID. * * This component is used to wrap strings in elements so that they can undergo * the same reconciliation that is applied to elements. * * TODO: Investigate representing React components in the DOM with text nodes. * * @class ReactDOMTextComponent * @extends ReactComponent * @internal */ var ReactDOMTextComponent = function (props) { // This constructor and its argument is currently used by mocks. }; assign(ReactDOMTextComponent.prototype, { /** * @param {ReactText} text * @internal */ construct: function (text) { // TODO: This is really a ReactText (ReactNode), not a ReactElement this._currentElement = text; this._stringText = '' + text; // Properties this._rootNodeID = null; this._mountIndex = 0; }, /** * Creates the markup for this text node. This node is not intended to have * any features besides containing text content. * * @param {string} rootID DOM ID of the root node. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction * @return {string} Markup for this text node. * @internal */ mountComponent: function (rootID, transaction, context) { if (process.env.NODE_ENV !== 'production') { if (context[validateDOMNesting.ancestorInfoContextKey]) { validateDOMNesting('span', null, context[validateDOMNesting.ancestorInfoContextKey]); } } this._rootNodeID = rootID; if (transaction.useCreateElement) { var ownerDocument = context[ReactMount.ownerDocumentContextKey]; var el = ownerDocument.createElement('span'); DOMPropertyOperations.setAttributeForID(el, rootID); // Populate node cache ReactMount.getID(el); setTextContent(el, this._stringText); return el; } else { var escapedText = escapeTextContentForBrowser(this._stringText); if (transaction.renderToStaticMarkup) { // Normally we'd wrap this in a `span` for the reasons stated above, but // since this is a situation where React won't take over (static pages), // we can simply return the text as it is. return escapedText; } return '<span ' + DOMPropertyOperations.createMarkupForID(rootID) + '>' + escapedText + '</span>'; } }, /** * Updates this component by updating the text content. * * @param {ReactText} nextText The next text content * @param {ReactReconcileTransaction} transaction * @internal */ receiveComponent: function (nextText, transaction) { if (nextText !== this._currentElement) { this._currentElement = nextText; var nextStringText = '' + nextText; if (nextStringText !== this._stringText) { // TODO: Save this as pending props and use performUpdateIfNecessary // and/or updateComponent to do the actual update for consistency with // other component types? this._stringText = nextStringText; var node = ReactMount.getNode(this._rootNodeID); DOMChildrenOperations.updateTextContent(node, nextStringText); } } }, unmountComponent: function () { ReactComponentBrowserEnvironment.unmountIDFromEnvironment(this._rootNodeID); } }); module.exports = ReactDOMTextComponent; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule DOMChildrenOperations * @typechecks static-only */ 'use strict'; var Danger = __webpack_require__(8); var ReactMultiChildUpdateTypes = __webpack_require__(16); var ReactPerf = __webpack_require__(18); var setInnerHTML = __webpack_require__(19); var setTextContent = __webpack_require__(20); var invariant = __webpack_require__(13); /** * Inserts `childNode` as a child of `parentNode` at the `index`. * * @param {DOMElement} parentNode Parent node in which to insert. * @param {DOMElement} childNode Child node to insert. * @param {number} index Index at which to insert the child. * @internal */ function insertChildAt(parentNode, childNode, index) { // By exploiting arrays returning `undefined` for an undefined index, we can // rely exclusively on `insertBefore(node, null)` instead of also using // `appendChild(node)`. However, using `undefined` is not allowed by all // browsers so we must replace it with `null`. // fix render order error in safari // IE8 will throw error when index out of list size. var beforeChild = index >= parentNode.childNodes.length ? null : parentNode.childNodes.item(index); parentNode.insertBefore(childNode, beforeChild); } /** * Operations for updating with DOM children. */ var DOMChildrenOperations = { dangerouslyReplaceNodeWithMarkup: Danger.dangerouslyReplaceNodeWithMarkup, updateTextContent: setTextContent, /** * Updates a component's children by processing a series of updates. The * update configurations are each expected to have a `parentNode` property. * * @param {array<object>} updates List of update configurations. * @param {array<string>} markupList List of markup strings. * @internal */ processUpdates: function (updates, markupList) { var update; // Mapping from parent IDs to initial child orderings. var initialChildren = null; // List of children that will be moved or removed. var updatedChildren = null; for (var i = 0; i < updates.length; i++) { update = updates[i]; if (update.type === ReactMultiChildUpdateTypes.MOVE_EXISTING || update.type === ReactMultiChildUpdateTypes.REMOVE_NODE) { var updatedIndex = update.fromIndex; var updatedChild = update.parentNode.childNodes[updatedIndex]; var parentID = update.parentID; !updatedChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'processUpdates(): Unable to find child %s of element. This ' + 'probably means the DOM was unexpectedly mutated (e.g., by the ' + 'browser), usually due to forgetting a <tbody> when using tables, ' + 'nesting tags like <form>, <p>, or <a>, or using non-SVG elements ' + 'in an <svg> parent. Try inspecting the child nodes of the element ' + 'with React ID `%s`.', updatedIndex, parentID) : invariant(false) : undefined; initialChildren = initialChildren || {}; initialChildren[parentID] = initialChildren[parentID] || []; initialChildren[parentID][updatedIndex] = updatedChild; updatedChildren = updatedChildren || []; updatedChildren.push(updatedChild); } } var renderedMarkup; // markupList is either a list of markup or just a list of elements if (markupList.length && typeof markupList[0] === 'string') { renderedMarkup = Danger.dangerouslyRenderMarkup(markupList); } else { renderedMarkup = markupList; } // Remove updated children first so that `toIndex` is consistent. if (updatedChildren) { for (var j = 0; j < updatedChildren.length; j++) { updatedChildren[j].parentNode.removeChild(updatedChildren[j]); } } for (var k = 0; k < updates.length; k++) { update = updates[k]; switch (update.type) { case ReactMultiChildUpdateTypes.INSERT_MARKUP: insertChildAt(update.parentNode, renderedMarkup[update.markupIndex], update.toIndex); break; case ReactMultiChildUpdateTypes.MOVE_EXISTING: insertChildAt(update.parentNode, initialChildren[update.parentID][update.fromIndex], update.toIndex); break; case ReactMultiChildUpdateTypes.SET_MARKUP: setInnerHTML(update.parentNode, update.content); break; case ReactMultiChildUpdateTypes.TEXT_CONTENT: setTextContent(update.parentNode, update.content); break; case ReactMultiChildUpdateTypes.REMOVE_NODE: // Already removed by the for-loop above. break; } } } }; ReactPerf.measureMethods(DOMChildrenOperations, 'DOMChildrenOperations', { updateTextContent: 'updateTextContent' }); module.exports = DOMChildrenOperations; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 8 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule Danger * @typechecks static-only */ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var createNodesFromMarkup = __webpack_require__(10); var emptyFunction = __webpack_require__(15); var getMarkupWrap = __webpack_require__(14); var invariant = __webpack_require__(13); var OPEN_TAG_NAME_EXP = /^(<[^ \/>]+)/; var RESULT_INDEX_ATTR = 'data-danger-index'; /** * Extracts the `nodeName` from a string of markup. * * NOTE: Extracting the `nodeName` does not require a regular expression match * because we make assumptions about React-generated markup (i.e. there are no * spaces surrounding the opening tag and there is at least one attribute). * * @param {string} markup String of markup. * @return {string} Node name of the supplied markup. * @see path_to_url */ function getNodeName(markup) { return markup.substring(1, markup.indexOf(' ')); } var Danger = { /** * Renders markup into an array of nodes. The markup is expected to render * into a list of root nodes. Also, the length of `resultList` and * `markupList` should be the same. * * @param {array<string>} markupList List of markup strings to render. * @return {array<DOMElement>} List of rendered nodes. * @internal */ dangerouslyRenderMarkup: function (markupList) { !ExecutionEnvironment.canUseDOM ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyRenderMarkup(...): Cannot render markup in a worker ' + 'thread. Make sure `window` and `document` are available globally ' + 'before requiring React when unit testing or use ' + 'ReactDOMServer.renderToString for server rendering.') : invariant(false) : undefined; var nodeName; var markupByNodeName = {}; // Group markup by `nodeName` if a wrap is necessary, else by '*'. for (var i = 0; i < markupList.length; i++) { !markupList[i] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyRenderMarkup(...): Missing markup.') : invariant(false) : undefined; nodeName = getNodeName(markupList[i]); nodeName = getMarkupWrap(nodeName) ? nodeName : '*'; markupByNodeName[nodeName] = markupByNodeName[nodeName] || []; markupByNodeName[nodeName][i] = markupList[i]; } var resultList = []; var resultListAssignmentCount = 0; for (nodeName in markupByNodeName) { if (!markupByNodeName.hasOwnProperty(nodeName)) { continue; } var markupListByNodeName = markupByNodeName[nodeName]; // This for-in loop skips the holes of the sparse array. The order of // iteration should follow the order of assignment, which happens to match // numerical index order, but we don't rely on that. var resultIndex; for (resultIndex in markupListByNodeName) { if (markupListByNodeName.hasOwnProperty(resultIndex)) { var markup = markupListByNodeName[resultIndex]; // Push the requested markup with an additional RESULT_INDEX_ATTR // attribute. If the markup does not start with a < character, it // will be discarded below (with an appropriate console.error). markupListByNodeName[resultIndex] = markup.replace(OPEN_TAG_NAME_EXP, // This index will be parsed back out below. '$1 ' + RESULT_INDEX_ATTR + '="' + resultIndex + '" '); } } // Render each group of markup with similar wrapping `nodeName`. var renderNodes = createNodesFromMarkup(markupListByNodeName.join(''), emptyFunction // Do nothing special with <script> tags. ); for (var j = 0; j < renderNodes.length; ++j) { var renderNode = renderNodes[j]; if (renderNode.hasAttribute && renderNode.hasAttribute(RESULT_INDEX_ATTR)) { resultIndex = +renderNode.getAttribute(RESULT_INDEX_ATTR); renderNode.removeAttribute(RESULT_INDEX_ATTR); !!resultList.hasOwnProperty(resultIndex) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Danger: Assigning to an already-occupied result index.') : invariant(false) : undefined; resultList[resultIndex] = renderNode; // This should match resultList.length and markupList.length when // we're done. resultListAssignmentCount += 1; } else if (process.env.NODE_ENV !== 'production') { console.error('Danger: Discarding unexpected node:', renderNode); } } } // Although resultList was populated out of order, it should now be a dense // array. !(resultListAssignmentCount === resultList.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Danger: Did not assign to every index of resultList.') : invariant(false) : undefined; !(resultList.length === markupList.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Danger: Expected markup to render %s nodes, but rendered %s.', markupList.length, resultList.length) : invariant(false) : undefined; return resultList; }, /** * Replaces a node with a string of markup at its current position within its * parent. The markup must render into a single root node. * * @param {DOMElement} oldChild Child node to replace. * @param {string} markup Markup to render in place of the child node. * @internal */ dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) { !ExecutionEnvironment.canUseDOM ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a ' + 'worker thread. Make sure `window` and `document` are available ' + 'globally before requiring React when unit testing or use ' + 'ReactDOMServer.renderToString() for server rendering.') : invariant(false) : undefined; !markup ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : invariant(false) : undefined; !(oldChild.tagName.toLowerCase() !== 'html') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the ' + '<html> node. This is because browser quirks make this unreliable ' + 'and/or slow. If you want to render to the root you must use ' + 'server rendering. See ReactDOMServer.renderToString().') : invariant(false) : undefined; var newChild; if (typeof markup === 'string') { newChild = createNodesFromMarkup(markup, emptyFunction)[0]; } else { newChild = markup; } oldChild.parentNode.replaceChild(newChild, oldChild); } }; module.exports = Danger; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 9 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ExecutionEnvironment */ 'use strict'; var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); /** * Simple, lightweight module assisting with the detection and context of * Worker. Helps avoid circular dependencies and allows code to reason about * whether or not they are in a Worker, even if they never include the main * `ReactWorker` dependency. */ var ExecutionEnvironment = { canUseDOM: canUseDOM, canUseWorkers: typeof Worker !== 'undefined', canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), canUseViewport: canUseDOM && !!window.screen, isInWorker: !canUseDOM // For now, this is true - might change in the future. }; module.exports = ExecutionEnvironment; /***/ }, /* 10 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule createNodesFromMarkup * @typechecks */ /*eslint-disable fb-www/unsafe-html*/ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var createArrayFromMixed = __webpack_require__(11); var getMarkupWrap = __webpack_require__(14); var invariant = __webpack_require__(13); /** * Dummy container used to render all markup. */ var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null; /** * Pattern used by `getNodeName`. */ var nodeNamePattern = /^\s*<(\w+)/; /** * Extracts the `nodeName` of the first element in a string of markup. * * @param {string} markup String of markup. * @return {?string} Node name of the supplied markup. */ function getNodeName(markup) { var nodeNameMatch = markup.match(nodeNamePattern); return nodeNameMatch && nodeNameMatch[1].toLowerCase(); } /** * Creates an array containing the nodes rendered from the supplied markup. The * optionally supplied `handleScript` function will be invoked once for each * <script> element that is rendered. If no `handleScript` function is supplied, * an exception is thrown if any <script> elements are rendered. * * @param {string} markup A string of valid HTML markup. * @param {?function} handleScript Invoked once for each rendered <script>. * @return {array<DOMElement|DOMTextNode>} An array of rendered nodes. */ function createNodesFromMarkup(markup, handleScript) { var node = dummyNode; !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : undefined; var nodeName = getNodeName(markup); var wrap = nodeName && getMarkupWrap(nodeName); if (wrap) { node.innerHTML = wrap[1] + markup + wrap[2]; var wrapDepth = wrap[0]; while (wrapDepth--) { node = node.lastChild; } } else { node.innerHTML = markup; } var scripts = node.getElementsByTagName('script'); if (scripts.length) { !handleScript ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createNodesFromMarkup(...): Unexpected <script> element rendered.') : invariant(false) : undefined; createArrayFromMixed(scripts).forEach(handleScript); } var nodes = createArrayFromMixed(node.childNodes); while (node.lastChild) { node.removeChild(node.lastChild); } return nodes; } module.exports = createNodesFromMarkup; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 11 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule createArrayFromMixed * @typechecks */ 'use strict'; var toArray = __webpack_require__(12); /** * Perform a heuristic test to determine if an object is "array-like". * * A monk asked Joshu, a Zen master, "Has a dog Buddha nature?" * Joshu replied: "Mu." * * This function determines if its argument has "array nature": it returns * true if the argument is an actual array, an `arguments' object, or an * HTMLCollection (e.g. node.childNodes or node.getElementsByTagName()). * * It will return false for other array-like objects like Filelist. * * @param {*} obj * @return {boolean} */ function hasArrayNature(obj) { return( // not null/false !!obj && ( // arrays are objects, NodeLists are functions in Safari typeof obj == 'object' || typeof obj == 'function') && // quacks like an array 'length' in obj && // not window !('setInterval' in obj) && // no DOM node should be considered an array-like // a 'select' element has 'length' and 'item' properties on IE8 typeof obj.nodeType != 'number' && ( // a real array Array.isArray(obj) || // arguments 'callee' in obj || // HTMLCollection/NodeList 'item' in obj) ); } /** * Ensure that the argument is an array by wrapping it in an array if it is not. * Creates a copy of the argument if it is already an array. * * This is mostly useful idiomatically: * * var createArrayFromMixed = require('createArrayFromMixed'); * * function takesOneOrMoreThings(things) { * things = createArrayFromMixed(things); * ... * } * * This allows you to treat `things' as an array, but accept scalars in the API. * * If you need to convert an array-like object, like `arguments`, into an array * use toArray instead. * * @param {*} obj * @return {array} */ function createArrayFromMixed(obj) { if (!hasArrayNature(obj)) { return [obj]; } else if (Array.isArray(obj)) { return obj.slice(); } else { return toArray(obj); } } module.exports = createArrayFromMixed; /***/ }, /* 12 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule toArray * @typechecks */ 'use strict'; var invariant = __webpack_require__(13); /** * Convert array-like objects to arrays. * * This API assumes the caller knows the contents of the data type. For less * well defined inputs use createArrayFromMixed. * * @param {object|function|filelist} obj * @return {array} */ function toArray(obj) { var length = obj.length; // Some browse builtin objects can report typeof 'function' (e.g. NodeList in // old versions of Safari). !(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : undefined; !(typeof length === 'number') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : undefined; !(length === 0 || length - 1 in obj) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : undefined; // Old IE doesn't give collections access to hasOwnProperty. Assume inputs // without method will throw during the slice call and skip straight to the // fallback. if (obj.hasOwnProperty) { try { return Array.prototype.slice.call(obj); } catch (e) { // IE < 9 does not support Array#slice on collections objects } } // Fall back to copying key by key. This assumes all keys have a value, // so will not preserve sparsely populated inputs. var ret = Array(length); for (var ii = 0; ii < length; ii++) { ret[ii] = obj[ii]; } return ret; } module.exports = toArray; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 13 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule invariant */ 'use strict'; /** * Use invariant() to assert state which your program assumes to be true. * * Provide sprintf-style format (only %s is supported) and arguments * to provide information about what broke and what you were * expecting. * * The invariant message will be stripped in production, but the invariant * will remain to ensure logic does not differ in production. */ function invariant(condition, format, a, b, c, d, e, f) { if (process.env.NODE_ENV !== 'production') { if (format === undefined) { throw new Error('invariant requires an error message argument'); } } if (!condition) { var error; if (format === undefined) { error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); } else { var args = [a, b, c, d, e, f]; var argIndex = 0; error = new Error(format.replace(/%s/g, function () { return args[argIndex++]; })); error.name = 'Invariant Violation'; } error.framesToPop = 1; // we don't care about invariant's own frame throw error; } } module.exports = invariant; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 14 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getMarkupWrap */ /*eslint-disable fb-www/unsafe-html */ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var invariant = __webpack_require__(13); /** * Dummy container used to detect which wraps are necessary. */ var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null; /** * Some browsers cannot use `innerHTML` to render certain elements standalone, * so we wrap them, render the wrapped nodes, then extract the desired node. * * In IE8, certain elements cannot render alone, so wrap all elements ('*'). */ var shouldWrap = {}; var selectWrap = [1, '<select multiple="true">', '</select>']; var tableWrap = [1, '<table>', '</table>']; var trWrap = [3, '<table><tbody><tr>', '</tr></tbody></table>']; var svgWrap = [1, '<svg xmlns="path_to_url">', '</svg>']; var markupWrap = { '*': [1, '?<div>', '</div>'], 'area': [1, '<map>', '</map>'], 'col': [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'], 'legend': [1, '<fieldset>', '</fieldset>'], 'param': [1, '<object>', '</object>'], 'tr': [2, '<table><tbody>', '</tbody></table>'], 'optgroup': selectWrap, 'option': selectWrap, 'caption': tableWrap, 'colgroup': tableWrap, 'tbody': tableWrap, 'tfoot': tableWrap, 'thead': tableWrap, 'td': trWrap, 'th': trWrap }; // Initialize the SVG elements since we know they'll always need to be wrapped // consistently. If they are created inside a <div> they will be initialized in // the wrong namespace (and will not display). var svgElements = ['circle', 'clipPath', 'defs', 'ellipse', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'text', 'tspan']; svgElements.forEach(function (nodeName) { markupWrap[nodeName] = svgWrap; shouldWrap[nodeName] = true; }); /** * Gets the markup wrap configuration for the supplied `nodeName`. * * NOTE: This lazily detects which wraps are necessary for the current browser. * * @param {string} nodeName Lowercase `nodeName`. * @return {?array} Markup wrap configuration, if applicable. */ function getMarkupWrap(nodeName) { !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Markup wrapping node not initialized') : invariant(false) : undefined; if (!markupWrap.hasOwnProperty(nodeName)) { nodeName = '*'; } if (!shouldWrap.hasOwnProperty(nodeName)) { if (nodeName === '*') { dummyNode.innerHTML = '<link />'; } else { dummyNode.innerHTML = '<' + nodeName + '></' + nodeName + '>'; } shouldWrap[nodeName] = !dummyNode.firstChild; } return shouldWrap[nodeName] ? markupWrap[nodeName] : null; } module.exports = getMarkupWrap; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 15 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule emptyFunction */ "use strict"; function makeEmptyFunction(arg) { return function () { return arg; }; } /** * This function accepts and discards inputs; it has no side effects. This is * primarily useful idiomatically for overridable function endpoints which * always need to be callable, since JS lacks a null-call idiom ala Cocoa. */ function emptyFunction() {} emptyFunction.thatReturns = makeEmptyFunction; emptyFunction.thatReturnsFalse = makeEmptyFunction(false); emptyFunction.thatReturnsTrue = makeEmptyFunction(true); emptyFunction.thatReturnsNull = makeEmptyFunction(null); emptyFunction.thatReturnsThis = function () { return this; }; emptyFunction.thatReturnsArgument = function (arg) { return arg; }; module.exports = emptyFunction; /***/ }, /* 16 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactMultiChildUpdateTypes */ 'use strict'; var keyMirror = __webpack_require__(17); /** * When a component's children are updated, a series of update configuration * objects are created in order to batch and serialize the required changes. * * Enumerates all the possible types of update configurations. * * @internal */ var ReactMultiChildUpdateTypes = keyMirror({ INSERT_MARKUP: null, MOVE_EXISTING: null, REMOVE_NODE: null, SET_MARKUP: null, TEXT_CONTENT: null }); module.exports = ReactMultiChildUpdateTypes; /***/ }, /* 17 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule keyMirror * @typechecks static-only */ 'use strict'; var invariant = __webpack_require__(13); /** * Constructs an enumeration with keys equal to their value. * * For example: * * var COLORS = keyMirror({blue: null, red: null}); * var myColor = COLORS.blue; * var isColorValid = !!COLORS[myColor]; * * The last line could not be performed if the values of the generated enum were * not equal to their keys. * * Input: {key1: val1, key2: val2} * Output: {key1: key1, key2: key2} * * @param {object} obj * @return {object} */ var keyMirror = function (obj) { var ret = {}; var key; !(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : undefined; for (key in obj) { if (!obj.hasOwnProperty(key)) { continue; } ret[key] = key; } return ret; }; module.exports = keyMirror; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 18 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactPerf * @typechecks static-only */ 'use strict'; /** * ReactPerf is a general AOP system designed to measure performance. This * module only has the hooks: see ReactDefaultPerf for the analysis tool. */ var ReactPerf = { /** * Boolean to enable/disable measurement. Set to false by default to prevent * accidental logging and perf loss. */ enableMeasure: false, /** * Holds onto the measure function in use. By default, don't measure * anything, but we'll override this if we inject a measure function. */ storedMeasure: _noMeasure, /** * @param {object} object * @param {string} objectName * @param {object<string>} methodNames */ measureMethods: function (object, objectName, methodNames) { if (process.env.NODE_ENV !== 'production') { for (var key in methodNames) { if (!methodNames.hasOwnProperty(key)) { continue; } object[key] = ReactPerf.measure(objectName, methodNames[key], object[key]); } } }, /** * Use this to wrap methods you want to measure. Zero overhead in production. * * @param {string} objName * @param {string} fnName * @param {function} func * @return {function} */ measure: function (objName, fnName, func) { if (process.env.NODE_ENV !== 'production') { var measuredFunc = null; var wrapper = function () { if (ReactPerf.enableMeasure) { if (!measuredFunc) { measuredFunc = ReactPerf.storedMeasure(objName, fnName, func); } return measuredFunc.apply(this, arguments); } return func.apply(this, arguments); }; wrapper.displayName = objName + '_' + fnName; return wrapper; } return func; }, injection: { /** * @param {function} measure */ injectMeasure: function (measure) { ReactPerf.storedMeasure = measure; } } }; /** * Simply passes through the measured function, without measuring it. * * @param {string} objName * @param {string} fnName * @param {function} func * @return {function} */ function _noMeasure(objName, fnName, func) { return func; } module.exports = ReactPerf; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 19 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule setInnerHTML */ /* globals MSApp */ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var WHITESPACE_TEST = /^[ \r\n\t\f]/; var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/; /** * Set the innerHTML property of a node, ensuring that whitespace is preserved * even in IE8. * * @param {DOMElement} node * @param {string} html * @internal */ var setInnerHTML = function (node, html) { node.innerHTML = html; }; // Win8 apps: Allow all html to be inserted if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) { setInnerHTML = function (node, html) { MSApp.execUnsafeLocalFunction(function () { node.innerHTML = html; }); }; } if (ExecutionEnvironment.canUseDOM) { // IE8: When updating a just created node with innerHTML only leading // whitespace is removed. When updating an existing node with innerHTML // whitespace in root TextNodes is also collapsed. // @see quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html // Feature detection; only IE8 is known to behave improperly like this. var testElement = document.createElement('div'); testElement.innerHTML = ' '; if (testElement.innerHTML === '') { setInnerHTML = function (node, html) { // Magic theory: IE8 supposedly differentiates between added and updated // nodes when processing innerHTML, innerHTML on updated nodes suffers // from worse whitespace behavior. Re-adding a node like this triggers // the initial and more favorable whitespace behavior. // TODO: What to do on a detached node? if (node.parentNode) { node.parentNode.replaceChild(node, node); } // We also implement a workaround for non-visible tags disappearing into // thin air on IE8, this only happens if there is no visible text // in-front of the non-visible tags. Piggyback on the whitespace fix // and simply check if any non-visible tags appear in the source. if (WHITESPACE_TEST.test(html) || html[0] === '<' && NONVISIBLE_TEST.test(html)) { // Recover leading whitespace by temporarily prepending any character. // \uFEFF has the potential advantage of being zero-width/invisible. // UglifyJS drops U+FEFF chars when parsing, so use String.fromCharCode // in hopes that this is preserved even if "\uFEFF" is transformed to // the actual Unicode character (by Babel, for example). // path_to_url#L216 node.innerHTML = String.fromCharCode(0xFEFF) + html; // deleteData leaves an empty `TextNode` which offsets the index of all // children. Definitely want to avoid this. var textNode = node.firstChild; if (textNode.data.length === 1) { node.removeChild(textNode); } else { textNode.deleteData(0, 1); } } else { node.innerHTML = html; } }; } } module.exports = setInnerHTML; /***/ }, /* 20 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule setTextContent */ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var escapeTextContentForBrowser = __webpack_require__(21); var setInnerHTML = __webpack_require__(19); /** * Set the textContent property of a node, ensuring that whitespace is preserved * even in IE8. innerText is a poor substitute for textContent and, among many * issues, inserts <br> instead of the literal newline chars. innerHTML behaves * as it should. * * @param {DOMElement} node * @param {string} text * @internal */ var setTextContent = function (node, text) { node.textContent = text; }; if (ExecutionEnvironment.canUseDOM) { if (!('textContent' in document.documentElement)) { setTextContent = function (node, text) { setInnerHTML(node, escapeTextContentForBrowser(text)); }; } } module.exports = setTextContent; /***/ }, /* 21 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule escapeTextContentForBrowser */ 'use strict'; var ESCAPE_LOOKUP = { '&': '&amp;', '>': '&gt;', '<': '&lt;', '"': '&quot;', '\'': '&#x27;' }; var ESCAPE_REGEX = /[&><"']/g; function escaper(match) { return ESCAPE_LOOKUP[match]; } /** * Escapes text to prevent scripting attacks. * * @param {*} text Text value to escape. * @return {string} An escaped string. */ function escapeTextContentForBrowser(text) { return ('' + text).replace(ESCAPE_REGEX, escaper); } module.exports = escapeTextContentForBrowser; /***/ }, /* 22 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule DOMPropertyOperations * @typechecks static-only */ 'use strict'; var DOMProperty = __webpack_require__(23); var ReactPerf = __webpack_require__(18); var quoteAttributeValueForBrowser = __webpack_require__(24); var warning = __webpack_require__(25); // Simplified subset var VALID_ATTRIBUTE_NAME_REGEX = /^[a-zA-Z_][\w\.\-]*$/; var illegalAttributeNameCache = {}; var validatedAttributeNameCache = {}; function isAttributeNameSafe(attributeName) { if (validatedAttributeNameCache.hasOwnProperty(attributeName)) { return true; } if (illegalAttributeNameCache.hasOwnProperty(attributeName)) { return false; } if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { validatedAttributeNameCache[attributeName] = true; return true; } illegalAttributeNameCache[attributeName] = true; process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid attribute name: `%s`', attributeName) : undefined; return false; } function shouldIgnoreValue(propertyInfo, value) { return value == null || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === false; } if (process.env.NODE_ENV !== 'production') { var reactProps = { children: true, dangerouslySetInnerHTML: true, key: true, ref: true }; var warnedProperties = {}; var warnUnknownProperty = function (name) { if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) { return; } warnedProperties[name] = true; var lowerCasedName = name.toLowerCase(); // data-* attributes should be lowercase; suggest the lowercase version var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null; // For now, only warn when we have a suggested correction. This prevents // logging too much when using transferPropsTo. process.env.NODE_ENV !== 'production' ? warning(standardName == null, 'Unknown DOM property %s. Did you mean %s?', name, standardName) : undefined; }; } /** * Operations for dealing with DOM properties. */ var DOMPropertyOperations = { /** * Creates markup for the ID property. * * @param {string} id Unescaped ID. * @return {string} Markup string. */ createMarkupForID: function (id) { return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id); }, setAttributeForID: function (node, id) { node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id); }, /** * Creates markup for a property. * * @param {string} name * @param {*} value * @return {?string} Markup string, or null if the property was invalid. */ createMarkupForProperty: function (name, value) { var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null; if (propertyInfo) { if (shouldIgnoreValue(propertyInfo, value)) { return ''; } var attributeName = propertyInfo.attributeName; if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) { return attributeName + '=""'; } return attributeName + '=' + quoteAttributeValueForBrowser(value); } else if (DOMProperty.isCustomAttribute(name)) { if (value == null) { return ''; } return name + '=' + quoteAttributeValueForBrowser(value); } else if (process.env.NODE_ENV !== 'production') { warnUnknownProperty(name); } return null; }, /** * Creates markup for a custom property. * * @param {string} name * @param {*} value * @return {string} Markup string, or empty string if the property was invalid. */ createMarkupForCustomAttribute: function (name, value) { if (!isAttributeNameSafe(name) || value == null) { return ''; } return name + '=' + quoteAttributeValueForBrowser(value); }, /** * Sets the value for a property on a node. * * @param {DOMElement} node * @param {string} name * @param {*} value */ setValueForProperty: function (node, name, value) { var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null; if (propertyInfo) { var mutationMethod = propertyInfo.mutationMethod; if (mutationMethod) { mutationMethod(node, value); } else if (shouldIgnoreValue(propertyInfo, value)) { this.deleteValueForProperty(node, name); } else if (propertyInfo.mustUseAttribute) { var attributeName = propertyInfo.attributeName; var namespace = propertyInfo.attributeNamespace; // `setAttribute` with objects becomes only `[object]` in IE8/9, // ('' + value) makes it output the correct toString()-value. if (namespace) { node.setAttributeNS(namespace, attributeName, '' + value); } else if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) { node.setAttribute(attributeName, ''); } else { node.setAttribute(attributeName, '' + value); } } else { var propName = propertyInfo.propertyName; // Must explicitly cast values for HAS_SIDE_EFFECTS-properties to the // property type before comparing; only `value` does and is string. if (!propertyInfo.hasSideEffects || '' + node[propName] !== '' + value) { // Contrary to `setAttribute`, object properties are properly // `toString`ed by IE8/9. node[propName] = value; } } } else if (DOMProperty.isCustomAttribute(name)) { DOMPropertyOperations.setValueForAttribute(node, name, value); } else if (process.env.NODE_ENV !== 'production') { warnUnknownProperty(name); } }, setValueForAttribute: function (node, name, value) { if (!isAttributeNameSafe(name)) { return; } if (value == null) { node.removeAttribute(name); } else { node.setAttribute(name, '' + value); } }, /** * Deletes the value for a property on a node. * * @param {DOMElement} node * @param {string} name */ deleteValueForProperty: function (node, name) { var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null; if (propertyInfo) { var mutationMethod = propertyInfo.mutationMethod; if (mutationMethod) { mutationMethod(node, undefined); } else if (propertyInfo.mustUseAttribute) { node.removeAttribute(propertyInfo.attributeName); } else { var propName = propertyInfo.propertyName; var defaultValue = DOMProperty.getDefaultValueForProperty(node.nodeName, propName); if (!propertyInfo.hasSideEffects || '' + node[propName] !== defaultValue) { node[propName] = defaultValue; } } } else if (DOMProperty.isCustomAttribute(name)) { node.removeAttribute(name); } else if (process.env.NODE_ENV !== 'production') { warnUnknownProperty(name); } } }; ReactPerf.measureMethods(DOMPropertyOperations, 'DOMPropertyOperations', { setValueForProperty: 'setValueForProperty', setValueForAttribute: 'setValueForAttribute', deleteValueForProperty: 'deleteValueForProperty' }); module.exports = DOMPropertyOperations; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 23 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule DOMProperty * @typechecks static-only */ 'use strict'; var invariant = __webpack_require__(13); function checkMask(value, bitmask) { return (value & bitmask) === bitmask; } var DOMPropertyInjection = { /** * Mapping from normalized, camelcased property names to a configuration that * specifies how the associated DOM property should be accessed or rendered. */ MUST_USE_ATTRIBUTE: 0x1, MUST_USE_PROPERTY: 0x2, HAS_SIDE_EFFECTS: 0x4, HAS_BOOLEAN_VALUE: 0x8, HAS_NUMERIC_VALUE: 0x10, HAS_POSITIVE_NUMERIC_VALUE: 0x20 | 0x10, HAS_OVERLOADED_BOOLEAN_VALUE: 0x40, /** * Inject some specialized knowledge about the DOM. This takes a config object * with the following properties: * * isCustomAttribute: function that given an attribute name will return true * if it can be inserted into the DOM verbatim. Useful for data-* or aria-* * attributes where it's impossible to enumerate all of the possible * attribute names, * * Properties: object mapping DOM property name to one of the * DOMPropertyInjection constants or null. If your attribute isn't in here, * it won't get written to the DOM. * * DOMAttributeNames: object mapping React attribute name to the DOM * attribute name. Attribute names not specified use the **lowercase** * normalized name. * * DOMAttributeNamespaces: object mapping React attribute name to the DOM * attribute namespace URL. (Attribute names not specified use no namespace.) * * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties. * Property names not specified use the normalized name. * * DOMMutationMethods: Properties that require special mutation methods. If * `value` is undefined, the mutation method should unset the property. * * @param {object} domPropertyConfig the config as described above. */ injectDOMPropertyConfig: function (domPropertyConfig) { var Injection = DOMPropertyInjection; var Properties = domPropertyConfig.Properties || {}; var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {}; var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {}; var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {}; var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {}; if (domPropertyConfig.isCustomAttribute) { DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute); } for (var propName in Properties) { !!DOMProperty.properties.hasOwnProperty(propName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property ' + '\'%s\' which has already been injected. You may be accidentally ' + 'injecting the same DOM property config twice, or you may be ' + 'injecting two configs that have conflicting property names.', propName) : invariant(false) : undefined; var lowerCased = propName.toLowerCase(); var propConfig = Properties[propName]; var propertyInfo = { attributeName: lowerCased, attributeNamespace: null, propertyName: propName, mutationMethod: null, mustUseAttribute: checkMask(propConfig, Injection.MUST_USE_ATTRIBUTE), mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY), hasSideEffects: checkMask(propConfig, Injection.HAS_SIDE_EFFECTS), hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE), hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE), hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE), hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE) }; !(!propertyInfo.mustUseAttribute || !propertyInfo.mustUseProperty) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Cannot require using both attribute and property: %s', propName) : invariant(false) : undefined; !(propertyInfo.mustUseProperty || !propertyInfo.hasSideEffects) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Properties that have side effects must use property: %s', propName) : invariant(false) : undefined; !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or ' + 'numeric value, but not a combination: %s', propName) : invariant(false) : undefined; if (process.env.NODE_ENV !== 'production') { DOMProperty.getPossibleStandardName[lowerCased] = propName; } if (DOMAttributeNames.hasOwnProperty(propName)) { var attributeName = DOMAttributeNames[propName]; propertyInfo.attributeName = attributeName; if (process.env.NODE_ENV !== 'production') { DOMProperty.getPossibleStandardName[attributeName] = propName; } } if (DOMAttributeNamespaces.hasOwnProperty(propName)) { propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName]; } if (DOMPropertyNames.hasOwnProperty(propName)) { propertyInfo.propertyName = DOMPropertyNames[propName]; } if (DOMMutationMethods.hasOwnProperty(propName)) { propertyInfo.mutationMethod = DOMMutationMethods[propName]; } DOMProperty.properties[propName] = propertyInfo; } } }; var defaultValueCache = {}; /** * DOMProperty exports lookup objects that can be used like functions: * * > DOMProperty.isValid['id'] * true * > DOMProperty.isValid['foobar'] * undefined * * Although this may be confusing, it performs better in general. * * @see path_to_url * @see path_to_url */ var DOMProperty = { ID_ATTRIBUTE_NAME: 'data-reactid', /** * Map from property "standard name" to an object with info about how to set * the property in the DOM. Each object contains: * * attributeName: * Used when rendering markup or with `*Attribute()`. * attributeNamespace * propertyName: * Used on DOM node instances. (This includes properties that mutate due to * external factors.) * mutationMethod: * If non-null, used instead of the property or `setAttribute()` after * initial render. * mustUseAttribute: * Whether the property must be accessed and mutated using `*Attribute()`. * (This includes anything that fails `<propName> in <element>`.) * mustUseProperty: * Whether the property must be accessed and mutated as an object property. * hasSideEffects: * Whether or not setting a value causes side effects such as triggering * resources to be loaded or text selection changes. If true, we read from * the DOM before updating to ensure that the value is only set if it has * changed. * hasBooleanValue: * Whether the property should be removed when set to a falsey value. * hasNumericValue: * Whether the property must be numeric or parse as a numeric and should be * removed when set to a falsey value. * hasPositiveNumericValue: * Whether the property must be positive numeric or parse as a positive * numeric and should be removed when set to a falsey value. * hasOverloadedBooleanValue: * Whether the property can be used as a flag as well as with a value. * Removed when strictly equal to false; present without a value when * strictly equal to true; present with a value otherwise. */ properties: {}, /** * Mapping from lowercase property names to the properly cased version, used * to warn in the case of missing properties. Available only in __DEV__. * @type {Object} */ getPossibleStandardName: process.env.NODE_ENV !== 'production' ? {} : null, /** * All of the isCustomAttribute() functions that have been injected. */ _isCustomAttributeFunctions: [], /** * Checks whether a property name is a custom attribute. * @method */ isCustomAttribute: function (attributeName) { for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) { var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i]; if (isCustomAttributeFn(attributeName)) { return true; } } return false; }, /** * Returns the default property value for a DOM property (i.e., not an * attribute). Most default values are '' or false, but not all. Worse yet, * some (in particular, `type`) vary depending on the type of element. * * TODO: Is it better to grab all the possible properties when creating an * element to avoid having to create the same element twice? */ getDefaultValueForProperty: function (nodeName, prop) { var nodeDefaults = defaultValueCache[nodeName]; var testElement; if (!nodeDefaults) { defaultValueCache[nodeName] = nodeDefaults = {}; } if (!(prop in nodeDefaults)) { testElement = document.createElement(nodeName); nodeDefaults[prop] = testElement[prop]; } return nodeDefaults[prop]; }, injection: DOMPropertyInjection }; module.exports = DOMProperty; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 24 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule quoteAttributeValueForBrowser */ 'use strict'; var escapeTextContentForBrowser = __webpack_require__(21); /** * Escapes attribute value to prevent scripting attacks. * * @param {*} value Value to escape. * @return {string} An escaped string. */ function quoteAttributeValueForBrowser(value) { return '"' + escapeTextContentForBrowser(value) + '"'; } module.exports = quoteAttributeValueForBrowser; /***/ }, /* 25 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule warning */ 'use strict'; var emptyFunction = __webpack_require__(15); /** * Similar to invariant but only logs a warning if the condition is not met. * This can be used to log issues in development environments in critical * paths. Removing the logging code for production environments will keep the * same logic and follow the same code paths. */ var warning = emptyFunction; if (process.env.NODE_ENV !== 'production') { warning = function (condition, format) { for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { args[_key - 2] = arguments[_key]; } if (format === undefined) { throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); } if (format.indexOf('Failed Composite propType: ') === 0) { return; // Ignore CompositeComponent proptype check. } if (!condition) { var argIndex = 0; var message = 'Warning: ' + format.replace(/%s/g, function () { return args[argIndex++]; }); if (typeof console !== 'undefined') { console.error(message); } try { // --- Welcome to debugging React --- // This error was thrown as a convenience so that you can use this stack // to find the callsite that caused this warning to fire. throw new Error(message); } catch (x) {} } }; } module.exports = warning; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 26 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactComponentBrowserEnvironment */ 'use strict'; var ReactDOMIDOperations = __webpack_require__(27); var ReactMount = __webpack_require__(28); /** * Abstracts away all functionality of the reconciler that requires knowledge of * the browser context. TODO: These callers should be refactored to avoid the * need for this injection. */ var ReactComponentBrowserEnvironment = { processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates, replaceNodeWithMarkupByID: ReactDOMIDOperations.dangerouslyReplaceNodeWithMarkupByID, /** * If a particular environment requires that some resources be cleaned up, * specify this in the injected Mixin. In the DOM, we would likely want to * purge any cached node ID lookups. * * @private */ unmountIDFromEnvironment: function (rootNodeID) { ReactMount.purgeID(rootNodeID); } }; module.exports = ReactComponentBrowserEnvironment; /***/ }, /* 27 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMIDOperations * @typechecks static-only */ 'use strict'; var DOMChildrenOperations = __webpack_require__(7); var DOMPropertyOperations = __webpack_require__(22); var ReactMount = __webpack_require__(28); var ReactPerf = __webpack_require__(18); var invariant = __webpack_require__(13); /** * Errors for properties that should not be updated with `updatePropertyByID()`. * * @type {object} * @private */ var INVALID_PROPERTY_ERRORS = { dangerouslySetInnerHTML: '`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.', style: '`style` must be set using `updateStylesByID()`.' }; /** * Operations used to process updates to DOM nodes. */ var ReactDOMIDOperations = { /** * Updates a DOM node with new property values. This should only be used to * update DOM properties in `DOMProperty`. * * @param {string} id ID of the node to update. * @param {string} name A valid property name, see `DOMProperty`. * @param {*} value New value of the property. * @internal */ updatePropertyByID: function (id, name, value) { var node = ReactMount.getNode(id); !!INVALID_PROPERTY_ERRORS.hasOwnProperty(name) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'updatePropertyByID(...): %s', INVALID_PROPERTY_ERRORS[name]) : invariant(false) : undefined; // If we're updating to null or undefined, we should remove the property // from the DOM node instead of inadvertantly setting to a string. This // brings us in line with the same behavior we have on initial render. if (value != null) { DOMPropertyOperations.setValueForProperty(node, name, value); } else { DOMPropertyOperations.deleteValueForProperty(node, name); } }, /** * Replaces a DOM node that exists in the document with markup. * * @param {string} id ID of child to be replaced. * @param {string} markup Dangerous markup to inject in place of child. * @internal * @see {Danger.dangerouslyReplaceNodeWithMarkup} */ dangerouslyReplaceNodeWithMarkupByID: function (id, markup) { var node = ReactMount.getNode(id); DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup(node, markup); }, /** * Updates a component's children by processing a series of updates. * * @param {array<object>} updates List of update configurations. * @param {array<string>} markup List of markup strings. * @internal */ dangerouslyProcessChildrenUpdates: function (updates, markup) { for (var i = 0; i < updates.length; i++) { updates[i].parentNode = ReactMount.getNode(updates[i].parentID); } DOMChildrenOperations.processUpdates(updates, markup); } }; ReactPerf.measureMethods(ReactDOMIDOperations, 'ReactDOMIDOperations', { dangerouslyReplaceNodeWithMarkupByID: 'dangerouslyReplaceNodeWithMarkupByID', dangerouslyProcessChildrenUpdates: 'dangerouslyProcessChildrenUpdates' }); module.exports = ReactDOMIDOperations; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 28 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactMount */ 'use strict'; var DOMProperty = __webpack_require__(23); var ReactBrowserEventEmitter = __webpack_require__(29); var ReactCurrentOwner = __webpack_require__(5); var ReactDOMFeatureFlags = __webpack_require__(41); var ReactElement = __webpack_require__(42); var ReactEmptyComponentRegistry = __webpack_require__(44); var ReactInstanceHandles = __webpack_require__(45); var ReactInstanceMap = __webpack_require__(47); var ReactMarkupChecksum = __webpack_require__(48); var ReactPerf = __webpack_require__(18); var ReactReconciler = __webpack_require__(50); var ReactUpdateQueue = __webpack_require__(53); var ReactUpdates = __webpack_require__(54); var assign = __webpack_require__(39); var emptyObject = __webpack_require__(58); var containsNode = __webpack_require__(59); var instantiateReactComponent = __webpack_require__(62); var invariant = __webpack_require__(13); var setInnerHTML = __webpack_require__(19); var shouldUpdateReactComponent = __webpack_require__(67); var validateDOMNesting = __webpack_require__(70); var warning = __webpack_require__(25); var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME; var nodeCache = {}; var ELEMENT_NODE_TYPE = 1; var DOC_NODE_TYPE = 9; var DOCUMENT_FRAGMENT_NODE_TYPE = 11; var ownerDocumentContextKey = '__ReactMount_ownerDocument$' + Math.random().toString(36).slice(2); /** Mapping from reactRootID to React component instance. */ var instancesByReactRootID = {}; /** Mapping from reactRootID to `container` nodes. */ var containersByReactRootID = {}; if (process.env.NODE_ENV !== 'production') { /** __DEV__-only mapping from reactRootID to root elements. */ var rootElementsByReactRootID = {}; } // Used to store breadth-first search state in findComponentRoot. var findComponentRootReusableArray = []; /** * Finds the index of the first character * that's not common between the two given strings. * * @return {number} the index of the character where the strings diverge */ function firstDifferenceIndex(string1, string2) { var minLen = Math.min(string1.length, string2.length); for (var i = 0; i < minLen; i++) { if (string1.charAt(i) !== string2.charAt(i)) { return i; } } return string1.length === string2.length ? -1 : minLen; } /** * @param {DOMElement|DOMDocument} container DOM element that may contain * a React component * @return {?*} DOM element that may have the reactRoot ID, or null. */ function getReactRootElementInContainer(container) { if (!container) { return null; } if (container.nodeType === DOC_NODE_TYPE) { return container.documentElement; } else { return container.firstChild; } } /** * @param {DOMElement} container DOM element that may contain a React component. * @return {?string} A "reactRoot" ID, if a React component is rendered. */ function getReactRootID(container) { var rootElement = getReactRootElementInContainer(container); return rootElement && ReactMount.getID(rootElement); } /** * Accessing node[ATTR_NAME] or calling getAttribute(ATTR_NAME) on a form * element can return its control whose name or ID equals ATTR_NAME. All * DOM nodes support `getAttributeNode` but this can also get called on * other objects so just return '' if we're given something other than a * DOM node (such as window). * * @param {?DOMElement|DOMWindow|DOMDocument|DOMTextNode} node DOM node. * @return {string} ID of the supplied `domNode`. */ function getID(node) { var id = internalGetID(node); if (id) { if (nodeCache.hasOwnProperty(id)) { var cached = nodeCache[id]; if (cached !== node) { !!isValid(cached, id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactMount: Two valid but unequal nodes with the same `%s`: %s', ATTR_NAME, id) : invariant(false) : undefined; nodeCache[id] = node; } } else { nodeCache[id] = node; } } return id; } function internalGetID(node) { // If node is something like a window, document, or text node, none of // which support attributes or a .getAttribute method, gracefully return // the empty string, as if the attribute were missing. return node && node.getAttribute && node.getAttribute(ATTR_NAME) || ''; } /** * Sets the React-specific ID of the given node. * * @param {DOMElement} node The DOM node whose ID will be set. * @param {string} id The value of the ID attribute. */ function setID(node, id) { var oldID = internalGetID(node); if (oldID !== id) { delete nodeCache[oldID]; } node.setAttribute(ATTR_NAME, id); nodeCache[id] = node; } /** * Finds the node with the supplied React-generated DOM ID. * * @param {string} id A React-generated DOM ID. * @return {DOMElement} DOM node with the suppled `id`. * @internal */ function getNode(id) { if (!nodeCache.hasOwnProperty(id) || !isValid(nodeCache[id], id)) { nodeCache[id] = ReactMount.findReactNodeByID(id); } return nodeCache[id]; } /** * Finds the node with the supplied public React instance. * * @param {*} instance A public React instance. * @return {?DOMElement} DOM node with the suppled `id`. * @internal */ function getNodeFromInstance(instance) { var id = ReactInstanceMap.get(instance)._rootNodeID; if (ReactEmptyComponentRegistry.isNullComponentID(id)) { return null; } if (!nodeCache.hasOwnProperty(id) || !isValid(nodeCache[id], id)) { nodeCache[id] = ReactMount.findReactNodeByID(id); } return nodeCache[id]; } /** * A node is "valid" if it is contained by a currently mounted container. * * This means that the node does not have to be contained by a document in * order to be considered valid. * * @param {?DOMElement} node The candidate DOM node. * @param {string} id The expected ID of the node. * @return {boolean} Whether the node is contained by a mounted container. */ function isValid(node, id) { if (node) { !(internalGetID(node) === id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactMount: Unexpected modification of `%s`', ATTR_NAME) : invariant(false) : undefined; var container = ReactMount.findReactContainerForID(id); if (container && containsNode(container, node)) { return true; } } return false; } /** * Causes the cache to forget about one React-specific ID. * * @param {string} id The ID to forget. */ function purgeID(id) { delete nodeCache[id]; } var deepestNodeSoFar = null; function findDeepestCachedAncestorImpl(ancestorID) { var ancestor = nodeCache[ancestorID]; if (ancestor && isValid(ancestor, ancestorID)) { deepestNodeSoFar = ancestor; } else { // This node isn't populated in the cache, so presumably none of its // descendants are. Break out of the loop. return false; } } /** * Return the deepest cached node whose ID is a prefix of `targetID`. */ function findDeepestCachedAncestor(targetID) { deepestNodeSoFar = null; ReactInstanceHandles.traverseAncestors(targetID, findDeepestCachedAncestorImpl); var foundNode = deepestNodeSoFar; deepestNodeSoFar = null; return foundNode; } /** * Mounts this component and inserts it into the DOM. * * @param {ReactComponent} componentInstance The instance to mount. * @param {string} rootID DOM ID of the root node. * @param {DOMElement} container DOM element to mount into. * @param {ReactReconcileTransaction} transaction * @param {boolean} shouldReuseMarkup If true, do not insert markup */ function mountComponentIntoNode(componentInstance, rootID, container, transaction, shouldReuseMarkup, context) { if (ReactDOMFeatureFlags.useCreateElement) { context = assign({}, context); if (container.nodeType === DOC_NODE_TYPE) { context[ownerDocumentContextKey] = container; } else { context[ownerDocumentContextKey] = container.ownerDocument; } } if (process.env.NODE_ENV !== 'production') { if (context === emptyObject) { context = {}; } var tag = container.nodeName.toLowerCase(); context[validateDOMNesting.ancestorInfoContextKey] = validateDOMNesting.updatedAncestorInfo(null, tag, null); } var markup = ReactReconciler.mountComponent(componentInstance, rootID, transaction, context); componentInstance._renderedComponent._topLevelWrapper = componentInstance; ReactMount._mountImageIntoNode(markup, container, shouldReuseMarkup, transaction); } /** * Batched mount. * * @param {ReactComponent} componentInstance The instance to mount. * @param {string} rootID DOM ID of the root node. * @param {DOMElement} container DOM element to mount into. * @param {boolean} shouldReuseMarkup If true, do not insert markup */ function batchedMountComponentIntoNode(componentInstance, rootID, container, shouldReuseMarkup, context) { var transaction = ReactUpdates.ReactReconcileTransaction.getPooled( /* forceHTML */shouldReuseMarkup); transaction.perform(mountComponentIntoNode, null, componentInstance, rootID, container, transaction, shouldReuseMarkup, context); ReactUpdates.ReactReconcileTransaction.release(transaction); } /** * Unmounts a component and removes it from the DOM. * * @param {ReactComponent} instance React component instance. * @param {DOMElement} container DOM element to unmount from. * @final * @internal * @see {ReactMount.unmountComponentAtNode} */ function unmountComponentFromNode(instance, container) { ReactReconciler.unmountComponent(instance); if (container.nodeType === DOC_NODE_TYPE) { container = container.documentElement; } // path_to_url while (container.lastChild) { container.removeChild(container.lastChild); } } /** * True if the supplied DOM node has a direct React-rendered child that is * not a React root element. Useful for warning in `render`, * `unmountComponentAtNode`, etc. * * @param {?DOMElement} node The candidate DOM node. * @return {boolean} True if the DOM element contains a direct child that was * rendered by React but is not a root element. * @internal */ function hasNonRootReactChild(node) { var reactRootID = getReactRootID(node); return reactRootID ? reactRootID !== ReactInstanceHandles.getReactRootIDFromNodeID(reactRootID) : false; } /** * Returns the first (deepest) ancestor of a node which is rendered by this copy * of React. */ function findFirstReactDOMImpl(node) { // This node might be from another React instance, so we make sure not to // examine the node cache here for (; node && node.parentNode !== node; node = node.parentNode) { if (node.nodeType !== 1) { // Not a DOMElement, therefore not a React component continue; } var nodeID = internalGetID(node); if (!nodeID) { continue; } var reactRootID = ReactInstanceHandles.getReactRootIDFromNodeID(nodeID); // If containersByReactRootID contains the container we find by crawling up // the tree, we know that this instance of React rendered the node. // nb. isValid's strategy (with containsNode) does not work because render // trees may be nested and we don't want a false positive in that case. var current = node; var lastID; do { lastID = internalGetID(current); current = current.parentNode; if (current == null) { // The passed-in node has been detached from the container it was // originally rendered into. return null; } } while (lastID !== reactRootID); if (current === containersByReactRootID[reactRootID]) { return node; } } return null; } /** * Temporary (?) hack so that we can store all top-level pending updates on * composites instead of having to worry about different types of components * here. */ var TopLevelWrapper = function () {}; TopLevelWrapper.prototype.isReactComponent = {}; if (process.env.NODE_ENV !== 'production') { TopLevelWrapper.displayName = 'TopLevelWrapper'; } TopLevelWrapper.prototype.render = function () { // this.props is actually a ReactElement return this.props; }; /** * Mounting is the process of initializing a React component by creating its * representative DOM elements and inserting them into a supplied `container`. * Any prior content inside `container` is destroyed in the process. * * ReactMount.render( * component, * document.getElementById('container') * ); * * <div id="container"> <-- Supplied `container`. * <div data-reactid=".3"> <-- Rendered reactRoot of React * // ... component. * </div> * </div> * * Inside of `container`, the first element rendered is the "reactRoot". */ var ReactMount = { TopLevelWrapper: TopLevelWrapper, /** Exposed for debugging purposes **/ _instancesByReactRootID: instancesByReactRootID, /** * This is a hook provided to support rendering React components while * ensuring that the apparent scroll position of its `container` does not * change. * * @param {DOMElement} container The `container` being rendered into. * @param {function} renderCallback This must be called once to do the render. */ scrollMonitor: function (container, renderCallback) { renderCallback(); }, /** * Take a component that's already mounted into the DOM and replace its props * @param {ReactComponent} prevComponent component instance already in the DOM * @param {ReactElement} nextElement component instance to render * @param {DOMElement} container container to render into * @param {?function} callback function triggered on completion */ _updateRootComponent: function (prevComponent, nextElement, container, callback) { ReactMount.scrollMonitor(container, function () { ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement); if (callback) { ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback); } }); if (process.env.NODE_ENV !== 'production') { // Record the root element in case it later gets transplanted. rootElementsByReactRootID[getReactRootID(container)] = getReactRootElementInContainer(container); } return prevComponent; }, /** * Register a component into the instance map and starts scroll value * monitoring * @param {ReactComponent} nextComponent component instance to render * @param {DOMElement} container container to render into * @return {string} reactRoot ID prefix */ _registerComponent: function (nextComponent, container) { !(container && (container.nodeType === ELEMENT_NODE_TYPE || container.nodeType === DOC_NODE_TYPE || container.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '_registerComponent(...): Target container is not a DOM element.') : invariant(false) : undefined; ReactBrowserEventEmitter.ensureScrollValueMonitoring(); var reactRootID = ReactMount.registerContainer(container); instancesByReactRootID[reactRootID] = nextComponent; return reactRootID; }, /** * Render a new component into the DOM. * @param {ReactElement} nextElement element to render * @param {DOMElement} container container to render into * @param {boolean} shouldReuseMarkup if we should skip the markup insertion * @return {ReactComponent} nextComponent */ _renderNewRootComponent: function (nextElement, container, shouldReuseMarkup, context) { // Various parts of our code (such as ReactCompositeComponent's // _renderValidatedComponent) assume that calls to render aren't nested; // verify that that's the case. process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '_renderNewRootComponent(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from ' + 'render is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : undefined; var componentInstance = instantiateReactComponent(nextElement, null); var reactRootID = ReactMount._registerComponent(componentInstance, container); // The initial render is synchronous but any updates that happen during // rendering, in componentWillMount or componentDidMount, will be batched // according to the current batching strategy. ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, reactRootID, container, shouldReuseMarkup, context); if (process.env.NODE_ENV !== 'production') { // Record the root element in case it later gets transplanted. rootElementsByReactRootID[reactRootID] = getReactRootElementInContainer(container); } return componentInstance; }, /** * Renders a React component into the DOM in the supplied `container`. * * If the React component was previously rendered into `container`, this will * perform an update on it and only mutate the DOM as necessary to reflect the * latest React component. * * @param {ReactComponent} parentComponent The conceptual parent of this render tree. * @param {ReactElement} nextElement Component element to render. * @param {DOMElement} container DOM element to render into. * @param {?function} callback function triggered on completion * @return {ReactComponent} Component instance rendered in `container`. */ renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) { !(parentComponent != null && parentComponent._reactInternalInstance != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'parentComponent must be a valid React Component') : invariant(false) : undefined; return ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback); }, _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) { !ReactElement.isValidElement(nextElement) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? ' Instead of passing an element string, make sure to instantiate ' + 'it by passing it to React.createElement.' : typeof nextElement === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : // Check if it quacks like an element nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : invariant(false) : undefined; process.env.NODE_ENV !== 'production' ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : undefined; var nextWrappedElement = new ReactElement(TopLevelWrapper, null, null, null, null, null, nextElement); var prevComponent = instancesByReactRootID[getReactRootID(container)]; if (prevComponent) { var prevWrappedElement = prevComponent._currentElement; var prevElement = prevWrappedElement.props; if (shouldUpdateReactComponent(prevElement, nextElement)) { var publicInst = prevComponent._renderedComponent.getPublicInstance(); var updatedCallback = callback && function () { callback.call(publicInst); }; ReactMount._updateRootComponent(prevComponent, nextWrappedElement, container, updatedCallback); return publicInst; } else { ReactMount.unmountComponentAtNode(container); } } var reactRootElement = getReactRootElementInContainer(container); var containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement); var containerHasNonRootReactChild = hasNonRootReactChild(container); if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(!containerHasNonRootReactChild, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : undefined; if (!containerHasReactMarkup || reactRootElement.nextSibling) { var rootElementSibling = reactRootElement; while (rootElementSibling) { if (internalGetID(rootElementSibling)) { process.env.NODE_ENV !== 'production' ? warning(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.') : undefined; break; } rootElementSibling = rootElementSibling.nextSibling; } } } var shouldReuseMarkup = containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild; var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, parentComponent != null ? parentComponent._reactInternalInstance._processChildContext(parentComponent._reactInternalInstance._context) : emptyObject)._renderedComponent.getPublicInstance(); if (callback) { callback.call(component); } return component; }, /** * Renders a React component into the DOM in the supplied `container`. * * If the React component was previously rendered into `container`, this will * perform an update on it and only mutate the DOM as necessary to reflect the * latest React component. * * @param {ReactElement} nextElement Component element to render. * @param {DOMElement} container DOM element to render into. * @param {?function} callback function triggered on completion * @return {ReactComponent} Component instance rendered in `container`. */ render: function (nextElement, container, callback) { return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback); }, /** * Registers a container node into which React components will be rendered. * This also creates the "reactRoot" ID that will be assigned to the element * rendered within. * * @param {DOMElement} container DOM element to register as a container. * @return {string} The "reactRoot" ID of elements rendered within. */ registerContainer: function (container) { var reactRootID = getReactRootID(container); if (reactRootID) { // If one exists, make sure it is a valid "reactRoot" ID. reactRootID = ReactInstanceHandles.getReactRootIDFromNodeID(reactRootID); } if (!reactRootID) { // No valid "reactRoot" ID found, create one. reactRootID = ReactInstanceHandles.createReactRootID(); } containersByReactRootID[reactRootID] = container; return reactRootID; }, /** * Unmounts and destroys the React component rendered in the `container`. * * @param {DOMElement} container DOM element containing a React component. * @return {boolean} True if a component was found in and unmounted from * `container` */ unmountComponentAtNode: function (container) { // Various parts of our code (such as ReactCompositeComponent's // _renderValidatedComponent) assume that calls to render aren't nested; // verify that that's the case. (Strictly speaking, unmounting won't cause a // render but we still don't expect to be in a render call here.) process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, 'unmountComponentAtNode(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from render ' + 'is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : undefined; !(container && (container.nodeType === ELEMENT_NODE_TYPE || container.nodeType === DOC_NODE_TYPE || container.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : invariant(false) : undefined; var reactRootID = getReactRootID(container); var component = instancesByReactRootID[reactRootID]; if (!component) { // Check if the node being unmounted was rendered by React, but isn't a // root node. var containerHasNonRootReactChild = hasNonRootReactChild(container); // Check if the container itself is a React root node. var containerID = internalGetID(container); var isContainerReactRoot = containerID && containerID === ReactInstanceHandles.getReactRootIDFromNodeID(containerID); if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(!containerHasNonRootReactChild, 'unmountComponentAtNode(): The node you\'re attempting to unmount ' + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : undefined; } return false; } ReactUpdates.batchedUpdates(unmountComponentFromNode, component, container); delete instancesByReactRootID[reactRootID]; delete containersByReactRootID[reactRootID]; if (process.env.NODE_ENV !== 'production') { delete rootElementsByReactRootID[reactRootID]; } return true; }, /** * Finds the container DOM element that contains React component to which the * supplied DOM `id` belongs. * * @param {string} id The ID of an element rendered by a React component. * @return {?DOMElement} DOM element that contains the `id`. */ findReactContainerForID: function (id) { var reactRootID = ReactInstanceHandles.getReactRootIDFromNodeID(id); var container = containersByReactRootID[reactRootID]; if (process.env.NODE_ENV !== 'production') { var rootElement = rootElementsByReactRootID[reactRootID]; if (rootElement && rootElement.parentNode !== container) { process.env.NODE_ENV !== 'production' ? warning( // Call internalGetID here because getID calls isValid which calls // findReactContainerForID (this function). internalGetID(rootElement) === reactRootID, 'ReactMount: Root element ID differed from reactRootID.') : undefined; var containerChild = container.firstChild; if (containerChild && reactRootID === internalGetID(containerChild)) { // If the container has a new child with the same ID as the old // root element, then rootElementsByReactRootID[reactRootID] is // just stale and needs to be updated. The case that deserves a // warning is when the container is empty. rootElementsByReactRootID[reactRootID] = containerChild; } else { process.env.NODE_ENV !== 'production' ? warning(false, 'ReactMount: Root element has been removed from its original ' + 'container. New container: %s', rootElement.parentNode) : undefined; } } } return container; }, /** * Finds an element rendered by React with the supplied ID. * * @param {string} id ID of a DOM node in the React component. * @return {DOMElement} Root DOM node of the React component. */ findReactNodeByID: function (id) { var reactRoot = ReactMount.findReactContainerForID(id); return ReactMount.findComponentRoot(reactRoot, id); }, /** * Traverses up the ancestors of the supplied node to find a node that is a * DOM representation of a React component rendered by this copy of React. * * @param {*} node * @return {?DOMEventTarget} * @internal */ getFirstReactDOM: function (node) { return findFirstReactDOMImpl(node); }, /** * Finds a node with the supplied `targetID` inside of the supplied * `ancestorNode`. Exploits the ID naming scheme to perform the search * quickly. * * @param {DOMEventTarget} ancestorNode Search from this root. * @pararm {string} targetID ID of the DOM representation of the component. * @return {DOMEventTarget} DOM node with the supplied `targetID`. * @internal */ findComponentRoot: function (ancestorNode, targetID) { var firstChildren = findComponentRootReusableArray; var childIndex = 0; var deepestAncestor = findDeepestCachedAncestor(targetID) || ancestorNode; if (process.env.NODE_ENV !== 'production') { // This will throw on the next line; give an early warning process.env.NODE_ENV !== 'production' ? warning(deepestAncestor != null, 'React can\'t find the root component node for data-reactid value ' + '`%s`. If you\'re seeing this message, it probably means that ' + 'you\'ve loaded two copies of React on the page. At this time, only ' + 'a single copy of React can be loaded at a time.', targetID) : undefined; } firstChildren[0] = deepestAncestor.firstChild; firstChildren.length = 1; while (childIndex < firstChildren.length) { var child = firstChildren[childIndex++]; var targetChild; while (child) { var childID = ReactMount.getID(child); if (childID) { // Even if we find the node we're looking for, we finish looping // through its siblings to ensure they're cached so that we don't have // to revisit this node again. Otherwise, we make n^2 calls to getID // when visiting the many children of a single node in order. if (targetID === childID) { targetChild = child; } else if (ReactInstanceHandles.isAncestorIDOf(childID, targetID)) { // If we find a child whose ID is an ancestor of the given ID, // then we can be sure that we only want to search the subtree // rooted at this child, so we can throw out the rest of the // search state. firstChildren.length = childIndex = 0; firstChildren.push(child.firstChild); } } else { // If this child had no ID, then there's a chance that it was // injected automatically by the browser, as when a `<table>` // element sprouts an extra `<tbody>` child as a side effect of // `.innerHTML` parsing. Optimistically continue down this // branch, but not before examining the other siblings. firstChildren.push(child.firstChild); } child = child.nextSibling; } if (targetChild) { // Emptying firstChildren/findComponentRootReusableArray is // not necessary for correctness, but it helps the GC reclaim // any nodes that were left at the end of the search. firstChildren.length = 0; return targetChild; } } firstChildren.length = 0; true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'findComponentRoot(..., %s): Unable to find element. This probably ' + 'means the DOM was unexpectedly mutated (e.g., by the browser), ' + 'usually due to forgetting a <tbody> when using tables, nesting tags ' + 'like <form>, <p>, or <a>, or using non-SVG elements in an <svg> ' + 'parent. ' + 'Try inspecting the child nodes of the element with React ID `%s`.', targetID, ReactMount.getID(ancestorNode)) : invariant(false) : undefined; }, _mountImageIntoNode: function (markup, container, shouldReuseMarkup, transaction) { !(container && (container.nodeType === ELEMENT_NODE_TYPE || container.nodeType === DOC_NODE_TYPE || container.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mountComponentIntoNode(...): Target container is not valid.') : invariant(false) : undefined; if (shouldReuseMarkup) { var rootElement = getReactRootElementInContainer(container); if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) { return; } else { var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); var rootMarkup = rootElement.outerHTML; rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum); var normalizedMarkup = markup; if (process.env.NODE_ENV !== 'production') { // because rootMarkup is retrieved from the DOM, various normalizations // will have occurred which will not be present in `markup`. Here, // insert markup into a <div> or <iframe> depending on the container // type to perform the same normalizations before comparing. var normalizer; if (container.nodeType === ELEMENT_NODE_TYPE) { normalizer = document.createElement('div'); normalizer.innerHTML = markup; normalizedMarkup = normalizer.innerHTML; } else { normalizer = document.createElement('iframe'); document.body.appendChild(normalizer); normalizer.contentDocument.write(markup); normalizedMarkup = normalizer.contentDocument.documentElement.outerHTML; document.body.removeChild(normalizer); } } var diffIndex = firstDifferenceIndex(normalizedMarkup, rootMarkup); var difference = ' (client) ' + normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + '\n (server) ' + rootMarkup.substring(diffIndex - 20, diffIndex + 20); !(container.nodeType !== DOC_NODE_TYPE) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'You\'re trying to render a component to the document using ' + 'server rendering but the checksum was invalid. This usually ' + 'means you rendered a different component type or props on ' + 'the client from the one on the server, or your render() ' + 'methods are impure. React cannot handle this case due to ' + 'cross-browser quirks by rendering at the document root. You ' + 'should look for environment dependent code in your components ' + 'and ensure the props are the same client and server side:\n%s', difference) : invariant(false) : undefined; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(false, 'React attempted to reuse markup in a container but the ' + 'checksum was invalid. This generally means that you are ' + 'using server rendering and the markup generated on the ' + 'server was not what the client was expecting. React injected ' + 'new markup to compensate which works but you have lost many ' + 'of the benefits of server rendering. Instead, figure out ' + 'why the markup being generated is different on the client ' + 'or server:\n%s', difference) : undefined; } } } !(container.nodeType !== DOC_NODE_TYPE) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'You\'re trying to render a component to the document but ' + 'you didn\'t use server rendering. We can\'t do this ' + 'without using server rendering due to cross-browser quirks. ' + 'See ReactDOMServer.renderToString() for server rendering.') : invariant(false) : undefined; if (transaction.useCreateElement) { while (container.lastChild) { container.removeChild(container.lastChild); } container.appendChild(markup); } else { setInnerHTML(container, markup); } }, ownerDocumentContextKey: ownerDocumentContextKey, /** * React ID utilities. */ getReactRootID: getReactRootID, getID: getID, setID: setID, getNode: getNode, getNodeFromInstance: getNodeFromInstance, isValid: isValid, purgeID: purgeID }; ReactPerf.measureMethods(ReactMount, 'ReactMount', { _renderNewRootComponent: '_renderNewRootComponent', _mountImageIntoNode: '_mountImageIntoNode' }); module.exports = ReactMount; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 29 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactBrowserEventEmitter * @typechecks static-only */ 'use strict'; var EventConstants = __webpack_require__(30); var EventPluginHub = __webpack_require__(31); var EventPluginRegistry = __webpack_require__(32); var ReactEventEmitterMixin = __webpack_require__(37); var ReactPerf = __webpack_require__(18); var ViewportMetrics = __webpack_require__(38); var assign = __webpack_require__(39); var isEventSupported = __webpack_require__(40); /** * Summary of `ReactBrowserEventEmitter` event handling: * * - Top-level delegation is used to trap most native browser events. This * may only occur in the main thread and is the responsibility of * ReactEventListener, which is injected and can therefore support pluggable * event sources. This is the only work that occurs in the main thread. * * - We normalize and de-duplicate events to account for browser quirks. This * may be done in the worker thread. * * - Forward these native events (with the associated top-level type used to * trap it) to `EventPluginHub`, which in turn will ask plugins if they want * to extract any synthetic events. * * - The `EventPluginHub` will then process each event by annotating them with * "dispatches", a sequence of listeners and IDs that care about that event. * * - The `EventPluginHub` then dispatches the events. * * Overview of React and the event system: * * +------------+ . * | DOM | . * +------------+ . * | . * v . * +------------+ . * | ReactEvent | . * | Listener | . * +------------+ . +-----------+ * | . +--------+|SimpleEvent| * | . | |Plugin | * +-----|------+ . v +-----------+ * | | | . +--------------+ +------------+ * | +-----------.--->|EventPluginHub| | Event | * | | . | | +-----------+ | Propagators| * | ReactEvent | . | | |TapEvent | |------------| * | Emitter | . | |<---+|Plugin | |other plugin| * | | . | | +-----------+ | utilities | * | +-----------.--->| | +------------+ * | | | . +--------------+ * +-----|------+ . ^ +-----------+ * | . | |Enter/Leave| * + . +-------+|Plugin | * +-------------+ . +-----------+ * | application | . * |-------------| . * | | . * | | . * +-------------+ . * . * React Core . General Purpose Event Plugin System */ var alreadyListeningTo = {}; var isMonitoringScrollValue = false; var reactTopListenersCounter = 0; // For events like 'submit' which don't consistently bubble (which we trap at a // lower node than `document`), binding at `document` would cause duplicate // events so we don't include them here var topEventMapping = { topAbort: 'abort', topBlur: 'blur', topCanPlay: 'canplay', topCanPlayThrough: 'canplaythrough', topChange: 'change', topClick: 'click', topCompositionEnd: 'compositionend', topCompositionStart: 'compositionstart', topCompositionUpdate: 'compositionupdate', topContextMenu: 'contextmenu', topCopy: 'copy', topCut: 'cut', topDoubleClick: 'dblclick', topDrag: 'drag', topDragEnd: 'dragend', topDragEnter: 'dragenter', topDragExit: 'dragexit', topDragLeave: 'dragleave', topDragOver: 'dragover', topDragStart: 'dragstart', topDrop: 'drop', topDurationChange: 'durationchange', topEmptied: 'emptied', topEncrypted: 'encrypted', topEnded: 'ended', topError: 'error', topFocus: 'focus', topInput: 'input', topKeyDown: 'keydown', topKeyPress: 'keypress', topKeyUp: 'keyup', topLoadedData: 'loadeddata', topLoadedMetadata: 'loadedmetadata', topLoadStart: 'loadstart', topMouseDown: 'mousedown', topMouseMove: 'mousemove', topMouseOut: 'mouseout', topMouseOver: 'mouseover', topMouseUp: 'mouseup', topPaste: 'paste', topPause: 'pause', topPlay: 'play', topPlaying: 'playing', topProgress: 'progress', topRateChange: 'ratechange', topScroll: 'scroll', topSeeked: 'seeked', topSeeking: 'seeking', topSelectionChange: 'selectionchange', topStalled: 'stalled', topSuspend: 'suspend', topTextInput: 'textInput', topTimeUpdate: 'timeupdate', topTouchCancel: 'touchcancel', topTouchEnd: 'touchend', topTouchMove: 'touchmove', topTouchStart: 'touchstart', topVolumeChange: 'volumechange', topWaiting: 'waiting', topWheel: 'wheel' }; /** * To ensure no conflicts with other potential React instances on the page */ var topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2); function getListeningForDocument(mountAt) { // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty` // directly. if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) { mountAt[topListenersIDKey] = reactTopListenersCounter++; alreadyListeningTo[mountAt[topListenersIDKey]] = {}; } return alreadyListeningTo[mountAt[topListenersIDKey]]; } /** * `ReactBrowserEventEmitter` is used to attach top-level event listeners. For * example: * * ReactBrowserEventEmitter.putListener('myID', 'onClick', myFunction); * * This would allocate a "registration" of `('onClick', myFunction)` on 'myID'. * * @internal */ var ReactBrowserEventEmitter = assign({}, ReactEventEmitterMixin, { /** * Injectable event backend */ ReactEventListener: null, injection: { /** * @param {object} ReactEventListener */ injectReactEventListener: function (ReactEventListener) { ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel); ReactBrowserEventEmitter.ReactEventListener = ReactEventListener; } }, /** * Sets whether or not any created callbacks should be enabled. * * @param {boolean} enabled True if callbacks should be enabled. */ setEnabled: function (enabled) { if (ReactBrowserEventEmitter.ReactEventListener) { ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled); } }, /** * @return {boolean} True if callbacks are enabled. */ isEnabled: function () { return !!(ReactBrowserEventEmitter.ReactEventListener && ReactBrowserEventEmitter.ReactEventListener.isEnabled()); }, /** * We listen for bubbled touch events on the document object. * * Firefox v8.01 (and possibly others) exhibited strange behavior when * mounting `onmousemove` events at some node that was not the document * element. The symptoms were that if your mouse is not moving over something * contained within that mount point (for example on the background) the * top-level listeners for `onmousemove` won't be called. However, if you * register the `mousemove` on the document object, then it will of course * catch all `mousemove`s. This along with iOS quirks, justifies restricting * top-level listeners to the document object only, at least for these * movement types of events and possibly all events. * * @see path_to_url * * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but * they bubble to document. * * @param {string} registrationName Name of listener (e.g. `onClick`). * @param {object} contentDocumentHandle Document which owns the container */ listenTo: function (registrationName, contentDocumentHandle) { var mountAt = contentDocumentHandle; var isListening = getListeningForDocument(mountAt); var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName]; var topLevelTypes = EventConstants.topLevelTypes; for (var i = 0; i < dependencies.length; i++) { var dependency = dependencies[i]; if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) { if (dependency === topLevelTypes.topWheel) { if (isEventSupported('wheel')) { ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel, 'wheel', mountAt); } else if (isEventSupported('mousewheel')) { ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel, 'mousewheel', mountAt); } else { // Firefox needs to capture a different mouse scroll event. // @see path_to_url ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel, 'DOMMouseScroll', mountAt); } } else if (dependency === topLevelTypes.topScroll) { if (isEventSupported('scroll', true)) { ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topScroll, 'scroll', mountAt); } else { ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topScroll, 'scroll', ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE); } } else if (dependency === topLevelTypes.topFocus || dependency === topLevelTypes.topBlur) { if (isEventSupported('focus', true)) { ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topFocus, 'focus', mountAt); ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topBlur, 'blur', mountAt); } else if (isEventSupported('focusin')) { // IE has `focusin` and `focusout` events which bubble. // @see path_to_url ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topFocus, 'focusin', mountAt); ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topBlur, 'focusout', mountAt); } // to make sure blur and focus event listeners are only attached once isListening[topLevelTypes.topBlur] = true; isListening[topLevelTypes.topFocus] = true; } else if (topEventMapping.hasOwnProperty(dependency)) { ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt); } isListening[dependency] = true; } } }, trapBubbledEvent: function (topLevelType, handlerBaseName, handle) { return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelType, handlerBaseName, handle); }, trapCapturedEvent: function (topLevelType, handlerBaseName, handle) { return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelType, handlerBaseName, handle); }, /** * Listens to window scroll and resize events. We cache scroll values so that * application code can access them without triggering reflows. * * NOTE: Scroll events do not bubble. * * @see path_to_url */ ensureScrollValueMonitoring: function () { if (!isMonitoringScrollValue) { var refresh = ViewportMetrics.refreshScrollValues; ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh); isMonitoringScrollValue = true; } }, eventNameDispatchConfigs: EventPluginHub.eventNameDispatchConfigs, registrationNameModules: EventPluginHub.registrationNameModules, putListener: EventPluginHub.putListener, getListener: EventPluginHub.getListener, deleteListener: EventPluginHub.deleteListener, deleteAllListeners: EventPluginHub.deleteAllListeners }); ReactPerf.measureMethods(ReactBrowserEventEmitter, 'ReactBrowserEventEmitter', { putListener: 'putListener', deleteListener: 'deleteListener' }); module.exports = ReactBrowserEventEmitter; /***/ }, /* 30 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventConstants */ 'use strict'; var keyMirror = __webpack_require__(17); var PropagationPhases = keyMirror({ bubbled: null, captured: null }); /** * Types of raw signals from the browser caught at the top level. */ var topLevelTypes = keyMirror({ topAbort: null, topBlur: null, topCanPlay: null, topCanPlayThrough: null, topChange: null, topClick: null, topCompositionEnd: null, topCompositionStart: null, topCompositionUpdate: null, topContextMenu: null, topCopy: null, topCut: null, topDoubleClick: null, topDrag: null, topDragEnd: null, topDragEnter: null, topDragExit: null, topDragLeave: null, topDragOver: null, topDragStart: null, topDrop: null, topDurationChange: null, topEmptied: null, topEncrypted: null, topEnded: null, topError: null, topFocus: null, topInput: null, topKeyDown: null, topKeyPress: null, topKeyUp: null, topLoad: null, topLoadedData: null, topLoadedMetadata: null, topLoadStart: null, topMouseDown: null, topMouseMove: null, topMouseOut: null, topMouseOver: null, topMouseUp: null, topPaste: null, topPause: null, topPlay: null, topPlaying: null, topProgress: null, topRateChange: null, topReset: null, topScroll: null, topSeeked: null, topSeeking: null, topSelectionChange: null, topStalled: null, topSubmit: null, topSuspend: null, topTextInput: null, topTimeUpdate: null, topTouchCancel: null, topTouchEnd: null, topTouchMove: null, topTouchStart: null, topVolumeChange: null, topWaiting: null, topWheel: null }); var EventConstants = { topLevelTypes: topLevelTypes, PropagationPhases: PropagationPhases }; module.exports = EventConstants; /***/ }, /* 31 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPluginHub */ 'use strict'; var EventPluginRegistry = __webpack_require__(32); var EventPluginUtils = __webpack_require__(33); var ReactErrorUtils = __webpack_require__(34); var accumulateInto = __webpack_require__(35); var forEachAccumulated = __webpack_require__(36); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); /** * Internal store for event listeners */ var listenerBank = {}; /** * Internal queue of events that have accumulated their dispatches and are * waiting to have their dispatches executed. */ var eventQueue = null; /** * Dispatches an event and releases it back into the pool, unless persistent. * * @param {?object} event Synthetic event to be dispatched. * @param {boolean} simulated If the event is simulated (changes exn behavior) * @private */ var executeDispatchesAndRelease = function (event, simulated) { if (event) { EventPluginUtils.executeDispatchesInOrder(event, simulated); if (!event.isPersistent()) { event.constructor.release(event); } } }; var executeDispatchesAndReleaseSimulated = function (e) { return executeDispatchesAndRelease(e, true); }; var executeDispatchesAndReleaseTopLevel = function (e) { return executeDispatchesAndRelease(e, false); }; /** * - `InstanceHandle`: [required] Module that performs logical traversals of DOM * hierarchy given ids of the logical DOM elements involved. */ var InstanceHandle = null; function validateInstanceHandle() { var valid = InstanceHandle && InstanceHandle.traverseTwoPhase && InstanceHandle.traverseEnterLeave; process.env.NODE_ENV !== 'production' ? warning(valid, 'InstanceHandle not injected before use!') : undefined; } /** * This is a unified interface for event plugins to be installed and configured. * * Event plugins can implement the following properties: * * `extractEvents` {function(string, DOMEventTarget, string, object): *} * Required. When a top-level event is fired, this method is expected to * extract synthetic events that will in turn be queued and dispatched. * * `eventTypes` {object} * Optional, plugins that fire events must publish a mapping of registration * names that are used to register listeners. Values of this mapping must * be objects that contain `registrationName` or `phasedRegistrationNames`. * * `executeDispatch` {function(object, function, string)} * Optional, allows plugins to override how an event gets dispatched. By * default, the listener is simply invoked. * * Each plugin that is injected into `EventsPluginHub` is immediately operable. * * @public */ var EventPluginHub = { /** * Methods for injecting dependencies. */ injection: { /** * @param {object} InjectedMount * @public */ injectMount: EventPluginUtils.injection.injectMount, /** * @param {object} InjectedInstanceHandle * @public */ injectInstanceHandle: function (InjectedInstanceHandle) { InstanceHandle = InjectedInstanceHandle; if (process.env.NODE_ENV !== 'production') { validateInstanceHandle(); } }, getInstanceHandle: function () { if (process.env.NODE_ENV !== 'production') { validateInstanceHandle(); } return InstanceHandle; }, /** * @param {array} InjectedEventPluginOrder * @public */ injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder, /** * @param {object} injectedNamesToPlugins Map from names to plugin modules. */ injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName }, eventNameDispatchConfigs: EventPluginRegistry.eventNameDispatchConfigs, registrationNameModules: EventPluginRegistry.registrationNameModules, /** * Stores `listener` at `listenerBank[registrationName][id]`. Is idempotent. * * @param {string} id ID of the DOM element. * @param {string} registrationName Name of listener (e.g. `onClick`). * @param {?function} listener The callback to store. */ putListener: function (id, registrationName, listener) { !(typeof listener === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : invariant(false) : undefined; var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {}); bankForRegistrationName[id] = listener; var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; if (PluginModule && PluginModule.didPutListener) { PluginModule.didPutListener(id, registrationName, listener); } }, /** * @param {string} id ID of the DOM element. * @param {string} registrationName Name of listener (e.g. `onClick`). * @return {?function} The stored callback. */ getListener: function (id, registrationName) { var bankForRegistrationName = listenerBank[registrationName]; return bankForRegistrationName && bankForRegistrationName[id]; }, /** * Deletes a listener from the registration bank. * * @param {string} id ID of the DOM element. * @param {string} registrationName Name of listener (e.g. `onClick`). */ deleteListener: function (id, registrationName) { var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; if (PluginModule && PluginModule.willDeleteListener) { PluginModule.willDeleteListener(id, registrationName); } var bankForRegistrationName = listenerBank[registrationName]; // TODO: This should never be null -- when is it? if (bankForRegistrationName) { delete bankForRegistrationName[id]; } }, /** * Deletes all listeners for the DOM element with the supplied ID. * * @param {string} id ID of the DOM element. */ deleteAllListeners: function (id) { for (var registrationName in listenerBank) { if (!listenerBank[registrationName][id]) { continue; } var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; if (PluginModule && PluginModule.willDeleteListener) { PluginModule.willDeleteListener(id, registrationName); } delete listenerBank[registrationName][id]; } }, /** * Allows registered plugins an opportunity to extract events from top-level * native browser events. * * @param {string} topLevelType Record from `EventConstants`. * @param {DOMEventTarget} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native browser event. * @return {*} An accumulation of synthetic events. * @internal */ extractEvents: function (topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { var events; var plugins = EventPluginRegistry.plugins; for (var i = 0; i < plugins.length; i++) { // Not every plugin in the ordering may be loaded at runtime. var possiblePlugin = plugins[i]; if (possiblePlugin) { var extractedEvents = possiblePlugin.extractEvents(topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget); if (extractedEvents) { events = accumulateInto(events, extractedEvents); } } } return events; }, /** * Enqueues a synthetic event that should be dispatched when * `processEventQueue` is invoked. * * @param {*} events An accumulation of synthetic events. * @internal */ enqueueEvents: function (events) { if (events) { eventQueue = accumulateInto(eventQueue, events); } }, /** * Dispatches all synthetic events on the event queue. * * @internal */ processEventQueue: function (simulated) { // Set `eventQueue` to null before processing it so that we can tell if more // events get enqueued while processing. var processingEventQueue = eventQueue; eventQueue = null; if (simulated) { forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated); } else { forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); } !!eventQueue ? process.env.NODE_ENV !== 'production' ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing ' + 'an event queue. Support for this has not yet been implemented.') : invariant(false) : undefined; // This would be a good time to rethrow if any of the event handlers threw. ReactErrorUtils.rethrowCaughtError(); }, /** * These are needed for tests only. Do not use! */ __purge: function () { listenerBank = {}; }, __getListenerBank: function () { return listenerBank; } }; module.exports = EventPluginHub; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 32 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPluginRegistry * @typechecks static-only */ 'use strict'; var invariant = __webpack_require__(13); /** * Injectable ordering of event plugins. */ var EventPluginOrder = null; /** * Injectable mapping from names to event plugin modules. */ var namesToPlugins = {}; /** * Recomputes the plugin list using the injected plugins and plugin ordering. * * @private */ function recomputePluginOrdering() { if (!EventPluginOrder) { // Wait until an `EventPluginOrder` is injected. return; } for (var pluginName in namesToPlugins) { var PluginModule = namesToPlugins[pluginName]; var pluginIndex = EventPluginOrder.indexOf(pluginName); !(pluginIndex > -1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in ' + 'the plugin ordering, `%s`.', pluginName) : invariant(false) : undefined; if (EventPluginRegistry.plugins[pluginIndex]) { continue; } !PluginModule.extractEvents ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` ' + 'method, but `%s` does not.', pluginName) : invariant(false) : undefined; EventPluginRegistry.plugins[pluginIndex] = PluginModule; var publishedEvents = PluginModule.eventTypes; for (var eventName in publishedEvents) { !publishEventForPlugin(publishedEvents[eventName], PluginModule, eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : invariant(false) : undefined; } } } /** * Publishes an event so that it can be dispatched by the supplied plugin. * * @param {object} dispatchConfig Dispatch configuration for the event. * @param {object} PluginModule Plugin publishing the event. * @return {boolean} True if the event was successfully published. * @private */ function publishEventForPlugin(dispatchConfig, PluginModule, eventName) { !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same ' + 'event name, `%s`.', eventName) : invariant(false) : undefined; EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig; var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; if (phasedRegistrationNames) { for (var phaseName in phasedRegistrationNames) { if (phasedRegistrationNames.hasOwnProperty(phaseName)) { var phasedRegistrationName = phasedRegistrationNames[phaseName]; publishRegistrationName(phasedRegistrationName, PluginModule, eventName); } } return true; } else if (dispatchConfig.registrationName) { publishRegistrationName(dispatchConfig.registrationName, PluginModule, eventName); return true; } return false; } /** * Publishes a registration name that is used to identify dispatched events and * can be used with `EventPluginHub.putListener` to register listeners. * * @param {string} registrationName Registration name to add. * @param {object} PluginModule Plugin publishing the event. * @private */ function publishRegistrationName(registrationName, PluginModule, eventName) { !!EventPluginRegistry.registrationNameModules[registrationName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName) : invariant(false) : undefined; EventPluginRegistry.registrationNameModules[registrationName] = PluginModule; EventPluginRegistry.registrationNameDependencies[registrationName] = PluginModule.eventTypes[eventName].dependencies; } /** * Registers plugins so that they can extract and dispatch events. * * @see {EventPluginHub} */ var EventPluginRegistry = { /** * Ordered list of injected plugins. */ plugins: [], /** * Mapping from event name to dispatch config */ eventNameDispatchConfigs: {}, /** * Mapping from registration name to plugin module */ registrationNameModules: {}, /** * Mapping from registration name to event name */ registrationNameDependencies: {}, /** * Injects an ordering of plugins (by plugin name). This allows the ordering * to be decoupled from injection of the actual plugins so that ordering is * always deterministic regardless of packaging, on-the-fly injection, etc. * * @param {array} InjectedEventPluginOrder * @internal * @see {EventPluginHub.injection.injectEventPluginOrder} */ injectEventPluginOrder: function (InjectedEventPluginOrder) { !!EventPluginOrder ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than ' + 'once. You are likely trying to load more than one copy of React.') : invariant(false) : undefined; // Clone the ordering so it cannot be dynamically mutated. EventPluginOrder = Array.prototype.slice.call(InjectedEventPluginOrder); recomputePluginOrdering(); }, /** * Injects plugins to be used by `EventPluginHub`. The plugin names must be * in the ordering injected by `injectEventPluginOrder`. * * Plugins can be injected as part of page initialization or on-the-fly. * * @param {object} injectedNamesToPlugins Map from names to plugin modules. * @internal * @see {EventPluginHub.injection.injectEventPluginsByName} */ injectEventPluginsByName: function (injectedNamesToPlugins) { var isOrderingDirty = false; for (var pluginName in injectedNamesToPlugins) { if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { continue; } var PluginModule = injectedNamesToPlugins[pluginName]; if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== PluginModule) { !!namesToPlugins[pluginName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins ' + 'using the same name, `%s`.', pluginName) : invariant(false) : undefined; namesToPlugins[pluginName] = PluginModule; isOrderingDirty = true; } } if (isOrderingDirty) { recomputePluginOrdering(); } }, /** * Looks up the plugin for the supplied event. * * @param {object} event A synthetic event. * @return {?object} The plugin that created the supplied event. * @internal */ getPluginModuleForEvent: function (event) { var dispatchConfig = event.dispatchConfig; if (dispatchConfig.registrationName) { return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null; } for (var phase in dispatchConfig.phasedRegistrationNames) { if (!dispatchConfig.phasedRegistrationNames.hasOwnProperty(phase)) { continue; } var PluginModule = EventPluginRegistry.registrationNameModules[dispatchConfig.phasedRegistrationNames[phase]]; if (PluginModule) { return PluginModule; } } return null; }, /** * Exposed for unit testing. * @private */ _resetEventPlugins: function () { EventPluginOrder = null; for (var pluginName in namesToPlugins) { if (namesToPlugins.hasOwnProperty(pluginName)) { delete namesToPlugins[pluginName]; } } EventPluginRegistry.plugins.length = 0; var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs; for (var eventName in eventNameDispatchConfigs) { if (eventNameDispatchConfigs.hasOwnProperty(eventName)) { delete eventNameDispatchConfigs[eventName]; } } var registrationNameModules = EventPluginRegistry.registrationNameModules; for (var registrationName in registrationNameModules) { if (registrationNameModules.hasOwnProperty(registrationName)) { delete registrationNameModules[registrationName]; } } } }; module.exports = EventPluginRegistry; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 33 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPluginUtils */ 'use strict'; var EventConstants = __webpack_require__(30); var ReactErrorUtils = __webpack_require__(34); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); /** * Injected dependencies: */ /** * - `Mount`: [required] Module that can convert between React dom IDs and * actual node references. */ var injection = { Mount: null, injectMount: function (InjectedMount) { injection.Mount = InjectedMount; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(InjectedMount && InjectedMount.getNode && InjectedMount.getID, 'EventPluginUtils.injection.injectMount(...): Injected Mount ' + 'module is missing getNode or getID.') : undefined; } } }; var topLevelTypes = EventConstants.topLevelTypes; function isEndish(topLevelType) { return topLevelType === topLevelTypes.topMouseUp || topLevelType === topLevelTypes.topTouchEnd || topLevelType === topLevelTypes.topTouchCancel; } function isMoveish(topLevelType) { return topLevelType === topLevelTypes.topMouseMove || topLevelType === topLevelTypes.topTouchMove; } function isStartish(topLevelType) { return topLevelType === topLevelTypes.topMouseDown || topLevelType === topLevelTypes.topTouchStart; } var validateEventDispatches; if (process.env.NODE_ENV !== 'production') { validateEventDispatches = function (event) { var dispatchListeners = event._dispatchListeners; var dispatchIDs = event._dispatchIDs; var listenersIsArr = Array.isArray(dispatchListeners); var idsIsArr = Array.isArray(dispatchIDs); var IDsLen = idsIsArr ? dispatchIDs.length : dispatchIDs ? 1 : 0; var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; process.env.NODE_ENV !== 'production' ? warning(idsIsArr === listenersIsArr && IDsLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : undefined; }; } /** * Dispatch the event to the listener. * @param {SyntheticEvent} event SyntheticEvent to handle * @param {boolean} simulated If the event is simulated (changes exn behavior) * @param {function} listener Application-level callback * @param {string} domID DOM id to pass to the callback. */ function executeDispatch(event, simulated, listener, domID) { var type = event.type || 'unknown-event'; event.currentTarget = injection.Mount.getNode(domID); if (simulated) { ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event, domID); } else { ReactErrorUtils.invokeGuardedCallback(type, listener, event, domID); } event.currentTarget = null; } /** * Standard/simple iteration through an event's collected dispatches. */ function executeDispatchesInOrder(event, simulated) { var dispatchListeners = event._dispatchListeners; var dispatchIDs = event._dispatchIDs; if (process.env.NODE_ENV !== 'production') { validateEventDispatches(event); } if (Array.isArray(dispatchListeners)) { for (var i = 0; i < dispatchListeners.length; i++) { if (event.isPropagationStopped()) { break; } // Listeners and IDs are two parallel arrays that are always in sync. executeDispatch(event, simulated, dispatchListeners[i], dispatchIDs[i]); } } else if (dispatchListeners) { executeDispatch(event, simulated, dispatchListeners, dispatchIDs); } event._dispatchListeners = null; event._dispatchIDs = null; } /** * Standard/simple iteration through an event's collected dispatches, but stops * at the first dispatch execution returning true, and returns that id. * * @return {?string} id of the first dispatch execution who's listener returns * true, or null if no listener returned true. */ function executeDispatchesInOrderStopAtTrueImpl(event) { var dispatchListeners = event._dispatchListeners; var dispatchIDs = event._dispatchIDs; if (process.env.NODE_ENV !== 'production') { validateEventDispatches(event); } if (Array.isArray(dispatchListeners)) { for (var i = 0; i < dispatchListeners.length; i++) { if (event.isPropagationStopped()) { break; } // Listeners and IDs are two parallel arrays that are always in sync. if (dispatchListeners[i](event, dispatchIDs[i])) { return dispatchIDs[i]; } } } else if (dispatchListeners) { if (dispatchListeners(event, dispatchIDs)) { return dispatchIDs; } } return null; } /** * @see executeDispatchesInOrderStopAtTrueImpl */ function executeDispatchesInOrderStopAtTrue(event) { var ret = executeDispatchesInOrderStopAtTrueImpl(event); event._dispatchIDs = null; event._dispatchListeners = null; return ret; } /** * Execution of a "direct" dispatch - there must be at most one dispatch * accumulated on the event or it is considered an error. It doesn't really make * sense for an event with multiple dispatches (bubbled) to keep track of the * return values at each dispatch execution, but it does tend to make sense when * dealing with "direct" dispatches. * * @return {*} The return value of executing the single dispatch. */ function executeDirectDispatch(event) { if (process.env.NODE_ENV !== 'production') { validateEventDispatches(event); } var dispatchListener = event._dispatchListeners; var dispatchID = event._dispatchIDs; !!Array.isArray(dispatchListener) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : invariant(false) : undefined; var res = dispatchListener ? dispatchListener(event, dispatchID) : null; event._dispatchListeners = null; event._dispatchIDs = null; return res; } /** * @param {SyntheticEvent} event * @return {boolean} True iff number of dispatches accumulated is greater than 0. */ function hasDispatches(event) { return !!event._dispatchListeners; } /** * General utilities that are useful in creating custom Event Plugins. */ var EventPluginUtils = { isEndish: isEndish, isMoveish: isMoveish, isStartish: isStartish, executeDirectDispatch: executeDirectDispatch, executeDispatchesInOrder: executeDispatchesInOrder, executeDispatchesInOrderStopAtTrue: executeDispatchesInOrderStopAtTrue, hasDispatches: hasDispatches, getNode: function (id) { return injection.Mount.getNode(id); }, getID: function (node) { return injection.Mount.getID(node); }, injection: injection }; module.exports = EventPluginUtils; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 34 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactErrorUtils * @typechecks */ 'use strict'; var caughtError = null; /** * Call a function while guarding against errors that happens within it. * * @param {?String} name of the guard to use for logging or debugging * @param {Function} func The function to invoke * @param {*} a First argument * @param {*} b Second argument */ function invokeGuardedCallback(name, func, a, b) { try { return func(a, b); } catch (x) { if (caughtError === null) { caughtError = x; } return undefined; } } var ReactErrorUtils = { invokeGuardedCallback: invokeGuardedCallback, /** * Invoked by ReactTestUtils.Simulate so that any errors thrown by the event * handler are sure to be rethrown by rethrowCaughtError. */ invokeGuardedCallbackWithCatch: invokeGuardedCallback, /** * During execution of guarded functions we will capture the first error which * we will rethrow to be handled by the top level error handler. */ rethrowCaughtError: function () { if (caughtError) { var error = caughtError; caughtError = null; throw error; } } }; if (process.env.NODE_ENV !== 'production') { /** * To help development we can get better devtools integration by simulating a * real browser event. */ if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') { var fakeNode = document.createElement('react'); ReactErrorUtils.invokeGuardedCallback = function (name, func, a, b) { var boundFunc = func.bind(null, a, b); var evtType = 'react-' + name; fakeNode.addEventListener(evtType, boundFunc, false); var evt = document.createEvent('Event'); evt.initEvent(evtType, false, false); fakeNode.dispatchEvent(evt); fakeNode.removeEventListener(evtType, boundFunc, false); }; } } module.exports = ReactErrorUtils; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 35 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule accumulateInto */ 'use strict'; var invariant = __webpack_require__(13); /** * * Accumulates items that must not be null or undefined into the first one. This * is used to conserve memory by avoiding array allocations, and thus sacrifices * API cleanness. Since `current` can be null before being passed in and not * null after this function, make sure to assign it back to `current`: * * `a = accumulateInto(a, b);` * * This API should be sparingly used. Try `accumulate` for something cleaner. * * @return {*|array<*>} An accumulation of items. */ function accumulateInto(current, next) { !(next != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : invariant(false) : undefined; if (current == null) { return next; } // Both are not empty. Warning: Never call x.concat(y) when you are not // certain that x is an Array (x could be a string with concat method). var currentIsArray = Array.isArray(current); var nextIsArray = Array.isArray(next); if (currentIsArray && nextIsArray) { current.push.apply(current, next); return current; } if (currentIsArray) { current.push(next); return current; } if (nextIsArray) { // A bit too dangerous to mutate `next`. return [current].concat(next); } return [current, next]; } module.exports = accumulateInto; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 36 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule forEachAccumulated */ 'use strict'; /** * @param {array} arr an "accumulation" of items which is either an Array or * a single item. Useful when paired with the `accumulate` module. This is a * simple utility that allows us to reason about a collection of items, but * handling the case when there is exactly one item (and we do not need to * allocate an array). */ var forEachAccumulated = function (arr, cb, scope) { if (Array.isArray(arr)) { arr.forEach(cb, scope); } else if (arr) { cb.call(scope, arr); } }; module.exports = forEachAccumulated; /***/ }, /* 37 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactEventEmitterMixin */ 'use strict'; var EventPluginHub = __webpack_require__(31); function runEventQueueInBatch(events) { EventPluginHub.enqueueEvents(events); EventPluginHub.processEventQueue(false); } var ReactEventEmitterMixin = { /** * Streams a fired top-level event to `EventPluginHub` where plugins have the * opportunity to create `ReactEvent`s to be dispatched. * * @param {string} topLevelType Record from `EventConstants`. * @param {object} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native environment event. */ handleTopLevel: function (topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { var events = EventPluginHub.extractEvents(topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget); runEventQueueInBatch(events); } }; module.exports = ReactEventEmitterMixin; /***/ }, /* 38 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ViewportMetrics */ 'use strict'; var ViewportMetrics = { currentScrollLeft: 0, currentScrollTop: 0, refreshScrollValues: function (scrollPosition) { ViewportMetrics.currentScrollLeft = scrollPosition.x; ViewportMetrics.currentScrollTop = scrollPosition.y; } }; module.exports = ViewportMetrics; /***/ }, /* 39 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule Object.assign */ // path_to_url~jorendorff/es6-draft.html#sec-object.assign 'use strict'; function assign(target, sources) { if (target == null) { throw new TypeError('Object.assign target cannot be null or undefined'); } var to = Object(target); var hasOwnProperty = Object.prototype.hasOwnProperty; for (var nextIndex = 1; nextIndex < arguments.length; nextIndex++) { var nextSource = arguments[nextIndex]; if (nextSource == null) { continue; } var from = Object(nextSource); // We don't currently support accessors nor proxies. Therefore this // copy cannot throw. If we ever supported this then we must handle // exceptions and side-effects. We don't support symbols so they won't // be transferred. for (var key in from) { if (hasOwnProperty.call(from, key)) { to[key] = from[key]; } } } return to; } module.exports = assign; /***/ }, /* 40 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule isEventSupported */ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var useHasFeature; if (ExecutionEnvironment.canUseDOM) { useHasFeature = document.implementation && document.implementation.hasFeature && // always returns true in newer browsers as per the standard. // @see path_to_url#dom-domimplementation-hasfeature document.implementation.hasFeature('', '') !== true; } /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ function isEventSupported(eventNameSuffix, capture) { if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) { return false; } var eventName = 'on' + eventNameSuffix; var isSupported = (eventName in document); if (!isSupported) { var element = document.createElement('div'); element.setAttribute(eventName, 'return;'); isSupported = typeof element[eventName] === 'function'; } if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') { // This is the only way to test support for the `wheel` event in IE9+. isSupported = document.implementation.hasFeature('Events.wheel', '3.0'); } return isSupported; } module.exports = isEventSupported; /***/ }, /* 41 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMFeatureFlags */ 'use strict'; var ReactDOMFeatureFlags = { useCreateElement: false }; module.exports = ReactDOMFeatureFlags; /***/ }, /* 42 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactElement */ 'use strict'; var ReactCurrentOwner = __webpack_require__(5); var assign = __webpack_require__(39); var canDefineProperty = __webpack_require__(43); // The Symbol used to tag the ReactElement type. If there is no native Symbol // nor polyfill, then a plain number is used for performance. var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7; var RESERVED_PROPS = { key: true, ref: true, __self: true, __source: true }; /** * Base constructor for all React elements. This is only used to make this * work with a dynamic instanceof check. Nothing should live on this prototype. * * @param {*} type * @param {*} key * @param {string|object} ref * @param {*} self A *temporary* helper to detect places where `this` is * different from the `owner` when React.createElement is called, so that we * can warn. We want to get rid of owner and replace string `ref`s with arrow * functions, and as long as `this` and owner are the same, there will be no * change in behavior. * @param {*} source An annotation object (added by a transpiler or otherwise) * indicating filename, line number, and/or other information. * @param {*} owner * @param {*} props * @internal */ var ReactElement = function (type, key, ref, self, source, owner, props) { var element = { // This tag allow us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, // Built-in properties that belong on the element type: type, key: key, ref: ref, props: props, // Record the component responsible for creating this element. _owner: owner }; if (process.env.NODE_ENV !== 'production') { // The validation flag is currently mutative. We put it on // an external backing store so that we can freeze the whole object. // This can be replaced with a WeakMap once they are implemented in // commonly used development environments. element._store = {}; // To make comparing ReactElements easier for testing purposes, we make // the validation flag non-enumerable (where possible, which should // include every environment we run tests in), so the test framework // ignores it. if (canDefineProperty) { Object.defineProperty(element._store, 'validated', { configurable: false, enumerable: false, writable: true, value: false }); // self and source are DEV only properties. Object.defineProperty(element, '_self', { configurable: false, enumerable: false, writable: false, value: self }); // Two elements created in two different places should be considered // equal for testing purposes and therefore we hide it from enumeration. Object.defineProperty(element, '_source', { configurable: false, enumerable: false, writable: false, value: source }); } else { element._store.validated = false; element._self = self; element._source = source; } Object.freeze(element.props); Object.freeze(element); } return element; }; ReactElement.createElement = function (type, config, children) { var propName; // Reserved names are extracted var props = {}; var key = null; var ref = null; var self = null; var source = null; if (config != null) { ref = config.ref === undefined ? null : config.ref; key = config.key === undefined ? null : '' + config.key; self = config.__self === undefined ? null : config.__self; source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object for (propName in config) { if (config.hasOwnProperty(propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { props[propName] = config[propName]; } } } // Children can be more than one argument, and those are transferred onto // the newly allocated props object. var childrenLength = arguments.length - 2; if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 2]; } props.children = childArray; } // Resolve default props if (type && type.defaultProps) { var defaultProps = type.defaultProps; for (propName in defaultProps) { if (typeof props[propName] === 'undefined') { props[propName] = defaultProps[propName]; } } } return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); }; ReactElement.createFactory = function (type) { var factory = ReactElement.createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be // easily accessed on elements. E.g. `<Foo />.type === Foo`. // This should not be named `constructor` since this may not be the function // that created the element, and it may not even be a constructor. // Legacy hook TODO: Warn if this is accessed factory.type = type; return factory; }; ReactElement.cloneAndReplaceKey = function (oldElement, newKey) { var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); return newElement; }; ReactElement.cloneAndReplaceProps = function (oldElement, newProps) { var newElement = ReactElement(oldElement.type, oldElement.key, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, newProps); if (process.env.NODE_ENV !== 'production') { // If the key on the original is valid, then the clone is valid newElement._store.validated = oldElement._store.validated; } return newElement; }; ReactElement.cloneElement = function (element, config, children) { var propName; // Original props are copied var props = assign({}, element.props); // Reserved names are extracted var key = element.key; var ref = element.ref; // Self is preserved since the owner is preserved. var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a // transpiler, and the original source is probably a better indicator of the // true owner. var source = element._source; // Owner will be preserved, unless ref is overridden var owner = element._owner; if (config != null) { if (config.ref !== undefined) { // Silently steal the ref from the parent. ref = config.ref; owner = ReactCurrentOwner.current; } if (config.key !== undefined) { key = '' + config.key; } // Remaining properties override existing props for (propName in config) { if (config.hasOwnProperty(propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { props[propName] = config[propName]; } } } // Children can be more than one argument, and those are transferred onto // the newly allocated props object. var childrenLength = arguments.length - 2; if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 2]; } props.children = childArray; } return ReactElement(element.type, key, ref, self, source, owner, props); }; /** * @param {?object} object * @return {boolean} True if `object` is a valid component. * @final */ ReactElement.isValidElement = function (object) { return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; }; module.exports = ReactElement; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 43 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule canDefineProperty */ 'use strict'; var canDefineProperty = false; if (process.env.NODE_ENV !== 'production') { try { Object.defineProperty({}, 'x', { get: function () {} }); canDefineProperty = true; } catch (x) { // IE will fail on defineProperty } } module.exports = canDefineProperty; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 44 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactEmptyComponentRegistry */ 'use strict'; // This registry keeps track of the React IDs of the components that rendered to // `null` (in reality a placeholder such as `noscript`) var nullComponentIDsRegistry = {}; /** * @param {string} id Component's `_rootNodeID`. * @return {boolean} True if the component is rendered to null. */ function isNullComponentID(id) { return !!nullComponentIDsRegistry[id]; } /** * Mark the component as having rendered to null. * @param {string} id Component's `_rootNodeID`. */ function registerNullComponentID(id) { nullComponentIDsRegistry[id] = true; } /** * Unmark the component as having rendered to null: it renders to something now. * @param {string} id Component's `_rootNodeID`. */ function deregisterNullComponentID(id) { delete nullComponentIDsRegistry[id]; } var ReactEmptyComponentRegistry = { isNullComponentID: isNullComponentID, registerNullComponentID: registerNullComponentID, deregisterNullComponentID: deregisterNullComponentID }; module.exports = ReactEmptyComponentRegistry; /***/ }, /* 45 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactInstanceHandles * @typechecks static-only */ 'use strict'; var ReactRootIndex = __webpack_require__(46); var invariant = __webpack_require__(13); var SEPARATOR = '.'; var SEPARATOR_LENGTH = SEPARATOR.length; /** * Maximum depth of traversals before we consider the possibility of a bad ID. */ var MAX_TREE_DEPTH = 10000; /** * Creates a DOM ID prefix to use when mounting React components. * * @param {number} index A unique integer * @return {string} React root ID. * @internal */ function getReactRootIDString(index) { return SEPARATOR + index.toString(36); } /** * Checks if a character in the supplied ID is a separator or the end. * * @param {string} id A React DOM ID. * @param {number} index Index of the character to check. * @return {boolean} True if the character is a separator or end of the ID. * @private */ function isBoundary(id, index) { return id.charAt(index) === SEPARATOR || index === id.length; } /** * Checks if the supplied string is a valid React DOM ID. * * @param {string} id A React DOM ID, maybe. * @return {boolean} True if the string is a valid React DOM ID. * @private */ function isValidID(id) { return id === '' || id.charAt(0) === SEPARATOR && id.charAt(id.length - 1) !== SEPARATOR; } /** * Checks if the first ID is an ancestor of or equal to the second ID. * * @param {string} ancestorID * @param {string} descendantID * @return {boolean} True if `ancestorID` is an ancestor of `descendantID`. * @internal */ function isAncestorIDOf(ancestorID, descendantID) { return descendantID.indexOf(ancestorID) === 0 && isBoundary(descendantID, ancestorID.length); } /** * Gets the parent ID of the supplied React DOM ID, `id`. * * @param {string} id ID of a component. * @return {string} ID of the parent, or an empty string. * @private */ function getParentID(id) { return id ? id.substr(0, id.lastIndexOf(SEPARATOR)) : ''; } /** * Gets the next DOM ID on the tree path from the supplied `ancestorID` to the * supplied `destinationID`. If they are equal, the ID is returned. * * @param {string} ancestorID ID of an ancestor node of `destinationID`. * @param {string} destinationID ID of the destination node. * @return {string} Next ID on the path from `ancestorID` to `destinationID`. * @private */ function getNextDescendantID(ancestorID, destinationID) { !(isValidID(ancestorID) && isValidID(destinationID)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNextDescendantID(%s, %s): Received an invalid React DOM ID.', ancestorID, destinationID) : invariant(false) : undefined; !isAncestorIDOf(ancestorID, destinationID) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNextDescendantID(...): React has made an invalid assumption about ' + 'the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.', ancestorID, destinationID) : invariant(false) : undefined; if (ancestorID === destinationID) { return ancestorID; } // Skip over the ancestor and the immediate separator. Traverse until we hit // another separator or we reach the end of `destinationID`. var start = ancestorID.length + SEPARATOR_LENGTH; var i; for (i = start; i < destinationID.length; i++) { if (isBoundary(destinationID, i)) { break; } } return destinationID.substr(0, i); } /** * Gets the nearest common ancestor ID of two IDs. * * Using this ID scheme, the nearest common ancestor ID is the longest common * prefix of the two IDs that immediately preceded a "marker" in both strings. * * @param {string} oneID * @param {string} twoID * @return {string} Nearest common ancestor ID, or the empty string if none. * @private */ function getFirstCommonAncestorID(oneID, twoID) { var minLength = Math.min(oneID.length, twoID.length); if (minLength === 0) { return ''; } var lastCommonMarkerIndex = 0; // Use `<=` to traverse until the "EOL" of the shorter string. for (var i = 0; i <= minLength; i++) { if (isBoundary(oneID, i) && isBoundary(twoID, i)) { lastCommonMarkerIndex = i; } else if (oneID.charAt(i) !== twoID.charAt(i)) { break; } } var longestCommonID = oneID.substr(0, lastCommonMarkerIndex); !isValidID(longestCommonID) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s', oneID, twoID, longestCommonID) : invariant(false) : undefined; return longestCommonID; } /** * Traverses the parent path between two IDs (either up or down). The IDs must * not be the same, and there must exist a parent path between them. If the * callback returns `false`, traversal is stopped. * * @param {?string} start ID at which to start traversal. * @param {?string} stop ID at which to end traversal. * @param {function} cb Callback to invoke each ID with. * @param {*} arg Argument to invoke the callback with. * @param {?boolean} skipFirst Whether or not to skip the first node. * @param {?boolean} skipLast Whether or not to skip the last node. * @private */ function traverseParentPath(start, stop, cb, arg, skipFirst, skipLast) { start = start || ''; stop = stop || ''; !(start !== stop) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.', start) : invariant(false) : undefined; var traverseUp = isAncestorIDOf(stop, start); !(traverseUp || isAncestorIDOf(start, stop)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do ' + 'not have a parent path.', start, stop) : invariant(false) : undefined; // Traverse from `start` to `stop` one depth at a time. var depth = 0; var traverse = traverseUp ? getParentID : getNextDescendantID; for (var id = start;; /* until break */id = traverse(id, stop)) { var ret; if ((!skipFirst || id !== start) && (!skipLast || id !== stop)) { ret = cb(id, traverseUp, arg); } if (ret === false || id === stop) { // Only break //after// visiting `stop`. break; } !(depth++ < MAX_TREE_DEPTH) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'traverseParentPath(%s, %s, ...): Detected an infinite loop while ' + 'traversing the React DOM ID tree. This may be due to malformed IDs: %s', start, stop, id) : invariant(false) : undefined; } } /** * Manages the IDs assigned to DOM representations of React components. This * uses a specific scheme in order to traverse the DOM efficiently (e.g. in * order to simulate events). * * @internal */ var ReactInstanceHandles = { /** * Constructs a React root ID * @return {string} A React root ID. */ createReactRootID: function () { return getReactRootIDString(ReactRootIndex.createReactRootIndex()); }, /** * Constructs a React ID by joining a root ID with a name. * * @param {string} rootID Root ID of a parent component. * @param {string} name A component's name (as flattened children). * @return {string} A React ID. * @internal */ createReactID: function (rootID, name) { return rootID + name; }, /** * Gets the DOM ID of the React component that is the root of the tree that * contains the React component with the supplied DOM ID. * * @param {string} id DOM ID of a React component. * @return {?string} DOM ID of the React component that is the root. * @internal */ getReactRootIDFromNodeID: function (id) { if (id && id.charAt(0) === SEPARATOR && id.length > 1) { var index = id.indexOf(SEPARATOR, 1); return index > -1 ? id.substr(0, index) : id; } return null; }, /** * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that * should would receive a `mouseEnter` or `mouseLeave` event. * * NOTE: Does not invoke the callback on the nearest common ancestor because * nothing "entered" or "left" that element. * * @param {string} leaveID ID being left. * @param {string} enterID ID being entered. * @param {function} cb Callback to invoke on each entered/left ID. * @param {*} upArg Argument to invoke the callback with on left IDs. * @param {*} downArg Argument to invoke the callback with on entered IDs. * @internal */ traverseEnterLeave: function (leaveID, enterID, cb, upArg, downArg) { var ancestorID = getFirstCommonAncestorID(leaveID, enterID); if (ancestorID !== leaveID) { traverseParentPath(leaveID, ancestorID, cb, upArg, false, true); } if (ancestorID !== enterID) { traverseParentPath(ancestorID, enterID, cb, downArg, true, false); } }, /** * Simulates the traversal of a two-phase, capture/bubble event dispatch. * * NOTE: This traversal happens on IDs without touching the DOM. * * @param {string} targetID ID of the target node. * @param {function} cb Callback to invoke. * @param {*} arg Argument to invoke the callback with. * @internal */ traverseTwoPhase: function (targetID, cb, arg) { if (targetID) { traverseParentPath('', targetID, cb, arg, true, false); traverseParentPath(targetID, '', cb, arg, false, true); } }, /** * Same as `traverseTwoPhase` but skips the `targetID`. */ traverseTwoPhaseSkipTarget: function (targetID, cb, arg) { if (targetID) { traverseParentPath('', targetID, cb, arg, true, true); traverseParentPath(targetID, '', cb, arg, true, true); } }, /** * Traverse a node ID, calling the supplied `cb` for each ancestor ID. For * example, passing `.0.$row-0.1` would result in `cb` getting called * with `.0`, `.0.$row-0`, and `.0.$row-0.1`. * * NOTE: This traversal happens on IDs without touching the DOM. * * @param {string} targetID ID of the target node. * @param {function} cb Callback to invoke. * @param {*} arg Argument to invoke the callback with. * @internal */ traverseAncestors: function (targetID, cb, arg) { traverseParentPath('', targetID, cb, arg, true, false); }, getFirstCommonAncestorID: getFirstCommonAncestorID, /** * Exposed for unit testing. * @private */ _getNextDescendantID: getNextDescendantID, isAncestorIDOf: isAncestorIDOf, SEPARATOR: SEPARATOR }; module.exports = ReactInstanceHandles; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 46 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactRootIndex * @typechecks */ 'use strict'; var ReactRootIndexInjection = { /** * @param {function} _createReactRootIndex */ injectCreateReactRootIndex: function (_createReactRootIndex) { ReactRootIndex.createReactRootIndex = _createReactRootIndex; } }; var ReactRootIndex = { createReactRootIndex: null, injection: ReactRootIndexInjection }; module.exports = ReactRootIndex; /***/ }, /* 47 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactInstanceMap */ 'use strict'; /** * `ReactInstanceMap` maintains a mapping from a public facing stateful * instance (key) and the internal representation (value). This allows public * methods to accept the user facing instance as an argument and map them back * to internal methods. */ // TODO: Replace this with ES6: var ReactInstanceMap = new Map(); var ReactInstanceMap = { /** * This API should be called `delete` but we'd have to make sure to always * transform these to strings for IE support. When this transform is fully * supported we can rename it. */ remove: function (key) { key._reactInternalInstance = undefined; }, get: function (key) { return key._reactInternalInstance; }, has: function (key) { return key._reactInternalInstance !== undefined; }, set: function (key, value) { key._reactInternalInstance = value; } }; module.exports = ReactInstanceMap; /***/ }, /* 48 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactMarkupChecksum */ 'use strict'; var adler32 = __webpack_require__(49); var TAG_END = /\/?>/; var ReactMarkupChecksum = { CHECKSUM_ATTR_NAME: 'data-react-checksum', /** * @param {string} markup Markup string * @return {string} Markup string with checksum attribute attached */ addChecksumToMarkup: function (markup) { var checksum = adler32(markup); // Add checksum (handle both parent tags and self-closing tags) return markup.replace(TAG_END, ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&'); }, /** * @param {string} markup to use * @param {DOMElement} element root React element * @returns {boolean} whether or not the markup is the same */ canReuseMarkup: function (markup, element) { var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); existingChecksum = existingChecksum && parseInt(existingChecksum, 10); var markupChecksum = adler32(markup); return markupChecksum === existingChecksum; } }; module.exports = ReactMarkupChecksum; /***/ }, /* 49 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule adler32 */ 'use strict'; var MOD = 65521; // adler32 is not cryptographically strong, and is only used to sanity check that // markup generated on the server matches the markup generated on the client. // This implementation (a modified version of the SheetJS version) has been optimized // for our use case, at the expense of conforming to the adler32 specification // for non-ascii inputs. function adler32(data) { var a = 1; var b = 0; var i = 0; var l = data.length; var m = l & ~0x3; while (i < m) { for (; i < Math.min(i + 4096, m); i += 4) { b += (a += data.charCodeAt(i)) + (a += data.charCodeAt(i + 1)) + (a += data.charCodeAt(i + 2)) + (a += data.charCodeAt(i + 3)); } a %= MOD; b %= MOD; } for (; i < l; i++) { b += a += data.charCodeAt(i); } a %= MOD; b %= MOD; return a | b << 16; } module.exports = adler32; /***/ }, /* 50 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactReconciler */ 'use strict'; var ReactRef = __webpack_require__(51); /** * Helper to call ReactRef.attachRefs with this composite component, split out * to avoid allocations in the transaction mount-ready queue. */ function attachRefs() { ReactRef.attachRefs(this, this._currentElement); } var ReactReconciler = { /** * Initializes the component, renders markup, and registers event listeners. * * @param {ReactComponent} internalInstance * @param {string} rootID DOM ID of the root node. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction * @return {?string} Rendered markup to be inserted into the DOM. * @final * @internal */ mountComponent: function (internalInstance, rootID, transaction, context) { var markup = internalInstance.mountComponent(rootID, transaction, context); if (internalInstance._currentElement && internalInstance._currentElement.ref != null) { transaction.getReactMountReady().enqueue(attachRefs, internalInstance); } return markup; }, /** * Releases any resources allocated by `mountComponent`. * * @final * @internal */ unmountComponent: function (internalInstance) { ReactRef.detachRefs(internalInstance, internalInstance._currentElement); internalInstance.unmountComponent(); }, /** * Update a component using a new element. * * @param {ReactComponent} internalInstance * @param {ReactElement} nextElement * @param {ReactReconcileTransaction} transaction * @param {object} context * @internal */ receiveComponent: function (internalInstance, nextElement, transaction, context) { var prevElement = internalInstance._currentElement; if (nextElement === prevElement && context === internalInstance._context) { // Since elements are immutable after the owner is rendered, // we can do a cheap identity compare here to determine if this is a // superfluous reconcile. It's possible for state to be mutable but such // change should trigger an update of the owner which would recreate // the element. We explicitly check for the existence of an owner since // it's possible for an element created outside a composite to be // deeply mutated and reused. // TODO: Bailing out early is just a perf optimization right? // TODO: Removing the return statement should affect correctness? return; } var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement); if (refsChanged) { ReactRef.detachRefs(internalInstance, prevElement); } internalInstance.receiveComponent(nextElement, transaction, context); if (refsChanged && internalInstance._currentElement && internalInstance._currentElement.ref != null) { transaction.getReactMountReady().enqueue(attachRefs, internalInstance); } }, /** * Flush any dirty changes in a component. * * @param {ReactComponent} internalInstance * @param {ReactReconcileTransaction} transaction * @internal */ performUpdateIfNecessary: function (internalInstance, transaction) { internalInstance.performUpdateIfNecessary(transaction); } }; module.exports = ReactReconciler; /***/ }, /* 51 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactRef */ 'use strict'; var ReactOwner = __webpack_require__(52); var ReactRef = {}; function attachRef(ref, component, owner) { if (typeof ref === 'function') { ref(component.getPublicInstance()); } else { // Legacy ref ReactOwner.addComponentAsRefTo(component, ref, owner); } } function detachRef(ref, component, owner) { if (typeof ref === 'function') { ref(null); } else { // Legacy ref ReactOwner.removeComponentAsRefFrom(component, ref, owner); } } ReactRef.attachRefs = function (instance, element) { if (element === null || element === false) { return; } var ref = element.ref; if (ref != null) { attachRef(ref, instance, element._owner); } }; ReactRef.shouldUpdateRefs = function (prevElement, nextElement) { // If either the owner or a `ref` has changed, make sure the newest owner // has stored a reference to `this`, and the previous owner (if different) // has forgotten the reference to `this`. We use the element instead // of the public this.props because the post processing cannot determine // a ref. The ref conceptually lives on the element. // TODO: Should this even be possible? The owner cannot change because // it's forbidden by shouldUpdateReactComponent. The ref can change // if you swap the keys of but not the refs. Reconsider where this check // is made. It probably belongs where the key checking and // instantiateReactComponent is done. var prevEmpty = prevElement === null || prevElement === false; var nextEmpty = nextElement === null || nextElement === false; return( // This has a few false positives w/r/t empty components. prevEmpty || nextEmpty || nextElement._owner !== prevElement._owner || nextElement.ref !== prevElement.ref ); }; ReactRef.detachRefs = function (instance, element) { if (element === null || element === false) { return; } var ref = element.ref; if (ref != null) { detachRef(ref, instance, element._owner); } }; module.exports = ReactRef; /***/ }, /* 52 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactOwner */ 'use strict'; var invariant = __webpack_require__(13); /** * ReactOwners are capable of storing references to owned components. * * All components are capable of //being// referenced by owner components, but * only ReactOwner components are capable of //referencing// owned components. * The named reference is known as a "ref". * * Refs are available when mounted and updated during reconciliation. * * var MyComponent = React.createClass({ * render: function() { * return ( * <div onClick={this.handleClick}> * <CustomComponent ref="custom" /> * </div> * ); * }, * handleClick: function() { * this.refs.custom.handleClick(); * }, * componentDidMount: function() { * this.refs.custom.initialize(); * } * }); * * Refs should rarely be used. When refs are used, they should only be done to * control data that is not handled by React's data flow. * * @class ReactOwner */ var ReactOwner = { /** * @param {?object} object * @return {boolean} True if `object` is a valid owner. * @final */ isValidOwner: function (object) { return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function'); }, /** * Adds a component by ref to an owner component. * * @param {ReactComponent} component Component to reference. * @param {string} ref Name by which to refer to the component. * @param {ReactOwner} owner Component on which to record the ref. * @final * @internal */ addComponentAsRefTo: function (component, ref, owner) { !ReactOwner.isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might ' + 'be adding a ref to a component that was not created inside a component\'s ' + '`render` method, or you have multiple copies of React loaded ' + '(details: path_to_url : invariant(false) : undefined; owner.attachRef(ref, component); }, /** * Removes a component by ref from an owner component. * * @param {ReactComponent} component Component to dereference. * @param {string} ref Name of the ref to remove. * @param {ReactOwner} owner Component on which the ref is recorded. * @final * @internal */ removeComponentAsRefFrom: function (component, ref, owner) { !ReactOwner.isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might ' + 'be removing a ref to a component that was not created inside a component\'s ' + '`render` method, or you have multiple copies of React loaded ' + '(details: path_to_url : invariant(false) : undefined; // Check that `component` is still the current ref because we do not want to // detach the ref if another component stole it. if (owner.getPublicInstance().refs[ref] === component.getPublicInstance()) { owner.detachRef(ref); } } }; module.exports = ReactOwner; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 53 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactUpdateQueue */ 'use strict'; var ReactCurrentOwner = __webpack_require__(5); var ReactElement = __webpack_require__(42); var ReactInstanceMap = __webpack_require__(47); var ReactUpdates = __webpack_require__(54); var assign = __webpack_require__(39); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); function enqueueUpdate(internalInstance) { ReactUpdates.enqueueUpdate(internalInstance); } function getInternalInstanceReadyForUpdate(publicInstance, callerName) { var internalInstance = ReactInstanceMap.get(publicInstance); if (!internalInstance) { if (process.env.NODE_ENV !== 'production') { // Only warn when we have a callerName. Otherwise we should be silent. // We're probably calling from enqueueCallback. We don't want to warn // there because we already warned for the corresponding lifecycle method. process.env.NODE_ENV !== 'production' ? warning(!callerName, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, publicInstance.constructor.displayName) : undefined; } return null; } if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition ' + '(such as within `render`). Render methods should be a pure function ' + 'of props and state.', callerName) : undefined; } return internalInstance; } /** * ReactUpdateQueue allows for state updates to be scheduled into a later * reconciliation step. */ var ReactUpdateQueue = { /** * Checks whether or not this composite component is mounted. * @param {ReactClass} publicInstance The instance we want to test. * @return {boolean} True if mounted, false otherwise. * @protected * @final */ isMounted: function (publicInstance) { if (process.env.NODE_ENV !== 'production') { var owner = ReactCurrentOwner.current; if (owner !== null) { process.env.NODE_ENV !== 'production' ? warning(owner._warnedAboutRefsInRender, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', owner.getName() || 'A component') : undefined; owner._warnedAboutRefsInRender = true; } } var internalInstance = ReactInstanceMap.get(publicInstance); if (internalInstance) { // During componentWillMount and render this will still be null but after // that will always render to something. At least for now. So we can use // this hack. return !!internalInstance._renderedComponent; } else { return false; } }, /** * Enqueue a callback that will be executed after all the pending updates * have processed. * * @param {ReactClass} publicInstance The instance to use as `this` context. * @param {?function} callback Called after state is updated. * @internal */ enqueueCallback: function (publicInstance, callback) { !(typeof callback === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'enqueueCallback(...): You called `setProps`, `replaceProps`, ' + '`setState`, `replaceState`, or `forceUpdate` with a callback that ' + 'isn\'t callable.') : invariant(false) : undefined; var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); // Previously we would throw an error if we didn't have an internal // instance. Since we want to make it a no-op instead, we mirror the same // behavior we have in other enqueue* methods. // We also need to ignore callbacks in componentWillMount. See // enqueueUpdates. if (!internalInstance) { return null; } if (internalInstance._pendingCallbacks) { internalInstance._pendingCallbacks.push(callback); } else { internalInstance._pendingCallbacks = [callback]; } // TODO: The callback here is ignored when setState is called from // componentWillMount. Either fix it or disallow doing so completely in // favor of getInitialState. Alternatively, we can disallow // componentWillMount during server-side rendering. enqueueUpdate(internalInstance); }, enqueueCallbackInternal: function (internalInstance, callback) { !(typeof callback === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'enqueueCallback(...): You called `setProps`, `replaceProps`, ' + '`setState`, `replaceState`, or `forceUpdate` with a callback that ' + 'isn\'t callable.') : invariant(false) : undefined; if (internalInstance._pendingCallbacks) { internalInstance._pendingCallbacks.push(callback); } else { internalInstance._pendingCallbacks = [callback]; } enqueueUpdate(internalInstance); }, /** * Forces an update. This should only be invoked when it is known with * certainty that we are **not** in a DOM transaction. * * You may want to call this when you know that some deeper aspect of the * component's state has changed but `setState` was not called. * * This will not invoke `shouldComponentUpdate`, but it will invoke * `componentWillUpdate` and `componentDidUpdate`. * * @param {ReactClass} publicInstance The instance that should rerender. * @internal */ enqueueForceUpdate: function (publicInstance) { var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'forceUpdate'); if (!internalInstance) { return; } internalInstance._pendingForceUpdate = true; enqueueUpdate(internalInstance); }, /** * Replaces all of the state. Always use this or `setState` to mutate state. * You should treat `this.state` as immutable. * * There is no guarantee that `this.state` will be immediately updated, so * accessing `this.state` after calling this method may return the old value. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} completeState Next state. * @internal */ enqueueReplaceState: function (publicInstance, completeState) { var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'replaceState'); if (!internalInstance) { return; } internalInstance._pendingStateQueue = [completeState]; internalInstance._pendingReplaceState = true; enqueueUpdate(internalInstance); }, /** * Sets a subset of the state. This only exists because _pendingState is * internal. This provides a merging strategy that is not available to deep * properties which is confusing. TODO: Expose pendingState or don't use it * during the merge. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} partialState Next partial state to be merged with state. * @internal */ enqueueSetState: function (publicInstance, partialState) { var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'setState'); if (!internalInstance) { return; } var queue = internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = []); queue.push(partialState); enqueueUpdate(internalInstance); }, /** * Sets a subset of the props. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} partialProps Subset of the next props. * @internal */ enqueueSetProps: function (publicInstance, partialProps) { var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'setProps'); if (!internalInstance) { return; } ReactUpdateQueue.enqueueSetPropsInternal(internalInstance, partialProps); }, enqueueSetPropsInternal: function (internalInstance, partialProps) { var topLevelWrapper = internalInstance._topLevelWrapper; !topLevelWrapper ? process.env.NODE_ENV !== 'production' ? invariant(false, 'setProps(...): You called `setProps` on a ' + 'component with a parent. This is an anti-pattern since props will ' + 'get reactively updated when rendered. Instead, change the owner\'s ' + '`render` method to pass the correct value as props to the component ' + 'where it is created.') : invariant(false) : undefined; // Merge with the pending element if it exists, otherwise with existing // element props. var wrapElement = topLevelWrapper._pendingElement || topLevelWrapper._currentElement; var element = wrapElement.props; var props = assign({}, element.props, partialProps); topLevelWrapper._pendingElement = ReactElement.cloneAndReplaceProps(wrapElement, ReactElement.cloneAndReplaceProps(element, props)); enqueueUpdate(topLevelWrapper); }, /** * Replaces all of the props. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} props New props. * @internal */ enqueueReplaceProps: function (publicInstance, props) { var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'replaceProps'); if (!internalInstance) { return; } ReactUpdateQueue.enqueueReplacePropsInternal(internalInstance, props); }, enqueueReplacePropsInternal: function (internalInstance, props) { var topLevelWrapper = internalInstance._topLevelWrapper; !topLevelWrapper ? process.env.NODE_ENV !== 'production' ? invariant(false, 'replaceProps(...): You called `replaceProps` on a ' + 'component with a parent. This is an anti-pattern since props will ' + 'get reactively updated when rendered. Instead, change the owner\'s ' + '`render` method to pass the correct value as props to the component ' + 'where it is created.') : invariant(false) : undefined; // Merge with the pending element if it exists, otherwise with existing // element props. var wrapElement = topLevelWrapper._pendingElement || topLevelWrapper._currentElement; var element = wrapElement.props; topLevelWrapper._pendingElement = ReactElement.cloneAndReplaceProps(wrapElement, ReactElement.cloneAndReplaceProps(element, props)); enqueueUpdate(topLevelWrapper); }, enqueueElementInternal: function (internalInstance, newElement) { internalInstance._pendingElement = newElement; enqueueUpdate(internalInstance); } }; module.exports = ReactUpdateQueue; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 54 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactUpdates */ 'use strict'; var CallbackQueue = __webpack_require__(55); var PooledClass = __webpack_require__(56); var ReactPerf = __webpack_require__(18); var ReactReconciler = __webpack_require__(50); var Transaction = __webpack_require__(57); var assign = __webpack_require__(39); var invariant = __webpack_require__(13); var dirtyComponents = []; var asapCallbackQueue = CallbackQueue.getPooled(); var asapEnqueued = false; var batchingStrategy = null; function ensureInjected() { !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching ' + 'strategy') : invariant(false) : undefined; } var NESTED_UPDATES = { initialize: function () { this.dirtyComponentsLength = dirtyComponents.length; }, close: function () { if (this.dirtyComponentsLength !== dirtyComponents.length) { // Additional updates were enqueued by componentDidUpdate handlers or // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run // these new updates so that if A's componentDidUpdate calls setState on // B, B will update before the callback A's updater provided when calling // setState. dirtyComponents.splice(0, this.dirtyComponentsLength); flushBatchedUpdates(); } else { dirtyComponents.length = 0; } } }; var UPDATE_QUEUEING = { initialize: function () { this.callbackQueue.reset(); }, close: function () { this.callbackQueue.notifyAll(); } }; var TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING]; function ReactUpdatesFlushTransaction() { this.reinitializeTransaction(); this.dirtyComponentsLength = null; this.callbackQueue = CallbackQueue.getPooled(); this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled( /* forceHTML */false); } assign(ReactUpdatesFlushTransaction.prototype, Transaction.Mixin, { getTransactionWrappers: function () { return TRANSACTION_WRAPPERS; }, destructor: function () { this.dirtyComponentsLength = null; CallbackQueue.release(this.callbackQueue); this.callbackQueue = null; ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction); this.reconcileTransaction = null; }, perform: function (method, scope, a) { // Essentially calls `this.reconcileTransaction.perform(method, scope, a)` // with this transaction's wrappers around it. return Transaction.Mixin.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a); } }); PooledClass.addPoolingTo(ReactUpdatesFlushTransaction); function batchedUpdates(callback, a, b, c, d, e) { ensureInjected(); batchingStrategy.batchedUpdates(callback, a, b, c, d, e); } /** * Array comparator for ReactComponents by mount ordering. * * @param {ReactComponent} c1 first component you're comparing * @param {ReactComponent} c2 second component you're comparing * @return {number} Return value usable by Array.prototype.sort(). */ function mountOrderComparator(c1, c2) { return c1._mountOrder - c2._mountOrder; } function runBatchedUpdates(transaction) { var len = transaction.dirtyComponentsLength; !(len === dirtyComponents.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to ' + 'match dirty-components array length (%s).', len, dirtyComponents.length) : invariant(false) : undefined; // Since reconciling a component higher in the owner hierarchy usually (not // always -- see shouldComponentUpdate()) will reconcile children, reconcile // them before their children by sorting the array. dirtyComponents.sort(mountOrderComparator); for (var i = 0; i < len; i++) { // If a component is unmounted before pending changes apply, it will still // be here, but we assume that it has cleared its _pendingCallbacks and // that performUpdateIfNecessary is a noop. var component = dirtyComponents[i]; // If performUpdateIfNecessary happens to enqueue any new updates, we // shouldn't execute the callbacks until the next render happens, so // stash the callbacks first var callbacks = component._pendingCallbacks; component._pendingCallbacks = null; ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction); if (callbacks) { for (var j = 0; j < callbacks.length; j++) { transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance()); } } } } var flushBatchedUpdates = function () { // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents // array and perform any updates enqueued by mount-ready handlers (i.e., // componentDidUpdate) but we need to check here too in order to catch // updates enqueued by setState callbacks and asap calls. while (dirtyComponents.length || asapEnqueued) { if (dirtyComponents.length) { var transaction = ReactUpdatesFlushTransaction.getPooled(); transaction.perform(runBatchedUpdates, null, transaction); ReactUpdatesFlushTransaction.release(transaction); } if (asapEnqueued) { asapEnqueued = false; var queue = asapCallbackQueue; asapCallbackQueue = CallbackQueue.getPooled(); queue.notifyAll(); CallbackQueue.release(queue); } } }; flushBatchedUpdates = ReactPerf.measure('ReactUpdates', 'flushBatchedUpdates', flushBatchedUpdates); /** * Mark a component as needing a rerender, adding an optional callback to a * list of functions which will be executed once the rerender occurs. */ function enqueueUpdate(component) { ensureInjected(); // Various parts of our code (such as ReactCompositeComponent's // _renderValidatedComponent) assume that calls to render aren't nested; // verify that that's the case. (This is called by each top-level update // function, like setProps, setState, forceUpdate, etc.; creation and // destruction of top-level components is guarded in ReactMount.) if (!batchingStrategy.isBatchingUpdates) { batchingStrategy.batchedUpdates(enqueueUpdate, component); return; } dirtyComponents.push(component); } /** * Enqueue a callback to be run at the end of the current batching cycle. Throws * if no updates are currently being performed. */ function asap(callback, context) { !batchingStrategy.isBatchingUpdates ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context where' + 'updates are not being batched.') : invariant(false) : undefined; asapCallbackQueue.enqueue(callback, context); asapEnqueued = true; } var ReactUpdatesInjection = { injectReconcileTransaction: function (ReconcileTransaction) { !ReconcileTransaction ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : invariant(false) : undefined; ReactUpdates.ReactReconcileTransaction = ReconcileTransaction; }, injectBatchingStrategy: function (_batchingStrategy) { !_batchingStrategy ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : invariant(false) : undefined; !(typeof _batchingStrategy.batchedUpdates === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : invariant(false) : undefined; !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : invariant(false) : undefined; batchingStrategy = _batchingStrategy; } }; var ReactUpdates = { /** * React references `ReactReconcileTransaction` using this property in order * to allow dependency injection. * * @internal */ ReactReconcileTransaction: null, batchedUpdates: batchedUpdates, enqueueUpdate: enqueueUpdate, flushBatchedUpdates: flushBatchedUpdates, injection: ReactUpdatesInjection, asap: asap }; module.exports = ReactUpdates; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 55 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule CallbackQueue */ 'use strict'; var PooledClass = __webpack_require__(56); var assign = __webpack_require__(39); var invariant = __webpack_require__(13); /** * A specialized pseudo-event module to help keep track of components waiting to * be notified when their DOM representations are available for use. * * This implements `PooledClass`, so you should never need to instantiate this. * Instead, use `CallbackQueue.getPooled()`. * * @class ReactMountReady * @implements PooledClass * @internal */ function CallbackQueue() { this._callbacks = null; this._contexts = null; } assign(CallbackQueue.prototype, { /** * Enqueues a callback to be invoked when `notifyAll` is invoked. * * @param {function} callback Invoked when `notifyAll` is invoked. * @param {?object} context Context to call `callback` with. * @internal */ enqueue: function (callback, context) { this._callbacks = this._callbacks || []; this._contexts = this._contexts || []; this._callbacks.push(callback); this._contexts.push(context); }, /** * Invokes all enqueued callbacks and clears the queue. This is invoked after * the DOM representation of a component has been created or updated. * * @internal */ notifyAll: function () { var callbacks = this._callbacks; var contexts = this._contexts; if (callbacks) { !(callbacks.length === contexts.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : invariant(false) : undefined; this._callbacks = null; this._contexts = null; for (var i = 0; i < callbacks.length; i++) { callbacks[i].call(contexts[i]); } callbacks.length = 0; contexts.length = 0; } }, /** * Resets the internal queue. * * @internal */ reset: function () { this._callbacks = null; this._contexts = null; }, /** * `PooledClass` looks for this. */ destructor: function () { this.reset(); } }); PooledClass.addPoolingTo(CallbackQueue); module.exports = CallbackQueue; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 56 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule PooledClass */ 'use strict'; var invariant = __webpack_require__(13); /** * Static poolers. Several custom versions for each potential number of * arguments. A completely generic pooler is easy to implement, but would * require accessing the `arguments` object. In each of these, `this` refers to * the Class itself, not an instance. If any others are needed, simply add them * here, or in their own files. */ var oneArgumentPooler = function (copyFieldsFrom) { var Klass = this; if (Klass.instancePool.length) { var instance = Klass.instancePool.pop(); Klass.call(instance, copyFieldsFrom); return instance; } else { return new Klass(copyFieldsFrom); } }; var twoArgumentPooler = function (a1, a2) { var Klass = this; if (Klass.instancePool.length) { var instance = Klass.instancePool.pop(); Klass.call(instance, a1, a2); return instance; } else { return new Klass(a1, a2); } }; var threeArgumentPooler = function (a1, a2, a3) { var Klass = this; if (Klass.instancePool.length) { var instance = Klass.instancePool.pop(); Klass.call(instance, a1, a2, a3); return instance; } else { return new Klass(a1, a2, a3); } }; var fourArgumentPooler = function (a1, a2, a3, a4) { var Klass = this; if (Klass.instancePool.length) { var instance = Klass.instancePool.pop(); Klass.call(instance, a1, a2, a3, a4); return instance; } else { return new Klass(a1, a2, a3, a4); } }; var fiveArgumentPooler = function (a1, a2, a3, a4, a5) { var Klass = this; if (Klass.instancePool.length) { var instance = Klass.instancePool.pop(); Klass.call(instance, a1, a2, a3, a4, a5); return instance; } else { return new Klass(a1, a2, a3, a4, a5); } }; var standardReleaser = function (instance) { var Klass = this; !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : invariant(false) : undefined; instance.destructor(); if (Klass.instancePool.length < Klass.poolSize) { Klass.instancePool.push(instance); } }; var DEFAULT_POOL_SIZE = 10; var DEFAULT_POOLER = oneArgumentPooler; /** * Augments `CopyConstructor` to be a poolable class, augmenting only the class * itself (statically) not adding any prototypical fields. Any CopyConstructor * you give this may have a `poolSize` property, and will look for a * prototypical `destructor` on instances (optional). * * @param {Function} CopyConstructor Constructor that can be used to reset. * @param {Function} pooler Customizable pooler. */ var addPoolingTo = function (CopyConstructor, pooler) { var NewKlass = CopyConstructor; NewKlass.instancePool = []; NewKlass.getPooled = pooler || DEFAULT_POOLER; if (!NewKlass.poolSize) { NewKlass.poolSize = DEFAULT_POOL_SIZE; } NewKlass.release = standardReleaser; return NewKlass; }; var PooledClass = { addPoolingTo: addPoolingTo, oneArgumentPooler: oneArgumentPooler, twoArgumentPooler: twoArgumentPooler, threeArgumentPooler: threeArgumentPooler, fourArgumentPooler: fourArgumentPooler, fiveArgumentPooler: fiveArgumentPooler }; module.exports = PooledClass; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 57 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule Transaction */ 'use strict'; var invariant = __webpack_require__(13); /** * `Transaction` creates a black box that is able to wrap any method such that * certain invariants are maintained before and after the method is invoked * (Even if an exception is thrown while invoking the wrapped method). Whoever * instantiates a transaction can provide enforcers of the invariants at * creation time. The `Transaction` class itself will supply one additional * automatic invariant for you - the invariant that any transaction instance * should not be run while it is already being run. You would typically create a * single instance of a `Transaction` for reuse multiple times, that potentially * is used to wrap several different methods. Wrappers are extremely simple - * they only require implementing two methods. * * <pre> * wrappers (injected at creation time) * + + * | | * +-----------------|--------|--------------+ * | v | | * | +---------------+ | | * | +--| wrapper1 |---|----+ | * | | +---------------+ v | | * | | +-------------+ | | * | | +----| wrapper2 |--------+ | * | | | +-------------+ | | | * | | | | | | * | v v v v | wrapper * | +---+ +---+ +---------+ +---+ +---+ | invariants * perform(anyMethod) | | | | | | | | | | | | maintained * +----------------->|-|---|-|---|-->|anyMethod|---|---|-|---|-|--------> * | | | | | | | | | | | | * | | | | | | | | | | | | * | | | | | | | | | | | | * | +---+ +---+ +---------+ +---+ +---+ | * | initialize close | * +-----------------------------------------+ * </pre> * * Use cases: * - Preserving the input selection ranges before/after reconciliation. * Restoring selection even in the event of an unexpected error. * - Deactivating events while rearranging the DOM, preventing blurs/focuses, * while guaranteeing that afterwards, the event system is reactivated. * - Flushing a queue of collected DOM mutations to the main UI thread after a * reconciliation takes place in a worker thread. * - Invoking any collected `componentDidUpdate` callbacks after rendering new * content. * - (Future use case): Wrapping particular flushes of the `ReactWorker` queue * to preserve the `scrollTop` (an automatic scroll aware DOM). * - (Future use case): Layout calculations before and after DOM updates. * * Transactional plugin API: * - A module that has an `initialize` method that returns any precomputation. * - and a `close` method that accepts the precomputation. `close` is invoked * when the wrapped process is completed, or has failed. * * @param {Array<TransactionalWrapper>} transactionWrapper Wrapper modules * that implement `initialize` and `close`. * @return {Transaction} Single transaction for reuse in thread. * * @class Transaction */ var Mixin = { /** * Sets up this instance so that it is prepared for collecting metrics. Does * so such that this setup method may be used on an instance that is already * initialized, in a way that does not consume additional memory upon reuse. * That can be useful if you decide to make your subclass of this mixin a * "PooledClass". */ reinitializeTransaction: function () { this.transactionWrappers = this.getTransactionWrappers(); if (this.wrapperInitData) { this.wrapperInitData.length = 0; } else { this.wrapperInitData = []; } this._isInTransaction = false; }, _isInTransaction: false, /** * @abstract * @return {Array<TransactionWrapper>} Array of transaction wrappers. */ getTransactionWrappers: null, isInTransaction: function () { return !!this._isInTransaction; }, /** * Executes the function within a safety window. Use this for the top level * methods that result in large amounts of computation/mutations that would * need to be safety checked. The optional arguments helps prevent the need * to bind in many cases. * * @param {function} method Member of scope to call. * @param {Object} scope Scope to invoke from. * @param {Object?=} a Argument to pass to the method. * @param {Object?=} b Argument to pass to the method. * @param {Object?=} c Argument to pass to the method. * @param {Object?=} d Argument to pass to the method. * @param {Object?=} e Argument to pass to the method. * @param {Object?=} f Argument to pass to the method. * * @return {*} Return value from `method`. */ perform: function (method, scope, a, b, c, d, e, f) { !!this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there ' + 'is already an outstanding transaction.') : invariant(false) : undefined; var errorThrown; var ret; try { this._isInTransaction = true; // Catching errors makes debugging more difficult, so we start with // errorThrown set to true before setting it to false after calling // close -- if it's still set to true in the finally block, it means // one of these calls threw. errorThrown = true; this.initializeAll(0); ret = method.call(scope, a, b, c, d, e, f); errorThrown = false; } finally { try { if (errorThrown) { // If `method` throws, prefer to show that stack trace over any thrown // by invoking `closeAll`. try { this.closeAll(0); } catch (err) {} } else { // Since `method` didn't throw, we don't want to silence the exception // here. this.closeAll(0); } } finally { this._isInTransaction = false; } } return ret; }, initializeAll: function (startIndex) { var transactionWrappers = this.transactionWrappers; for (var i = startIndex; i < transactionWrappers.length; i++) { var wrapper = transactionWrappers[i]; try { // Catching errors makes debugging more difficult, so we start with the // OBSERVED_ERROR state before overwriting it with the real return value // of initialize -- if it's still set to OBSERVED_ERROR in the finally // block, it means wrapper.initialize threw. this.wrapperInitData[i] = Transaction.OBSERVED_ERROR; this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null; } finally { if (this.wrapperInitData[i] === Transaction.OBSERVED_ERROR) { // The initializer for wrapper i threw an error; initialize the // remaining wrappers but silence any exceptions from them to ensure // that the first error is the one to bubble up. try { this.initializeAll(i + 1); } catch (err) {} } } } }, /** * Invokes each of `this.transactionWrappers.close[i]` functions, passing into * them the respective return values of `this.transactionWrappers.init[i]` * (`close`rs that correspond to initializers that failed will not be * invoked). */ closeAll: function (startIndex) { !this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : invariant(false) : undefined; var transactionWrappers = this.transactionWrappers; for (var i = startIndex; i < transactionWrappers.length; i++) { var wrapper = transactionWrappers[i]; var initData = this.wrapperInitData[i]; var errorThrown; try { // Catching errors makes debugging more difficult, so we start with // errorThrown set to true before setting it to false after calling // close -- if it's still set to true in the finally block, it means // wrapper.close threw. errorThrown = true; if (initData !== Transaction.OBSERVED_ERROR && wrapper.close) { wrapper.close.call(this, initData); } errorThrown = false; } finally { if (errorThrown) { // The closer for wrapper i threw an error; close the remaining // wrappers but silence any exceptions from them to ensure that the // first error is the one to bubble up. try { this.closeAll(i + 1); } catch (e) {} } } } this.wrapperInitData.length = 0; } }; var Transaction = { Mixin: Mixin, /** * Token to look for to determine if an error occurred. */ OBSERVED_ERROR: {} }; module.exports = Transaction; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 58 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule emptyObject */ 'use strict'; var emptyObject = {}; if (process.env.NODE_ENV !== 'production') { Object.freeze(emptyObject); } module.exports = emptyObject; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 59 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule containsNode * @typechecks */ 'use strict'; var isTextNode = __webpack_require__(60); /*eslint-disable no-bitwise */ /** * Checks if a given DOM node contains or is another DOM node. * * @param {?DOMNode} outerNode Outer DOM node. * @param {?DOMNode} innerNode Inner DOM node. * @return {boolean} True if `outerNode` contains or is `innerNode`. */ function containsNode(_x, _x2) { var _again = true; _function: while (_again) { var outerNode = _x, innerNode = _x2; _again = false; if (!outerNode || !innerNode) { return false; } else if (outerNode === innerNode) { return true; } else if (isTextNode(outerNode)) { return false; } else if (isTextNode(innerNode)) { _x = outerNode; _x2 = innerNode.parentNode; _again = true; continue _function; } else if (outerNode.contains) { return outerNode.contains(innerNode); } else if (outerNode.compareDocumentPosition) { return !!(outerNode.compareDocumentPosition(innerNode) & 16); } else { return false; } } } module.exports = containsNode; /***/ }, /* 60 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule isTextNode * @typechecks */ 'use strict'; var isNode = __webpack_require__(61); /** * @param {*} object The object to check. * @return {boolean} Whether or not the object is a DOM text node. */ function isTextNode(object) { return isNode(object) && object.nodeType == 3; } module.exports = isTextNode; /***/ }, /* 61 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule isNode * @typechecks */ /** * @param {*} object The object to check. * @return {boolean} Whether or not the object is a DOM node. */ 'use strict'; function isNode(object) { return !!(object && (typeof Node === 'function' ? object instanceof Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); } module.exports = isNode; /***/ }, /* 62 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule instantiateReactComponent * @typechecks static-only */ 'use strict'; var ReactCompositeComponent = __webpack_require__(63); var ReactEmptyComponent = __webpack_require__(68); var ReactNativeComponent = __webpack_require__(69); var assign = __webpack_require__(39); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); // To avoid a cyclic dependency, we create the final class in this module var ReactCompositeComponentWrapper = function () {}; assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent.Mixin, { _instantiateReactComponent: instantiateReactComponent }); function getDeclarationErrorAddendum(owner) { if (owner) { var name = owner.getName(); if (name) { return ' Check the render method of `' + name + '`.'; } } return ''; } /** * Check if the type reference is a known internal type. I.e. not a user * provided composite type. * * @param {function} type * @return {boolean} Returns true if this is a valid internal type. */ function isInternalComponentType(type) { return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function'; } /** * Given a ReactNode, create an instance that will actually be mounted. * * @param {ReactNode} node * @return {object} A new instance of the element's constructor. * @protected */ function instantiateReactComponent(node) { var instance; if (node === null || node === false) { instance = new ReactEmptyComponent(instantiateReactComponent); } else if (typeof node === 'object') { var element = node; !(element && (typeof element.type === 'function' || typeof element.type === 'string')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Element type is invalid: expected a string (for built-in components) ' + 'or a class/function (for composite components) but got: %s.%s', element.type == null ? element.type : typeof element.type, getDeclarationErrorAddendum(element._owner)) : invariant(false) : undefined; // Special case string values if (typeof element.type === 'string') { instance = ReactNativeComponent.createInternalComponent(element); } else if (isInternalComponentType(element.type)) { // This is temporarily available for custom components that are not string // representations. I.e. ART. Once those are updated to use the string // representation, we can drop this code path. instance = new element.type(element); } else { instance = new ReactCompositeComponentWrapper(); } } else if (typeof node === 'string' || typeof node === 'number') { instance = ReactNativeComponent.createInstanceForText(node); } else { true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Encountered invalid React node of type %s', typeof node) : invariant(false) : undefined; } if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(typeof instance.construct === 'function' && typeof instance.mountComponent === 'function' && typeof instance.receiveComponent === 'function' && typeof instance.unmountComponent === 'function', 'Only React Components can be mounted.') : undefined; } // Sets up the instance. This can probably just move into the constructor now. instance.construct(node); // These two fields are used by the DOM and ART diffing algorithms // respectively. Instead of using expandos on components, we should be // storing the state needed by the diffing algorithms elsewhere. instance._mountIndex = 0; instance._mountImage = null; if (process.env.NODE_ENV !== 'production') { instance._isOwnerNecessary = false; instance._warnedAboutRefsInRender = false; } // Internal instances should fully constructed at this point, so they should // not get any new fields added to them at this point. if (process.env.NODE_ENV !== 'production') { if (Object.preventExtensions) { Object.preventExtensions(instance); } } return instance; } module.exports = instantiateReactComponent; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 63 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactCompositeComponent */ 'use strict'; var ReactComponentEnvironment = __webpack_require__(64); var ReactCurrentOwner = __webpack_require__(5); var ReactElement = __webpack_require__(42); var ReactInstanceMap = __webpack_require__(47); var ReactPerf = __webpack_require__(18); var ReactPropTypeLocations = __webpack_require__(65); var ReactPropTypeLocationNames = __webpack_require__(66); var ReactReconciler = __webpack_require__(50); var ReactUpdateQueue = __webpack_require__(53); var assign = __webpack_require__(39); var emptyObject = __webpack_require__(58); var invariant = __webpack_require__(13); var shouldUpdateReactComponent = __webpack_require__(67); var warning = __webpack_require__(25); function getDeclarationErrorAddendum(component) { var owner = component._currentElement._owner || null; if (owner) { var name = owner.getName(); if (name) { return ' Check the render method of `' + name + '`.'; } } return ''; } function StatelessComponent(Component) {} StatelessComponent.prototype.render = function () { var Component = ReactInstanceMap.get(this)._currentElement.type; return Component(this.props, this.context, this.updater); }; /** * ------------------ The Life-Cycle of a Composite Component ------------------ * * - constructor: Initialization of state. The instance is now retained. * - componentWillMount * - render * - [children's constructors] * - [children's componentWillMount and render] * - [children's componentDidMount] * - componentDidMount * * Update Phases: * - componentWillReceiveProps (only called if parent updated) * - shouldComponentUpdate * - componentWillUpdate * - render * - [children's constructors or receive props phases] * - componentDidUpdate * * - componentWillUnmount * - [children's componentWillUnmount] * - [children destroyed] * - (destroyed): The instance is now blank, released by React and ready for GC. * * your_sha256_hash------------- */ /** * An incrementing ID assigned to each component when it is mounted. This is * used to enforce the order in which `ReactUpdates` updates dirty components. * * @private */ var nextMountID = 1; /** * @lends {ReactCompositeComponent.prototype} */ var ReactCompositeComponentMixin = { /** * Base constructor for all composite component. * * @param {ReactElement} element * @final * @internal */ construct: function (element) { this._currentElement = element; this._rootNodeID = null; this._instance = null; // See ReactUpdateQueue this._pendingElement = null; this._pendingStateQueue = null; this._pendingReplaceState = false; this._pendingForceUpdate = false; this._renderedComponent = null; this._context = null; this._mountOrder = 0; this._topLevelWrapper = null; // See ReactUpdates and ReactUpdateQueue. this._pendingCallbacks = null; }, /** * Initializes the component, renders markup, and registers event listeners. * * @param {string} rootID DOM ID of the root node. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction * @return {?string} Rendered markup to be inserted into the DOM. * @final * @internal */ mountComponent: function (rootID, transaction, context) { this._context = context; this._mountOrder = nextMountID++; this._rootNodeID = rootID; var publicProps = this._processProps(this._currentElement.props); var publicContext = this._processContext(context); var Component = this._currentElement.type; // Initialize the public class var inst; var renderedElement; // This is a way to detect if Component is a stateless arrow function // component, which is not newable. It might not be 100% reliable but is // something we can do until we start detecting that Component extends // React.Component. We already assume that typeof Component === 'function'. var canInstantiate = ('prototype' in Component); if (canInstantiate) { if (process.env.NODE_ENV !== 'production') { ReactCurrentOwner.current = this; try { inst = new Component(publicProps, publicContext, ReactUpdateQueue); } finally { ReactCurrentOwner.current = null; } } else { inst = new Component(publicProps, publicContext, ReactUpdateQueue); } } if (!canInstantiate || inst === null || inst === false || ReactElement.isValidElement(inst)) { renderedElement = inst; inst = new StatelessComponent(Component); } if (process.env.NODE_ENV !== 'production') { // This will throw later in _renderValidatedComponent, but add an early // warning now to help debugging if (inst.render == null) { process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`, returned ' + 'null/false from a stateless component, or tried to render an ' + 'element whose type is a function that isn\'t a React component.', Component.displayName || Component.name || 'Component') : undefined; } else { // We support ES6 inheriting from React.Component, the module pattern, // and stateless components, but not ES6 classes that don't extend process.env.NODE_ENV !== 'production' ? warning(Component.prototype && Component.prototype.isReactComponent || !canInstantiate || !(inst instanceof Component), '%s(...): React component classes must extend React.Component.', Component.displayName || Component.name || 'Component') : undefined; } } // These should be set up in the constructor, but as a convenience for // simpler class abstractions, we set them up after the fact. inst.props = publicProps; inst.context = publicContext; inst.refs = emptyObject; inst.updater = ReactUpdateQueue; this._instance = inst; // Store a reference from the instance back to the internal representation ReactInstanceMap.set(inst, this); if (process.env.NODE_ENV !== 'production') { // Since plain JS classes are defined without any special initialization // logic, we can not catch common errors early. Therefore, we have to // catch them here, at initialization time, instead. process.env.NODE_ENV !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', this.getName() || 'a component') : undefined; process.env.NODE_ENV !== 'production' ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', this.getName() || 'a component') : undefined; process.env.NODE_ENV !== 'production' ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : undefined; process.env.NODE_ENV !== 'production' ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : undefined; process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentShouldUpdate !== 'function', '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', this.getName() || 'A component') : undefined; process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentDidUnmount !== 'function', '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', this.getName() || 'A component') : undefined; process.env.NODE_ENV !== 'production' ? warning(typeof inst.componentWillRecieveProps !== 'function', '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', this.getName() || 'A component') : undefined; } var initialState = inst.state; if (initialState === undefined) { inst.state = initialState = null; } !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.state: must be set to an object or null', this.getName() || 'ReactCompositeComponent') : invariant(false) : undefined; this._pendingStateQueue = null; this._pendingReplaceState = false; this._pendingForceUpdate = false; if (inst.componentWillMount) { inst.componentWillMount(); // When mounting, calls to `setState` by `componentWillMount` will set // `this._pendingStateQueue` without triggering a re-render. if (this._pendingStateQueue) { inst.state = this._processPendingState(inst.props, inst.context); } } // If not a stateless component, we now render if (renderedElement === undefined) { renderedElement = this._renderValidatedComponent(); } this._renderedComponent = this._instantiateReactComponent(renderedElement); var markup = ReactReconciler.mountComponent(this._renderedComponent, rootID, transaction, this._processChildContext(context)); if (inst.componentDidMount) { transaction.getReactMountReady().enqueue(inst.componentDidMount, inst); } return markup; }, /** * Releases any resources allocated by `mountComponent`. * * @final * @internal */ unmountComponent: function () { var inst = this._instance; if (inst.componentWillUnmount) { inst.componentWillUnmount(); } ReactReconciler.unmountComponent(this._renderedComponent); this._renderedComponent = null; this._instance = null; // Reset pending fields // Even if this component is scheduled for another update in ReactUpdates, // it would still be ignored because these fields are reset. this._pendingStateQueue = null; this._pendingReplaceState = false; this._pendingForceUpdate = false; this._pendingCallbacks = null; this._pendingElement = null; // These fields do not really need to be reset since this object is no // longer accessible. this._context = null; this._rootNodeID = null; this._topLevelWrapper = null; // Delete the reference from the instance to this internal representation // which allow the internals to be properly cleaned up even if the user // leaks a reference to the public instance. ReactInstanceMap.remove(inst); // Some existing components rely on inst.props even after they've been // destroyed (in event handlers). // TODO: inst.props = null; // TODO: inst.state = null; // TODO: inst.context = null; }, /** * Filters the context object to only contain keys specified in * `contextTypes` * * @param {object} context * @return {?object} * @private */ _maskContext: function (context) { var maskedContext = null; var Component = this._currentElement.type; var contextTypes = Component.contextTypes; if (!contextTypes) { return emptyObject; } maskedContext = {}; for (var contextName in contextTypes) { maskedContext[contextName] = context[contextName]; } return maskedContext; }, /** * Filters the context object to only contain keys specified in * `contextTypes`, and asserts that they are valid. * * @param {object} context * @return {?object} * @private */ _processContext: function (context) { var maskedContext = this._maskContext(context); if (process.env.NODE_ENV !== 'production') { var Component = this._currentElement.type; if (Component.contextTypes) { this._checkPropTypes(Component.contextTypes, maskedContext, ReactPropTypeLocations.context); } } return maskedContext; }, /** * @param {object} currentContext * @return {object} * @private */ _processChildContext: function (currentContext) { var Component = this._currentElement.type; var inst = this._instance; var childContext = inst.getChildContext && inst.getChildContext(); if (childContext) { !(typeof Component.childContextTypes === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', this.getName() || 'ReactCompositeComponent') : invariant(false) : undefined; if (process.env.NODE_ENV !== 'production') { this._checkPropTypes(Component.childContextTypes, childContext, ReactPropTypeLocations.childContext); } for (var name in childContext) { !(name in Component.childContextTypes) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : invariant(false) : undefined; } return assign({}, currentContext, childContext); } return currentContext; }, /** * Processes props by setting default values for unspecified props and * asserting that the props are valid. Does not mutate its argument; returns * a new props object with defaults merged in. * * @param {object} newProps * @return {object} * @private */ _processProps: function (newProps) { if (process.env.NODE_ENV !== 'production') { var Component = this._currentElement.type; if (Component.propTypes) { this._checkPropTypes(Component.propTypes, newProps, ReactPropTypeLocations.prop); } } return newProps; }, /** * Assert that the props are valid * * @param {object} propTypes Map of prop name to a ReactPropType * @param {object} props * @param {string} location e.g. "prop", "context", "child context" * @private */ _checkPropTypes: function (propTypes, props, location) { // TODO: Stop validating prop types here and only use the element // validation. var componentName = this.getName(); for (var propName in propTypes) { if (propTypes.hasOwnProperty(propName)) { var error; try { // This is intentionally an invariant that gets caught. It's the same // behavior as without this statement except with a better message. !(typeof propTypes[propName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually ' + 'from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], propName) : invariant(false) : undefined; error = propTypes[propName](props, propName, componentName, location); } catch (ex) { error = ex; } if (error instanceof Error) { // We may want to extend this logic for similar errors in // top-level render calls, so I'm abstracting it away into // a function to minimize refactoring in the future var addendum = getDeclarationErrorAddendum(this); if (location === ReactPropTypeLocations.prop) { // Preface gives us something to blacklist in warning module process.env.NODE_ENV !== 'production' ? warning(false, 'Failed Composite propType: %s%s', error.message, addendum) : undefined; } else { process.env.NODE_ENV !== 'production' ? warning(false, 'Failed Context Types: %s%s', error.message, addendum) : undefined; } } } } }, receiveComponent: function (nextElement, transaction, nextContext) { var prevElement = this._currentElement; var prevContext = this._context; this._pendingElement = null; this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext); }, /** * If any of `_pendingElement`, `_pendingStateQueue`, or `_pendingForceUpdate` * is set, update the component. * * @param {ReactReconcileTransaction} transaction * @internal */ performUpdateIfNecessary: function (transaction) { if (this._pendingElement != null) { ReactReconciler.receiveComponent(this, this._pendingElement || this._currentElement, transaction, this._context); } if (this._pendingStateQueue !== null || this._pendingForceUpdate) { this.updateComponent(transaction, this._currentElement, this._currentElement, this._context, this._context); } }, /** * Perform an update to a mounted component. The componentWillReceiveProps and * shouldComponentUpdate methods are called, then (assuming the update isn't * skipped) the remaining update lifecycle methods are called and the DOM * representation is updated. * * By default, this implements React's rendering and reconciliation algorithm. * Sophisticated clients may wish to override this. * * @param {ReactReconcileTransaction} transaction * @param {ReactElement} prevParentElement * @param {ReactElement} nextParentElement * @internal * @overridable */ updateComponent: function (transaction, prevParentElement, nextParentElement, prevUnmaskedContext, nextUnmaskedContext) { var inst = this._instance; var nextContext = this._context === nextUnmaskedContext ? inst.context : this._processContext(nextUnmaskedContext); var nextProps; // Distinguish between a props update versus a simple state update if (prevParentElement === nextParentElement) { // Skip checking prop types again -- we don't read inst.props to avoid // warning for DOM component props in this upgrade nextProps = nextParentElement.props; } else { nextProps = this._processProps(nextParentElement.props); // An update here will schedule an update but immediately set // _pendingStateQueue which will ensure that any state updates gets // immediately reconciled instead of waiting for the next batch. if (inst.componentWillReceiveProps) { inst.componentWillReceiveProps(nextProps, nextContext); } } var nextState = this._processPendingState(nextProps, nextContext); var shouldUpdate = this._pendingForceUpdate || !inst.shouldComponentUpdate || inst.shouldComponentUpdate(nextProps, nextState, nextContext); if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(typeof shouldUpdate !== 'undefined', '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', this.getName() || 'ReactCompositeComponent') : undefined; } if (shouldUpdate) { this._pendingForceUpdate = false; // Will set `this.props`, `this.state` and `this.context`. this._performComponentUpdate(nextParentElement, nextProps, nextState, nextContext, transaction, nextUnmaskedContext); } else { // If it's determined that a component should not update, we still want // to set props and state but we shortcut the rest of the update. this._currentElement = nextParentElement; this._context = nextUnmaskedContext; inst.props = nextProps; inst.state = nextState; inst.context = nextContext; } }, _processPendingState: function (props, context) { var inst = this._instance; var queue = this._pendingStateQueue; var replace = this._pendingReplaceState; this._pendingReplaceState = false; this._pendingStateQueue = null; if (!queue) { return inst.state; } if (replace && queue.length === 1) { return queue[0]; } var nextState = assign({}, replace ? queue[0] : inst.state); for (var i = replace ? 1 : 0; i < queue.length; i++) { var partial = queue[i]; assign(nextState, typeof partial === 'function' ? partial.call(inst, nextState, props, context) : partial); } return nextState; }, /** * Merges new props and state, notifies delegate methods of update and * performs update. * * @param {ReactElement} nextElement Next element * @param {object} nextProps Next public object to set as properties. * @param {?object} nextState Next object to set as state. * @param {?object} nextContext Next public object to set as context. * @param {ReactReconcileTransaction} transaction * @param {?object} unmaskedContext * @private */ _performComponentUpdate: function (nextElement, nextProps, nextState, nextContext, transaction, unmaskedContext) { var inst = this._instance; var hasComponentDidUpdate = Boolean(inst.componentDidUpdate); var prevProps; var prevState; var prevContext; if (hasComponentDidUpdate) { prevProps = inst.props; prevState = inst.state; prevContext = inst.context; } if (inst.componentWillUpdate) { inst.componentWillUpdate(nextProps, nextState, nextContext); } this._currentElement = nextElement; this._context = unmaskedContext; inst.props = nextProps; inst.state = nextState; inst.context = nextContext; this._updateRenderedComponent(transaction, unmaskedContext); if (hasComponentDidUpdate) { transaction.getReactMountReady().enqueue(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), inst); } }, /** * Call the component's `render` method and update the DOM accordingly. * * @param {ReactReconcileTransaction} transaction * @internal */ _updateRenderedComponent: function (transaction, context) { var prevComponentInstance = this._renderedComponent; var prevRenderedElement = prevComponentInstance._currentElement; var nextRenderedElement = this._renderValidatedComponent(); if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) { ReactReconciler.receiveComponent(prevComponentInstance, nextRenderedElement, transaction, this._processChildContext(context)); } else { // These two IDs are actually the same! But nothing should rely on that. var thisID = this._rootNodeID; var prevComponentID = prevComponentInstance._rootNodeID; ReactReconciler.unmountComponent(prevComponentInstance); this._renderedComponent = this._instantiateReactComponent(nextRenderedElement); var nextMarkup = ReactReconciler.mountComponent(this._renderedComponent, thisID, transaction, this._processChildContext(context)); this._replaceNodeWithMarkupByID(prevComponentID, nextMarkup); } }, /** * @protected */ _replaceNodeWithMarkupByID: function (prevComponentID, nextMarkup) { ReactComponentEnvironment.replaceNodeWithMarkupByID(prevComponentID, nextMarkup); }, /** * @protected */ _renderValidatedComponentWithoutOwnerOrContext: function () { var inst = this._instance; var renderedComponent = inst.render(); if (process.env.NODE_ENV !== 'production') { // We allow auto-mocks to proceed as if they're returning null. if (typeof renderedComponent === 'undefined' && inst.render._isMockFunction) { // This is probably bad practice. Consider warning here and // deprecating this convenience. renderedComponent = null; } } return renderedComponent; }, /** * @private */ _renderValidatedComponent: function () { var renderedComponent; ReactCurrentOwner.current = this; try { renderedComponent = this._renderValidatedComponentWithoutOwnerOrContext(); } finally { ReactCurrentOwner.current = null; } !( // TODO: An `isValidNode` function would probably be more appropriate renderedComponent === null || renderedComponent === false || ReactElement.isValidElement(renderedComponent)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.render(): A valid ReactComponent must be returned. You may have ' + 'returned undefined, an array or some other invalid object.', this.getName() || 'ReactCompositeComponent') : invariant(false) : undefined; return renderedComponent; }, /** * Lazily allocates the refs object and stores `component` as `ref`. * * @param {string} ref Reference name. * @param {component} component Component to store as `ref`. * @final * @private */ attachRef: function (ref, component) { var inst = this.getPublicInstance(); !(inst != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : invariant(false) : undefined; var publicComponentInstance = component.getPublicInstance(); if (process.env.NODE_ENV !== 'production') { var componentName = component && component.getName ? component.getName() : 'a component'; process.env.NODE_ENV !== 'production' ? warning(publicComponentInstance != null, 'Stateless function components cannot be given refs ' + '(See ref "%s" in %s created by %s). ' + 'Attempts to access this ref will fail.', ref, componentName, this.getName()) : undefined; } var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; refs[ref] = publicComponentInstance; }, /** * Detaches a reference name. * * @param {string} ref Name to dereference. * @final * @private */ detachRef: function (ref) { var refs = this.getPublicInstance().refs; delete refs[ref]; }, /** * Get a text description of the component that can be used to identify it * in error messages. * @return {string} The name or null. * @internal */ getName: function () { var type = this._currentElement.type; var constructor = this._instance && this._instance.constructor; return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null; }, /** * Get the publicly accessible representation of this component - i.e. what * is exposed by refs and returned by render. Can be null for stateless * components. * * @return {ReactComponent} the public component instance. * @internal */ getPublicInstance: function () { var inst = this._instance; if (inst instanceof StatelessComponent) { return null; } return inst; }, // Stub _instantiateReactComponent: null }; ReactPerf.measureMethods(ReactCompositeComponentMixin, 'ReactCompositeComponent', { mountComponent: 'mountComponent', updateComponent: 'updateComponent', _renderValidatedComponent: '_renderValidatedComponent' }); var ReactCompositeComponent = { Mixin: ReactCompositeComponentMixin }; module.exports = ReactCompositeComponent; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 64 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactComponentEnvironment */ 'use strict'; var invariant = __webpack_require__(13); var injected = false; var ReactComponentEnvironment = { /** * Optionally injectable environment dependent cleanup hook. (server vs. * browser etc). Example: A browser system caches DOM nodes based on component * ID and must remove that cache entry when this instance is unmounted. */ unmountIDFromEnvironment: null, /** * Optionally injectable hook for swapping out mount images in the middle of * the tree. */ replaceNodeWithMarkupByID: null, /** * Optionally injectable hook for processing a queue of child updates. Will * later move into MultiChildComponents. */ processChildrenUpdates: null, injection: { injectEnvironment: function (environment) { !!injected ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactCompositeComponent: injectEnvironment() can only be called once.') : invariant(false) : undefined; ReactComponentEnvironment.unmountIDFromEnvironment = environment.unmountIDFromEnvironment; ReactComponentEnvironment.replaceNodeWithMarkupByID = environment.replaceNodeWithMarkupByID; ReactComponentEnvironment.processChildrenUpdates = environment.processChildrenUpdates; injected = true; } } }; module.exports = ReactComponentEnvironment; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 65 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactPropTypeLocations */ 'use strict'; var keyMirror = __webpack_require__(17); var ReactPropTypeLocations = keyMirror({ prop: null, context: null, childContext: null }); module.exports = ReactPropTypeLocations; /***/ }, /* 66 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactPropTypeLocationNames */ 'use strict'; var ReactPropTypeLocationNames = {}; if (process.env.NODE_ENV !== 'production') { ReactPropTypeLocationNames = { prop: 'prop', context: 'context', childContext: 'child context' }; } module.exports = ReactPropTypeLocationNames; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 67 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule shouldUpdateReactComponent * @typechecks static-only */ 'use strict'; /** * Given a `prevElement` and `nextElement`, determines if the existing * instance should be updated as opposed to being destroyed or replaced by a new * instance. Both arguments are elements. This ensures that this logic can * operate on stateless trees without any backing instance. * * @param {?object} prevElement * @param {?object} nextElement * @return {boolean} True if the existing instance should be updated. * @protected */ function shouldUpdateReactComponent(prevElement, nextElement) { var prevEmpty = prevElement === null || prevElement === false; var nextEmpty = nextElement === null || nextElement === false; if (prevEmpty || nextEmpty) { return prevEmpty === nextEmpty; } var prevType = typeof prevElement; var nextType = typeof nextElement; if (prevType === 'string' || prevType === 'number') { return nextType === 'string' || nextType === 'number'; } else { return nextType === 'object' && prevElement.type === nextElement.type && prevElement.key === nextElement.key; } return false; } module.exports = shouldUpdateReactComponent; /***/ }, /* 68 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactEmptyComponent */ 'use strict'; var ReactElement = __webpack_require__(42); var ReactEmptyComponentRegistry = __webpack_require__(44); var ReactReconciler = __webpack_require__(50); var assign = __webpack_require__(39); var placeholderElement; var ReactEmptyComponentInjection = { injectEmptyComponent: function (component) { placeholderElement = ReactElement.createElement(component); } }; var ReactEmptyComponent = function (instantiate) { this._currentElement = null; this._rootNodeID = null; this._renderedComponent = instantiate(placeholderElement); }; assign(ReactEmptyComponent.prototype, { construct: function (element) {}, mountComponent: function (rootID, transaction, context) { ReactEmptyComponentRegistry.registerNullComponentID(rootID); this._rootNodeID = rootID; return ReactReconciler.mountComponent(this._renderedComponent, rootID, transaction, context); }, receiveComponent: function () {}, unmountComponent: function (rootID, transaction, context) { ReactReconciler.unmountComponent(this._renderedComponent); ReactEmptyComponentRegistry.deregisterNullComponentID(this._rootNodeID); this._rootNodeID = null; this._renderedComponent = null; } }); ReactEmptyComponent.injection = ReactEmptyComponentInjection; module.exports = ReactEmptyComponent; /***/ }, /* 69 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactNativeComponent */ 'use strict'; var assign = __webpack_require__(39); var invariant = __webpack_require__(13); var autoGenerateWrapperClass = null; var genericComponentClass = null; // This registry keeps track of wrapper classes around native tags. var tagToComponentClass = {}; var textComponentClass = null; var ReactNativeComponentInjection = { // This accepts a class that receives the tag string. This is a catch all // that can render any kind of tag. injectGenericComponentClass: function (componentClass) { genericComponentClass = componentClass; }, // This accepts a text component class that takes the text string to be // rendered as props. injectTextComponentClass: function (componentClass) { textComponentClass = componentClass; }, // This accepts a keyed object with classes as values. Each key represents a // tag. That particular tag will use this class instead of the generic one. injectComponentClasses: function (componentClasses) { assign(tagToComponentClass, componentClasses); } }; /** * Get a composite component wrapper class for a specific tag. * * @param {ReactElement} element The tag for which to get the class. * @return {function} The React class constructor function. */ function getComponentClassForElement(element) { if (typeof element.type === 'function') { return element.type; } var tag = element.type; var componentClass = tagToComponentClass[tag]; if (componentClass == null) { tagToComponentClass[tag] = componentClass = autoGenerateWrapperClass(tag); } return componentClass; } /** * Get a native internal component class for a specific tag. * * @param {ReactElement} element The element to create. * @return {function} The internal class constructor function. */ function createInternalComponent(element) { !genericComponentClass ? process.env.NODE_ENV !== 'production' ? invariant(false, 'There is no registered component for the tag %s', element.type) : invariant(false) : undefined; return new genericComponentClass(element.type, element.props); } /** * @param {ReactText} text * @return {ReactComponent} */ function createInstanceForText(text) { return new textComponentClass(text); } /** * @param {ReactComponent} component * @return {boolean} */ function isTextComponent(component) { return component instanceof textComponentClass; } var ReactNativeComponent = { getComponentClassForElement: getComponentClassForElement, createInternalComponent: createInternalComponent, createInstanceForText: createInstanceForText, isTextComponent: isTextComponent, injection: ReactNativeComponentInjection }; module.exports = ReactNativeComponent; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 70 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule validateDOMNesting */ 'use strict'; var assign = __webpack_require__(39); var emptyFunction = __webpack_require__(15); var warning = __webpack_require__(25); var validateDOMNesting = emptyFunction; if (process.env.NODE_ENV !== 'production') { // This validation code was written based on the HTML5 parsing spec: // path_to_url#has-an-element-in-scope // // Note: this does not catch all invalid nesting, nor does it try to (as it's // not clear what practical benefit doing so provides); instead, we warn only // for cases where the parser will give a parse tree differing from what React // intended. For example, <b><div></div></b> is invalid but we don't warn // because it still parses correctly; we do warn for other cases like nested // <p> tags where the beginning of the second element implicitly closes the // first, causing a confusing mess. // path_to_url#special var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // path_to_url#has-an-element-in-scope var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // path_to_url#html-integration-point // TODO: Distinguish by namespace here -- for <title>, including it here // errs on the side of fewer warnings 'foreignObject', 'desc', 'title']; // path_to_url#has-an-element-in-button-scope var buttonScopeTags = inScopeTags.concat(['button']); // path_to_url#generate-implied-end-tags var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt']; var emptyAncestorInfo = { parentTag: null, formTag: null, aTagInScope: null, buttonTagInScope: null, nobrTagInScope: null, pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null }; var updatedAncestorInfo = function (oldInfo, tag, instance) { var ancestorInfo = assign({}, oldInfo || emptyAncestorInfo); var info = { tag: tag, instance: instance }; if (inScopeTags.indexOf(tag) !== -1) { ancestorInfo.aTagInScope = null; ancestorInfo.buttonTagInScope = null; ancestorInfo.nobrTagInScope = null; } if (buttonScopeTags.indexOf(tag) !== -1) { ancestorInfo.pTagInButtonScope = null; } // See rules for 'li', 'dd', 'dt' start tags in // path_to_url#parsing-main-inbody if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') { ancestorInfo.listItemTagAutoclosing = null; ancestorInfo.dlItemTagAutoclosing = null; } ancestorInfo.parentTag = info; if (tag === 'form') { ancestorInfo.formTag = info; } if (tag === 'a') { ancestorInfo.aTagInScope = info; } if (tag === 'button') { ancestorInfo.buttonTagInScope = info; } if (tag === 'nobr') { ancestorInfo.nobrTagInScope = info; } if (tag === 'p') { ancestorInfo.pTagInButtonScope = info; } if (tag === 'li') { ancestorInfo.listItemTagAutoclosing = info; } if (tag === 'dd' || tag === 'dt') { ancestorInfo.dlItemTagAutoclosing = info; } return ancestorInfo; }; /** * Returns whether */ var isTagValidWithParent = function (tag, parentTag) { // First, let's check if we're in an unusual parsing mode... switch (parentTag) { // path_to_url#parsing-main-inselect case 'select': return tag === 'option' || tag === 'optgroup' || tag === '#text'; case 'optgroup': return tag === 'option' || tag === '#text'; // Strictly speaking, seeing an <option> doesn't mean we're in a <select> // but case 'option': return tag === '#text'; // path_to_url#parsing-main-intd // path_to_url#parsing-main-incaption // No special behavior since these rules fall back to "in body" mode for // all except special table nodes which cause bad parsing behavior anyway. // path_to_url#parsing-main-intr case 'tr': return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template'; // path_to_url#parsing-main-intbody case 'tbody': case 'thead': case 'tfoot': return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template'; // path_to_url#parsing-main-incolgroup case 'colgroup': return tag === 'col' || tag === 'template'; // path_to_url#parsing-main-intable case 'table': return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template'; // path_to_url#parsing-main-inhead case 'head': return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template'; // path_to_url#the-html-element case 'html': return tag === 'head' || tag === 'body'; } // Probably in the "in body" parsing mode, so we outlaw only tag combos // where the parsing rules cause implicit opens or closes to be added. // path_to_url#parsing-main-inbody switch (tag) { case 'h1': case 'h2': case 'h3': case 'h4': case 'h5': case 'h6': return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6'; case 'rp': case 'rt': return impliedEndTags.indexOf(parentTag) === -1; case 'caption': case 'col': case 'colgroup': case 'frame': case 'head': case 'tbody': case 'td': case 'tfoot': case 'th': case 'thead': case 'tr': // These tags are only valid with a few parents that have special child // parsing rules -- if we're down here, then none of those matched and // so we allow it only if we don't know what the parent is, as all other // cases are invalid. return parentTag == null; } return true; }; /** * Returns whether */ var findInvalidAncestorForTag = function (tag, ancestorInfo) { switch (tag) { case 'address': case 'article': case 'aside': case 'blockquote': case 'center': case 'details': case 'dialog': case 'dir': case 'div': case 'dl': case 'fieldset': case 'figcaption': case 'figure': case 'footer': case 'header': case 'hgroup': case 'main': case 'menu': case 'nav': case 'ol': case 'p': case 'section': case 'summary': case 'ul': case 'pre': case 'listing': case 'table': case 'hr': case 'xmp': case 'h1': case 'h2': case 'h3': case 'h4': case 'h5': case 'h6': return ancestorInfo.pTagInButtonScope; case 'form': return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; case 'li': return ancestorInfo.listItemTagAutoclosing; case 'dd': case 'dt': return ancestorInfo.dlItemTagAutoclosing; case 'button': return ancestorInfo.buttonTagInScope; case 'a': // Spec says something about storing a list of markers, but it sounds // equivalent to this check. return ancestorInfo.aTagInScope; case 'nobr': return ancestorInfo.nobrTagInScope; } return null; }; /** * Given a ReactCompositeComponent instance, return a list of its recursive * owners, starting at the root and ending with the instance itself. */ var findOwnerStack = function (instance) { if (!instance) { return []; } var stack = []; /*eslint-disable space-after-keywords */ do { /*eslint-enable space-after-keywords */ stack.push(instance); } while (instance = instance._currentElement._owner); stack.reverse(); return stack; }; var didWarn = {}; validateDOMNesting = function (childTag, childInstance, ancestorInfo) { ancestorInfo = ancestorInfo || emptyAncestorInfo; var parentInfo = ancestorInfo.parentTag; var parentTag = parentInfo && parentInfo.tag; var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo; var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo); var problematic = invalidParent || invalidAncestor; if (problematic) { var ancestorTag = problematic.tag; var ancestorInstance = problematic.instance; var childOwner = childInstance && childInstance._currentElement._owner; var ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner; var childOwners = findOwnerStack(childOwner); var ancestorOwners = findOwnerStack(ancestorOwner); var minStackLen = Math.min(childOwners.length, ancestorOwners.length); var i; var deepestCommon = -1; for (i = 0; i < minStackLen; i++) { if (childOwners[i] === ancestorOwners[i]) { deepestCommon = i; } else { break; } } var UNKNOWN = '(unknown)'; var childOwnerNames = childOwners.slice(deepestCommon + 1).map(function (inst) { return inst.getName() || UNKNOWN; }); var ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function (inst) { return inst.getName() || UNKNOWN; }); var ownerInfo = [].concat( // If the parent and child instances have a common owner ancestor, start // with that -- otherwise we just start with the parent's owners. deepestCommon !== -1 ? childOwners[deepestCommon].getName() || UNKNOWN : [], ancestorOwnerNames, ancestorTag, // If we're warning about an invalid (non-parent) ancestry, add '...' invalidAncestor ? ['...'] : [], childOwnerNames, childTag).join(' > '); var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + ownerInfo; if (didWarn[warnKey]) { return; } didWarn[warnKey] = true; if (invalidParent) { var info = ''; if (ancestorTag === 'table' && childTag === 'tr') { info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.'; } process.env.NODE_ENV !== 'production' ? warning(false, 'validateDOMNesting(...): <%s> cannot appear as a child of <%s>. ' + 'See %s.%s', childTag, ancestorTag, ownerInfo, info) : undefined; } else { process.env.NODE_ENV !== 'production' ? warning(false, 'validateDOMNesting(...): <%s> cannot appear as a descendant of ' + '<%s>. See %s.', childTag, ancestorTag, ownerInfo) : undefined; } } }; validateDOMNesting.ancestorInfoContextKey = '__validateDOMNesting_ancestorInfo$' + Math.random().toString(36).slice(2); validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo; // For testing validateDOMNesting.isTagValidInContext = function (tag, ancestorInfo) { ancestorInfo = ancestorInfo || emptyAncestorInfo; var parentInfo = ancestorInfo.parentTag; var parentTag = parentInfo && parentInfo.tag; return isTagValidWithParent(tag, parentTag) && !findInvalidAncestorForTag(tag, ancestorInfo); }; } module.exports = validateDOMNesting; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 71 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDefaultInjection */ 'use strict'; var BeforeInputEventPlugin = __webpack_require__(72); var ChangeEventPlugin = __webpack_require__(80); var ClientReactRootIndex = __webpack_require__(83); var DefaultEventPluginOrder = __webpack_require__(84); var EnterLeaveEventPlugin = __webpack_require__(85); var ExecutionEnvironment = __webpack_require__(9); var HTMLDOMPropertyConfig = __webpack_require__(89); var ReactBrowserComponentMixin = __webpack_require__(90); var ReactComponentBrowserEnvironment = __webpack_require__(26); var ReactDefaultBatchingStrategy = __webpack_require__(92); var ReactDOMComponent = __webpack_require__(93); var ReactDOMTextComponent = __webpack_require__(6); var ReactEventListener = __webpack_require__(118); var ReactInjection = __webpack_require__(121); var ReactInstanceHandles = __webpack_require__(45); var ReactMount = __webpack_require__(28); var ReactReconcileTransaction = __webpack_require__(125); var SelectEventPlugin = __webpack_require__(130); var ServerReactRootIndex = __webpack_require__(131); var SimpleEventPlugin = __webpack_require__(132); var SVGDOMPropertyConfig = __webpack_require__(141); var alreadyInjected = false; function inject() { if (alreadyInjected) { // TODO: This is currently true because these injections are shared between // the client and the server package. They should be built independently // and not share any injection state. Then this problem will be solved. return; } alreadyInjected = true; ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener); /** * Inject modules for resolving DOM hierarchy and plugin ordering. */ ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder); ReactInjection.EventPluginHub.injectInstanceHandle(ReactInstanceHandles); ReactInjection.EventPluginHub.injectMount(ReactMount); /** * Some important event plugins included by default (without having to require * them). */ ReactInjection.EventPluginHub.injectEventPluginsByName({ SimpleEventPlugin: SimpleEventPlugin, EnterLeaveEventPlugin: EnterLeaveEventPlugin, ChangeEventPlugin: ChangeEventPlugin, SelectEventPlugin: SelectEventPlugin, BeforeInputEventPlugin: BeforeInputEventPlugin }); ReactInjection.NativeComponent.injectGenericComponentClass(ReactDOMComponent); ReactInjection.NativeComponent.injectTextComponentClass(ReactDOMTextComponent); ReactInjection.Class.injectMixin(ReactBrowserComponentMixin); ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig); ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig); ReactInjection.EmptyComponent.injectEmptyComponent('noscript'); ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction); ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy); ReactInjection.RootIndex.injectCreateReactRootIndex(ExecutionEnvironment.canUseDOM ? ClientReactRootIndex.createReactRootIndex : ServerReactRootIndex.createReactRootIndex); ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment); if (process.env.NODE_ENV !== 'production') { var url = ExecutionEnvironment.canUseDOM && window.location.href || ''; if (/[?&]react_perf\b/.test(url)) { var ReactDefaultPerf = __webpack_require__(142); ReactDefaultPerf.start(); } } } module.exports = { inject: inject }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 72 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule BeforeInputEventPlugin * @typechecks static-only */ 'use strict'; var EventConstants = __webpack_require__(30); var EventPropagators = __webpack_require__(73); var ExecutionEnvironment = __webpack_require__(9); var FallbackCompositionState = __webpack_require__(74); var SyntheticCompositionEvent = __webpack_require__(76); var SyntheticInputEvent = __webpack_require__(78); var keyOf = __webpack_require__(79); var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space var START_KEYCODE = 229; var canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window; var documentMode = null; if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) { documentMode = document.documentMode; } // Webkit offers a very useful `textInput` event that can be used to // directly represent `beforeInput`. The IE `textinput` event is not as // useful, so we don't use it. var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto(); // In IE9+, we have access to composition events, but the data supplied // by the native compositionend event may be incorrect. Japanese ideographic // spaces, for instance (\u3000) are not recorded correctly. var useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11); /** * Opera <= 12 includes TextEvent in window, but does not fire * text input events. Rely on keypress instead. */ function isPresto() { var opera = window.opera; return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12; } var SPACEBAR_CODE = 32; var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); var topLevelTypes = EventConstants.topLevelTypes; // Events and their corresponding property names. var eventTypes = { beforeInput: { phasedRegistrationNames: { bubbled: keyOf({ onBeforeInput: null }), captured: keyOf({ onBeforeInputCapture: null }) }, dependencies: [topLevelTypes.topCompositionEnd, topLevelTypes.topKeyPress, topLevelTypes.topTextInput, topLevelTypes.topPaste] }, compositionEnd: { phasedRegistrationNames: { bubbled: keyOf({ onCompositionEnd: null }), captured: keyOf({ onCompositionEndCapture: null }) }, dependencies: [topLevelTypes.topBlur, topLevelTypes.topCompositionEnd, topLevelTypes.topKeyDown, topLevelTypes.topKeyPress, topLevelTypes.topKeyUp, topLevelTypes.topMouseDown] }, compositionStart: { phasedRegistrationNames: { bubbled: keyOf({ onCompositionStart: null }), captured: keyOf({ onCompositionStartCapture: null }) }, dependencies: [topLevelTypes.topBlur, topLevelTypes.topCompositionStart, topLevelTypes.topKeyDown, topLevelTypes.topKeyPress, topLevelTypes.topKeyUp, topLevelTypes.topMouseDown] }, compositionUpdate: { phasedRegistrationNames: { bubbled: keyOf({ onCompositionUpdate: null }), captured: keyOf({ onCompositionUpdateCapture: null }) }, dependencies: [topLevelTypes.topBlur, topLevelTypes.topCompositionUpdate, topLevelTypes.topKeyDown, topLevelTypes.topKeyPress, topLevelTypes.topKeyUp, topLevelTypes.topMouseDown] } }; // Track whether we've ever handled a keypress on the space key. var hasSpaceKeypress = false; /** * Return whether a native keypress event is assumed to be a command. * This is required because Firefox fires `keypress` events for key commands * (cut, copy, select-all, etc.) even though no character is inserted. */ function isKeypressCommand(nativeEvent) { return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command. !(nativeEvent.ctrlKey && nativeEvent.altKey); } /** * Translate native top level events into event types. * * @param {string} topLevelType * @return {object} */ function getCompositionEventType(topLevelType) { switch (topLevelType) { case topLevelTypes.topCompositionStart: return eventTypes.compositionStart; case topLevelTypes.topCompositionEnd: return eventTypes.compositionEnd; case topLevelTypes.topCompositionUpdate: return eventTypes.compositionUpdate; } } /** * Does our fallback best-guess model think this event signifies that * composition has begun? * * @param {string} topLevelType * @param {object} nativeEvent * @return {boolean} */ function isFallbackCompositionStart(topLevelType, nativeEvent) { return topLevelType === topLevelTypes.topKeyDown && nativeEvent.keyCode === START_KEYCODE; } /** * Does our fallback mode think that this event is the end of composition? * * @param {string} topLevelType * @param {object} nativeEvent * @return {boolean} */ function isFallbackCompositionEnd(topLevelType, nativeEvent) { switch (topLevelType) { case topLevelTypes.topKeyUp: // Command keys insert or clear IME input. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1; case topLevelTypes.topKeyDown: // Expect IME keyCode on each keydown. If we get any other // code we must have exited earlier. return nativeEvent.keyCode !== START_KEYCODE; case topLevelTypes.topKeyPress: case topLevelTypes.topMouseDown: case topLevelTypes.topBlur: // Events are not possible without cancelling IME. return true; default: return false; } } /** * Google Input Tools provides composition data via a CustomEvent, * with the `data` property populated in the `detail` object. If this * is available on the event object, use it. If not, this is a plain * composition event and we have nothing special to extract. * * @param {object} nativeEvent * @return {?string} */ function getDataFromCustomEvent(nativeEvent) { var detail = nativeEvent.detail; if (typeof detail === 'object' && 'data' in detail) { return detail.data; } return null; } // Track the current IME composition fallback object, if any. var currentComposition = null; /** * @param {string} topLevelType Record from `EventConstants`. * @param {DOMEventTarget} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native browser event. * @return {?object} A SyntheticCompositionEvent. */ function extractCompositionEvent(topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { var eventType; var fallbackData; if (canUseCompositionEvent) { eventType = getCompositionEventType(topLevelType); } else if (!currentComposition) { if (isFallbackCompositionStart(topLevelType, nativeEvent)) { eventType = eventTypes.compositionStart; } } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) { eventType = eventTypes.compositionEnd; } if (!eventType) { return null; } if (useFallbackCompositionData) { // The current composition is stored statically and must not be // overwritten while composition continues. if (!currentComposition && eventType === eventTypes.compositionStart) { currentComposition = FallbackCompositionState.getPooled(topLevelTarget); } else if (eventType === eventTypes.compositionEnd) { if (currentComposition) { fallbackData = currentComposition.getData(); } } } var event = SyntheticCompositionEvent.getPooled(eventType, topLevelTargetID, nativeEvent, nativeEventTarget); if (fallbackData) { // Inject data generated from fallback path into the synthetic event. // This matches the property of native CompositionEventInterface. event.data = fallbackData; } else { var customData = getDataFromCustomEvent(nativeEvent); if (customData !== null) { event.data = customData; } } EventPropagators.accumulateTwoPhaseDispatches(event); return event; } /** * @param {string} topLevelType Record from `EventConstants`. * @param {object} nativeEvent Native browser event. * @return {?string} The string corresponding to this `beforeInput` event. */ function getNativeBeforeInputChars(topLevelType, nativeEvent) { switch (topLevelType) { case topLevelTypes.topCompositionEnd: return getDataFromCustomEvent(nativeEvent); case topLevelTypes.topKeyPress: /** * If native `textInput` events are available, our goal is to make * use of them. However, there is a special case: the spacebar key. * In Webkit, preventing default on a spacebar `textInput` event * cancels character insertion, but it *also* causes the browser * to fall back to its default spacebar behavior of scrolling the * page. * * Tracking at: * path_to_url * * To avoid this issue, use the keypress event as if no `textInput` * event is available. */ var which = nativeEvent.which; if (which !== SPACEBAR_CODE) { return null; } hasSpaceKeypress = true; return SPACEBAR_CHAR; case topLevelTypes.topTextInput: // Record the characters to be added to the DOM. var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled // it at the keypress level and bail immediately. Android Chrome // doesn't give us keycodes, so we need to blacklist it. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) { return null; } return chars; default: // For other native event types, do nothing. return null; } } /** * For browsers that do not provide the `textInput` event, extract the * appropriate string to use for SyntheticInputEvent. * * @param {string} topLevelType Record from `EventConstants`. * @param {object} nativeEvent Native browser event. * @return {?string} The fallback string for this `beforeInput` event. */ function getFallbackBeforeInputChars(topLevelType, nativeEvent) { // If we are currently composing (IME) and using a fallback to do so, // try to extract the composed characters from the fallback object. if (currentComposition) { if (topLevelType === topLevelTypes.topCompositionEnd || isFallbackCompositionEnd(topLevelType, nativeEvent)) { var chars = currentComposition.getData(); FallbackCompositionState.release(currentComposition); currentComposition = null; return chars; } return null; } switch (topLevelType) { case topLevelTypes.topPaste: // If a paste event occurs after a keypress, throw out the input // chars. Paste events should not lead to BeforeInput events. return null; case topLevelTypes.topKeyPress: /** * As of v27, Firefox may fire keypress events even when no character * will be inserted. A few possibilities: * * - `which` is `0`. Arrow keys, Esc key, etc. * * - `which` is the pressed key code, but no char is available. * Ex: 'AltGr + d` in Polish. There is no modified character for * this key combination and no character is inserted into the * document, but FF fires the keypress for char code `100` anyway. * No `input` event will occur. * * - `which` is the pressed key code, but a command combination is * being used. Ex: `Cmd+C`. No character is inserted, and no * `input` event will occur. */ if (nativeEvent.which && !isKeypressCommand(nativeEvent)) { return String.fromCharCode(nativeEvent.which); } return null; case topLevelTypes.topCompositionEnd: return useFallbackCompositionData ? null : nativeEvent.data; default: return null; } } /** * Extract a SyntheticInputEvent for `beforeInput`, based on either native * `textInput` or fallback behavior. * * @param {string} topLevelType Record from `EventConstants`. * @param {DOMEventTarget} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native browser event. * @return {?object} A SyntheticInputEvent. */ function extractBeforeInputEvent(topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { var chars; if (canUseTextInputEvent) { chars = getNativeBeforeInputChars(topLevelType, nativeEvent); } else { chars = getFallbackBeforeInputChars(topLevelType, nativeEvent); } // If no characters are being inserted, no BeforeInput event should // be fired. if (!chars) { return null; } var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, topLevelTargetID, nativeEvent, nativeEventTarget); event.data = chars; EventPropagators.accumulateTwoPhaseDispatches(event); return event; } /** * Create an `onBeforeInput` event to match * path_to_url#events-inputevents. * * This event plugin is based on the native `textInput` event * available in Chrome, Safari, Opera, and IE. This event fires after * `onKeyPress` and `onCompositionEnd`, but before `onInput`. * * `beforeInput` is spec'd but not implemented in any browsers, and * the `input` event does not provide any useful information about what has * actually been added, contrary to the spec. Thus, `textInput` is the best * available event to identify the characters that have actually been inserted * into the target node. * * This plugin is also responsible for emitting `composition` events, thus * allowing us to share composition fallback code for both `beforeInput` and * `composition` event types. */ var BeforeInputEventPlugin = { eventTypes: eventTypes, /** * @param {string} topLevelType Record from `EventConstants`. * @param {DOMEventTarget} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native browser event. * @return {*} An accumulation of synthetic events. * @see {EventPluginHub.extractEvents} */ extractEvents: function (topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { return [extractCompositionEvent(topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget)]; } }; module.exports = BeforeInputEventPlugin; /***/ }, /* 73 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPropagators */ 'use strict'; var EventConstants = __webpack_require__(30); var EventPluginHub = __webpack_require__(31); var warning = __webpack_require__(25); var accumulateInto = __webpack_require__(35); var forEachAccumulated = __webpack_require__(36); var PropagationPhases = EventConstants.PropagationPhases; var getListener = EventPluginHub.getListener; /** * Some event types have a notion of different registration names for different * "phases" of propagation. This finds listeners by a given phase. */ function listenerAtPhase(id, event, propagationPhase) { var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; return getListener(id, registrationName); } /** * Tags a `SyntheticEvent` with dispatched listeners. Creating this function * here, allows us to not have to bind or create functions for each event. * Mutating the event's members allows us to not have to create a wrapping * "dispatch" object that pairs the event with the listener. */ function accumulateDirectionalDispatches(domID, upwards, event) { if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(domID, 'Dispatching id must not be null') : undefined; } var phase = upwards ? PropagationPhases.bubbled : PropagationPhases.captured; var listener = listenerAtPhase(domID, event, phase); if (listener) { event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); event._dispatchIDs = accumulateInto(event._dispatchIDs, domID); } } /** * Collect dispatches (must be entirely collected before dispatching - see unit * tests). Lazily allocate the array to conserve memory. We must loop through * each event and perform the traversal for each one. We cannot perform a * single traversal for the entire collection of events because each event may * have a different target. */ function accumulateTwoPhaseDispatchesSingle(event) { if (event && event.dispatchConfig.phasedRegistrationNames) { EventPluginHub.injection.getInstanceHandle().traverseTwoPhase(event.dispatchMarker, accumulateDirectionalDispatches, event); } } /** * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID. */ function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { if (event && event.dispatchConfig.phasedRegistrationNames) { EventPluginHub.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(event.dispatchMarker, accumulateDirectionalDispatches, event); } } /** * Accumulates without regard to direction, does not look for phased * registration names. Same as `accumulateDirectDispatchesSingle` but without * requiring that the `dispatchMarker` be the same as the dispatched ID. */ function accumulateDispatches(id, ignoredDirection, event) { if (event && event.dispatchConfig.registrationName) { var registrationName = event.dispatchConfig.registrationName; var listener = getListener(id, registrationName); if (listener) { event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); event._dispatchIDs = accumulateInto(event._dispatchIDs, id); } } } /** * Accumulates dispatches on an `SyntheticEvent`, but only for the * `dispatchMarker`. * @param {SyntheticEvent} event */ function accumulateDirectDispatchesSingle(event) { if (event && event.dispatchConfig.registrationName) { accumulateDispatches(event.dispatchMarker, null, event); } } function accumulateTwoPhaseDispatches(events) { forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); } function accumulateTwoPhaseDispatchesSkipTarget(events) { forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); } function accumulateEnterLeaveDispatches(leave, enter, fromID, toID) { EventPluginHub.injection.getInstanceHandle().traverseEnterLeave(fromID, toID, accumulateDispatches, leave, enter); } function accumulateDirectDispatches(events) { forEachAccumulated(events, accumulateDirectDispatchesSingle); } /** * A small set of propagation patterns, each of which will accept a small amount * of information, and generate a set of "dispatch ready event objects" - which * are sets of events that have already been annotated with a set of dispatched * listener functions/ids. The API is designed this way to discourage these * propagation strategies from actually executing the dispatches, since we * always want to collect the entire set of dispatches before executing event a * single one. * * @constructor EventPropagators */ var EventPropagators = { accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches, accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget, accumulateDirectDispatches: accumulateDirectDispatches, accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches }; module.exports = EventPropagators; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 74 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule FallbackCompositionState * @typechecks static-only */ 'use strict'; var PooledClass = __webpack_require__(56); var assign = __webpack_require__(39); var getTextContentAccessor = __webpack_require__(75); /** * This helper class stores information about text content of a target node, * allowing comparison of content before and after a given event. * * Identify the node where selection currently begins, then observe * both its text content and its current position in the DOM. Since the * browser may natively replace the target node during composition, we can * use its position to find its replacement. * * @param {DOMEventTarget} root */ function FallbackCompositionState(root) { this._root = root; this._startText = this.getText(); this._fallbackText = null; } assign(FallbackCompositionState.prototype, { destructor: function () { this._root = null; this._startText = null; this._fallbackText = null; }, /** * Get current text of input. * * @return {string} */ getText: function () { if ('value' in this._root) { return this._root.value; } return this._root[getTextContentAccessor()]; }, /** * Determine the differing substring between the initially stored * text content and the current content. * * @return {string} */ getData: function () { if (this._fallbackText) { return this._fallbackText; } var start; var startValue = this._startText; var startLength = startValue.length; var end; var endValue = this.getText(); var endLength = endValue.length; for (start = 0; start < startLength; start++) { if (startValue[start] !== endValue[start]) { break; } } var minEnd = startLength - start; for (end = 1; end <= minEnd; end++) { if (startValue[startLength - end] !== endValue[endLength - end]) { break; } } var sliceTail = end > 1 ? 1 - end : undefined; this._fallbackText = endValue.slice(start, sliceTail); return this._fallbackText; } }); PooledClass.addPoolingTo(FallbackCompositionState); module.exports = FallbackCompositionState; /***/ }, /* 75 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getTextContentAccessor */ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var contentKey = null; /** * Gets the key used to access text content on a DOM node. * * @return {?string} Key used to access text content. * @internal */ function getTextContentAccessor() { if (!contentKey && ExecutionEnvironment.canUseDOM) { // Prefer textContent to innerText because many browsers support both but // SVG <text> elements don't support innerText even when <div> does. contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText'; } return contentKey; } module.exports = getTextContentAccessor; /***/ }, /* 76 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticCompositionEvent * @typechecks static-only */ 'use strict'; var SyntheticEvent = __webpack_require__(77); /** * @interface Event * @see path_to_url#events-compositionevents */ var CompositionEventInterface = { data: null }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticUIEvent} */ function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface); module.exports = SyntheticCompositionEvent; /***/ }, /* 77 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticEvent * @typechecks static-only */ 'use strict'; var PooledClass = __webpack_require__(56); var assign = __webpack_require__(39); var emptyFunction = __webpack_require__(15); var warning = __webpack_require__(25); /** * @interface Event * @see path_to_url */ var EventInterface = { type: null, // currentTarget is set when dispatching; no use in copying it here currentTarget: emptyFunction.thatReturnsNull, eventPhase: null, bubbles: null, cancelable: null, timeStamp: function (event) { return event.timeStamp || Date.now(); }, defaultPrevented: null, isTrusted: null }; /** * Synthetic events are dispatched by event plugins, typically in response to a * top-level event delegation handler. * * These systems should generally use pooling to reduce the frequency of garbage * collection. The system should check `isPersistent` to determine whether the * event should be released into the pool after being dispatched. Users that * need a persisted event should invoke `persist`. * * Synthetic events (and subclasses) implement the DOM Level 3 Events API by * normalizing browser quirks. Subclasses do not necessarily have to implement a * DOM interface; custom application-specific events can also subclass this. * * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. */ function SyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { this.dispatchConfig = dispatchConfig; this.dispatchMarker = dispatchMarker; this.nativeEvent = nativeEvent; this.target = nativeEventTarget; this.currentTarget = nativeEventTarget; var Interface = this.constructor.Interface; for (var propName in Interface) { if (!Interface.hasOwnProperty(propName)) { continue; } var normalize = Interface[propName]; if (normalize) { this[propName] = normalize(nativeEvent); } else { this[propName] = nativeEvent[propName]; } } var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; if (defaultPrevented) { this.isDefaultPrevented = emptyFunction.thatReturnsTrue; } else { this.isDefaultPrevented = emptyFunction.thatReturnsFalse; } this.isPropagationStopped = emptyFunction.thatReturnsFalse; } assign(SyntheticEvent.prototype, { preventDefault: function () { this.defaultPrevented = true; var event = this.nativeEvent; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(event, 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re calling `preventDefault` on a ' + 'released/nullified synthetic event. This is a no-op. See ' + 'path_to_url for more information.') : undefined; } if (!event) { return; } if (event.preventDefault) { event.preventDefault(); } else { event.returnValue = false; } this.isDefaultPrevented = emptyFunction.thatReturnsTrue; }, stopPropagation: function () { var event = this.nativeEvent; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(event, 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re calling `stopPropagation` on a ' + 'released/nullified synthetic event. This is a no-op. See ' + 'path_to_url for more information.') : undefined; } if (!event) { return; } if (event.stopPropagation) { event.stopPropagation(); } else { event.cancelBubble = true; } this.isPropagationStopped = emptyFunction.thatReturnsTrue; }, /** * We release all dispatched `SyntheticEvent`s after each event loop, adding * them back into the pool. This allows a way to hold onto a reference that * won't be added back into the pool. */ persist: function () { this.isPersistent = emptyFunction.thatReturnsTrue; }, /** * Checks if this event should be released back into the pool. * * @return {boolean} True if this should not be released, false otherwise. */ isPersistent: emptyFunction.thatReturnsFalse, /** * `PooledClass` looks for `destructor` on each instance it releases. */ destructor: function () { var Interface = this.constructor.Interface; for (var propName in Interface) { this[propName] = null; } this.dispatchConfig = null; this.dispatchMarker = null; this.nativeEvent = null; } }); SyntheticEvent.Interface = EventInterface; /** * Helper to reduce boilerplate when creating subclasses. * * @param {function} Class * @param {?object} Interface */ SyntheticEvent.augmentClass = function (Class, Interface) { var Super = this; var prototype = Object.create(Super.prototype); assign(prototype, Class.prototype); Class.prototype = prototype; Class.prototype.constructor = Class; Class.Interface = assign({}, Super.Interface, Interface); Class.augmentClass = Super.augmentClass; PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler); }; PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler); module.exports = SyntheticEvent; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 78 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticInputEvent * @typechecks static-only */ 'use strict'; var SyntheticEvent = __webpack_require__(77); /** * @interface Event * @see path_to_url * /#events-inputevents */ var InputEventInterface = { data: null }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticUIEvent} */ function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface); module.exports = SyntheticInputEvent; /***/ }, /* 79 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule keyOf */ /** * Allows extraction of a minified key. Let's the build system minify keys * without losing the ability to dynamically use key strings as values * themselves. Pass in an object with a single key/val pair and it will return * you the string key of that single record. Suppose you want to grab the * value for a key 'className' inside of an object. Key/val minification may * have aliased that key to be 'xa12'. keyOf({className: null}) will return * 'xa12' in that case. Resolve keys you want to use once at startup time, then * reuse those resolutions. */ "use strict"; var keyOf = function (oneKeyObj) { var key; for (key in oneKeyObj) { if (!oneKeyObj.hasOwnProperty(key)) { continue; } return key; } return null; }; module.exports = keyOf; /***/ }, /* 80 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ChangeEventPlugin */ 'use strict'; var EventConstants = __webpack_require__(30); var EventPluginHub = __webpack_require__(31); var EventPropagators = __webpack_require__(73); var ExecutionEnvironment = __webpack_require__(9); var ReactUpdates = __webpack_require__(54); var SyntheticEvent = __webpack_require__(77); var getEventTarget = __webpack_require__(81); var isEventSupported = __webpack_require__(40); var isTextInputElement = __webpack_require__(82); var keyOf = __webpack_require__(79); var topLevelTypes = EventConstants.topLevelTypes; var eventTypes = { change: { phasedRegistrationNames: { bubbled: keyOf({ onChange: null }), captured: keyOf({ onChangeCapture: null }) }, dependencies: [topLevelTypes.topBlur, topLevelTypes.topChange, topLevelTypes.topClick, topLevelTypes.topFocus, topLevelTypes.topInput, topLevelTypes.topKeyDown, topLevelTypes.topKeyUp, topLevelTypes.topSelectionChange] } }; /** * For IE shims */ var activeElement = null; var activeElementID = null; var activeElementValue = null; var activeElementValueProp = null; /** * SECTION: handle `change` event */ function shouldUseChangeEvent(elem) { var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); return nodeName === 'select' || nodeName === 'input' && elem.type === 'file'; } var doesChangeEventBubble = false; if (ExecutionEnvironment.canUseDOM) { // See `handleChange` comment below doesChangeEventBubble = isEventSupported('change') && (!('documentMode' in document) || document.documentMode > 8); } function manualDispatchChangeEvent(nativeEvent) { var event = SyntheticEvent.getPooled(eventTypes.change, activeElementID, nativeEvent, getEventTarget(nativeEvent)); EventPropagators.accumulateTwoPhaseDispatches(event); // If change and propertychange bubbled, we'd just bind to it like all the // other events and have it go through ReactBrowserEventEmitter. Since it // doesn't, we manually listen for the events and so we have to enqueue and // process the abstract event manually. // // Batching is necessary here in order to ensure that all event handlers run // before the next rerender (including event handlers attached to ancestor // elements instead of directly on the input). Without this, controlled // components don't work properly in conjunction with event bubbling because // the component is rerendered and the value reverted before all the event // handlers can run. See path_to_url ReactUpdates.batchedUpdates(runEventInBatch, event); } function runEventInBatch(event) { EventPluginHub.enqueueEvents(event); EventPluginHub.processEventQueue(false); } function startWatchingForChangeEventIE8(target, targetID) { activeElement = target; activeElementID = targetID; activeElement.attachEvent('onchange', manualDispatchChangeEvent); } function stopWatchingForChangeEventIE8() { if (!activeElement) { return; } activeElement.detachEvent('onchange', manualDispatchChangeEvent); activeElement = null; activeElementID = null; } function getTargetIDForChangeEvent(topLevelType, topLevelTarget, topLevelTargetID) { if (topLevelType === topLevelTypes.topChange) { return topLevelTargetID; } } function handleEventsForChangeEventIE8(topLevelType, topLevelTarget, topLevelTargetID) { if (topLevelType === topLevelTypes.topFocus) { // stopWatching() should be a noop here but we call it just in case we // missed a blur event somehow. stopWatchingForChangeEventIE8(); startWatchingForChangeEventIE8(topLevelTarget, topLevelTargetID); } else if (topLevelType === topLevelTypes.topBlur) { stopWatchingForChangeEventIE8(); } } /** * SECTION: handle `input` event */ var isInputEventSupported = false; if (ExecutionEnvironment.canUseDOM) { // IE9 claims to support the input event but fails to trigger it when // deleting text, so we ignore its input events isInputEventSupported = isEventSupported('input') && (!('documentMode' in document) || document.documentMode > 9); } /** * (For old IE.) Replacement getter/setter for the `value` property that gets * set on the active element. */ var newValueProp = { get: function () { return activeElementValueProp.get.call(this); }, set: function (val) { // Cast to a string so we can do equality checks. activeElementValue = '' + val; activeElementValueProp.set.call(this, val); } }; /** * (For old IE.) Starts tracking propertychange events on the passed-in element * and override the value property so that we can distinguish user events from * value changes in JS. */ function startWatchingForValueChange(target, targetID) { activeElement = target; activeElementID = targetID; activeElementValue = target.value; activeElementValueProp = Object.getOwnPropertyDescriptor(target.constructor.prototype, 'value'); // Not guarded in a canDefineProperty check: IE8 supports defineProperty only // on DOM elements Object.defineProperty(activeElement, 'value', newValueProp); activeElement.attachEvent('onpropertychange', handlePropertyChange); } /** * (For old IE.) Removes the event listeners from the currently-tracked element, * if any exists. */ function stopWatchingForValueChange() { if (!activeElement) { return; } // delete restores the original property definition delete activeElement.value; activeElement.detachEvent('onpropertychange', handlePropertyChange); activeElement = null; activeElementID = null; activeElementValue = null; activeElementValueProp = null; } /** * (For old IE.) Handles a propertychange event, sending a `change` event if * the value of the active element has changed. */ function handlePropertyChange(nativeEvent) { if (nativeEvent.propertyName !== 'value') { return; } var value = nativeEvent.srcElement.value; if (value === activeElementValue) { return; } activeElementValue = value; manualDispatchChangeEvent(nativeEvent); } /** * If a `change` event should be fired, returns the target's ID. */ function getTargetIDForInputEvent(topLevelType, topLevelTarget, topLevelTargetID) { if (topLevelType === topLevelTypes.topInput) { // In modern browsers (i.e., not IE8 or IE9), the input event is exactly // what we want so fall through here and trigger an abstract event return topLevelTargetID; } } // For IE8 and IE9. function handleEventsForInputEventIE(topLevelType, topLevelTarget, topLevelTargetID) { if (topLevelType === topLevelTypes.topFocus) { // In IE8, we can capture almost all .value changes by adding a // propertychange handler and looking for events with propertyName // equal to 'value' // In IE9, propertychange fires for most input events but is buggy and // doesn't fire when text is deleted, but conveniently, selectionchange // appears to fire in all of the remaining cases so we catch those and // forward the event if the value has changed // In either case, we don't want to call the event handler if the value // is changed from JS so we redefine a setter for `.value` that updates // our activeElementValue variable, allowing us to ignore those changes // // stopWatching() should be a noop here but we call it just in case we // missed a blur event somehow. stopWatchingForValueChange(); startWatchingForValueChange(topLevelTarget, topLevelTargetID); } else if (topLevelType === topLevelTypes.topBlur) { stopWatchingForValueChange(); } } // For IE8 and IE9. function getTargetIDForInputEventIE(topLevelType, topLevelTarget, topLevelTargetID) { if (topLevelType === topLevelTypes.topSelectionChange || topLevelType === topLevelTypes.topKeyUp || topLevelType === topLevelTypes.topKeyDown) { // On the selectionchange event, the target is just document which isn't // helpful for us so just check activeElement instead. // // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire // propertychange on the first input event after setting `value` from a // script and fires only keydown, keypress, keyup. Catching keyup usually // gets it and catching keydown lets us fire an event for the first // keystroke if user does a key repeat (it'll be a little delayed: right // before the second keystroke). Other input methods (e.g., paste) seem to // fire selectionchange normally. if (activeElement && activeElement.value !== activeElementValue) { activeElementValue = activeElement.value; return activeElementID; } } } /** * SECTION: handle `click` event */ function shouldUseClickEvent(elem) { // Use the `click` event to detect changes to checkbox and radio inputs. // This approach works across all browsers, whereas `change` does not fire // until `blur` in IE8. return elem.nodeName && elem.nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio'); } function getTargetIDForClickEvent(topLevelType, topLevelTarget, topLevelTargetID) { if (topLevelType === topLevelTypes.topClick) { return topLevelTargetID; } } /** * This plugin creates an `onChange` event that normalizes change events * across form elements. This event fires at a time when it's possible to * change the element's value without seeing a flicker. * * Supported elements are: * - input (see `isTextInputElement`) * - textarea * - select */ var ChangeEventPlugin = { eventTypes: eventTypes, /** * @param {string} topLevelType Record from `EventConstants`. * @param {DOMEventTarget} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native browser event. * @return {*} An accumulation of synthetic events. * @see {EventPluginHub.extractEvents} */ extractEvents: function (topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { var getTargetIDFunc, handleEventFunc; if (shouldUseChangeEvent(topLevelTarget)) { if (doesChangeEventBubble) { getTargetIDFunc = getTargetIDForChangeEvent; } else { handleEventFunc = handleEventsForChangeEventIE8; } } else if (isTextInputElement(topLevelTarget)) { if (isInputEventSupported) { getTargetIDFunc = getTargetIDForInputEvent; } else { getTargetIDFunc = getTargetIDForInputEventIE; handleEventFunc = handleEventsForInputEventIE; } } else if (shouldUseClickEvent(topLevelTarget)) { getTargetIDFunc = getTargetIDForClickEvent; } if (getTargetIDFunc) { var targetID = getTargetIDFunc(topLevelType, topLevelTarget, topLevelTargetID); if (targetID) { var event = SyntheticEvent.getPooled(eventTypes.change, targetID, nativeEvent, nativeEventTarget); event.type = 'change'; EventPropagators.accumulateTwoPhaseDispatches(event); return event; } } if (handleEventFunc) { handleEventFunc(topLevelType, topLevelTarget, topLevelTargetID); } } }; module.exports = ChangeEventPlugin; /***/ }, /* 81 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getEventTarget * @typechecks static-only */ 'use strict'; /** * Gets the target node from a native browser event by accounting for * inconsistencies in browser DOM APIs. * * @param {object} nativeEvent Native browser event. * @return {DOMEventTarget} Target node. */ function getEventTarget(nativeEvent) { var target = nativeEvent.target || nativeEvent.srcElement || window; // Safari may fire events on text nodes (Node.TEXT_NODE is 3). // @see path_to_url return target.nodeType === 3 ? target.parentNode : target; } module.exports = getEventTarget; /***/ }, /* 82 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule isTextInputElement */ 'use strict'; /** * @see path_to_url#input-type-attr-summary */ var supportedInputTypes = { 'color': true, 'date': true, 'datetime': true, 'datetime-local': true, 'email': true, 'month': true, 'number': true, 'password': true, 'range': true, 'search': true, 'tel': true, 'text': true, 'time': true, 'url': true, 'week': true }; function isTextInputElement(elem) { var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); return nodeName && (nodeName === 'input' && supportedInputTypes[elem.type] || nodeName === 'textarea'); } module.exports = isTextInputElement; /***/ }, /* 83 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ClientReactRootIndex * @typechecks */ 'use strict'; var nextReactRootIndex = 0; var ClientReactRootIndex = { createReactRootIndex: function () { return nextReactRootIndex++; } }; module.exports = ClientReactRootIndex; /***/ }, /* 84 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule DefaultEventPluginOrder */ 'use strict'; var keyOf = __webpack_require__(79); /** * Module that is injectable into `EventPluginHub`, that specifies a * deterministic ordering of `EventPlugin`s. A convenient way to reason about * plugins, without having to package every one of them. This is better than * having plugins be ordered in the same order that they are injected because * that ordering would be influenced by the packaging order. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that * preventing default on events is convenient in `SimpleEventPlugin` handlers. */ var DefaultEventPluginOrder = [keyOf({ ResponderEventPlugin: null }), keyOf({ SimpleEventPlugin: null }), keyOf({ TapEventPlugin: null }), keyOf({ EnterLeaveEventPlugin: null }), keyOf({ ChangeEventPlugin: null }), keyOf({ SelectEventPlugin: null }), keyOf({ BeforeInputEventPlugin: null })]; module.exports = DefaultEventPluginOrder; /***/ }, /* 85 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EnterLeaveEventPlugin * @typechecks static-only */ 'use strict'; var EventConstants = __webpack_require__(30); var EventPropagators = __webpack_require__(73); var SyntheticMouseEvent = __webpack_require__(86); var ReactMount = __webpack_require__(28); var keyOf = __webpack_require__(79); var topLevelTypes = EventConstants.topLevelTypes; var getFirstReactDOM = ReactMount.getFirstReactDOM; var eventTypes = { mouseEnter: { registrationName: keyOf({ onMouseEnter: null }), dependencies: [topLevelTypes.topMouseOut, topLevelTypes.topMouseOver] }, mouseLeave: { registrationName: keyOf({ onMouseLeave: null }), dependencies: [topLevelTypes.topMouseOut, topLevelTypes.topMouseOver] } }; var extractedEvents = [null, null]; var EnterLeaveEventPlugin = { eventTypes: eventTypes, /** * For almost every interaction we care about, there will be both a top-level * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that * we do not extract duplicate events. However, moving the mouse into the * browser from outside will not fire a `mouseout` event. In this case, we use * the `mouseover` top-level event. * * @param {string} topLevelType Record from `EventConstants`. * @param {DOMEventTarget} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native browser event. * @return {*} An accumulation of synthetic events. * @see {EventPluginHub.extractEvents} */ extractEvents: function (topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { if (topLevelType === topLevelTypes.topMouseOver && (nativeEvent.relatedTarget || nativeEvent.fromElement)) { return null; } if (topLevelType !== topLevelTypes.topMouseOut && topLevelType !== topLevelTypes.topMouseOver) { // Must not be a mouse in or mouse out - ignoring. return null; } var win; if (topLevelTarget.window === topLevelTarget) { // `topLevelTarget` is probably a window object. win = topLevelTarget; } else { // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. var doc = topLevelTarget.ownerDocument; if (doc) { win = doc.defaultView || doc.parentWindow; } else { win = window; } } var from; var to; var fromID = ''; var toID = ''; if (topLevelType === topLevelTypes.topMouseOut) { from = topLevelTarget; fromID = topLevelTargetID; to = getFirstReactDOM(nativeEvent.relatedTarget || nativeEvent.toElement); if (to) { toID = ReactMount.getID(to); } else { to = win; } to = to || win; } else { from = win; to = topLevelTarget; toID = topLevelTargetID; } if (from === to) { // Nothing pertains to our managed components. return null; } var leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, fromID, nativeEvent, nativeEventTarget); leave.type = 'mouseleave'; leave.target = from; leave.relatedTarget = to; var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, toID, nativeEvent, nativeEventTarget); enter.type = 'mouseenter'; enter.target = to; enter.relatedTarget = from; EventPropagators.accumulateEnterLeaveDispatches(leave, enter, fromID, toID); extractedEvents[0] = leave; extractedEvents[1] = enter; return extractedEvents; } }; module.exports = EnterLeaveEventPlugin; /***/ }, /* 86 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticMouseEvent * @typechecks static-only */ 'use strict'; var SyntheticUIEvent = __webpack_require__(87); var ViewportMetrics = __webpack_require__(38); var getEventModifierState = __webpack_require__(88); /** * @interface MouseEvent * @see path_to_url */ var MouseEventInterface = { screenX: null, screenY: null, clientX: null, clientY: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, getModifierState: getEventModifierState, button: function (event) { // Webkit, Firefox, IE9+ // which: 1 2 3 // button: 0 1 2 (standard) var button = event.button; if ('which' in event) { return button; } // IE<9 // which: undefined // button: 0 0 0 // button: 1 4 2 (onmouseup) return button === 2 ? 2 : button === 4 ? 1 : 0; }, buttons: null, relatedTarget: function (event) { return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement); }, // "Proprietary" Interface. pageX: function (event) { return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft; }, pageY: function (event) { return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop; } }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticUIEvent} */ function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface); module.exports = SyntheticMouseEvent; /***/ }, /* 87 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticUIEvent * @typechecks static-only */ 'use strict'; var SyntheticEvent = __webpack_require__(77); var getEventTarget = __webpack_require__(81); /** * @interface UIEvent * @see path_to_url */ var UIEventInterface = { view: function (event) { if (event.view) { return event.view; } var target = getEventTarget(event); if (target != null && target.window === target) { // target is a window object return target; } var doc = target.ownerDocument; // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. if (doc) { return doc.defaultView || doc.parentWindow; } else { return window; } }, detail: function (event) { return event.detail || 0; } }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticEvent} */ function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface); module.exports = SyntheticUIEvent; /***/ }, /* 88 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getEventModifierState * @typechecks static-only */ 'use strict'; /** * Translation from modifier key to the associated property in the event. * @see path_to_url#keys-Modifiers */ var modifierKeyToProp = { 'Alt': 'altKey', 'Control': 'ctrlKey', 'Meta': 'metaKey', 'Shift': 'shiftKey' }; // IE8 does not implement getModifierState so we simply map it to the only // modifier keys exposed by the event itself, does not support Lock-keys. // Currently, all major browsers except Chrome seems to support Lock-keys. function modifierStateGetter(keyArg) { var syntheticEvent = this; var nativeEvent = syntheticEvent.nativeEvent; if (nativeEvent.getModifierState) { return nativeEvent.getModifierState(keyArg); } var keyProp = modifierKeyToProp[keyArg]; return keyProp ? !!nativeEvent[keyProp] : false; } function getEventModifierState(nativeEvent) { return modifierStateGetter; } module.exports = getEventModifierState; /***/ }, /* 89 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule HTMLDOMPropertyConfig */ 'use strict'; var DOMProperty = __webpack_require__(23); var ExecutionEnvironment = __webpack_require__(9); var MUST_USE_ATTRIBUTE = DOMProperty.injection.MUST_USE_ATTRIBUTE; var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY; var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE; var HAS_SIDE_EFFECTS = DOMProperty.injection.HAS_SIDE_EFFECTS; var HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE; var HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE; var HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE; var hasSVG; if (ExecutionEnvironment.canUseDOM) { var implementation = document.implementation; hasSVG = implementation && implementation.hasFeature && implementation.hasFeature('path_to_url#BasicStructure', '1.1'); } var HTMLDOMPropertyConfig = { isCustomAttribute: RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/), Properties: { /** * Standard Properties */ accept: null, acceptCharset: null, accessKey: null, action: null, allowFullScreen: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, allowTransparency: MUST_USE_ATTRIBUTE, alt: null, async: HAS_BOOLEAN_VALUE, autoComplete: null, // autoFocus is polyfilled/normalized by AutoFocusUtils // autoFocus: HAS_BOOLEAN_VALUE, autoPlay: HAS_BOOLEAN_VALUE, capture: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, cellPadding: null, cellSpacing: null, charSet: MUST_USE_ATTRIBUTE, challenge: MUST_USE_ATTRIBUTE, checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, classID: MUST_USE_ATTRIBUTE, // To set className on SVG elements, it's necessary to use .setAttribute; // this works on HTML elements too in all browsers except IE8. Conveniently, // IE8 doesn't support SVG and so we can simply use the attribute in // browsers that support SVG and the property in browsers that don't, // regardless of whether the element is HTML or SVG. className: hasSVG ? MUST_USE_ATTRIBUTE : MUST_USE_PROPERTY, cols: MUST_USE_ATTRIBUTE | HAS_POSITIVE_NUMERIC_VALUE, colSpan: null, content: null, contentEditable: null, contextMenu: MUST_USE_ATTRIBUTE, controls: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, coords: null, crossOrigin: null, data: null, // For `<object />` acts as `src`. dateTime: MUST_USE_ATTRIBUTE, 'default': HAS_BOOLEAN_VALUE, defer: HAS_BOOLEAN_VALUE, dir: null, disabled: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, download: HAS_OVERLOADED_BOOLEAN_VALUE, draggable: null, encType: null, form: MUST_USE_ATTRIBUTE, formAction: MUST_USE_ATTRIBUTE, formEncType: MUST_USE_ATTRIBUTE, formMethod: MUST_USE_ATTRIBUTE, formNoValidate: HAS_BOOLEAN_VALUE, formTarget: MUST_USE_ATTRIBUTE, frameBorder: MUST_USE_ATTRIBUTE, headers: null, height: MUST_USE_ATTRIBUTE, hidden: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, high: null, href: null, hrefLang: null, htmlFor: null, httpEquiv: null, icon: null, id: MUST_USE_PROPERTY, inputMode: MUST_USE_ATTRIBUTE, integrity: null, is: MUST_USE_ATTRIBUTE, keyParams: MUST_USE_ATTRIBUTE, keyType: MUST_USE_ATTRIBUTE, kind: null, label: null, lang: null, list: MUST_USE_ATTRIBUTE, loop: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, low: null, manifest: MUST_USE_ATTRIBUTE, marginHeight: null, marginWidth: null, max: null, maxLength: MUST_USE_ATTRIBUTE, media: MUST_USE_ATTRIBUTE, mediaGroup: null, method: null, min: null, minLength: MUST_USE_ATTRIBUTE, multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, name: null, nonce: MUST_USE_ATTRIBUTE, noValidate: HAS_BOOLEAN_VALUE, open: HAS_BOOLEAN_VALUE, optimum: null, pattern: null, placeholder: null, poster: null, preload: null, radioGroup: null, readOnly: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, rel: null, required: HAS_BOOLEAN_VALUE, reversed: HAS_BOOLEAN_VALUE, role: MUST_USE_ATTRIBUTE, rows: MUST_USE_ATTRIBUTE | HAS_POSITIVE_NUMERIC_VALUE, rowSpan: null, sandbox: null, scope: null, scoped: HAS_BOOLEAN_VALUE, scrolling: null, seamless: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, shape: null, size: MUST_USE_ATTRIBUTE | HAS_POSITIVE_NUMERIC_VALUE, sizes: MUST_USE_ATTRIBUTE, span: HAS_POSITIVE_NUMERIC_VALUE, spellCheck: null, src: null, srcDoc: MUST_USE_PROPERTY, srcLang: null, srcSet: MUST_USE_ATTRIBUTE, start: HAS_NUMERIC_VALUE, step: null, style: null, summary: null, tabIndex: null, target: null, title: null, type: null, useMap: null, value: MUST_USE_PROPERTY | HAS_SIDE_EFFECTS, width: MUST_USE_ATTRIBUTE, wmode: MUST_USE_ATTRIBUTE, wrap: null, /** * RDFa Properties */ about: MUST_USE_ATTRIBUTE, datatype: MUST_USE_ATTRIBUTE, inlist: MUST_USE_ATTRIBUTE, prefix: MUST_USE_ATTRIBUTE, // property is also supported for OpenGraph in meta tags. property: MUST_USE_ATTRIBUTE, resource: MUST_USE_ATTRIBUTE, 'typeof': MUST_USE_ATTRIBUTE, vocab: MUST_USE_ATTRIBUTE, /** * Non-standard Properties */ // autoCapitalize and autoCorrect are supported in Mobile Safari for // keyboard hints. autoCapitalize: MUST_USE_ATTRIBUTE, autoCorrect: MUST_USE_ATTRIBUTE, // autoSave allows WebKit/Blink to persist values of input fields on page reloads autoSave: null, // color is for Safari mask-icon link color: null, // itemProp, itemScope, itemType are for // Microdata support. See path_to_url itemProp: MUST_USE_ATTRIBUTE, itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, itemType: MUST_USE_ATTRIBUTE, // itemID and itemRef are for Microdata support as well but // only specified in the the WHATWG spec document. See // path_to_url#microdata-dom-api itemID: MUST_USE_ATTRIBUTE, itemRef: MUST_USE_ATTRIBUTE, // results show looking glass icon and recent searches on input // search fields in WebKit/Blink results: null, // IE-only attribute that specifies security restrictions on an iframe // as an alternative to the sandbox attribute on IE<10 security: MUST_USE_ATTRIBUTE, // IE-only attribute that controls focus behavior unselectable: MUST_USE_ATTRIBUTE }, DOMAttributeNames: { acceptCharset: 'accept-charset', className: 'class', htmlFor: 'for', httpEquiv: 'http-equiv' }, DOMPropertyNames: { autoComplete: 'autocomplete', autoFocus: 'autofocus', autoPlay: 'autoplay', autoSave: 'autosave', // `encoding` is equivalent to `enctype`, IE8 lacks an `enctype` setter. // path_to_url#dom-fs-encoding encType: 'encoding', hrefLang: 'hreflang', radioGroup: 'radiogroup', spellCheck: 'spellcheck', srcDoc: 'srcdoc', srcSet: 'srcset' } }; module.exports = HTMLDOMPropertyConfig; /***/ }, /* 90 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactBrowserComponentMixin */ 'use strict'; var ReactInstanceMap = __webpack_require__(47); var findDOMNode = __webpack_require__(91); var warning = __webpack_require__(25); var didWarnKey = '_getDOMNodeDidWarn'; var ReactBrowserComponentMixin = { /** * Returns the DOM node rendered by this component. * * @return {DOMElement} The root node of this component. * @final * @protected */ getDOMNode: function () { process.env.NODE_ENV !== 'production' ? warning(this.constructor[didWarnKey], '%s.getDOMNode(...) is deprecated. Please use ' + 'ReactDOM.findDOMNode(instance) instead.', ReactInstanceMap.get(this).getName() || this.tagName || 'Unknown') : undefined; this.constructor[didWarnKey] = true; return findDOMNode(this); } }; module.exports = ReactBrowserComponentMixin; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 91 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule findDOMNode * @typechecks static-only */ 'use strict'; var ReactCurrentOwner = __webpack_require__(5); var ReactInstanceMap = __webpack_require__(47); var ReactMount = __webpack_require__(28); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); /** * Returns the DOM node rendered by this element. * * @param {ReactComponent|DOMElement} componentOrElement * @return {?DOMElement} The root node of this element. */ function findDOMNode(componentOrElement) { if (process.env.NODE_ENV !== 'production') { var owner = ReactCurrentOwner.current; if (owner !== null) { process.env.NODE_ENV !== 'production' ? warning(owner._warnedAboutRefsInRender, '%s is accessing getDOMNode or findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', owner.getName() || 'A component') : undefined; owner._warnedAboutRefsInRender = true; } } if (componentOrElement == null) { return null; } if (componentOrElement.nodeType === 1) { return componentOrElement; } if (ReactInstanceMap.has(componentOrElement)) { return ReactMount.getNodeFromInstance(componentOrElement); } !(componentOrElement.render == null || typeof componentOrElement.render !== 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'findDOMNode was called on an unmounted component.') : invariant(false) : undefined; true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Element appears to be neither ReactComponent nor DOMNode (keys: %s)', Object.keys(componentOrElement)) : invariant(false) : undefined; } module.exports = findDOMNode; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 92 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDefaultBatchingStrategy */ 'use strict'; var ReactUpdates = __webpack_require__(54); var Transaction = __webpack_require__(57); var assign = __webpack_require__(39); var emptyFunction = __webpack_require__(15); var RESET_BATCHED_UPDATES = { initialize: emptyFunction, close: function () { ReactDefaultBatchingStrategy.isBatchingUpdates = false; } }; var FLUSH_BATCHED_UPDATES = { initialize: emptyFunction, close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates) }; var TRANSACTION_WRAPPERS = [FLUSH_BATCHED_UPDATES, RESET_BATCHED_UPDATES]; function ReactDefaultBatchingStrategyTransaction() { this.reinitializeTransaction(); } assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction.Mixin, { getTransactionWrappers: function () { return TRANSACTION_WRAPPERS; } }); var transaction = new ReactDefaultBatchingStrategyTransaction(); var ReactDefaultBatchingStrategy = { isBatchingUpdates: false, /** * Call the provided function in a context within which calls to `setState` * and friends are batched such that components aren't updated unnecessarily. */ batchedUpdates: function (callback, a, b, c, d, e) { var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates; ReactDefaultBatchingStrategy.isBatchingUpdates = true; // The code is written this way to avoid extra allocations if (alreadyBatchingUpdates) { callback(a, b, c, d, e); } else { transaction.perform(callback, null, a, b, c, d, e); } } }; module.exports = ReactDefaultBatchingStrategy; /***/ }, /* 93 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMComponent * @typechecks static-only */ /* global hasOwnProperty:true */ 'use strict'; var AutoFocusUtils = __webpack_require__(94); var CSSPropertyOperations = __webpack_require__(96); var DOMProperty = __webpack_require__(23); var DOMPropertyOperations = __webpack_require__(22); var EventConstants = __webpack_require__(30); var ReactBrowserEventEmitter = __webpack_require__(29); var ReactComponentBrowserEnvironment = __webpack_require__(26); var ReactDOMButton = __webpack_require__(104); var ReactDOMInput = __webpack_require__(105); var ReactDOMOption = __webpack_require__(109); var ReactDOMSelect = __webpack_require__(112); var ReactDOMTextarea = __webpack_require__(113); var ReactMount = __webpack_require__(28); var ReactMultiChild = __webpack_require__(114); var ReactPerf = __webpack_require__(18); var ReactUpdateQueue = __webpack_require__(53); var assign = __webpack_require__(39); var canDefineProperty = __webpack_require__(43); var escapeTextContentForBrowser = __webpack_require__(21); var invariant = __webpack_require__(13); var isEventSupported = __webpack_require__(40); var keyOf = __webpack_require__(79); var setInnerHTML = __webpack_require__(19); var setTextContent = __webpack_require__(20); var shallowEqual = __webpack_require__(117); var validateDOMNesting = __webpack_require__(70); var warning = __webpack_require__(25); var deleteListener = ReactBrowserEventEmitter.deleteListener; var listenTo = ReactBrowserEventEmitter.listenTo; var registrationNameModules = ReactBrowserEventEmitter.registrationNameModules; // For quickly matching children type, to test if can be treated as content. var CONTENT_TYPES = { 'string': true, 'number': true }; var CHILDREN = keyOf({ children: null }); var STYLE = keyOf({ style: null }); var HTML = keyOf({ __html: null }); var ELEMENT_NODE_TYPE = 1; function getDeclarationErrorAddendum(internalInstance) { if (internalInstance) { var owner = internalInstance._currentElement._owner || null; if (owner) { var name = owner.getName(); if (name) { return ' This DOM node was rendered by `' + name + '`.'; } } } return ''; } var legacyPropsDescriptor; if (process.env.NODE_ENV !== 'production') { legacyPropsDescriptor = { props: { enumerable: false, get: function () { var component = this._reactInternalComponent; process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDOMComponent: Do not access .props of a DOM node; instead, ' + 'recreate the props as `render` did originally or read the DOM ' + 'properties/attributes directly from this node (e.g., ' + 'this.refs.box.className).%s', getDeclarationErrorAddendum(component)) : undefined; return component._currentElement.props; } } }; } function legacyGetDOMNode() { if (process.env.NODE_ENV !== 'production') { var component = this._reactInternalComponent; process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDOMComponent: Do not access .getDOMNode() of a DOM node; ' + 'instead, use the node directly.%s', getDeclarationErrorAddendum(component)) : undefined; } return this; } function legacyIsMounted() { var component = this._reactInternalComponent; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDOMComponent: Do not access .isMounted() of a DOM node.%s', getDeclarationErrorAddendum(component)) : undefined; } return !!component; } function legacySetStateEtc() { if (process.env.NODE_ENV !== 'production') { var component = this._reactInternalComponent; process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDOMComponent: Do not access .setState(), .replaceState(), or ' + '.forceUpdate() of a DOM node. This is a no-op.%s', getDeclarationErrorAddendum(component)) : undefined; } } function legacySetProps(partialProps, callback) { var component = this._reactInternalComponent; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDOMComponent: Do not access .setProps() of a DOM node. ' + 'Instead, call ReactDOM.render again at the top level.%s', getDeclarationErrorAddendum(component)) : undefined; } if (!component) { return; } ReactUpdateQueue.enqueueSetPropsInternal(component, partialProps); if (callback) { ReactUpdateQueue.enqueueCallbackInternal(component, callback); } } function legacyReplaceProps(partialProps, callback) { var component = this._reactInternalComponent; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(false, 'ReactDOMComponent: Do not access .replaceProps() of a DOM node. ' + 'Instead, call ReactDOM.render again at the top level.%s', getDeclarationErrorAddendum(component)) : undefined; } if (!component) { return; } ReactUpdateQueue.enqueueReplacePropsInternal(component, partialProps); if (callback) { ReactUpdateQueue.enqueueCallbackInternal(component, callback); } } function friendlyStringify(obj) { if (typeof obj === 'object') { if (Array.isArray(obj)) { return '[' + obj.map(friendlyStringify).join(', ') + ']'; } else { var pairs = []; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var keyEscaped = /^[a-z$_][\w$_]*$/i.test(key) ? key : JSON.stringify(key); pairs.push(keyEscaped + ': ' + friendlyStringify(obj[key])); } } return '{' + pairs.join(', ') + '}'; } } else if (typeof obj === 'string') { return JSON.stringify(obj); } else if (typeof obj === 'function') { return '[function object]'; } // Differs from JSON.stringify in that undefined becauses undefined and that // inf and nan don't become null return String(obj); } var styleMutationWarning = {}; function checkAndWarnForMutatedStyle(style1, style2, component) { if (style1 == null || style2 == null) { return; } if (shallowEqual(style1, style2)) { return; } var componentName = component._tag; var owner = component._currentElement._owner; var ownerName; if (owner) { ownerName = owner.getName(); } var hash = ownerName + '|' + componentName; if (styleMutationWarning.hasOwnProperty(hash)) { return; } styleMutationWarning[hash] = true; process.env.NODE_ENV !== 'production' ? warning(false, '`%s` was passed a style object that has previously been mutated. ' + 'Mutating `style` is deprecated. Consider cloning it beforehand. Check ' + 'the `render` %s. Previous style: %s. Mutated style: %s.', componentName, owner ? 'of `' + ownerName + '`' : 'using <' + componentName + '>', friendlyStringify(style1), friendlyStringify(style2)) : undefined; } /** * @param {object} component * @param {?object} props */ function assertValidProps(component, props) { if (!props) { return; } // Note the use of `==` which checks for null or undefined. if (process.env.NODE_ENV !== 'production') { if (voidElementTags[component._tag]) { process.env.NODE_ENV !== 'production' ? warning(props.children == null && props.dangerouslySetInnerHTML == null, '%s is a void element tag and must not have `children` or ' + 'use `props.dangerouslySetInnerHTML`.%s', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : undefined; } } if (props.dangerouslySetInnerHTML != null) { !(props.children == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : invariant(false) : undefined; !(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML) ? process.env.NODE_ENV !== 'production' ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit path_to_url ' + 'for more information.') : invariant(false) : undefined; } if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(props.innerHTML == null, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.') : undefined; process.env.NODE_ENV !== 'production' ? warning(!props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : undefined; } !(props.style == null || typeof props.style === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'The `style` prop expects a mapping from style properties to values, ' + 'not a string. For example, style={{marginRight: spacing + \'em\'}} when ' + 'using JSX.%s', getDeclarationErrorAddendum(component)) : invariant(false) : undefined; } function enqueuePutListener(id, registrationName, listener, transaction) { if (process.env.NODE_ENV !== 'production') { // IE8 has no API for event capturing and the `onScroll` event doesn't // bubble. process.env.NODE_ENV !== 'production' ? warning(registrationName !== 'onScroll' || isEventSupported('scroll', true), 'This browser doesn\'t support the `onScroll` event') : undefined; } var container = ReactMount.findReactContainerForID(id); if (container) { var doc = container.nodeType === ELEMENT_NODE_TYPE ? container.ownerDocument : container; listenTo(registrationName, doc); } transaction.getReactMountReady().enqueue(putListener, { id: id, registrationName: registrationName, listener: listener }); } function putListener() { var listenerToPut = this; ReactBrowserEventEmitter.putListener(listenerToPut.id, listenerToPut.registrationName, listenerToPut.listener); } // There are so many media events, it makes sense to just // maintain a list rather than create a `trapBubbledEvent` for each var mediaEvents = { topAbort: 'abort', topCanPlay: 'canplay', topCanPlayThrough: 'canplaythrough', topDurationChange: 'durationchange', topEmptied: 'emptied', topEncrypted: 'encrypted', topEnded: 'ended', topError: 'error', topLoadedData: 'loadeddata', topLoadedMetadata: 'loadedmetadata', topLoadStart: 'loadstart', topPause: 'pause', topPlay: 'play', topPlaying: 'playing', topProgress: 'progress', topRateChange: 'ratechange', topSeeked: 'seeked', topSeeking: 'seeking', topStalled: 'stalled', topSuspend: 'suspend', topTimeUpdate: 'timeupdate', topVolumeChange: 'volumechange', topWaiting: 'waiting' }; function trapBubbledEventsLocal() { var inst = this; // If a component renders to null or if another component fatals and causes // the state of the tree to be corrupted, `node` here can be null. !inst._rootNodeID ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Must be mounted to trap events') : invariant(false) : undefined; var node = ReactMount.getNode(inst._rootNodeID); !node ? process.env.NODE_ENV !== 'production' ? invariant(false, 'trapBubbledEvent(...): Requires node to be rendered.') : invariant(false) : undefined; switch (inst._tag) { case 'iframe': inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topLoad, 'load', node)]; break; case 'video': case 'audio': inst._wrapperState.listeners = []; // create listener for each media event for (var event in mediaEvents) { if (mediaEvents.hasOwnProperty(event)) { inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes[event], mediaEvents[event], node)); } } break; case 'img': inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topError, 'error', node), ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topLoad, 'load', node)]; break; case 'form': inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topReset, 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topSubmit, 'submit', node)]; break; } } function mountReadyInputWrapper() { ReactDOMInput.mountReadyWrapper(this); } function postUpdateSelectWrapper() { ReactDOMSelect.postUpdateWrapper(this); } // For HTML, certain tags should omit their close tag. We keep a whitelist for // those special cased tags. var omittedCloseTags = { 'area': true, 'base': true, 'br': true, 'col': true, 'embed': true, 'hr': true, 'img': true, 'input': true, 'keygen': true, 'link': true, 'meta': true, 'param': true, 'source': true, 'track': true, 'wbr': true }; // NOTE: menuitem's close tag should be omitted, but that causes problems. var newlineEatingTags = { 'listing': true, 'pre': true, 'textarea': true }; // For HTML, certain tags cannot have children. This has the same purpose as // `omittedCloseTags` except that `menuitem` should still have its closing tag. var voidElementTags = assign({ 'menuitem': true }, omittedCloseTags); // We accept any tag to be rendered but since this gets injected into arbitrary // HTML, we want to make sure that it's a safe tag. // path_to_url#NT-Name var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; // Simplified subset var validatedTagCache = {}; var hasOwnProperty = ({}).hasOwnProperty; function validateDangerousTag(tag) { if (!hasOwnProperty.call(validatedTagCache, tag)) { !VALID_TAG_REGEX.test(tag) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Invalid tag: %s', tag) : invariant(false) : undefined; validatedTagCache[tag] = true; } } function processChildContextDev(context, inst) { // Pass down our tag name to child components for validation purposes context = assign({}, context); var info = context[validateDOMNesting.ancestorInfoContextKey]; context[validateDOMNesting.ancestorInfoContextKey] = validateDOMNesting.updatedAncestorInfo(info, inst._tag, inst); return context; } function isCustomComponent(tagName, props) { return tagName.indexOf('-') >= 0 || props.is != null; } /** * Creates a new React class that is idempotent and capable of containing other * React components. It accepts event listeners and DOM properties that are * valid according to `DOMProperty`. * * - Event listeners: `onClick`, `onMouseDown`, etc. * - DOM properties: `className`, `name`, `title`, etc. * * The `style` property functions differently from the DOM API. It accepts an * object mapping of style properties to values. * * @constructor ReactDOMComponent * @extends ReactMultiChild */ function ReactDOMComponent(tag) { validateDangerousTag(tag); this._tag = tag.toLowerCase(); this._renderedChildren = null; this._previousStyle = null; this._previousStyleCopy = null; this._rootNodeID = null; this._wrapperState = null; this._topLevelWrapper = null; this._nodeWithLegacyProperties = null; if (process.env.NODE_ENV !== 'production') { this._unprocessedContextDev = null; this._processedContextDev = null; } } ReactDOMComponent.displayName = 'ReactDOMComponent'; ReactDOMComponent.Mixin = { construct: function (element) { this._currentElement = element; }, /** * Generates root tag markup then recurses. This method has side effects and * is not idempotent. * * @internal * @param {string} rootID The root DOM ID for this node. * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction * @param {object} context * @return {string} The computed markup. */ mountComponent: function (rootID, transaction, context) { this._rootNodeID = rootID; var props = this._currentElement.props; switch (this._tag) { case 'iframe': case 'img': case 'form': case 'video': case 'audio': this._wrapperState = { listeners: null }; transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); break; case 'button': props = ReactDOMButton.getNativeProps(this, props, context); break; case 'input': ReactDOMInput.mountWrapper(this, props, context); props = ReactDOMInput.getNativeProps(this, props, context); break; case 'option': ReactDOMOption.mountWrapper(this, props, context); props = ReactDOMOption.getNativeProps(this, props, context); break; case 'select': ReactDOMSelect.mountWrapper(this, props, context); props = ReactDOMSelect.getNativeProps(this, props, context); context = ReactDOMSelect.processChildContext(this, props, context); break; case 'textarea': ReactDOMTextarea.mountWrapper(this, props, context); props = ReactDOMTextarea.getNativeProps(this, props, context); break; } assertValidProps(this, props); if (process.env.NODE_ENV !== 'production') { if (context[validateDOMNesting.ancestorInfoContextKey]) { validateDOMNesting(this._tag, this, context[validateDOMNesting.ancestorInfoContextKey]); } } if (process.env.NODE_ENV !== 'production') { this._unprocessedContextDev = context; this._processedContextDev = processChildContextDev(context, this); context = this._processedContextDev; } var mountImage; if (transaction.useCreateElement) { var ownerDocument = context[ReactMount.ownerDocumentContextKey]; var el = ownerDocument.createElement(this._currentElement.type); DOMPropertyOperations.setAttributeForID(el, this._rootNodeID); // Populate node cache ReactMount.getID(el); this._updateDOMProperties({}, props, transaction, el); this._createInitialChildren(transaction, props, context, el); mountImage = el; } else { var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props); var tagContent = this._createContentMarkup(transaction, props, context); if (!tagContent && omittedCloseTags[this._tag]) { mountImage = tagOpen + '/>'; } else { mountImage = tagOpen + '>' + tagContent + '</' + this._currentElement.type + '>'; } } switch (this._tag) { case 'input': transaction.getReactMountReady().enqueue(mountReadyInputWrapper, this); // falls through case 'button': case 'select': case 'textarea': if (props.autoFocus) { transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); } break; } return mountImage; }, /** * Creates markup for the open tag and all attributes. * * This method has side effects because events get registered. * * Iterating over object properties is faster than iterating over arrays. * @see path_to_url * * @private * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction * @param {object} props * @return {string} Markup of opening tag. */ _createOpenTagMarkupAndPutListeners: function (transaction, props) { var ret = '<' + this._currentElement.type; for (var propKey in props) { if (!props.hasOwnProperty(propKey)) { continue; } var propValue = props[propKey]; if (propValue == null) { continue; } if (registrationNameModules.hasOwnProperty(propKey)) { if (propValue) { enqueuePutListener(this._rootNodeID, propKey, propValue, transaction); } } else { if (propKey === STYLE) { if (propValue) { if (process.env.NODE_ENV !== 'production') { // See `_updateDOMProperties`. style block this._previousStyle = propValue; } propValue = this._previousStyleCopy = assign({}, props.style); } propValue = CSSPropertyOperations.createMarkupForStyles(propValue); } var markup = null; if (this._tag != null && isCustomComponent(this._tag, props)) { if (propKey !== CHILDREN) { markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue); } } else { markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue); } if (markup) { ret += ' ' + markup; } } } // For static pages, no need to put React ID and checksum. Saves lots of // bytes. if (transaction.renderToStaticMarkup) { return ret; } var markupForID = DOMPropertyOperations.createMarkupForID(this._rootNodeID); return ret + ' ' + markupForID; }, /** * Creates markup for the content between the tags. * * @private * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction * @param {object} props * @param {object} context * @return {string} Content markup. */ _createContentMarkup: function (transaction, props, context) { var ret = ''; // Intentional use of != to avoid catching zero/false. var innerHTML = props.dangerouslySetInnerHTML; if (innerHTML != null) { if (innerHTML.__html != null) { ret = innerHTML.__html; } } else { var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null; var childrenToUse = contentToUse != null ? null : props.children; if (contentToUse != null) { // TODO: Validate that text is allowed as a child of this node ret = escapeTextContentForBrowser(contentToUse); } else if (childrenToUse != null) { var mountImages = this.mountChildren(childrenToUse, transaction, context); ret = mountImages.join(''); } } if (newlineEatingTags[this._tag] && ret.charAt(0) === '\n') { // text/html ignores the first character in these tags if it's a newline // Prefer to break application/xml over text/html (for now) by adding // a newline specifically to get eaten by the parser. (Alternately for // textareas, replacing "^\n" with "\r\n" doesn't get eaten, and the first // \r is normalized out by HTMLTextAreaElement#value.) // See: <path_to_url#newlines-in-textarea-and-pre> // See: <path_to_url#element-restrictions> // See: <path_to_url#newlines> // See: Parsing of "textarea" "listing" and "pre" elements // from <path_to_url#parsing-main-inbody> return '\n' + ret; } else { return ret; } }, _createInitialChildren: function (transaction, props, context, el) { // Intentional use of != to avoid catching zero/false. var innerHTML = props.dangerouslySetInnerHTML; if (innerHTML != null) { if (innerHTML.__html != null) { setInnerHTML(el, innerHTML.__html); } } else { var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null; var childrenToUse = contentToUse != null ? null : props.children; if (contentToUse != null) { // TODO: Validate that text is allowed as a child of this node setTextContent(el, contentToUse); } else if (childrenToUse != null) { var mountImages = this.mountChildren(childrenToUse, transaction, context); for (var i = 0; i < mountImages.length; i++) { el.appendChild(mountImages[i]); } } } }, /** * Receives a next element and updates the component. * * @internal * @param {ReactElement} nextElement * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction * @param {object} context */ receiveComponent: function (nextElement, transaction, context) { var prevElement = this._currentElement; this._currentElement = nextElement; this.updateComponent(transaction, prevElement, nextElement, context); }, /** * Updates a native DOM component after it has already been allocated and * attached to the DOM. Reconciles the root DOM node, then recurses. * * @param {ReactReconcileTransaction} transaction * @param {ReactElement} prevElement * @param {ReactElement} nextElement * @internal * @overridable */ updateComponent: function (transaction, prevElement, nextElement, context) { var lastProps = prevElement.props; var nextProps = this._currentElement.props; switch (this._tag) { case 'button': lastProps = ReactDOMButton.getNativeProps(this, lastProps); nextProps = ReactDOMButton.getNativeProps(this, nextProps); break; case 'input': ReactDOMInput.updateWrapper(this); lastProps = ReactDOMInput.getNativeProps(this, lastProps); nextProps = ReactDOMInput.getNativeProps(this, nextProps); break; case 'option': lastProps = ReactDOMOption.getNativeProps(this, lastProps); nextProps = ReactDOMOption.getNativeProps(this, nextProps); break; case 'select': lastProps = ReactDOMSelect.getNativeProps(this, lastProps); nextProps = ReactDOMSelect.getNativeProps(this, nextProps); break; case 'textarea': ReactDOMTextarea.updateWrapper(this); lastProps = ReactDOMTextarea.getNativeProps(this, lastProps); nextProps = ReactDOMTextarea.getNativeProps(this, nextProps); break; } if (process.env.NODE_ENV !== 'production') { // If the context is reference-equal to the old one, pass down the same // processed object so the update bailout in ReactReconciler behaves // correctly (and identically in dev and prod). See #5005. if (this._unprocessedContextDev !== context) { this._unprocessedContextDev = context; this._processedContextDev = processChildContextDev(context, this); } context = this._processedContextDev; } assertValidProps(this, nextProps); this._updateDOMProperties(lastProps, nextProps, transaction, null); this._updateDOMChildren(lastProps, nextProps, transaction, context); if (!canDefineProperty && this._nodeWithLegacyProperties) { this._nodeWithLegacyProperties.props = nextProps; } if (this._tag === 'select') { // <select> value update needs to occur after <option> children // reconciliation transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this); } }, /** * Reconciles the properties by detecting differences in property values and * updating the DOM as necessary. This function is probably the single most * critical path for performance optimization. * * TODO: Benchmark whether checking for changed values in memory actually * improves performance (especially statically positioned elements). * TODO: Benchmark the effects of putting this at the top since 99% of props * do not change for a given reconciliation. * TODO: Benchmark areas that can be improved with caching. * * @private * @param {object} lastProps * @param {object} nextProps * @param {ReactReconcileTransaction} transaction * @param {?DOMElement} node */ _updateDOMProperties: function (lastProps, nextProps, transaction, node) { var propKey; var styleName; var styleUpdates; for (propKey in lastProps) { if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey)) { continue; } if (propKey === STYLE) { var lastStyle = this._previousStyleCopy; for (styleName in lastStyle) { if (lastStyle.hasOwnProperty(styleName)) { styleUpdates = styleUpdates || {}; styleUpdates[styleName] = ''; } } this._previousStyleCopy = null; } else if (registrationNameModules.hasOwnProperty(propKey)) { if (lastProps[propKey]) { // Only call deleteListener if there was a listener previously or // else willDeleteListener gets called when there wasn't actually a // listener (e.g., onClick={null}) deleteListener(this._rootNodeID, propKey); } } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) { if (!node) { node = ReactMount.getNode(this._rootNodeID); } DOMPropertyOperations.deleteValueForProperty(node, propKey); } } for (propKey in nextProps) { var nextProp = nextProps[propKey]; var lastProp = propKey === STYLE ? this._previousStyleCopy : lastProps[propKey]; if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp) { continue; } if (propKey === STYLE) { if (nextProp) { if (process.env.NODE_ENV !== 'production') { checkAndWarnForMutatedStyle(this._previousStyleCopy, this._previousStyle, this); this._previousStyle = nextProp; } nextProp = this._previousStyleCopy = assign({}, nextProp); } else { this._previousStyleCopy = null; } if (lastProp) { // Unset styles on `lastProp` but not on `nextProp`. for (styleName in lastProp) { if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) { styleUpdates = styleUpdates || {}; styleUpdates[styleName] = ''; } } // Update styles that changed since `lastProp`. for (styleName in nextProp) { if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) { styleUpdates = styleUpdates || {}; styleUpdates[styleName] = nextProp[styleName]; } } } else { // Relies on `updateStylesByID` not mutating `styleUpdates`. styleUpdates = nextProp; } } else if (registrationNameModules.hasOwnProperty(propKey)) { if (nextProp) { enqueuePutListener(this._rootNodeID, propKey, nextProp, transaction); } else if (lastProp) { deleteListener(this._rootNodeID, propKey); } } else if (isCustomComponent(this._tag, nextProps)) { if (!node) { node = ReactMount.getNode(this._rootNodeID); } if (propKey === CHILDREN) { nextProp = null; } DOMPropertyOperations.setValueForAttribute(node, propKey, nextProp); } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) { if (!node) { node = ReactMount.getNode(this._rootNodeID); } // If we're updating to null or undefined, we should remove the property // from the DOM node instead of inadvertantly setting to a string. This // brings us in line with the same behavior we have on initial render. if (nextProp != null) { DOMPropertyOperations.setValueForProperty(node, propKey, nextProp); } else { DOMPropertyOperations.deleteValueForProperty(node, propKey); } } } if (styleUpdates) { if (!node) { node = ReactMount.getNode(this._rootNodeID); } CSSPropertyOperations.setValueForStyles(node, styleUpdates); } }, /** * Reconciles the children with the various properties that affect the * children content. * * @param {object} lastProps * @param {object} nextProps * @param {ReactReconcileTransaction} transaction * @param {object} context */ _updateDOMChildren: function (lastProps, nextProps, transaction, context) { var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null; var nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null; var lastHtml = lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html; var nextHtml = nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html; // Note the use of `!=` which checks for null or undefined. var lastChildren = lastContent != null ? null : lastProps.children; var nextChildren = nextContent != null ? null : nextProps.children; // If we're switching from children to content/html or vice versa, remove // the old content var lastHasContentOrHtml = lastContent != null || lastHtml != null; var nextHasContentOrHtml = nextContent != null || nextHtml != null; if (lastChildren != null && nextChildren == null) { this.updateChildren(null, transaction, context); } else if (lastHasContentOrHtml && !nextHasContentOrHtml) { this.updateTextContent(''); } if (nextContent != null) { if (lastContent !== nextContent) { this.updateTextContent('' + nextContent); } } else if (nextHtml != null) { if (lastHtml !== nextHtml) { this.updateMarkup('' + nextHtml); } } else if (nextChildren != null) { this.updateChildren(nextChildren, transaction, context); } }, /** * Destroys all event registrations for this instance. Does not remove from * the DOM. That must be done by the parent. * * @internal */ unmountComponent: function () { switch (this._tag) { case 'iframe': case 'img': case 'form': case 'video': case 'audio': var listeners = this._wrapperState.listeners; if (listeners) { for (var i = 0; i < listeners.length; i++) { listeners[i].remove(); } } break; case 'input': ReactDOMInput.unmountWrapper(this); break; case 'html': case 'head': case 'body': /** * Components like <html> <head> and <body> can't be removed or added * easily in a cross-browser way, however it's valuable to be able to * take advantage of React's reconciliation for styling and <title> * management. So we just document it and throw in dangerous cases. */ true ? process.env.NODE_ENV !== 'production' ? invariant(false, '<%s> tried to unmount. Because of cross-browser quirks it is ' + 'impossible to unmount some top-level components (eg <html>, ' + '<head>, and <body>) reliably and efficiently. To fix this, have a ' + 'single top-level component that never unmounts render these ' + 'elements.', this._tag) : invariant(false) : undefined; break; } this.unmountChildren(); ReactBrowserEventEmitter.deleteAllListeners(this._rootNodeID); ReactComponentBrowserEnvironment.unmountIDFromEnvironment(this._rootNodeID); this._rootNodeID = null; this._wrapperState = null; if (this._nodeWithLegacyProperties) { var node = this._nodeWithLegacyProperties; node._reactInternalComponent = null; this._nodeWithLegacyProperties = null; } }, getPublicInstance: function () { if (!this._nodeWithLegacyProperties) { var node = ReactMount.getNode(this._rootNodeID); node._reactInternalComponent = this; node.getDOMNode = legacyGetDOMNode; node.isMounted = legacyIsMounted; node.setState = legacySetStateEtc; node.replaceState = legacySetStateEtc; node.forceUpdate = legacySetStateEtc; node.setProps = legacySetProps; node.replaceProps = legacyReplaceProps; if (process.env.NODE_ENV !== 'production') { if (canDefineProperty) { Object.defineProperties(node, legacyPropsDescriptor); } else { // updateComponent will update this property on subsequent renders node.props = this._currentElement.props; } } else { // updateComponent will update this property on subsequent renders node.props = this._currentElement.props; } this._nodeWithLegacyProperties = node; } return this._nodeWithLegacyProperties; } }; ReactPerf.measureMethods(ReactDOMComponent, 'ReactDOMComponent', { mountComponent: 'mountComponent', updateComponent: 'updateComponent' }); assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin); module.exports = ReactDOMComponent; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 94 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule AutoFocusUtils * @typechecks static-only */ 'use strict'; var ReactMount = __webpack_require__(28); var findDOMNode = __webpack_require__(91); var focusNode = __webpack_require__(95); var Mixin = { componentDidMount: function () { if (this.props.autoFocus) { focusNode(findDOMNode(this)); } } }; var AutoFocusUtils = { Mixin: Mixin, focusDOMComponent: function () { focusNode(ReactMount.getNode(this._rootNodeID)); } }; module.exports = AutoFocusUtils; /***/ }, /* 95 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule focusNode */ 'use strict'; /** * @param {DOMElement} node input/textarea to focus */ function focusNode(node) { // IE8 can throw "Can't move focus to the control because it is invisible, // not enabled, or of a type that does not accept the focus." for all kinds of // reasons that are too expensive and fragile to test. try { node.focus(); } catch (e) {} } module.exports = focusNode; /***/ }, /* 96 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule CSSPropertyOperations * @typechecks static-only */ 'use strict'; var CSSProperty = __webpack_require__(97); var ExecutionEnvironment = __webpack_require__(9); var ReactPerf = __webpack_require__(18); var camelizeStyleName = __webpack_require__(98); var dangerousStyleValue = __webpack_require__(100); var hyphenateStyleName = __webpack_require__(101); var memoizeStringOnly = __webpack_require__(103); var warning = __webpack_require__(25); var processStyleName = memoizeStringOnly(function (styleName) { return hyphenateStyleName(styleName); }); var hasShorthandPropertyBug = false; var styleFloatAccessor = 'cssFloat'; if (ExecutionEnvironment.canUseDOM) { var tempStyle = document.createElement('div').style; try { // IE8 throws "Invalid argument." if resetting shorthand style properties. tempStyle.font = ''; } catch (e) { hasShorthandPropertyBug = true; } // IE8 only supports accessing cssFloat (standard) as styleFloat if (document.documentElement.style.cssFloat === undefined) { styleFloatAccessor = 'styleFloat'; } } if (process.env.NODE_ENV !== 'production') { // 'msTransform' is correct, but the other prefixes should be capitalized var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; // style values shouldn't contain a semicolon var badStyleValueWithSemicolonPattern = /;\s*$/; var warnedStyleNames = {}; var warnedStyleValues = {}; var warnHyphenatedStyleName = function (name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; process.env.NODE_ENV !== 'production' ? warning(false, 'Unsupported style property %s. Did you mean %s?', name, camelizeStyleName(name)) : undefined; }; var warnBadVendoredStyleName = function (name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; process.env.NODE_ENV !== 'production' ? warning(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1)) : undefined; }; var warnStyleValueWithSemicolon = function (name, value) { if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { return; } warnedStyleValues[value] = true; process.env.NODE_ENV !== 'production' ? warning(false, 'Style property values shouldn\'t contain a semicolon. ' + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, '')) : undefined; }; /** * @param {string} name * @param {*} value */ var warnValidStyle = function (name, value) { if (name.indexOf('-') > -1) { warnHyphenatedStyleName(name); } else if (badVendoredStyleNamePattern.test(name)) { warnBadVendoredStyleName(name); } else if (badStyleValueWithSemicolonPattern.test(value)) { warnStyleValueWithSemicolon(name, value); } }; } /** * Operations for dealing with CSS properties. */ var CSSPropertyOperations = { /** * Serializes a mapping of style properties for use as inline styles: * * > createMarkupForStyles({width: '200px', height: 0}) * "width:200px;height:0;" * * Undefined values are ignored so that declarative programming is easier. * The result should be HTML-escaped before insertion into the DOM. * * @param {object} styles * @return {?string} */ createMarkupForStyles: function (styles) { var serialized = ''; for (var styleName in styles) { if (!styles.hasOwnProperty(styleName)) { continue; } var styleValue = styles[styleName]; if (process.env.NODE_ENV !== 'production') { warnValidStyle(styleName, styleValue); } if (styleValue != null) { serialized += processStyleName(styleName) + ':'; serialized += dangerousStyleValue(styleName, styleValue) + ';'; } } return serialized || null; }, /** * Sets the value for multiple styles on a node. If a value is specified as * '' (empty string), the corresponding style property will be unset. * * @param {DOMElement} node * @param {object} styles */ setValueForStyles: function (node, styles) { var style = node.style; for (var styleName in styles) { if (!styles.hasOwnProperty(styleName)) { continue; } if (process.env.NODE_ENV !== 'production') { warnValidStyle(styleName, styles[styleName]); } var styleValue = dangerousStyleValue(styleName, styles[styleName]); if (styleName === 'float') { styleName = styleFloatAccessor; } if (styleValue) { style[styleName] = styleValue; } else { var expansion = hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName]; if (expansion) { // Shorthand property that IE8 won't like unsetting, so unset each // component to placate it for (var individualStyleName in expansion) { style[individualStyleName] = ''; } } else { style[styleName] = ''; } } } } }; ReactPerf.measureMethods(CSSPropertyOperations, 'CSSPropertyOperations', { setValueForStyles: 'setValueForStyles' }); module.exports = CSSPropertyOperations; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 97 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule CSSProperty */ 'use strict'; /** * CSS properties which accept numbers but are not in units of "px". */ var isUnitlessNumber = { animationIterationCount: true, boxFlex: true, boxFlexGroup: true, boxOrdinalGroup: true, columnCount: true, flex: true, flexGrow: true, flexPositive: true, flexShrink: true, flexNegative: true, flexOrder: true, fontWeight: true, lineClamp: true, lineHeight: true, opacity: true, order: true, orphans: true, tabSize: true, widows: true, zIndex: true, zoom: true, // SVG-related properties fillOpacity: true, stopOpacity: true, strokeDashoffset: true, strokeOpacity: true, strokeWidth: true }; /** * @param {string} prefix vendor-specific prefix, eg: Webkit * @param {string} key style name, eg: transitionDuration * @return {string} style name prefixed with `prefix`, properly camelCased, eg: * WebkitTransitionDuration */ function prefixKey(prefix, key) { return prefix + key.charAt(0).toUpperCase() + key.substring(1); } /** * Support style names that may come passed in prefixed by adding permutations * of vendor prefixes. */ var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an // infinite loop, because it iterates over the newly added props too. Object.keys(isUnitlessNumber).forEach(function (prop) { prefixes.forEach(function (prefix) { isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop]; }); }); /** * Most style properties can be unset by doing .style[prop] = '' but IE8 * doesn't like doing that with shorthand properties so for the properties that * IE8 breaks on, which are listed here, we instead unset each of the * individual properties. See path_to_url * The 4-value 'clock' properties like margin, padding, border-width seem to * behave without any problems. Curiously, list-style works too without any * special prodding. */ var shorthandPropertyExpansions = { background: { backgroundAttachment: true, backgroundColor: true, backgroundImage: true, backgroundPositionX: true, backgroundPositionY: true, backgroundRepeat: true }, backgroundPosition: { backgroundPositionX: true, backgroundPositionY: true }, border: { borderWidth: true, borderStyle: true, borderColor: true }, borderBottom: { borderBottomWidth: true, borderBottomStyle: true, borderBottomColor: true }, borderLeft: { borderLeftWidth: true, borderLeftStyle: true, borderLeftColor: true }, borderRight: { borderRightWidth: true, borderRightStyle: true, borderRightColor: true }, borderTop: { borderTopWidth: true, borderTopStyle: true, borderTopColor: true }, font: { fontStyle: true, fontVariant: true, fontWeight: true, fontSize: true, lineHeight: true, fontFamily: true }, outline: { outlineWidth: true, outlineStyle: true, outlineColor: true } }; var CSSProperty = { isUnitlessNumber: isUnitlessNumber, shorthandPropertyExpansions: shorthandPropertyExpansions }; module.exports = CSSProperty; /***/ }, /* 98 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule camelizeStyleName * @typechecks */ 'use strict'; var camelize = __webpack_require__(99); var msPattern = /^-ms-/; /** * Camelcases a hyphenated CSS property name, for example: * * > camelizeStyleName('background-color') * < "backgroundColor" * > camelizeStyleName('-moz-transition') * < "MozTransition" * > camelizeStyleName('-ms-transition') * < "msTransition" * * As Andi Smith suggests * (path_to_url an `-ms` prefix * is converted to lowercase `ms`. * * @param {string} string * @return {string} */ function camelizeStyleName(string) { return camelize(string.replace(msPattern, 'ms-')); } module.exports = camelizeStyleName; /***/ }, /* 99 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule camelize * @typechecks */ "use strict"; var _hyphenPattern = /-(.)/g; /** * Camelcases a hyphenated string, for example: * * > camelize('background-color') * < "backgroundColor" * * @param {string} string * @return {string} */ function camelize(string) { return string.replace(_hyphenPattern, function (_, character) { return character.toUpperCase(); }); } module.exports = camelize; /***/ }, /* 100 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule dangerousStyleValue * @typechecks static-only */ 'use strict'; var CSSProperty = __webpack_require__(97); var isUnitlessNumber = CSSProperty.isUnitlessNumber; /** * Convert a value into the proper css writable value. The style name `name` * should be logical (no hyphens), as specified * in `CSSProperty.isUnitlessNumber`. * * @param {string} name CSS property name such as `topMargin`. * @param {*} value CSS property value such as `10px`. * @return {string} Normalized style value with dimensions applied. */ function dangerousStyleValue(name, value) { // Note that we've removed escapeTextForBrowser() calls here since the // whole string will be escaped when the attribute is injected into // the markup. If you provide unsafe user data here they can inject // arbitrary CSS which may be problematic (I couldn't repro this): // path_to_url // path_to_url // This is not an XSS hole but instead a potential CSS injection issue // which has lead to a greater discussion about how we're going to // trust URLs moving forward. See #2115901 var isEmpty = value == null || typeof value === 'boolean' || value === ''; if (isEmpty) { return ''; } var isNonNumeric = isNaN(value); if (isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) { return '' + value; // cast to string } if (typeof value === 'string') { value = value.trim(); } return value + 'px'; } module.exports = dangerousStyleValue; /***/ }, /* 101 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule hyphenateStyleName * @typechecks */ 'use strict'; var hyphenate = __webpack_require__(102); var msPattern = /^ms-/; /** * Hyphenates a camelcased CSS property name, for example: * * > hyphenateStyleName('backgroundColor') * < "background-color" * > hyphenateStyleName('MozTransition') * < "-moz-transition" * > hyphenateStyleName('msTransition') * < "-ms-transition" * * As Modernizr suggests (path_to_url#prefixed), an `ms` prefix * is converted to `-ms-`. * * @param {string} string * @return {string} */ function hyphenateStyleName(string) { return hyphenate(string).replace(msPattern, '-ms-'); } module.exports = hyphenateStyleName; /***/ }, /* 102 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule hyphenate * @typechecks */ 'use strict'; var _uppercasePattern = /([A-Z])/g; /** * Hyphenates a camelcased string, for example: * * > hyphenate('backgroundColor') * < "background-color" * * For CSS style names, use `hyphenateStyleName` instead which works properly * with all vendor prefixes, including `ms`. * * @param {string} string * @return {string} */ function hyphenate(string) { return string.replace(_uppercasePattern, '-$1').toLowerCase(); } module.exports = hyphenate; /***/ }, /* 103 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule memoizeStringOnly * @typechecks static-only */ 'use strict'; /** * Memoizes the return value of a function that accepts one string argument. * * @param {function} callback * @return {function} */ function memoizeStringOnly(callback) { var cache = {}; return function (string) { if (!cache.hasOwnProperty(string)) { cache[string] = callback.call(this, string); } return cache[string]; }; } module.exports = memoizeStringOnly; /***/ }, /* 104 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMButton */ 'use strict'; var mouseListenerNames = { onClick: true, onDoubleClick: true, onMouseDown: true, onMouseMove: true, onMouseUp: true, onClickCapture: true, onDoubleClickCapture: true, onMouseDownCapture: true, onMouseMoveCapture: true, onMouseUpCapture: true }; /** * Implements a <button> native component that does not receive mouse events * when `disabled` is set. */ var ReactDOMButton = { getNativeProps: function (inst, props, context) { if (!props.disabled) { return props; } // Copy the props, except the mouse listeners var nativeProps = {}; for (var key in props) { if (props.hasOwnProperty(key) && !mouseListenerNames[key]) { nativeProps[key] = props[key]; } } return nativeProps; } }; module.exports = ReactDOMButton; /***/ }, /* 105 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMInput */ 'use strict'; var ReactDOMIDOperations = __webpack_require__(27); var LinkedValueUtils = __webpack_require__(106); var ReactMount = __webpack_require__(28); var ReactUpdates = __webpack_require__(54); var assign = __webpack_require__(39); var invariant = __webpack_require__(13); var instancesByReactID = {}; function forceUpdateIfMounted() { if (this._rootNodeID) { // DOM component is still mounted; update ReactDOMInput.updateWrapper(this); } } /** * Implements an <input> native component that allows setting these optional * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. * * If `checked` or `value` are not supplied (or null/undefined), user actions * that affect the checked state or value will trigger updates to the element. * * If they are supplied (and not null/undefined), the rendered element will not * trigger updates to the element. Instead, the props must change in order for * the rendered element to be updated. * * The rendered element will be initialized as unchecked (or `defaultChecked`) * with an empty value (or `defaultValue`). * * @see path_to_url */ var ReactDOMInput = { getNativeProps: function (inst, props, context) { var value = LinkedValueUtils.getValue(props); var checked = LinkedValueUtils.getChecked(props); var nativeProps = assign({}, props, { defaultChecked: undefined, defaultValue: undefined, value: value != null ? value : inst._wrapperState.initialValue, checked: checked != null ? checked : inst._wrapperState.initialChecked, onChange: inst._wrapperState.onChange }); return nativeProps; }, mountWrapper: function (inst, props) { if (process.env.NODE_ENV !== 'production') { LinkedValueUtils.checkPropTypes('input', props, inst._currentElement._owner); } var defaultValue = props.defaultValue; inst._wrapperState = { initialChecked: props.defaultChecked || false, initialValue: defaultValue != null ? defaultValue : null, onChange: _handleChange.bind(inst) }; }, mountReadyWrapper: function (inst) { // Can't be in mountWrapper or else server rendering leaks. instancesByReactID[inst._rootNodeID] = inst; }, unmountWrapper: function (inst) { delete instancesByReactID[inst._rootNodeID]; }, updateWrapper: function (inst) { var props = inst._currentElement.props; // TODO: Shouldn't this be getChecked(props)? var checked = props.checked; if (checked != null) { ReactDOMIDOperations.updatePropertyByID(inst._rootNodeID, 'checked', checked || false); } var value = LinkedValueUtils.getValue(props); if (value != null) { // Cast `value` to a string to ensure the value is set correctly. While // browsers typically do this as necessary, jsdom doesn't. ReactDOMIDOperations.updatePropertyByID(inst._rootNodeID, 'value', '' + value); } } }; function _handleChange(event) { var props = this._currentElement.props; var returnValue = LinkedValueUtils.executeOnChange(props, event); // Here we use asap to wait until all updates have propagated, which // is important when using controlled components within layers: // path_to_url ReactUpdates.asap(forceUpdateIfMounted, this); var name = props.name; if (props.type === 'radio' && name != null) { var rootNode = ReactMount.getNode(this._rootNodeID); var queryRoot = rootNode; while (queryRoot.parentNode) { queryRoot = queryRoot.parentNode; } // If `rootNode.form` was non-null, then we could try `form.elements`, // but that sometimes behaves strangely in IE8. We could also try using // `form.getElementsByName`, but that will only return direct children // and won't include inputs that use the HTML5 `form=` attribute. Since // the input might not even be in a form, let's just use the global // `querySelectorAll` to ensure we don't miss anything. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]'); for (var i = 0; i < group.length; i++) { var otherNode = group[i]; if (otherNode === rootNode || otherNode.form !== rootNode.form) { continue; } // This will throw if radio buttons rendered by different copies of React // and the same name are rendered into the same form (same as #1939). // That's probably okay; we don't support it just as we don't support // mixing React with non-React. var otherID = ReactMount.getID(otherNode); !otherID ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the ' + 'same `name` is not supported.') : invariant(false) : undefined; var otherInstance = instancesByReactID[otherID]; !otherInstance ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOMInput: Unknown radio button ID %s.', otherID) : invariant(false) : undefined; // If this is a controlled radio button group, forcing the input that // was previously checked to update will cause it to be come re-checked // as appropriate. ReactUpdates.asap(forceUpdateIfMounted, otherInstance); } } return returnValue; } module.exports = ReactDOMInput; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 106 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule LinkedValueUtils * @typechecks static-only */ 'use strict'; var ReactPropTypes = __webpack_require__(107); var ReactPropTypeLocations = __webpack_require__(65); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); var hasReadOnlyValue = { 'button': true, 'checkbox': true, 'image': true, 'hidden': true, 'radio': true, 'reset': true, 'submit': true }; function _assertSingleLink(inputProps) { !(inputProps.checkedLink == null || inputProps.valueLink == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a valueLink. If you want to use ' + 'checkedLink, you probably don\'t want to use valueLink and vice versa.') : invariant(false) : undefined; } function _assertValueLink(inputProps) { _assertSingleLink(inputProps); !(inputProps.value == null && inputProps.onChange == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a valueLink and a value or onChange event. If you want ' + 'to use value or onChange, you probably don\'t want to use valueLink.') : invariant(false) : undefined; } function _assertCheckedLink(inputProps) { _assertSingleLink(inputProps); !(inputProps.checked == null && inputProps.onChange == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a checked property or onChange event. ' + 'If you want to use checked or onChange, you probably don\'t want to ' + 'use checkedLink') : invariant(false) : undefined; } var propTypes = { value: function (props, propName, componentName) { if (!props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled) { return null; } return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); }, checked: function (props, propName, componentName) { if (!props[propName] || props.onChange || props.readOnly || props.disabled) { return null; } return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); }, onChange: ReactPropTypes.func }; var loggedTypeFailures = {}; function getDeclarationErrorAddendum(owner) { if (owner) { var name = owner.getName(); if (name) { return ' Check the render method of `' + name + '`.'; } } return ''; } /** * Provide a linked `value` attribute for controlled forms. You should not use * this outside of the ReactDOM controlled form components. */ var LinkedValueUtils = { checkPropTypes: function (tagName, props, owner) { for (var propName in propTypes) { if (propTypes.hasOwnProperty(propName)) { var error = propTypes[propName](props, propName, tagName, ReactPropTypeLocations.prop); } if (error instanceof Error && !(error.message in loggedTypeFailures)) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error.message] = true; var addendum = getDeclarationErrorAddendum(owner); process.env.NODE_ENV !== 'production' ? warning(false, 'Failed form propType: %s%s', error.message, addendum) : undefined; } } }, /** * @param {object} inputProps Props for form component * @return {*} current value of the input either from value prop or link. */ getValue: function (inputProps) { if (inputProps.valueLink) { _assertValueLink(inputProps); return inputProps.valueLink.value; } return inputProps.value; }, /** * @param {object} inputProps Props for form component * @return {*} current checked status of the input either from checked prop * or link. */ getChecked: function (inputProps) { if (inputProps.checkedLink) { _assertCheckedLink(inputProps); return inputProps.checkedLink.value; } return inputProps.checked; }, /** * @param {object} inputProps Props for form component * @param {SyntheticEvent} event change event to handle */ executeOnChange: function (inputProps, event) { if (inputProps.valueLink) { _assertValueLink(inputProps); return inputProps.valueLink.requestChange(event.target.value); } else if (inputProps.checkedLink) { _assertCheckedLink(inputProps); return inputProps.checkedLink.requestChange(event.target.checked); } else if (inputProps.onChange) { return inputProps.onChange.call(undefined, event); } } }; module.exports = LinkedValueUtils; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 107 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactPropTypes */ 'use strict'; var ReactElement = __webpack_require__(42); var ReactPropTypeLocationNames = __webpack_require__(66); var emptyFunction = __webpack_require__(15); var getIteratorFn = __webpack_require__(108); /** * Collection of methods that allow declaration and validation of props that are * supplied to React components. Example usage: * * var Props = require('ReactPropTypes'); * var MyArticle = React.createClass({ * propTypes: { * // An optional string prop named "description". * description: Props.string, * * // A required enum prop named "category". * category: Props.oneOf(['News','Photos']).isRequired, * * // A prop named "dialog" that requires an instance of Dialog. * dialog: Props.instanceOf(Dialog).isRequired * }, * render: function() { ... } * }); * * A more formal specification of how these methods are used: * * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) * decl := ReactPropTypes.{type}(.isRequired)? * * Each and every declaration produces a function with the same signature. This * allows the creation of custom validation functions. For example: * * var MyLink = React.createClass({ * propTypes: { * // An optional string or URI prop named "href". * href: function(props, propName, componentName) { * var propValue = props[propName]; * if (propValue != null && typeof propValue !== 'string' && * !(propValue instanceof URI)) { * return new Error( * 'Expected a string or an URI for ' + propName + ' in ' + * componentName * ); * } * } * }, * render: function() {...} * }); * * @internal */ var ANONYMOUS = '<<anonymous>>'; var ReactPropTypes = { array: createPrimitiveTypeChecker('array'), bool: createPrimitiveTypeChecker('boolean'), func: createPrimitiveTypeChecker('function'), number: createPrimitiveTypeChecker('number'), object: createPrimitiveTypeChecker('object'), string: createPrimitiveTypeChecker('string'), any: createAnyTypeChecker(), arrayOf: createArrayOfTypeChecker, element: createElementTypeChecker(), instanceOf: createInstanceTypeChecker, node: createNodeChecker(), objectOf: createObjectOfTypeChecker, oneOf: createEnumTypeChecker, oneOfType: createUnionTypeChecker, shape: createShapeTypeChecker }; function createChainableTypeChecker(validate) { function checkType(isRequired, props, propName, componentName, location, propFullName) { componentName = componentName || ANONYMOUS; propFullName = propFullName || propName; if (props[propName] == null) { var locationName = ReactPropTypeLocationNames[location]; if (isRequired) { return new Error('Required ' + locationName + ' `' + propFullName + '` was not specified in ' + ('`' + componentName + '`.')); } return null; } else { return validate(props, propName, componentName, location, propFullName); } } var chainedCheckType = checkType.bind(null, false); chainedCheckType.isRequired = checkType.bind(null, true); return chainedCheckType; } function createPrimitiveTypeChecker(expectedType) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== expectedType) { var locationName = ReactPropTypeLocationNames[location]; // `propValue` being instance of, say, date/regexp, pass the 'object' // check, but we can offer a more precise error message here rather than // 'of type `object`'. var preciseType = getPreciseType(propValue); return new Error('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); } return null; } return createChainableTypeChecker(validate); } function createAnyTypeChecker() { return createChainableTypeChecker(emptyFunction.thatReturns(null)); } function createArrayOfTypeChecker(typeChecker) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; if (!Array.isArray(propValue)) { var locationName = ReactPropTypeLocationNames[location]; var propType = getPropType(propValue); return new Error('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); } for (var i = 0; i < propValue.length; i++) { var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']'); if (error instanceof Error) { return error; } } return null; } return createChainableTypeChecker(validate); } function createElementTypeChecker() { function validate(props, propName, componentName, location, propFullName) { if (!ReactElement.isValidElement(props[propName])) { var locationName = ReactPropTypeLocationNames[location]; return new Error('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a single ReactElement.')); } return null; } return createChainableTypeChecker(validate); } function createInstanceTypeChecker(expectedClass) { function validate(props, propName, componentName, location, propFullName) { if (!(props[propName] instanceof expectedClass)) { var locationName = ReactPropTypeLocationNames[location]; var expectedClassName = expectedClass.name || ANONYMOUS; var actualClassName = getClassName(props[propName]); return new Error('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); } return null; } return createChainableTypeChecker(validate); } function createEnumTypeChecker(expectedValues) { if (!Array.isArray(expectedValues)) { return createChainableTypeChecker(function () { return new Error('Invalid argument supplied to oneOf, expected an instance of array.'); }); } function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; for (var i = 0; i < expectedValues.length; i++) { if (propValue === expectedValues[i]) { return null; } } var locationName = ReactPropTypeLocationNames[location]; var valuesString = JSON.stringify(expectedValues); return new Error('Invalid ' + locationName + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); } return createChainableTypeChecker(validate); } function createObjectOfTypeChecker(typeChecker) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { var locationName = ReactPropTypeLocationNames[location]; return new Error('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); } for (var key in propValue) { if (propValue.hasOwnProperty(key)) { var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key); if (error instanceof Error) { return error; } } } return null; } return createChainableTypeChecker(validate); } function createUnionTypeChecker(arrayOfTypeCheckers) { if (!Array.isArray(arrayOfTypeCheckers)) { return createChainableTypeChecker(function () { return new Error('Invalid argument supplied to oneOfType, expected an instance of array.'); }); } function validate(props, propName, componentName, location, propFullName) { for (var i = 0; i < arrayOfTypeCheckers.length; i++) { var checker = arrayOfTypeCheckers[i]; if (checker(props, propName, componentName, location, propFullName) == null) { return null; } } var locationName = ReactPropTypeLocationNames[location]; return new Error('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); } return createChainableTypeChecker(validate); } function createNodeChecker() { function validate(props, propName, componentName, location, propFullName) { if (!isNode(props[propName])) { var locationName = ReactPropTypeLocationNames[location]; return new Error('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); } return null; } return createChainableTypeChecker(validate); } function createShapeTypeChecker(shapeTypes) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { var locationName = ReactPropTypeLocationNames[location]; return new Error('Invalid ' + locationName + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); } for (var key in shapeTypes) { var checker = shapeTypes[key]; if (!checker) { continue; } var error = checker(propValue, key, componentName, location, propFullName + '.' + key); if (error) { return error; } } return null; } return createChainableTypeChecker(validate); } function isNode(propValue) { switch (typeof propValue) { case 'number': case 'string': case 'undefined': return true; case 'boolean': return !propValue; case 'object': if (Array.isArray(propValue)) { return propValue.every(isNode); } if (propValue === null || ReactElement.isValidElement(propValue)) { return true; } var iteratorFn = getIteratorFn(propValue); if (iteratorFn) { var iterator = iteratorFn.call(propValue); var step; if (iteratorFn !== propValue.entries) { while (!(step = iterator.next()).done) { if (!isNode(step.value)) { return false; } } } else { // Iterator will provide entry [k,v] tuples rather than values. while (!(step = iterator.next()).done) { var entry = step.value; if (entry) { if (!isNode(entry[1])) { return false; } } } } } else { return false; } return true; default: return false; } } // Equivalent of `typeof` but with special handling for array and regexp. function getPropType(propValue) { var propType = typeof propValue; if (Array.isArray(propValue)) { return 'array'; } if (propValue instanceof RegExp) { // Old webkits (at least until Android 4.0) return 'function' rather than // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ // passes PropTypes.object. return 'object'; } return propType; } // This handles more types than `getPropType`. Only used for error messages. // See `createPrimitiveTypeChecker`. function getPreciseType(propValue) { var propType = getPropType(propValue); if (propType === 'object') { if (propValue instanceof Date) { return 'date'; } else if (propValue instanceof RegExp) { return 'regexp'; } } return propType; } // Returns class name of the object, if any. function getClassName(propValue) { if (!propValue.constructor || !propValue.constructor.name) { return '<<anonymous>>'; } return propValue.constructor.name; } module.exports = ReactPropTypes; /***/ }, /* 108 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getIteratorFn * @typechecks static-only */ 'use strict'; /* global Symbol */ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. /** * Returns the iterator method function contained on the iterable object. * * Be sure to invoke the function with the iterable as context: * * var iteratorFn = getIteratorFn(myIterable); * if (iteratorFn) { * var iterator = iteratorFn.call(myIterable); * ... * } * * @param {?object} maybeIterable * @return {?function} */ function getIteratorFn(maybeIterable) { var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); if (typeof iteratorFn === 'function') { return iteratorFn; } } module.exports = getIteratorFn; /***/ }, /* 109 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMOption */ 'use strict'; var ReactChildren = __webpack_require__(110); var ReactDOMSelect = __webpack_require__(112); var assign = __webpack_require__(39); var warning = __webpack_require__(25); var valueContextKey = ReactDOMSelect.valueContextKey; /** * Implements an <option> native component that warns when `selected` is set. */ var ReactDOMOption = { mountWrapper: function (inst, props, context) { // TODO (yungsters): Remove support for `selected` in <option>. if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.') : undefined; } // Look up whether this option is 'selected' via context var selectValue = context[valueContextKey]; // If context key is null (e.g., no specified value or after initial mount) // or missing (e.g., for <datalist>), we don't change props.selected var selected = null; if (selectValue != null) { selected = false; if (Array.isArray(selectValue)) { // multiple for (var i = 0; i < selectValue.length; i++) { if ('' + selectValue[i] === '' + props.value) { selected = true; break; } } } else { selected = '' + selectValue === '' + props.value; } } inst._wrapperState = { selected: selected }; }, getNativeProps: function (inst, props, context) { var nativeProps = assign({ selected: undefined, children: undefined }, props); // Read state only from initial mount because <select> updates value // manually; we need the initial state only for server rendering if (inst._wrapperState.selected != null) { nativeProps.selected = inst._wrapperState.selected; } var content = ''; // Flatten children and warn if they aren't strings or numbers; // invalid types are ignored. ReactChildren.forEach(props.children, function (child) { if (child == null) { return; } if (typeof child === 'string' || typeof child === 'number') { content += child; } else { process.env.NODE_ENV !== 'production' ? warning(false, 'Only strings and numbers are supported as <option> children.') : undefined; } }); nativeProps.children = content; return nativeProps; } }; module.exports = ReactDOMOption; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 110 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactChildren */ 'use strict'; var PooledClass = __webpack_require__(56); var ReactElement = __webpack_require__(42); var emptyFunction = __webpack_require__(15); var traverseAllChildren = __webpack_require__(111); var twoArgumentPooler = PooledClass.twoArgumentPooler; var fourArgumentPooler = PooledClass.fourArgumentPooler; var userProvidedKeyEscapeRegex = /\/(?!\/)/g; function escapeUserProvidedKey(text) { return ('' + text).replace(userProvidedKeyEscapeRegex, '//'); } /** * PooledClass representing the bookkeeping associated with performing a child * traversal. Allows avoiding binding callbacks. * * @constructor ForEachBookKeeping * @param {!function} forEachFunction Function to perform traversal with. * @param {?*} forEachContext Context to perform context with. */ function ForEachBookKeeping(forEachFunction, forEachContext) { this.func = forEachFunction; this.context = forEachContext; this.count = 0; } ForEachBookKeeping.prototype.destructor = function () { this.func = null; this.context = null; this.count = 0; }; PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler); function forEachSingleChild(bookKeeping, child, name) { var func = bookKeeping.func; var context = bookKeeping.context; func.call(context, child, bookKeeping.count++); } /** * Iterates through children that are typically specified as `props.children`. * * The provided forEachFunc(child, index) will be called for each * leaf child. * * @param {?*} children Children tree container. * @param {function(*, int)} forEachFunc * @param {*} forEachContext Context for forEachContext. */ function forEachChildren(children, forEachFunc, forEachContext) { if (children == null) { return children; } var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext); traverseAllChildren(children, forEachSingleChild, traverseContext); ForEachBookKeeping.release(traverseContext); } /** * PooledClass representing the bookkeeping associated with performing a child * mapping. Allows avoiding binding callbacks. * * @constructor MapBookKeeping * @param {!*} mapResult Object containing the ordered map of results. * @param {!function} mapFunction Function to perform mapping with. * @param {?*} mapContext Context to perform mapping with. */ function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) { this.result = mapResult; this.keyPrefix = keyPrefix; this.func = mapFunction; this.context = mapContext; this.count = 0; } MapBookKeeping.prototype.destructor = function () { this.result = null; this.keyPrefix = null; this.func = null; this.context = null; this.count = 0; }; PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler); function mapSingleChildIntoContext(bookKeeping, child, childKey) { var result = bookKeeping.result; var keyPrefix = bookKeeping.keyPrefix; var func = bookKeeping.func; var context = bookKeeping.context; var mappedChild = func.call(context, child, bookKeeping.count++); if (Array.isArray(mappedChild)) { mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument); } else if (mappedChild != null) { if (ReactElement.isValidElement(mappedChild)) { mappedChild = ReactElement.cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as // traverseAllChildren used to do for objects as children keyPrefix + (mappedChild !== child ? escapeUserProvidedKey(mappedChild.key || '') + '/' : '') + childKey); } result.push(mappedChild); } } function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { var escapedPrefix = ''; if (prefix != null) { escapedPrefix = escapeUserProvidedKey(prefix) + '/'; } var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context); traverseAllChildren(children, mapSingleChildIntoContext, traverseContext); MapBookKeeping.release(traverseContext); } /** * Maps children that are typically specified as `props.children`. * * The provided mapFunction(child, key, index) will be called for each * leaf child. * * @param {?*} children Children tree container. * @param {function(*, int)} func The map function. * @param {*} context Context for mapFunction. * @return {object} Object containing the ordered map of results. */ function mapChildren(children, func, context) { if (children == null) { return children; } var result = []; mapIntoWithKeyPrefixInternal(children, result, null, func, context); return result; } function forEachSingleChildDummy(traverseContext, child, name) { return null; } /** * Count the number of children that are typically specified as * `props.children`. * * @param {?*} children Children tree container. * @return {number} The number of children. */ function countChildren(children, context) { return traverseAllChildren(children, forEachSingleChildDummy, null); } /** * Flatten a children object (typically specified as `props.children`) and * return an array with appropriately re-keyed children. */ function toArray(children) { var result = []; mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument); return result; } var ReactChildren = { forEach: forEachChildren, map: mapChildren, mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal, count: countChildren, toArray: toArray }; module.exports = ReactChildren; /***/ }, /* 111 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule traverseAllChildren */ 'use strict'; var ReactCurrentOwner = __webpack_require__(5); var ReactElement = __webpack_require__(42); var ReactInstanceHandles = __webpack_require__(45); var getIteratorFn = __webpack_require__(108); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); var SEPARATOR = ReactInstanceHandles.SEPARATOR; var SUBSEPARATOR = ':'; /** * TODO: Test that a single child and an array with one item have the same key * pattern. */ var userProvidedKeyEscaperLookup = { '=': '=0', '.': '=1', ':': '=2' }; var userProvidedKeyEscapeRegex = /[=.:]/g; var didWarnAboutMaps = false; function userProvidedKeyEscaper(match) { return userProvidedKeyEscaperLookup[match]; } /** * Generate a key string that identifies a component within a set. * * @param {*} component A component that could contain a manual key. * @param {number} index Index that is used if a manual key is not provided. * @return {string} */ function getComponentKey(component, index) { if (component && component.key != null) { // Explicit key return wrapUserProvidedKey(component.key); } // Implicit key determined by the index in the set return index.toString(36); } /** * Escape a component key so that it is safe to use in a reactid. * * @param {*} text Component key to be escaped. * @return {string} An escaped string. */ function escapeUserProvidedKey(text) { return ('' + text).replace(userProvidedKeyEscapeRegex, userProvidedKeyEscaper); } /** * Wrap a `key` value explicitly provided by the user to distinguish it from * implicitly-generated keys generated by a component's index in its parent. * * @param {string} key Value of a user-provided `key` attribute * @return {string} */ function wrapUserProvidedKey(key) { return '$' + escapeUserProvidedKey(key); } /** * @param {?*} children Children tree container. * @param {!string} nameSoFar Name of the key path so far. * @param {!function} callback Callback to invoke with each child found. * @param {?*} traverseContext Used to pass information throughout the traversal * process. * @return {!number} The number of children in this subtree. */ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { var type = typeof children; if (type === 'undefined' || type === 'boolean') { // All of the above are perceived as null. children = null; } if (children === null || type === 'string' || type === 'number' || ReactElement.isValidElement(children)) { callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array // so that it's consistent if the number of children grows. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); return 1; } var child; var nextName; var subtreeCount = 0; // Count of children found in the current subtree. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; if (Array.isArray(children)) { for (var i = 0; i < children.length; i++) { child = children[i]; nextName = nextNamePrefix + getComponentKey(child, i); subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); } } else { var iteratorFn = getIteratorFn(children); if (iteratorFn) { var iterator = iteratorFn.call(children); var step; if (iteratorFn !== children.entries) { var ii = 0; while (!(step = iterator.next()).done) { child = step.value; nextName = nextNamePrefix + getComponentKey(child, ii++); subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); } } else { if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.') : undefined; didWarnAboutMaps = true; } // Iterator will provide entry [k,v] tuples rather than values. while (!(step = iterator.next()).done) { var entry = step.value; if (entry) { child = entry[1]; nextName = nextNamePrefix + wrapUserProvidedKey(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0); subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); } } } } else if (type === 'object') { var addendum = ''; if (process.env.NODE_ENV !== 'production') { addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.'; if (children._isReactElement) { addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.'; } if (ReactCurrentOwner.current) { var name = ReactCurrentOwner.current.getName(); if (name) { addendum += ' Check the render method of `' + name + '`.'; } } } var childrenString = String(children); true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : invariant(false) : undefined; } } return subtreeCount; } /** * Traverses children that are typically specified as `props.children`, but * might also be specified through attributes: * * - `traverseAllChildren(this.props.children, ...)` * - `traverseAllChildren(this.props.leftPanelChildren, ...)` * * The `traverseContext` is an optional argument that is passed through the * entire traversal. It can be used to store accumulations or anything else that * the callback might find relevant. * * @param {?*} children Children tree object. * @param {!function} callback To invoke upon traversing each child. * @param {?*} traverseContext Context for traversal. * @return {!number} The number of children in this subtree. */ function traverseAllChildren(children, callback, traverseContext) { if (children == null) { return 0; } return traverseAllChildrenImpl(children, '', callback, traverseContext); } module.exports = traverseAllChildren; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 112 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMSelect */ 'use strict'; var LinkedValueUtils = __webpack_require__(106); var ReactMount = __webpack_require__(28); var ReactUpdates = __webpack_require__(54); var assign = __webpack_require__(39); var warning = __webpack_require__(25); var valueContextKey = '__ReactDOMSelect_value$' + Math.random().toString(36).slice(2); function updateOptionsIfPendingUpdateAndMounted() { if (this._rootNodeID && this._wrapperState.pendingUpdate) { this._wrapperState.pendingUpdate = false; var props = this._currentElement.props; var value = LinkedValueUtils.getValue(props); if (value != null) { updateOptions(this, Boolean(props.multiple), value); } } } function getDeclarationErrorAddendum(owner) { if (owner) { var name = owner.getName(); if (name) { return ' Check the render method of `' + name + '`.'; } } return ''; } var valuePropNames = ['value', 'defaultValue']; /** * Validation function for `value` and `defaultValue`. * @private */ function checkSelectPropTypes(inst, props) { var owner = inst._currentElement._owner; LinkedValueUtils.checkPropTypes('select', props, owner); for (var i = 0; i < valuePropNames.length; i++) { var propName = valuePropNames[i]; if (props[propName] == null) { continue; } if (props.multiple) { process.env.NODE_ENV !== 'production' ? warning(Array.isArray(props[propName]), 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum(owner)) : undefined; } else { process.env.NODE_ENV !== 'production' ? warning(!Array.isArray(props[propName]), 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum(owner)) : undefined; } } } /** * @param {ReactDOMComponent} inst * @param {boolean} multiple * @param {*} propValue A stringable (with `multiple`, a list of stringables). * @private */ function updateOptions(inst, multiple, propValue) { var selectedValue, i; var options = ReactMount.getNode(inst._rootNodeID).options; if (multiple) { selectedValue = {}; for (i = 0; i < propValue.length; i++) { selectedValue['' + propValue[i]] = true; } for (i = 0; i < options.length; i++) { var selected = selectedValue.hasOwnProperty(options[i].value); if (options[i].selected !== selected) { options[i].selected = selected; } } } else { // Do not set `select.value` as exact behavior isn't consistent across all // browsers for all cases. selectedValue = '' + propValue; for (i = 0; i < options.length; i++) { if (options[i].value === selectedValue) { options[i].selected = true; return; } } if (options.length) { options[0].selected = true; } } } /** * Implements a <select> native component that allows optionally setting the * props `value` and `defaultValue`. If `multiple` is false, the prop must be a * stringable. If `multiple` is true, the prop must be an array of stringables. * * If `value` is not supplied (or null/undefined), user actions that change the * selected option will trigger updates to the rendered options. * * If it is supplied (and not null/undefined), the rendered options will not * update in response to user actions. Instead, the `value` prop must change in * order for the rendered options to update. * * If `defaultValue` is provided, any options with the supplied values will be * selected. */ var ReactDOMSelect = { valueContextKey: valueContextKey, getNativeProps: function (inst, props, context) { return assign({}, props, { onChange: inst._wrapperState.onChange, value: undefined }); }, mountWrapper: function (inst, props) { if (process.env.NODE_ENV !== 'production') { checkSelectPropTypes(inst, props); } var value = LinkedValueUtils.getValue(props); inst._wrapperState = { pendingUpdate: false, initialValue: value != null ? value : props.defaultValue, onChange: _handleChange.bind(inst), wasMultiple: Boolean(props.multiple) }; }, processChildContext: function (inst, props, context) { // Pass down initial value so initial generated markup has correct // `selected` attributes var childContext = assign({}, context); childContext[valueContextKey] = inst._wrapperState.initialValue; return childContext; }, postUpdateWrapper: function (inst) { var props = inst._currentElement.props; // After the initial mount, we control selected-ness manually so don't pass // the context value down inst._wrapperState.initialValue = undefined; var wasMultiple = inst._wrapperState.wasMultiple; inst._wrapperState.wasMultiple = Boolean(props.multiple); var value = LinkedValueUtils.getValue(props); if (value != null) { inst._wrapperState.pendingUpdate = false; updateOptions(inst, Boolean(props.multiple), value); } else if (wasMultiple !== Boolean(props.multiple)) { // For simplicity, reapply `defaultValue` if `multiple` is toggled. if (props.defaultValue != null) { updateOptions(inst, Boolean(props.multiple), props.defaultValue); } else { // Revert the select back to its default unselected state. updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : ''); } } } }; function _handleChange(event) { var props = this._currentElement.props; var returnValue = LinkedValueUtils.executeOnChange(props, event); this._wrapperState.pendingUpdate = true; ReactUpdates.asap(updateOptionsIfPendingUpdateAndMounted, this); return returnValue; } module.exports = ReactDOMSelect; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 113 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMTextarea */ 'use strict'; var LinkedValueUtils = __webpack_require__(106); var ReactDOMIDOperations = __webpack_require__(27); var ReactUpdates = __webpack_require__(54); var assign = __webpack_require__(39); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); function forceUpdateIfMounted() { if (this._rootNodeID) { // DOM component is still mounted; update ReactDOMTextarea.updateWrapper(this); } } /** * Implements a <textarea> native component that allows setting `value`, and * `defaultValue`. This differs from the traditional DOM API because value is * usually set as PCDATA children. * * If `value` is not supplied (or null/undefined), user actions that affect the * value will trigger updates to the element. * * If `value` is supplied (and not null/undefined), the rendered element will * not trigger updates to the element. Instead, the `value` prop must change in * order for the rendered element to be updated. * * The rendered element will be initialized with an empty value, the prop * `defaultValue` if specified, or the children content (deprecated). */ var ReactDOMTextarea = { getNativeProps: function (inst, props, context) { !(props.dangerouslySetInnerHTML == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : invariant(false) : undefined; // Always set children to the same thing. In IE9, the selection range will // get reset if `textContent` is mutated. var nativeProps = assign({}, props, { defaultValue: undefined, value: undefined, children: inst._wrapperState.initialValue, onChange: inst._wrapperState.onChange }); return nativeProps; }, mountWrapper: function (inst, props) { if (process.env.NODE_ENV !== 'production') { LinkedValueUtils.checkPropTypes('textarea', props, inst._currentElement._owner); } var defaultValue = props.defaultValue; // TODO (yungsters): Remove support for children content in <textarea>. var children = props.children; if (children != null) { if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.') : undefined; } !(defaultValue == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : invariant(false) : undefined; if (Array.isArray(children)) { !(children.length <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, '<textarea> can only have at most one child.') : invariant(false) : undefined; children = children[0]; } defaultValue = '' + children; } if (defaultValue == null) { defaultValue = ''; } var value = LinkedValueUtils.getValue(props); inst._wrapperState = { // We save the initial value so that `ReactDOMComponent` doesn't update // `textContent` (unnecessary since we update value). // The initial value can be a boolean or object so that's why it's // forced to be a string. initialValue: '' + (value != null ? value : defaultValue), onChange: _handleChange.bind(inst) }; }, updateWrapper: function (inst) { var props = inst._currentElement.props; var value = LinkedValueUtils.getValue(props); if (value != null) { // Cast `value` to a string to ensure the value is set correctly. While // browsers typically do this as necessary, jsdom doesn't. ReactDOMIDOperations.updatePropertyByID(inst._rootNodeID, 'value', '' + value); } } }; function _handleChange(event) { var props = this._currentElement.props; var returnValue = LinkedValueUtils.executeOnChange(props, event); ReactUpdates.asap(forceUpdateIfMounted, this); return returnValue; } module.exports = ReactDOMTextarea; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 114 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactMultiChild * @typechecks static-only */ 'use strict'; var ReactComponentEnvironment = __webpack_require__(64); var ReactMultiChildUpdateTypes = __webpack_require__(16); var ReactCurrentOwner = __webpack_require__(5); var ReactReconciler = __webpack_require__(50); var ReactChildReconciler = __webpack_require__(115); var flattenChildren = __webpack_require__(116); /** * Updating children of a component may trigger recursive updates. The depth is * used to batch recursive updates to render markup more efficiently. * * @type {number} * @private */ var updateDepth = 0; /** * Queue of update configuration objects. * * Each object has a `type` property that is in `ReactMultiChildUpdateTypes`. * * @type {array<object>} * @private */ var updateQueue = []; /** * Queue of markup to be rendered. * * @type {array<string>} * @private */ var markupQueue = []; /** * Enqueues markup to be rendered and inserted at a supplied index. * * @param {string} parentID ID of the parent component. * @param {string} markup Markup that renders into an element. * @param {number} toIndex Destination index. * @private */ function enqueueInsertMarkup(parentID, markup, toIndex) { // NOTE: Null values reduce hidden classes. updateQueue.push({ parentID: parentID, parentNode: null, type: ReactMultiChildUpdateTypes.INSERT_MARKUP, markupIndex: markupQueue.push(markup) - 1, content: null, fromIndex: null, toIndex: toIndex }); } /** * Enqueues moving an existing element to another index. * * @param {string} parentID ID of the parent component. * @param {number} fromIndex Source index of the existing element. * @param {number} toIndex Destination index of the element. * @private */ function enqueueMove(parentID, fromIndex, toIndex) { // NOTE: Null values reduce hidden classes. updateQueue.push({ parentID: parentID, parentNode: null, type: ReactMultiChildUpdateTypes.MOVE_EXISTING, markupIndex: null, content: null, fromIndex: fromIndex, toIndex: toIndex }); } /** * Enqueues removing an element at an index. * * @param {string} parentID ID of the parent component. * @param {number} fromIndex Index of the element to remove. * @private */ function enqueueRemove(parentID, fromIndex) { // NOTE: Null values reduce hidden classes. updateQueue.push({ parentID: parentID, parentNode: null, type: ReactMultiChildUpdateTypes.REMOVE_NODE, markupIndex: null, content: null, fromIndex: fromIndex, toIndex: null }); } /** * Enqueues setting the markup of a node. * * @param {string} parentID ID of the parent component. * @param {string} markup Markup that renders into an element. * @private */ function enqueueSetMarkup(parentID, markup) { // NOTE: Null values reduce hidden classes. updateQueue.push({ parentID: parentID, parentNode: null, type: ReactMultiChildUpdateTypes.SET_MARKUP, markupIndex: null, content: markup, fromIndex: null, toIndex: null }); } /** * Enqueues setting the text content. * * @param {string} parentID ID of the parent component. * @param {string} textContent Text content to set. * @private */ function enqueueTextContent(parentID, textContent) { // NOTE: Null values reduce hidden classes. updateQueue.push({ parentID: parentID, parentNode: null, type: ReactMultiChildUpdateTypes.TEXT_CONTENT, markupIndex: null, content: textContent, fromIndex: null, toIndex: null }); } /** * Processes any enqueued updates. * * @private */ function processQueue() { if (updateQueue.length) { ReactComponentEnvironment.processChildrenUpdates(updateQueue, markupQueue); clearQueue(); } } /** * Clears any enqueued updates. * * @private */ function clearQueue() { updateQueue.length = 0; markupQueue.length = 0; } /** * ReactMultiChild are capable of reconciling multiple children. * * @class ReactMultiChild * @internal */ var ReactMultiChild = { /** * Provides common functionality for components that must reconcile multiple * children. This is used by `ReactDOMComponent` to mount, update, and * unmount child components. * * @lends {ReactMultiChild.prototype} */ Mixin: { _reconcilerInstantiateChildren: function (nestedChildren, transaction, context) { if (process.env.NODE_ENV !== 'production') { if (this._currentElement) { try { ReactCurrentOwner.current = this._currentElement._owner; return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context); } finally { ReactCurrentOwner.current = null; } } } return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context); }, _reconcilerUpdateChildren: function (prevChildren, nextNestedChildrenElements, transaction, context) { var nextChildren; if (process.env.NODE_ENV !== 'production') { if (this._currentElement) { try { ReactCurrentOwner.current = this._currentElement._owner; nextChildren = flattenChildren(nextNestedChildrenElements); } finally { ReactCurrentOwner.current = null; } return ReactChildReconciler.updateChildren(prevChildren, nextChildren, transaction, context); } } nextChildren = flattenChildren(nextNestedChildrenElements); return ReactChildReconciler.updateChildren(prevChildren, nextChildren, transaction, context); }, /** * Generates a "mount image" for each of the supplied children. In the case * of `ReactDOMComponent`, a mount image is a string of markup. * * @param {?object} nestedChildren Nested child maps. * @return {array} An array of mounted representations. * @internal */ mountChildren: function (nestedChildren, transaction, context) { var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context); this._renderedChildren = children; var mountImages = []; var index = 0; for (var name in children) { if (children.hasOwnProperty(name)) { var child = children[name]; // Inlined for performance, see `ReactInstanceHandles.createReactID`. var rootID = this._rootNodeID + name; var mountImage = ReactReconciler.mountComponent(child, rootID, transaction, context); child._mountIndex = index++; mountImages.push(mountImage); } } return mountImages; }, /** * Replaces any rendered children with a text content string. * * @param {string} nextContent String of content. * @internal */ updateTextContent: function (nextContent) { updateDepth++; var errorThrown = true; try { var prevChildren = this._renderedChildren; // Remove any rendered children. ReactChildReconciler.unmountChildren(prevChildren); // TODO: The setTextContent operation should be enough for (var name in prevChildren) { if (prevChildren.hasOwnProperty(name)) { this._unmountChild(prevChildren[name]); } } // Set new text content. this.setTextContent(nextContent); errorThrown = false; } finally { updateDepth--; if (!updateDepth) { if (errorThrown) { clearQueue(); } else { processQueue(); } } } }, /** * Replaces any rendered children with a markup string. * * @param {string} nextMarkup String of markup. * @internal */ updateMarkup: function (nextMarkup) { updateDepth++; var errorThrown = true; try { var prevChildren = this._renderedChildren; // Remove any rendered children. ReactChildReconciler.unmountChildren(prevChildren); for (var name in prevChildren) { if (prevChildren.hasOwnProperty(name)) { this._unmountChildByName(prevChildren[name], name); } } this.setMarkup(nextMarkup); errorThrown = false; } finally { updateDepth--; if (!updateDepth) { if (errorThrown) { clearQueue(); } else { processQueue(); } } } }, /** * Updates the rendered children with new children. * * @param {?object} nextNestedChildrenElements Nested child element maps. * @param {ReactReconcileTransaction} transaction * @internal */ updateChildren: function (nextNestedChildrenElements, transaction, context) { updateDepth++; var errorThrown = true; try { this._updateChildren(nextNestedChildrenElements, transaction, context); errorThrown = false; } finally { updateDepth--; if (!updateDepth) { if (errorThrown) { clearQueue(); } else { processQueue(); } } } }, /** * Improve performance by isolating this hot code path from the try/catch * block in `updateChildren`. * * @param {?object} nextNestedChildrenElements Nested child element maps. * @param {ReactReconcileTransaction} transaction * @final * @protected */ _updateChildren: function (nextNestedChildrenElements, transaction, context) { var prevChildren = this._renderedChildren; var nextChildren = this._reconcilerUpdateChildren(prevChildren, nextNestedChildrenElements, transaction, context); this._renderedChildren = nextChildren; if (!nextChildren && !prevChildren) { return; } var name; // `nextIndex` will increment for each child in `nextChildren`, but // `lastIndex` will be the last index visited in `prevChildren`. var lastIndex = 0; var nextIndex = 0; for (name in nextChildren) { if (!nextChildren.hasOwnProperty(name)) { continue; } var prevChild = prevChildren && prevChildren[name]; var nextChild = nextChildren[name]; if (prevChild === nextChild) { this.moveChild(prevChild, nextIndex, lastIndex); lastIndex = Math.max(prevChild._mountIndex, lastIndex); prevChild._mountIndex = nextIndex; } else { if (prevChild) { // Update `lastIndex` before `_mountIndex` gets unset by unmounting. lastIndex = Math.max(prevChild._mountIndex, lastIndex); this._unmountChild(prevChild); } // The child must be instantiated before it's mounted. this._mountChildByNameAtIndex(nextChild, name, nextIndex, transaction, context); } nextIndex++; } // Remove children that are no longer present. for (name in prevChildren) { if (prevChildren.hasOwnProperty(name) && !(nextChildren && nextChildren.hasOwnProperty(name))) { this._unmountChild(prevChildren[name]); } } }, /** * Unmounts all rendered children. This should be used to clean up children * when this component is unmounted. * * @internal */ unmountChildren: function () { var renderedChildren = this._renderedChildren; ReactChildReconciler.unmountChildren(renderedChildren); this._renderedChildren = null; }, /** * Moves a child component to the supplied index. * * @param {ReactComponent} child Component to move. * @param {number} toIndex Destination index of the element. * @param {number} lastIndex Last index visited of the siblings of `child`. * @protected */ moveChild: function (child, toIndex, lastIndex) { // If the index of `child` is less than `lastIndex`, then it needs to // be moved. Otherwise, we do not need to move it because a child will be // inserted or moved before `child`. if (child._mountIndex < lastIndex) { enqueueMove(this._rootNodeID, child._mountIndex, toIndex); } }, /** * Creates a child component. * * @param {ReactComponent} child Component to create. * @param {string} mountImage Markup to insert. * @protected */ createChild: function (child, mountImage) { enqueueInsertMarkup(this._rootNodeID, mountImage, child._mountIndex); }, /** * Removes a child component. * * @param {ReactComponent} child Child to remove. * @protected */ removeChild: function (child) { enqueueRemove(this._rootNodeID, child._mountIndex); }, /** * Sets this text content string. * * @param {string} textContent Text content to set. * @protected */ setTextContent: function (textContent) { enqueueTextContent(this._rootNodeID, textContent); }, /** * Sets this markup string. * * @param {string} markup Markup to set. * @protected */ setMarkup: function (markup) { enqueueSetMarkup(this._rootNodeID, markup); }, /** * Mounts a child with the supplied name. * * NOTE: This is part of `updateChildren` and is here for readability. * * @param {ReactComponent} child Component to mount. * @param {string} name Name of the child. * @param {number} index Index at which to insert the child. * @param {ReactReconcileTransaction} transaction * @private */ _mountChildByNameAtIndex: function (child, name, index, transaction, context) { // Inlined for performance, see `ReactInstanceHandles.createReactID`. var rootID = this._rootNodeID + name; var mountImage = ReactReconciler.mountComponent(child, rootID, transaction, context); child._mountIndex = index; this.createChild(child, mountImage); }, /** * Unmounts a rendered child. * * NOTE: This is part of `updateChildren` and is here for readability. * * @param {ReactComponent} child Component to unmount. * @private */ _unmountChild: function (child) { this.removeChild(child); child._mountIndex = null; } } }; module.exports = ReactMultiChild; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 115 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactChildReconciler * @typechecks static-only */ 'use strict'; var ReactReconciler = __webpack_require__(50); var instantiateReactComponent = __webpack_require__(62); var shouldUpdateReactComponent = __webpack_require__(67); var traverseAllChildren = __webpack_require__(111); var warning = __webpack_require__(25); function instantiateChild(childInstances, child, name) { // We found a component instance. var keyUnique = childInstances[name] === undefined; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(keyUnique, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.', name) : undefined; } if (child != null && keyUnique) { childInstances[name] = instantiateReactComponent(child, null); } } /** * ReactChildReconciler provides helpers for initializing or updating a set of * children. Its output is suitable for passing it onto ReactMultiChild which * does diffed reordering and insertion. */ var ReactChildReconciler = { /** * Generates a "mount image" for each of the supplied children. In the case * of `ReactDOMComponent`, a mount image is a string of markup. * * @param {?object} nestedChildNodes Nested child maps. * @return {?object} A set of child instances. * @internal */ instantiateChildren: function (nestedChildNodes, transaction, context) { if (nestedChildNodes == null) { return null; } var childInstances = {}; traverseAllChildren(nestedChildNodes, instantiateChild, childInstances); return childInstances; }, /** * Updates the rendered children and returns a new set of children. * * @param {?object} prevChildren Previously initialized set of children. * @param {?object} nextChildren Flat child element maps. * @param {ReactReconcileTransaction} transaction * @param {object} context * @return {?object} A new set of child instances. * @internal */ updateChildren: function (prevChildren, nextChildren, transaction, context) { // We currently don't have a way to track moves here but if we use iterators // instead of for..in we can zip the iterators and check if an item has // moved. // TODO: If nothing has changed, return the prevChildren object so that we // can quickly bailout if nothing has changed. if (!nextChildren && !prevChildren) { return null; } var name; for (name in nextChildren) { if (!nextChildren.hasOwnProperty(name)) { continue; } var prevChild = prevChildren && prevChildren[name]; var prevElement = prevChild && prevChild._currentElement; var nextElement = nextChildren[name]; if (prevChild != null && shouldUpdateReactComponent(prevElement, nextElement)) { ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context); nextChildren[name] = prevChild; } else { if (prevChild) { ReactReconciler.unmountComponent(prevChild, name); } // The child must be instantiated before it's mounted. var nextChildInstance = instantiateReactComponent(nextElement, null); nextChildren[name] = nextChildInstance; } } // Unmount children that are no longer present. for (name in prevChildren) { if (prevChildren.hasOwnProperty(name) && !(nextChildren && nextChildren.hasOwnProperty(name))) { ReactReconciler.unmountComponent(prevChildren[name]); } } return nextChildren; }, /** * Unmounts all rendered children. This should be used to clean up children * when this component is unmounted. * * @param {?object} renderedChildren Previously initialized set of children. * @internal */ unmountChildren: function (renderedChildren) { for (var name in renderedChildren) { if (renderedChildren.hasOwnProperty(name)) { var renderedChild = renderedChildren[name]; ReactReconciler.unmountComponent(renderedChild); } } } }; module.exports = ReactChildReconciler; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 116 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule flattenChildren */ 'use strict'; var traverseAllChildren = __webpack_require__(111); var warning = __webpack_require__(25); /** * @param {function} traverseContext Context passed through traversal. * @param {?ReactComponent} child React child component. * @param {!string} name String name of key path to child. */ function flattenSingleChildIntoContext(traverseContext, child, name) { // We found a component instance. var result = traverseContext; var keyUnique = result[name] === undefined; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(keyUnique, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.', name) : undefined; } if (keyUnique && child != null) { result[name] = child; } } /** * Flattens children that are typically specified as `props.children`. Any null * children will not be included in the resulting object. * @return {!object} flattened children keyed by name. */ function flattenChildren(children) { if (children == null) { return children; } var result = {}; traverseAllChildren(children, flattenSingleChildIntoContext, result); return result; } module.exports = flattenChildren; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 117 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule shallowEqual * @typechecks * */ 'use strict'; var hasOwnProperty = Object.prototype.hasOwnProperty; /** * Performs equality by iterating through keys on an object and returning false * when any key has values which are not strictly equal between the arguments. * Returns true when the values of all keys are strictly equal. */ function shallowEqual(objA, objB) { if (objA === objB) { return true; } if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { return false; } var keysA = Object.keys(objA); var keysB = Object.keys(objB); if (keysA.length !== keysB.length) { return false; } // Test for A's keys different from B. var bHasOwnProperty = hasOwnProperty.bind(objB); for (var i = 0; i < keysA.length; i++) { if (!bHasOwnProperty(keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) { return false; } } return true; } module.exports = shallowEqual; /***/ }, /* 118 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactEventListener * @typechecks static-only */ 'use strict'; var EventListener = __webpack_require__(119); var ExecutionEnvironment = __webpack_require__(9); var PooledClass = __webpack_require__(56); var ReactInstanceHandles = __webpack_require__(45); var ReactMount = __webpack_require__(28); var ReactUpdates = __webpack_require__(54); var assign = __webpack_require__(39); var getEventTarget = __webpack_require__(81); var getUnboundedScrollPosition = __webpack_require__(120); var DOCUMENT_FRAGMENT_NODE_TYPE = 11; /** * Finds the parent React component of `node`. * * @param {*} node * @return {?DOMEventTarget} Parent container, or `null` if the specified node * is not nested. */ function findParent(node) { // TODO: It may be a good idea to cache this to prevent unnecessary DOM // traversal, but caching is difficult to do correctly without using a // mutation observer to listen for all DOM changes. var nodeID = ReactMount.getID(node); var rootID = ReactInstanceHandles.getReactRootIDFromNodeID(nodeID); var container = ReactMount.findReactContainerForID(rootID); var parent = ReactMount.getFirstReactDOM(container); return parent; } // Used to store ancestor hierarchy in top level callback function TopLevelCallbackBookKeeping(topLevelType, nativeEvent) { this.topLevelType = topLevelType; this.nativeEvent = nativeEvent; this.ancestors = []; } assign(TopLevelCallbackBookKeeping.prototype, { destructor: function () { this.topLevelType = null; this.nativeEvent = null; this.ancestors.length = 0; } }); PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler); function handleTopLevelImpl(bookKeeping) { // TODO: Re-enable event.path handling // // if (bookKeeping.nativeEvent.path && bookKeeping.nativeEvent.path.length > 1) { // // New browsers have a path attribute on native events // handleTopLevelWithPath(bookKeeping); // } else { // // Legacy browsers don't have a path attribute on native events // handleTopLevelWithoutPath(bookKeeping); // } void handleTopLevelWithPath; // temporarily unused handleTopLevelWithoutPath(bookKeeping); } // Legacy browsers don't have a path attribute on native events function handleTopLevelWithoutPath(bookKeeping) { var topLevelTarget = ReactMount.getFirstReactDOM(getEventTarget(bookKeeping.nativeEvent)) || window; // Loop through the hierarchy, in case there's any nested components. // It's important that we build the array of ancestors before calling any // event handlers, because event handlers can modify the DOM, leading to // inconsistencies with ReactMount's node cache. See #1105. var ancestor = topLevelTarget; while (ancestor) { bookKeeping.ancestors.push(ancestor); ancestor = findParent(ancestor); } for (var i = 0; i < bookKeeping.ancestors.length; i++) { topLevelTarget = bookKeeping.ancestors[i]; var topLevelTargetID = ReactMount.getID(topLevelTarget) || ''; ReactEventListener._handleTopLevel(bookKeeping.topLevelType, topLevelTarget, topLevelTargetID, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent)); } } // New browsers have a path attribute on native events function handleTopLevelWithPath(bookKeeping) { var path = bookKeeping.nativeEvent.path; var currentNativeTarget = path[0]; var eventsFired = 0; for (var i = 0; i < path.length; i++) { var currentPathElement = path[i]; if (currentPathElement.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE) { currentNativeTarget = path[i + 1]; } // TODO: slow var reactParent = ReactMount.getFirstReactDOM(currentPathElement); if (reactParent === currentPathElement) { var currentPathElementID = ReactMount.getID(currentPathElement); var newRootID = ReactInstanceHandles.getReactRootIDFromNodeID(currentPathElementID); bookKeeping.ancestors.push(currentPathElement); var topLevelTargetID = ReactMount.getID(currentPathElement) || ''; eventsFired++; ReactEventListener._handleTopLevel(bookKeeping.topLevelType, currentPathElement, topLevelTargetID, bookKeeping.nativeEvent, currentNativeTarget); // Jump to the root of this React render tree while (currentPathElementID !== newRootID) { i++; currentPathElement = path[i]; currentPathElementID = ReactMount.getID(currentPathElement); } } } if (eventsFired === 0) { ReactEventListener._handleTopLevel(bookKeeping.topLevelType, window, '', bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent)); } } function scrollValueMonitor(cb) { var scrollPosition = getUnboundedScrollPosition(window); cb(scrollPosition); } var ReactEventListener = { _enabled: true, _handleTopLevel: null, WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null, setHandleTopLevel: function (handleTopLevel) { ReactEventListener._handleTopLevel = handleTopLevel; }, setEnabled: function (enabled) { ReactEventListener._enabled = !!enabled; }, isEnabled: function () { return ReactEventListener._enabled; }, /** * Traps top-level events by using event bubbling. * * @param {string} topLevelType Record from `EventConstants`. * @param {string} handlerBaseName Event name (e.g. "click"). * @param {object} handle Element on which to attach listener. * @return {?object} An object with a remove function which will forcefully * remove the listener. * @internal */ trapBubbledEvent: function (topLevelType, handlerBaseName, handle) { var element = handle; if (!element) { return null; } return EventListener.listen(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType)); }, /** * Traps a top-level event by using event capturing. * * @param {string} topLevelType Record from `EventConstants`. * @param {string} handlerBaseName Event name (e.g. "click"). * @param {object} handle Element on which to attach listener. * @return {?object} An object with a remove function which will forcefully * remove the listener. * @internal */ trapCapturedEvent: function (topLevelType, handlerBaseName, handle) { var element = handle; if (!element) { return null; } return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType)); }, monitorScrollValue: function (refresh) { var callback = scrollValueMonitor.bind(null, refresh); EventListener.listen(window, 'scroll', callback); }, dispatchEvent: function (topLevelType, nativeEvent) { if (!ReactEventListener._enabled) { return; } var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent); try { // Event queue being processed in the same cycle allows // `preventDefault`. ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping); } finally { TopLevelCallbackBookKeeping.release(bookKeeping); } } }; module.exports = ReactEventListener; /***/ }, /* 119 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * @providesModule EventListener * @typechecks */ 'use strict'; var emptyFunction = __webpack_require__(15); /** * Upstream version of event listener. Does not take into account specific * nature of platform. */ var EventListener = { /** * Listen to DOM events during the bubble phase. * * @param {DOMEventTarget} target DOM element to register listener on. * @param {string} eventType Event type, e.g. 'click' or 'mouseover'. * @param {function} callback Callback function. * @return {object} Object with a `remove` method. */ listen: function (target, eventType, callback) { if (target.addEventListener) { target.addEventListener(eventType, callback, false); return { remove: function () { target.removeEventListener(eventType, callback, false); } }; } else if (target.attachEvent) { target.attachEvent('on' + eventType, callback); return { remove: function () { target.detachEvent('on' + eventType, callback); } }; } }, /** * Listen to DOM events during the capture phase. * * @param {DOMEventTarget} target DOM element to register listener on. * @param {string} eventType Event type, e.g. 'click' or 'mouseover'. * @param {function} callback Callback function. * @return {object} Object with a `remove` method. */ capture: function (target, eventType, callback) { if (target.addEventListener) { target.addEventListener(eventType, callback, true); return { remove: function () { target.removeEventListener(eventType, callback, true); } }; } else { if (process.env.NODE_ENV !== 'production') { console.error('Attempted to listen to events during the capture phase on a ' + 'browser that does not support the capture phase. Your application ' + 'will not receive some events.'); } return { remove: emptyFunction }; } }, registerDefault: function () {} }; module.exports = EventListener; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 120 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getUnboundedScrollPosition * @typechecks */ 'use strict'; /** * Gets the scroll position of the supplied element or window. * * The return values are unbounded, unlike `getScrollPosition`. This means they * may be negative or exceed the element boundaries (which is possible using * inertial scrolling). * * @param {DOMWindow|DOMElement} scrollable * @return {object} Map with `x` and `y` keys. */ function getUnboundedScrollPosition(scrollable) { if (scrollable === window) { return { x: window.pageXOffset || document.documentElement.scrollLeft, y: window.pageYOffset || document.documentElement.scrollTop }; } return { x: scrollable.scrollLeft, y: scrollable.scrollTop }; } module.exports = getUnboundedScrollPosition; /***/ }, /* 121 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactInjection */ 'use strict'; var DOMProperty = __webpack_require__(23); var EventPluginHub = __webpack_require__(31); var ReactComponentEnvironment = __webpack_require__(64); var ReactClass = __webpack_require__(122); var ReactEmptyComponent = __webpack_require__(68); var ReactBrowserEventEmitter = __webpack_require__(29); var ReactNativeComponent = __webpack_require__(69); var ReactPerf = __webpack_require__(18); var ReactRootIndex = __webpack_require__(46); var ReactUpdates = __webpack_require__(54); var ReactInjection = { Component: ReactComponentEnvironment.injection, Class: ReactClass.injection, DOMProperty: DOMProperty.injection, EmptyComponent: ReactEmptyComponent.injection, EventPluginHub: EventPluginHub.injection, EventEmitter: ReactBrowserEventEmitter.injection, NativeComponent: ReactNativeComponent.injection, Perf: ReactPerf.injection, RootIndex: ReactRootIndex.injection, Updates: ReactUpdates.injection }; module.exports = ReactInjection; /***/ }, /* 122 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactClass */ 'use strict'; var ReactComponent = __webpack_require__(123); var ReactElement = __webpack_require__(42); var ReactPropTypeLocations = __webpack_require__(65); var ReactPropTypeLocationNames = __webpack_require__(66); var ReactNoopUpdateQueue = __webpack_require__(124); var assign = __webpack_require__(39); var emptyObject = __webpack_require__(58); var invariant = __webpack_require__(13); var keyMirror = __webpack_require__(17); var keyOf = __webpack_require__(79); var warning = __webpack_require__(25); var MIXINS_KEY = keyOf({ mixins: null }); /** * Policies that describe methods in `ReactClassInterface`. */ var SpecPolicy = keyMirror({ /** * These methods may be defined only once by the class specification or mixin. */ DEFINE_ONCE: null, /** * These methods may be defined by both the class specification and mixins. * Subsequent definitions will be chained. These methods must return void. */ DEFINE_MANY: null, /** * These methods are overriding the base class. */ OVERRIDE_BASE: null, /** * These methods are similar to DEFINE_MANY, except we assume they return * objects. We try to merge the keys of the return values of all the mixed in * functions. If there is a key conflict we throw. */ DEFINE_MANY_MERGED: null }); var injectedMixins = []; var warnedSetProps = false; function warnSetProps() { if (!warnedSetProps) { warnedSetProps = true; process.env.NODE_ENV !== 'production' ? warning(false, 'setProps(...) and replaceProps(...) are deprecated. ' + 'Instead, call render again at the top level.') : undefined; } } /** * Composite components are higher-level components that compose other composite * or native components. * * To create a new type of `ReactClass`, pass a specification of * your new class to `React.createClass`. The only requirement of your class * specification is that you implement a `render` method. * * var MyComponent = React.createClass({ * render: function() { * return <div>Hello World</div>; * } * }); * * The class specification supports a specific protocol of methods that have * special meaning (e.g. `render`). See `ReactClassInterface` for * more the comprehensive protocol. Any other properties and methods in the * class specification will be available on the prototype. * * @interface ReactClassInterface * @internal */ var ReactClassInterface = { /** * An array of Mixin objects to include when defining your component. * * @type {array} * @optional */ mixins: SpecPolicy.DEFINE_MANY, /** * An object containing properties and methods that should be defined on * the component's constructor instead of its prototype (static methods). * * @type {object} * @optional */ statics: SpecPolicy.DEFINE_MANY, /** * Definition of prop types for this component. * * @type {object} * @optional */ propTypes: SpecPolicy.DEFINE_MANY, /** * Definition of context types for this component. * * @type {object} * @optional */ contextTypes: SpecPolicy.DEFINE_MANY, /** * Definition of context types this component sets for its children. * * @type {object} * @optional */ childContextTypes: SpecPolicy.DEFINE_MANY, // ==== Definition methods ==== /** * Invoked when the component is mounted. Values in the mapping will be set on * `this.props` if that prop is not specified (i.e. using an `in` check). * * This method is invoked before `getInitialState` and therefore cannot rely * on `this.state` or use `this.setState`. * * @return {object} * @optional */ getDefaultProps: SpecPolicy.DEFINE_MANY_MERGED, /** * Invoked once before the component is mounted. The return value will be used * as the initial value of `this.state`. * * getInitialState: function() { * return { * isOn: false, * fooBaz: new BazFoo() * } * } * * @return {object} * @optional */ getInitialState: SpecPolicy.DEFINE_MANY_MERGED, /** * @return {object} * @optional */ getChildContext: SpecPolicy.DEFINE_MANY_MERGED, /** * Uses props from `this.props` and state from `this.state` to render the * structure of the component. * * No guarantees are made about when or how often this method is invoked, so * it must not have side effects. * * render: function() { * var name = this.props.name; * return <div>Hello, {name}!</div>; * } * * @return {ReactComponent} * @nosideeffects * @required */ render: SpecPolicy.DEFINE_ONCE, // ==== Delegate methods ==== /** * Invoked when the component is initially created and about to be mounted. * This may have side effects, but any external subscriptions or data created * by this method must be cleaned up in `componentWillUnmount`. * * @optional */ componentWillMount: SpecPolicy.DEFINE_MANY, /** * Invoked when the component has been mounted and has a DOM representation. * However, there is no guarantee that the DOM node is in the document. * * Use this as an opportunity to operate on the DOM when the component has * been mounted (initialized and rendered) for the first time. * * @param {DOMElement} rootNode DOM element representing the component. * @optional */ componentDidMount: SpecPolicy.DEFINE_MANY, /** * Invoked before the component receives new props. * * Use this as an opportunity to react to a prop transition by updating the * state using `this.setState`. Current props are accessed via `this.props`. * * componentWillReceiveProps: function(nextProps, nextContext) { * this.setState({ * likesIncreasing: nextProps.likeCount > this.props.likeCount * }); * } * * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop * transition may cause a state change, but the opposite is not true. If you * need it, you are probably looking for `componentWillUpdate`. * * @param {object} nextProps * @optional */ componentWillReceiveProps: SpecPolicy.DEFINE_MANY, /** * Invoked while deciding if the component should be updated as a result of * receiving new props, state and/or context. * * Use this as an opportunity to `return false` when you're certain that the * transition to the new props/state/context will not require a component * update. * * shouldComponentUpdate: function(nextProps, nextState, nextContext) { * return !equal(nextProps, this.props) || * !equal(nextState, this.state) || * !equal(nextContext, this.context); * } * * @param {object} nextProps * @param {?object} nextState * @param {?object} nextContext * @return {boolean} True if the component should update. * @optional */ shouldComponentUpdate: SpecPolicy.DEFINE_ONCE, /** * Invoked when the component is about to update due to a transition from * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState` * and `nextContext`. * * Use this as an opportunity to perform preparation before an update occurs. * * NOTE: You **cannot** use `this.setState()` in this method. * * @param {object} nextProps * @param {?object} nextState * @param {?object} nextContext * @param {ReactReconcileTransaction} transaction * @optional */ componentWillUpdate: SpecPolicy.DEFINE_MANY, /** * Invoked when the component's DOM representation has been updated. * * Use this as an opportunity to operate on the DOM when the component has * been updated. * * @param {object} prevProps * @param {?object} prevState * @param {?object} prevContext * @param {DOMElement} rootNode DOM element representing the component. * @optional */ componentDidUpdate: SpecPolicy.DEFINE_MANY, /** * Invoked when the component is about to be removed from its parent and have * its DOM representation destroyed. * * Use this as an opportunity to deallocate any external resources. * * NOTE: There is no `componentDidUnmount` since your component will have been * destroyed by that point. * * @optional */ componentWillUnmount: SpecPolicy.DEFINE_MANY, // ==== Advanced methods ==== /** * Updates the component's currently mounted DOM representation. * * By default, this implements React's rendering and reconciliation algorithm. * Sophisticated clients may wish to override this. * * @param {ReactReconcileTransaction} transaction * @internal * @overridable */ updateComponent: SpecPolicy.OVERRIDE_BASE }; /** * Mapping from class specification keys to special processing functions. * * Although these are declared like instance properties in the specification * when defining classes using `React.createClass`, they are actually static * and are accessible on the constructor instead of the prototype. Despite * being static, they must be defined outside of the "statics" key under * which all other static methods are defined. */ var RESERVED_SPEC_KEYS = { displayName: function (Constructor, displayName) { Constructor.displayName = displayName; }, mixins: function (Constructor, mixins) { if (mixins) { for (var i = 0; i < mixins.length; i++) { mixSpecIntoComponent(Constructor, mixins[i]); } } }, childContextTypes: function (Constructor, childContextTypes) { if (process.env.NODE_ENV !== 'production') { validateTypeDef(Constructor, childContextTypes, ReactPropTypeLocations.childContext); } Constructor.childContextTypes = assign({}, Constructor.childContextTypes, childContextTypes); }, contextTypes: function (Constructor, contextTypes) { if (process.env.NODE_ENV !== 'production') { validateTypeDef(Constructor, contextTypes, ReactPropTypeLocations.context); } Constructor.contextTypes = assign({}, Constructor.contextTypes, contextTypes); }, /** * Special case getDefaultProps which should move into statics but requires * automatic merging. */ getDefaultProps: function (Constructor, getDefaultProps) { if (Constructor.getDefaultProps) { Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps); } else { Constructor.getDefaultProps = getDefaultProps; } }, propTypes: function (Constructor, propTypes) { if (process.env.NODE_ENV !== 'production') { validateTypeDef(Constructor, propTypes, ReactPropTypeLocations.prop); } Constructor.propTypes = assign({}, Constructor.propTypes, propTypes); }, statics: function (Constructor, statics) { mixStaticSpecIntoComponent(Constructor, statics); }, autobind: function () {} }; // noop function validateTypeDef(Constructor, typeDef, location) { for (var propName in typeDef) { if (typeDef.hasOwnProperty(propName)) { // use a warning instead of an invariant so components // don't show up in prod but not in __DEV__ process.env.NODE_ENV !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : undefined; } } } function validateMethodOverride(proto, name) { var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null; // Disallow overriding of base class methods unless explicitly allowed. if (ReactClassMixin.hasOwnProperty(name)) { !(specPolicy === SpecPolicy.OVERRIDE_BASE) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override ' + '`%s` from your class specification. Ensure that your method names ' + 'do not overlap with React methods.', name) : invariant(false) : undefined; } // Disallow defining methods more than once unless explicitly allowed. if (proto.hasOwnProperty(name)) { !(specPolicy === SpecPolicy.DEFINE_MANY || specPolicy === SpecPolicy.DEFINE_MANY_MERGED) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define ' + '`%s` on your component more than once. This conflict may be due ' + 'to a mixin.', name) : invariant(false) : undefined; } } /** * Mixin helper which handles policy validation and reserved * specification keys when building React classses. */ function mixSpecIntoComponent(Constructor, spec) { if (!spec) { return; } !(typeof spec !== 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to ' + 'use a component class as a mixin. Instead, just use a regular object.') : invariant(false) : undefined; !!ReactElement.isValidElement(spec) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to ' + 'use a component as a mixin. Instead, just use a regular object.') : invariant(false) : undefined; var proto = Constructor.prototype; // By handling mixins before any other properties, we ensure the same // chaining order is applied to methods with DEFINE_MANY policy, whether // mixins are listed before or after these methods in the spec. if (spec.hasOwnProperty(MIXINS_KEY)) { RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); } for (var name in spec) { if (!spec.hasOwnProperty(name)) { continue; } if (name === MIXINS_KEY) { // We have already handled mixins in a special case above. continue; } var property = spec[name]; validateMethodOverride(proto, name); if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { RESERVED_SPEC_KEYS[name](Constructor, property); } else { // Setup methods on prototype: // The following member methods should not be automatically bound: // 1. Expected ReactClass methods (in the "interface"). // 2. Overridden methods (that were mixed in). var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); var isAlreadyDefined = proto.hasOwnProperty(name); var isFunction = typeof property === 'function'; var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false; if (shouldAutoBind) { if (!proto.__reactAutoBindMap) { proto.__reactAutoBindMap = {}; } proto.__reactAutoBindMap[name] = property; proto[name] = property; } else { if (isAlreadyDefined) { var specPolicy = ReactClassInterface[name]; // These cases should already be caught by validateMethodOverride. !(isReactClassMethod && (specPolicy === SpecPolicy.DEFINE_MANY_MERGED || specPolicy === SpecPolicy.DEFINE_MANY)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s ' + 'when mixing in component specs.', specPolicy, name) : invariant(false) : undefined; // For methods which are defined more than once, call the existing // methods before calling the new property, merging if appropriate. if (specPolicy === SpecPolicy.DEFINE_MANY_MERGED) { proto[name] = createMergedResultFunction(proto[name], property); } else if (specPolicy === SpecPolicy.DEFINE_MANY) { proto[name] = createChainedFunction(proto[name], property); } } else { proto[name] = property; if (process.env.NODE_ENV !== 'production') { // Add verbose displayName to the function, which helps when looking // at profiling tools. if (typeof property === 'function' && spec.displayName) { proto[name].displayName = spec.displayName + '_' + name; } } } } } } } function mixStaticSpecIntoComponent(Constructor, statics) { if (!statics) { return; } for (var name in statics) { var property = statics[name]; if (!statics.hasOwnProperty(name)) { continue; } var isReserved = (name in RESERVED_SPEC_KEYS); !!isReserved ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You are attempting to define a reserved ' + 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + 'as an instance property instead; it will still be accessible on the ' + 'constructor.', name) : invariant(false) : undefined; var isInherited = (name in Constructor); !!isInherited ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: You are attempting to define ' + '`%s` on your component more than once. This conflict may be ' + 'due to a mixin.', name) : invariant(false) : undefined; Constructor[name] = property; } } /** * Merge two objects, but throw if both contain the same key. * * @param {object} one The first object, which is mutated. * @param {object} two The second object * @return {object} one after it has been mutated to contain everything in two. */ function mergeIntoWithNoDuplicateKeys(one, two) { !(one && two && typeof one === 'object' && typeof two === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : invariant(false) : undefined; for (var key in two) { if (two.hasOwnProperty(key)) { !(one[key] === undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): ' + 'Tried to merge two objects with the same key: `%s`. This conflict ' + 'may be due to a mixin; in particular, this may be caused by two ' + 'getInitialState() or getDefaultProps() methods returning objects ' + 'with clashing keys.', key) : invariant(false) : undefined; one[key] = two[key]; } } return one; } /** * Creates a function that invokes two functions and merges their return values. * * @param {function} one Function to invoke first. * @param {function} two Function to invoke second. * @return {function} Function that invokes the two argument functions. * @private */ function createMergedResultFunction(one, two) { return function mergedResult() { var a = one.apply(this, arguments); var b = two.apply(this, arguments); if (a == null) { return b; } else if (b == null) { return a; } var c = {}; mergeIntoWithNoDuplicateKeys(c, a); mergeIntoWithNoDuplicateKeys(c, b); return c; }; } /** * Creates a function that invokes two functions and ignores their return vales. * * @param {function} one Function to invoke first. * @param {function} two Function to invoke second. * @return {function} Function that invokes the two argument functions. * @private */ function createChainedFunction(one, two) { return function chainedFunction() { one.apply(this, arguments); two.apply(this, arguments); }; } /** * Binds a method to the component. * * @param {object} component Component whose method is going to be bound. * @param {function} method Method to be bound. * @return {function} The bound method. */ function bindAutoBindMethod(component, method) { var boundMethod = method.bind(component); if (process.env.NODE_ENV !== 'production') { boundMethod.__reactBoundContext = component; boundMethod.__reactBoundMethod = method; boundMethod.__reactBoundArguments = null; var componentName = component.constructor.displayName; var _bind = boundMethod.bind; /* eslint-disable block-scoped-var, no-undef */ boundMethod.bind = function (newThis) { for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } // User is trying to bind() an autobound method; we effectively will // ignore the value of "this" that the user is trying to use, so // let's warn. if (newThis !== component && newThis !== null) { process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : undefined; } else if (!args.length) { process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : undefined; return boundMethod; } var reboundMethod = _bind.apply(boundMethod, arguments); reboundMethod.__reactBoundContext = component; reboundMethod.__reactBoundMethod = method; reboundMethod.__reactBoundArguments = args; return reboundMethod; /* eslint-enable */ }; } return boundMethod; } /** * Binds all auto-bound methods in a component. * * @param {object} component Component whose method is going to be bound. */ function bindAutoBindMethods(component) { for (var autoBindKey in component.__reactAutoBindMap) { if (component.__reactAutoBindMap.hasOwnProperty(autoBindKey)) { var method = component.__reactAutoBindMap[autoBindKey]; component[autoBindKey] = bindAutoBindMethod(component, method); } } } /** * Add more to the ReactClass base class. These are all legacy features and * therefore not already part of the modern ReactComponent. */ var ReactClassMixin = { /** * TODO: This will be deprecated because state should always keep a consistent * type signature and the only use case for this, is to avoid that. */ replaceState: function (newState, callback) { this.updater.enqueueReplaceState(this, newState); if (callback) { this.updater.enqueueCallback(this, callback); } }, /** * Checks whether or not this composite component is mounted. * @return {boolean} True if mounted, false otherwise. * @protected * @final */ isMounted: function () { return this.updater.isMounted(this); }, /** * Sets a subset of the props. * * @param {object} partialProps Subset of the next props. * @param {?function} callback Called after props are updated. * @final * @public * @deprecated */ setProps: function (partialProps, callback) { if (process.env.NODE_ENV !== 'production') { warnSetProps(); } this.updater.enqueueSetProps(this, partialProps); if (callback) { this.updater.enqueueCallback(this, callback); } }, /** * Replace all the props. * * @param {object} newProps Subset of the next props. * @param {?function} callback Called after props are updated. * @final * @public * @deprecated */ replaceProps: function (newProps, callback) { if (process.env.NODE_ENV !== 'production') { warnSetProps(); } this.updater.enqueueReplaceProps(this, newProps); if (callback) { this.updater.enqueueCallback(this, callback); } } }; var ReactClassComponent = function () {}; assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin); /** * Module for creating composite components. * * @class ReactClass */ var ReactClass = { /** * Creates a composite component class given a class specification. * * @param {object} spec Class specification (which must define `render`). * @return {function} Component constructor function. * @public */ createClass: function (spec) { var Constructor = function (props, context, updater) { // This constructor is overridden by mocks. The argument is used // by mocks to assert on what gets mounted. if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: path_to_url : undefined; } // Wire up auto-binding if (this.__reactAutoBindMap) { bindAutoBindMethods(this); } this.props = props; this.context = context; this.refs = emptyObject; this.updater = updater || ReactNoopUpdateQueue; this.state = null; // ReactClasses doesn't have constructors. Instead, they use the // getInitialState and componentWillMount methods for initialization. var initialState = this.getInitialState ? this.getInitialState() : null; if (process.env.NODE_ENV !== 'production') { // We allow auto-mocks to proceed as if they're returning null. if (typeof initialState === 'undefined' && this.getInitialState._isMockFunction) { // This is probably bad practice. Consider warning here and // deprecating this convenience. initialState = null; } } !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : invariant(false) : undefined; this.state = initialState; }; Constructor.prototype = new ReactClassComponent(); Constructor.prototype.constructor = Constructor; injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); mixSpecIntoComponent(Constructor, spec); // Initialize the defaultProps property after all mixins have been merged. if (Constructor.getDefaultProps) { Constructor.defaultProps = Constructor.getDefaultProps(); } if (process.env.NODE_ENV !== 'production') { // This is a tag to indicate that the use of these method names is ok, // since it's used with createClass. If it's not, then it's likely a // mistake so we'll warn you to use the static property, property // initializer or constructor respectively. if (Constructor.getDefaultProps) { Constructor.getDefaultProps.isReactClassApproved = {}; } if (Constructor.prototype.getInitialState) { Constructor.prototype.getInitialState.isReactClassApproved = {}; } } !Constructor.prototype.render ? process.env.NODE_ENV !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : invariant(false) : undefined; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component') : undefined; process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : undefined; } // Reduce time spent doing lookups by setting these on the prototype. for (var methodName in ReactClassInterface) { if (!Constructor.prototype[methodName]) { Constructor.prototype[methodName] = null; } } return Constructor; }, injection: { injectMixin: function (mixin) { injectedMixins.push(mixin); } } }; module.exports = ReactClass; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 123 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactComponent */ 'use strict'; var ReactNoopUpdateQueue = __webpack_require__(124); var canDefineProperty = __webpack_require__(43); var emptyObject = __webpack_require__(58); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); /** * Base class helpers for the updating state of a component. */ function ReactComponent(props, context, updater) { this.props = props; this.context = context; this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the // renderer. this.updater = updater || ReactNoopUpdateQueue; } ReactComponent.prototype.isReactComponent = {}; /** * Sets a subset of the state. Always use this to mutate * state. You should treat `this.state` as immutable. * * There is no guarantee that `this.state` will be immediately updated, so * accessing `this.state` after calling this method may return the old value. * * There is no guarantee that calls to `setState` will run synchronously, * as they may eventually be batched together. You can provide an optional * callback that will be executed when the call to setState is actually * completed. * * When a function is provided to setState, it will be called at some point in * the future (not synchronously). It will be called with the up to date * component arguments (state, props, context). These values can be different * from this.* because your function may be called after receiveProps but before * shouldComponentUpdate, and this new state, props, and context will not yet be * assigned to this. * * @param {object|function} partialState Next partial state or function to * produce next partial state to be merged with current state. * @param {?function} callback Called after state is updated. * @final * @protected */ ReactComponent.prototype.setState = function (partialState, callback) { !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.') : invariant(false) : undefined; if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(partialState != null, 'setState(...): You passed an undefined or null state object; ' + 'instead, use forceUpdate().') : undefined; } this.updater.enqueueSetState(this, partialState); if (callback) { this.updater.enqueueCallback(this, callback); } }; /** * Forces an update. This should only be invoked when it is known with * certainty that we are **not** in a DOM transaction. * * You may want to call this when you know that some deeper aspect of the * component's state has changed but `setState` was not called. * * This will not invoke `shouldComponentUpdate`, but it will invoke * `componentWillUpdate` and `componentDidUpdate`. * * @param {?function} callback Called after update is complete. * @final * @protected */ ReactComponent.prototype.forceUpdate = function (callback) { this.updater.enqueueForceUpdate(this); if (callback) { this.updater.enqueueCallback(this, callback); } }; /** * Deprecated APIs. These APIs used to exist on classic React classes but since * we would like to deprecate them, we're not going to move them over to this * modern base class. Instead, we define a getter that warns if it's accessed. */ if (process.env.NODE_ENV !== 'production') { var deprecatedAPIs = { getDOMNode: ['getDOMNode', 'Use ReactDOM.findDOMNode(component) instead.'], isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'], replaceProps: ['replaceProps', 'Instead, call render again at the top level.'], replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'path_to_url setProps: ['setProps', 'Instead, call render again at the top level.'] }; var defineDeprecationWarning = function (methodName, info) { if (canDefineProperty) { Object.defineProperty(ReactComponent.prototype, methodName, { get: function () { process.env.NODE_ENV !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : undefined; return undefined; } }); } }; for (var fnName in deprecatedAPIs) { if (deprecatedAPIs.hasOwnProperty(fnName)) { defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); } } } module.exports = ReactComponent; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 124 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactNoopUpdateQueue */ 'use strict'; var warning = __webpack_require__(25); function warnTDZ(publicInstance, callerName) { if (process.env.NODE_ENV !== 'production') { process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, publicInstance.constructor && publicInstance.constructor.displayName || '') : undefined; } } /** * This is the abstract API for an update queue. */ var ReactNoopUpdateQueue = { /** * Checks whether or not this composite component is mounted. * @param {ReactClass} publicInstance The instance we want to test. * @return {boolean} True if mounted, false otherwise. * @protected * @final */ isMounted: function (publicInstance) { return false; }, /** * Enqueue a callback that will be executed after all the pending updates * have processed. * * @param {ReactClass} publicInstance The instance to use as `this` context. * @param {?function} callback Called after state is updated. * @internal */ enqueueCallback: function (publicInstance, callback) {}, /** * Forces an update. This should only be invoked when it is known with * certainty that we are **not** in a DOM transaction. * * You may want to call this when you know that some deeper aspect of the * component's state has changed but `setState` was not called. * * This will not invoke `shouldComponentUpdate`, but it will invoke * `componentWillUpdate` and `componentDidUpdate`. * * @param {ReactClass} publicInstance The instance that should rerender. * @internal */ enqueueForceUpdate: function (publicInstance) { warnTDZ(publicInstance, 'forceUpdate'); }, /** * Replaces all of the state. Always use this or `setState` to mutate state. * You should treat `this.state` as immutable. * * There is no guarantee that `this.state` will be immediately updated, so * accessing `this.state` after calling this method may return the old value. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} completeState Next state. * @internal */ enqueueReplaceState: function (publicInstance, completeState) { warnTDZ(publicInstance, 'replaceState'); }, /** * Sets a subset of the state. This only exists because _pendingState is * internal. This provides a merging strategy that is not available to deep * properties which is confusing. TODO: Expose pendingState or don't use it * during the merge. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} partialState Next partial state to be merged with state. * @internal */ enqueueSetState: function (publicInstance, partialState) { warnTDZ(publicInstance, 'setState'); }, /** * Sets a subset of the props. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} partialProps Subset of the next props. * @internal */ enqueueSetProps: function (publicInstance, partialProps) { warnTDZ(publicInstance, 'setProps'); }, /** * Replaces all of the props. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} props New props. * @internal */ enqueueReplaceProps: function (publicInstance, props) { warnTDZ(publicInstance, 'replaceProps'); } }; module.exports = ReactNoopUpdateQueue; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 125 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactReconcileTransaction * @typechecks static-only */ 'use strict'; var CallbackQueue = __webpack_require__(55); var PooledClass = __webpack_require__(56); var ReactBrowserEventEmitter = __webpack_require__(29); var ReactDOMFeatureFlags = __webpack_require__(41); var ReactInputSelection = __webpack_require__(126); var Transaction = __webpack_require__(57); var assign = __webpack_require__(39); /** * Ensures that, when possible, the selection range (currently selected text * input) is not disturbed by performing the transaction. */ var SELECTION_RESTORATION = { /** * @return {Selection} Selection information. */ initialize: ReactInputSelection.getSelectionInformation, /** * @param {Selection} sel Selection information returned from `initialize`. */ close: ReactInputSelection.restoreSelection }; /** * Suppresses events (blur/focus) that could be inadvertently dispatched due to * high level DOM manipulations (like temporarily removing a text input from the * DOM). */ var EVENT_SUPPRESSION = { /** * @return {boolean} The enabled status of `ReactBrowserEventEmitter` before * the reconciliation. */ initialize: function () { var currentlyEnabled = ReactBrowserEventEmitter.isEnabled(); ReactBrowserEventEmitter.setEnabled(false); return currentlyEnabled; }, /** * @param {boolean} previouslyEnabled Enabled status of * `ReactBrowserEventEmitter` before the reconciliation occurred. `close` * restores the previous value. */ close: function (previouslyEnabled) { ReactBrowserEventEmitter.setEnabled(previouslyEnabled); } }; /** * Provides a queue for collecting `componentDidMount` and * `componentDidUpdate` callbacks during the the transaction. */ var ON_DOM_READY_QUEUEING = { /** * Initializes the internal `onDOMReady` queue. */ initialize: function () { this.reactMountReady.reset(); }, /** * After DOM is flushed, invoke all registered `onDOMReady` callbacks. */ close: function () { this.reactMountReady.notifyAll(); } }; /** * Executed within the scope of the `Transaction` instance. Consider these as * being member methods, but with an implied ordering while being isolated from * each other. */ var TRANSACTION_WRAPPERS = [SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING]; /** * Currently: * - The order that these are listed in the transaction is critical: * - Suppresses events. * - Restores selection range. * * Future: * - Restore document/overflow scroll positions that were unintentionally * modified via DOM insertions above the top viewport boundary. * - Implement/integrate with customized constraint based layout system and keep * track of which dimensions must be remeasured. * * @class ReactReconcileTransaction */ function ReactReconcileTransaction(forceHTML) { this.reinitializeTransaction(); // Only server-side rendering really needs this option (see // `ReactServerRendering`), but server-side uses // `ReactServerRenderingTransaction` instead. This option is here so that it's // accessible and defaults to false when `ReactDOMComponent` and // `ReactTextComponent` checks it in `mountComponent`.` this.renderToStaticMarkup = false; this.reactMountReady = CallbackQueue.getPooled(null); this.useCreateElement = !forceHTML && ReactDOMFeatureFlags.useCreateElement; } var Mixin = { /** * @see Transaction * @abstract * @final * @return {array<object>} List of operation wrap procedures. * TODO: convert to array<TransactionWrapper> */ getTransactionWrappers: function () { return TRANSACTION_WRAPPERS; }, /** * @return {object} The queue to collect `onDOMReady` callbacks with. */ getReactMountReady: function () { return this.reactMountReady; }, /** * `PooledClass` looks for this, and will invoke this before allowing this * instance to be reused. */ destructor: function () { CallbackQueue.release(this.reactMountReady); this.reactMountReady = null; } }; assign(ReactReconcileTransaction.prototype, Transaction.Mixin, Mixin); PooledClass.addPoolingTo(ReactReconcileTransaction); module.exports = ReactReconcileTransaction; /***/ }, /* 126 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactInputSelection */ 'use strict'; var ReactDOMSelection = __webpack_require__(127); var containsNode = __webpack_require__(59); var focusNode = __webpack_require__(95); var getActiveElement = __webpack_require__(129); function isInDocument(node) { return containsNode(document.documentElement, node); } /** * @ReactInputSelection: React input selection module. Based on Selection.js, * but modified to be suitable for react and has a couple of bug fixes (doesn't * assume buttons have range selections allowed). * Input selection module for React. */ var ReactInputSelection = { hasSelectionCapabilities: function (elem) { var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true'); }, getSelectionInformation: function () { var focusedElem = getActiveElement(); return { focusedElem: focusedElem, selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) ? ReactInputSelection.getSelection(focusedElem) : null }; }, /** * @restoreSelection: If any selection information was potentially lost, * restore it. This is useful when performing operations that could remove dom * nodes and place them back in, resulting in focus being lost. */ restoreSelection: function (priorSelectionInformation) { var curFocusedElem = getActiveElement(); var priorFocusedElem = priorSelectionInformation.focusedElem; var priorSelectionRange = priorSelectionInformation.selectionRange; if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) { if (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem)) { ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange); } focusNode(priorFocusedElem); } }, /** * @getSelection: Gets the selection bounds of a focused textarea, input or * contentEditable node. * -@input: Look up selection bounds of this input * -@return {start: selectionStart, end: selectionEnd} */ getSelection: function (input) { var selection; if ('selectionStart' in input) { // Modern browser with input or textarea. selection = { start: input.selectionStart, end: input.selectionEnd }; } else if (document.selection && (input.nodeName && input.nodeName.toLowerCase() === 'input')) { // IE8 input. var range = document.selection.createRange(); // There can only be one selection per document in IE, so it must // be in our element. if (range.parentElement() === input) { selection = { start: -range.moveStart('character', -input.value.length), end: -range.moveEnd('character', -input.value.length) }; } } else { // Content editable or old IE textarea. selection = ReactDOMSelection.getOffsets(input); } return selection || { start: 0, end: 0 }; }, /** * @setSelection: Sets the selection bounds of a textarea or input and focuses * the input. * -@input Set selection bounds of this input or textarea * -@offsets Object of same form that is returned from get* */ setSelection: function (input, offsets) { var start = offsets.start; var end = offsets.end; if (typeof end === 'undefined') { end = start; } if ('selectionStart' in input) { input.selectionStart = start; input.selectionEnd = Math.min(end, input.value.length); } else if (document.selection && (input.nodeName && input.nodeName.toLowerCase() === 'input')) { var range = input.createTextRange(); range.collapse(true); range.moveStart('character', start); range.moveEnd('character', end - start); range.select(); } else { ReactDOMSelection.setOffsets(input, offsets); } } }; module.exports = ReactInputSelection; /***/ }, /* 127 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMSelection */ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var getNodeForCharacterOffset = __webpack_require__(128); var getTextContentAccessor = __webpack_require__(75); /** * While `isCollapsed` is available on the Selection object and `collapsed` * is available on the Range object, IE11 sometimes gets them wrong. * If the anchor/focus nodes and offsets are the same, the range is collapsed. */ function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) { return anchorNode === focusNode && anchorOffset === focusOffset; } /** * Get the appropriate anchor and focus node/offset pairs for IE. * * The catch here is that IE's selection API doesn't provide information * about whether the selection is forward or backward, so we have to * behave as though it's always forward. * * IE text differs from modern selection in that it behaves as though * block elements end with a new line. This means character offsets will * differ between the two APIs. * * @param {DOMElement} node * @return {object} */ function getIEOffsets(node) { var selection = document.selection; var selectedRange = selection.createRange(); var selectedLength = selectedRange.text.length; // Duplicate selection so we can move range without breaking user selection. var fromStart = selectedRange.duplicate(); fromStart.moveToElementText(node); fromStart.setEndPoint('EndToStart', selectedRange); var startOffset = fromStart.text.length; var endOffset = startOffset + selectedLength; return { start: startOffset, end: endOffset }; } /** * @param {DOMElement} node * @return {?object} */ function getModernOffsets(node) { var selection = window.getSelection && window.getSelection(); if (!selection || selection.rangeCount === 0) { return null; } var anchorNode = selection.anchorNode; var anchorOffset = selection.anchorOffset; var focusNode = selection.focusNode; var focusOffset = selection.focusOffset; var currentRange = selection.getRangeAt(0); // In Firefox, range.startContainer and range.endContainer can be "anonymous // divs", e.g. the up/down buttons on an <input type="number">. Anonymous // divs do not seem to expose properties, triggering a "Permission denied // error" if any of its properties are accessed. The only seemingly possible // way to avoid erroring is to access a property that typically works for // non-anonymous divs and catch any error that may otherwise arise. See // path_to_url try { /* eslint-disable no-unused-expressions */ currentRange.startContainer.nodeType; currentRange.endContainer.nodeType; /* eslint-enable no-unused-expressions */ } catch (e) { return null; } // If the node and offset values are the same, the selection is collapsed. // `Selection.isCollapsed` is available natively, but IE sometimes gets // this value wrong. var isSelectionCollapsed = isCollapsed(selection.anchorNode, selection.anchorOffset, selection.focusNode, selection.focusOffset); var rangeLength = isSelectionCollapsed ? 0 : currentRange.toString().length; var tempRange = currentRange.cloneRange(); tempRange.selectNodeContents(node); tempRange.setEnd(currentRange.startContainer, currentRange.startOffset); var isTempRangeCollapsed = isCollapsed(tempRange.startContainer, tempRange.startOffset, tempRange.endContainer, tempRange.endOffset); var start = isTempRangeCollapsed ? 0 : tempRange.toString().length; var end = start + rangeLength; // Detect whether the selection is backward. var detectionRange = document.createRange(); detectionRange.setStart(anchorNode, anchorOffset); detectionRange.setEnd(focusNode, focusOffset); var isBackward = detectionRange.collapsed; return { start: isBackward ? end : start, end: isBackward ? start : end }; } /** * @param {DOMElement|DOMTextNode} node * @param {object} offsets */ function setIEOffsets(node, offsets) { var range = document.selection.createRange().duplicate(); var start, end; if (typeof offsets.end === 'undefined') { start = offsets.start; end = start; } else if (offsets.start > offsets.end) { start = offsets.end; end = offsets.start; } else { start = offsets.start; end = offsets.end; } range.moveToElementText(node); range.moveStart('character', start); range.setEndPoint('EndToStart', range); range.moveEnd('character', end - start); range.select(); } /** * In modern non-IE browsers, we can support both forward and backward * selections. * * Note: IE10+ supports the Selection object, but it does not support * the `extend` method, which means that even in modern IE, it's not possible * to programatically create a backward selection. Thus, for all IE * versions, we use the old IE API to create our selections. * * @param {DOMElement|DOMTextNode} node * @param {object} offsets */ function setModernOffsets(node, offsets) { if (!window.getSelection) { return; } var selection = window.getSelection(); var length = node[getTextContentAccessor()].length; var start = Math.min(offsets.start, length); var end = typeof offsets.end === 'undefined' ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method. // Flip backward selections, so we can set with a single range. if (!selection.extend && start > end) { var temp = end; end = start; start = temp; } var startMarker = getNodeForCharacterOffset(node, start); var endMarker = getNodeForCharacterOffset(node, end); if (startMarker && endMarker) { var range = document.createRange(); range.setStart(startMarker.node, startMarker.offset); selection.removeAllRanges(); if (start > end) { selection.addRange(range); selection.extend(endMarker.node, endMarker.offset); } else { range.setEnd(endMarker.node, endMarker.offset); selection.addRange(range); } } } var useIEOffsets = ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window); var ReactDOMSelection = { /** * @param {DOMElement} node */ getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets, /** * @param {DOMElement|DOMTextNode} node * @param {object} offsets */ setOffsets: useIEOffsets ? setIEOffsets : setModernOffsets }; module.exports = ReactDOMSelection; /***/ }, /* 128 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getNodeForCharacterOffset */ 'use strict'; /** * Given any node return the first leaf node without children. * * @param {DOMElement|DOMTextNode} node * @return {DOMElement|DOMTextNode} */ function getLeafNode(node) { while (node && node.firstChild) { node = node.firstChild; } return node; } /** * Get the next sibling within a container. This will walk up the * DOM if a node's siblings have been exhausted. * * @param {DOMElement|DOMTextNode} node * @return {?DOMElement|DOMTextNode} */ function getSiblingNode(node) { while (node) { if (node.nextSibling) { return node.nextSibling; } node = node.parentNode; } } /** * Get object describing the nodes which contain characters at offset. * * @param {DOMElement|DOMTextNode} root * @param {number} offset * @return {?object} */ function getNodeForCharacterOffset(root, offset) { var node = getLeafNode(root); var nodeStart = 0; var nodeEnd = 0; while (node) { if (node.nodeType === 3) { nodeEnd = nodeStart + node.textContent.length; if (nodeStart <= offset && nodeEnd >= offset) { return { node: node, offset: offset - nodeStart }; } nodeStart = nodeEnd; } node = getLeafNode(getSiblingNode(node)); } } module.exports = getNodeForCharacterOffset; /***/ }, /* 129 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getActiveElement * @typechecks */ /* eslint-disable fb-www/typeof-undefined */ /** * Same as document.activeElement but wraps in a try-catch block. In IE it is * not safe to call document.activeElement if there is nothing focused. * * The activeElement will be null only if the document or document body is not * yet defined. */ 'use strict'; function getActiveElement() /*?DOMElement*/{ if (typeof document === 'undefined') { return null; } try { return document.activeElement || document.body; } catch (e) { return document.body; } } module.exports = getActiveElement; /***/ }, /* 130 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SelectEventPlugin */ 'use strict'; var EventConstants = __webpack_require__(30); var EventPropagators = __webpack_require__(73); var ExecutionEnvironment = __webpack_require__(9); var ReactInputSelection = __webpack_require__(126); var SyntheticEvent = __webpack_require__(77); var getActiveElement = __webpack_require__(129); var isTextInputElement = __webpack_require__(82); var keyOf = __webpack_require__(79); var shallowEqual = __webpack_require__(117); var topLevelTypes = EventConstants.topLevelTypes; var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11; var eventTypes = { select: { phasedRegistrationNames: { bubbled: keyOf({ onSelect: null }), captured: keyOf({ onSelectCapture: null }) }, dependencies: [topLevelTypes.topBlur, topLevelTypes.topContextMenu, topLevelTypes.topFocus, topLevelTypes.topKeyDown, topLevelTypes.topMouseDown, topLevelTypes.topMouseUp, topLevelTypes.topSelectionChange] } }; var activeElement = null; var activeElementID = null; var lastSelection = null; var mouseDown = false; // Track whether a listener exists for this plugin. If none exist, we do // not extract events. var hasListener = false; var ON_SELECT_KEY = keyOf({ onSelect: null }); /** * Get an object which is a unique representation of the current selection. * * The return value will not be consistent across nodes or browsers, but * two identical selections on the same node will return identical objects. * * @param {DOMElement} node * @return {object} */ function getSelection(node) { if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) { return { start: node.selectionStart, end: node.selectionEnd }; } else if (window.getSelection) { var selection = window.getSelection(); return { anchorNode: selection.anchorNode, anchorOffset: selection.anchorOffset, focusNode: selection.focusNode, focusOffset: selection.focusOffset }; } else if (document.selection) { var range = document.selection.createRange(); return { parentElement: range.parentElement(), text: range.text, top: range.boundingTop, left: range.boundingLeft }; } } /** * Poll selection to see whether it's changed. * * @param {object} nativeEvent * @return {?SyntheticEvent} */ function constructSelectEvent(nativeEvent, nativeEventTarget) { // Ensure we have the right element, and that the user is not dragging a // selection (this matches native `select` event behavior). In HTML5, select // fires only on input and textarea thus if there's no focused element we // won't dispatch. if (mouseDown || activeElement == null || activeElement !== getActiveElement()) { return null; } // Only fire when selection has actually changed. var currentSelection = getSelection(activeElement); if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { lastSelection = currentSelection; var syntheticEvent = SyntheticEvent.getPooled(eventTypes.select, activeElementID, nativeEvent, nativeEventTarget); syntheticEvent.type = 'select'; syntheticEvent.target = activeElement; EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent); return syntheticEvent; } return null; } /** * This plugin creates an `onSelect` event that normalizes select events * across form elements. * * Supported elements are: * - input (see `isTextInputElement`) * - textarea * - contentEditable * * This differs from native browser implementations in the following ways: * - Fires on contentEditable fields as well as inputs. * - Fires for collapsed selection. * - Fires after user input. */ var SelectEventPlugin = { eventTypes: eventTypes, /** * @param {string} topLevelType Record from `EventConstants`. * @param {DOMEventTarget} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native browser event. * @return {*} An accumulation of synthetic events. * @see {EventPluginHub.extractEvents} */ extractEvents: function (topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { if (!hasListener) { return null; } switch (topLevelType) { // Track the input node that has focus. case topLevelTypes.topFocus: if (isTextInputElement(topLevelTarget) || topLevelTarget.contentEditable === 'true') { activeElement = topLevelTarget; activeElementID = topLevelTargetID; lastSelection = null; } break; case topLevelTypes.topBlur: activeElement = null; activeElementID = null; lastSelection = null; break; // Don't fire the event while the user is dragging. This matches the // semantics of the native select event. case topLevelTypes.topMouseDown: mouseDown = true; break; case topLevelTypes.topContextMenu: case topLevelTypes.topMouseUp: mouseDown = false; return constructSelectEvent(nativeEvent, nativeEventTarget); // Chrome and IE fire non-standard event when selection is changed (and // sometimes when it hasn't). IE's event fires out of order with respect // to key and input events on deletion, so we discard it. // // Firefox doesn't support selectionchange, so check selection status // after each key entry. The selection changes after keydown and before // keyup, but we check on keydown as well in the case of holding down a // key, when multiple keydown events are fired but only one keyup is. // This is also our approach for IE handling, for the reason above. case topLevelTypes.topSelectionChange: if (skipSelectionChangeEvent) { break; } // falls through case topLevelTypes.topKeyDown: case topLevelTypes.topKeyUp: return constructSelectEvent(nativeEvent, nativeEventTarget); } return null; }, didPutListener: function (id, registrationName, listener) { if (registrationName === ON_SELECT_KEY) { hasListener = true; } } }; module.exports = SelectEventPlugin; /***/ }, /* 131 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ServerReactRootIndex * @typechecks */ 'use strict'; /** * Size of the reactRoot ID space. We generate random numbers for React root * IDs and if there's a collision the events and DOM update system will * get confused. In the future we need a way to generate GUIDs but for * now this will work on a smaller scale. */ var GLOBAL_MOUNT_POINT_MAX = Math.pow(2, 53); var ServerReactRootIndex = { createReactRootIndex: function () { return Math.ceil(Math.random() * GLOBAL_MOUNT_POINT_MAX); } }; module.exports = ServerReactRootIndex; /***/ }, /* 132 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SimpleEventPlugin */ 'use strict'; var EventConstants = __webpack_require__(30); var EventListener = __webpack_require__(119); var EventPropagators = __webpack_require__(73); var ReactMount = __webpack_require__(28); var SyntheticClipboardEvent = __webpack_require__(133); var SyntheticEvent = __webpack_require__(77); var SyntheticFocusEvent = __webpack_require__(134); var SyntheticKeyboardEvent = __webpack_require__(135); var SyntheticMouseEvent = __webpack_require__(86); var SyntheticDragEvent = __webpack_require__(138); var SyntheticTouchEvent = __webpack_require__(139); var SyntheticUIEvent = __webpack_require__(87); var SyntheticWheelEvent = __webpack_require__(140); var emptyFunction = __webpack_require__(15); var getEventCharCode = __webpack_require__(136); var invariant = __webpack_require__(13); var keyOf = __webpack_require__(79); var topLevelTypes = EventConstants.topLevelTypes; var eventTypes = { abort: { phasedRegistrationNames: { bubbled: keyOf({ onAbort: true }), captured: keyOf({ onAbortCapture: true }) } }, blur: { phasedRegistrationNames: { bubbled: keyOf({ onBlur: true }), captured: keyOf({ onBlurCapture: true }) } }, canPlay: { phasedRegistrationNames: { bubbled: keyOf({ onCanPlay: true }), captured: keyOf({ onCanPlayCapture: true }) } }, canPlayThrough: { phasedRegistrationNames: { bubbled: keyOf({ onCanPlayThrough: true }), captured: keyOf({ onCanPlayThroughCapture: true }) } }, click: { phasedRegistrationNames: { bubbled: keyOf({ onClick: true }), captured: keyOf({ onClickCapture: true }) } }, contextMenu: { phasedRegistrationNames: { bubbled: keyOf({ onContextMenu: true }), captured: keyOf({ onContextMenuCapture: true }) } }, copy: { phasedRegistrationNames: { bubbled: keyOf({ onCopy: true }), captured: keyOf({ onCopyCapture: true }) } }, cut: { phasedRegistrationNames: { bubbled: keyOf({ onCut: true }), captured: keyOf({ onCutCapture: true }) } }, doubleClick: { phasedRegistrationNames: { bubbled: keyOf({ onDoubleClick: true }), captured: keyOf({ onDoubleClickCapture: true }) } }, drag: { phasedRegistrationNames: { bubbled: keyOf({ onDrag: true }), captured: keyOf({ onDragCapture: true }) } }, dragEnd: { phasedRegistrationNames: { bubbled: keyOf({ onDragEnd: true }), captured: keyOf({ onDragEndCapture: true }) } }, dragEnter: { phasedRegistrationNames: { bubbled: keyOf({ onDragEnter: true }), captured: keyOf({ onDragEnterCapture: true }) } }, dragExit: { phasedRegistrationNames: { bubbled: keyOf({ onDragExit: true }), captured: keyOf({ onDragExitCapture: true }) } }, dragLeave: { phasedRegistrationNames: { bubbled: keyOf({ onDragLeave: true }), captured: keyOf({ onDragLeaveCapture: true }) } }, dragOver: { phasedRegistrationNames: { bubbled: keyOf({ onDragOver: true }), captured: keyOf({ onDragOverCapture: true }) } }, dragStart: { phasedRegistrationNames: { bubbled: keyOf({ onDragStart: true }), captured: keyOf({ onDragStartCapture: true }) } }, drop: { phasedRegistrationNames: { bubbled: keyOf({ onDrop: true }), captured: keyOf({ onDropCapture: true }) } }, durationChange: { phasedRegistrationNames: { bubbled: keyOf({ onDurationChange: true }), captured: keyOf({ onDurationChangeCapture: true }) } }, emptied: { phasedRegistrationNames: { bubbled: keyOf({ onEmptied: true }), captured: keyOf({ onEmptiedCapture: true }) } }, encrypted: { phasedRegistrationNames: { bubbled: keyOf({ onEncrypted: true }), captured: keyOf({ onEncryptedCapture: true }) } }, ended: { phasedRegistrationNames: { bubbled: keyOf({ onEnded: true }), captured: keyOf({ onEndedCapture: true }) } }, error: { phasedRegistrationNames: { bubbled: keyOf({ onError: true }), captured: keyOf({ onErrorCapture: true }) } }, focus: { phasedRegistrationNames: { bubbled: keyOf({ onFocus: true }), captured: keyOf({ onFocusCapture: true }) } }, input: { phasedRegistrationNames: { bubbled: keyOf({ onInput: true }), captured: keyOf({ onInputCapture: true }) } }, keyDown: { phasedRegistrationNames: { bubbled: keyOf({ onKeyDown: true }), captured: keyOf({ onKeyDownCapture: true }) } }, keyPress: { phasedRegistrationNames: { bubbled: keyOf({ onKeyPress: true }), captured: keyOf({ onKeyPressCapture: true }) } }, keyUp: { phasedRegistrationNames: { bubbled: keyOf({ onKeyUp: true }), captured: keyOf({ onKeyUpCapture: true }) } }, load: { phasedRegistrationNames: { bubbled: keyOf({ onLoad: true }), captured: keyOf({ onLoadCapture: true }) } }, loadedData: { phasedRegistrationNames: { bubbled: keyOf({ onLoadedData: true }), captured: keyOf({ onLoadedDataCapture: true }) } }, loadedMetadata: { phasedRegistrationNames: { bubbled: keyOf({ onLoadedMetadata: true }), captured: keyOf({ onLoadedMetadataCapture: true }) } }, loadStart: { phasedRegistrationNames: { bubbled: keyOf({ onLoadStart: true }), captured: keyOf({ onLoadStartCapture: true }) } }, // Note: We do not allow listening to mouseOver events. Instead, use the // onMouseEnter/onMouseLeave created by `EnterLeaveEventPlugin`. mouseDown: { phasedRegistrationNames: { bubbled: keyOf({ onMouseDown: true }), captured: keyOf({ onMouseDownCapture: true }) } }, mouseMove: { phasedRegistrationNames: { bubbled: keyOf({ onMouseMove: true }), captured: keyOf({ onMouseMoveCapture: true }) } }, mouseOut: { phasedRegistrationNames: { bubbled: keyOf({ onMouseOut: true }), captured: keyOf({ onMouseOutCapture: true }) } }, mouseOver: { phasedRegistrationNames: { bubbled: keyOf({ onMouseOver: true }), captured: keyOf({ onMouseOverCapture: true }) } }, mouseUp: { phasedRegistrationNames: { bubbled: keyOf({ onMouseUp: true }), captured: keyOf({ onMouseUpCapture: true }) } }, paste: { phasedRegistrationNames: { bubbled: keyOf({ onPaste: true }), captured: keyOf({ onPasteCapture: true }) } }, pause: { phasedRegistrationNames: { bubbled: keyOf({ onPause: true }), captured: keyOf({ onPauseCapture: true }) } }, play: { phasedRegistrationNames: { bubbled: keyOf({ onPlay: true }), captured: keyOf({ onPlayCapture: true }) } }, playing: { phasedRegistrationNames: { bubbled: keyOf({ onPlaying: true }), captured: keyOf({ onPlayingCapture: true }) } }, progress: { phasedRegistrationNames: { bubbled: keyOf({ onProgress: true }), captured: keyOf({ onProgressCapture: true }) } }, rateChange: { phasedRegistrationNames: { bubbled: keyOf({ onRateChange: true }), captured: keyOf({ onRateChangeCapture: true }) } }, reset: { phasedRegistrationNames: { bubbled: keyOf({ onReset: true }), captured: keyOf({ onResetCapture: true }) } }, scroll: { phasedRegistrationNames: { bubbled: keyOf({ onScroll: true }), captured: keyOf({ onScrollCapture: true }) } }, seeked: { phasedRegistrationNames: { bubbled: keyOf({ onSeeked: true }), captured: keyOf({ onSeekedCapture: true }) } }, seeking: { phasedRegistrationNames: { bubbled: keyOf({ onSeeking: true }), captured: keyOf({ onSeekingCapture: true }) } }, stalled: { phasedRegistrationNames: { bubbled: keyOf({ onStalled: true }), captured: keyOf({ onStalledCapture: true }) } }, submit: { phasedRegistrationNames: { bubbled: keyOf({ onSubmit: true }), captured: keyOf({ onSubmitCapture: true }) } }, suspend: { phasedRegistrationNames: { bubbled: keyOf({ onSuspend: true }), captured: keyOf({ onSuspendCapture: true }) } }, timeUpdate: { phasedRegistrationNames: { bubbled: keyOf({ onTimeUpdate: true }), captured: keyOf({ onTimeUpdateCapture: true }) } }, touchCancel: { phasedRegistrationNames: { bubbled: keyOf({ onTouchCancel: true }), captured: keyOf({ onTouchCancelCapture: true }) } }, touchEnd: { phasedRegistrationNames: { bubbled: keyOf({ onTouchEnd: true }), captured: keyOf({ onTouchEndCapture: true }) } }, touchMove: { phasedRegistrationNames: { bubbled: keyOf({ onTouchMove: true }), captured: keyOf({ onTouchMoveCapture: true }) } }, touchStart: { phasedRegistrationNames: { bubbled: keyOf({ onTouchStart: true }), captured: keyOf({ onTouchStartCapture: true }) } }, volumeChange: { phasedRegistrationNames: { bubbled: keyOf({ onVolumeChange: true }), captured: keyOf({ onVolumeChangeCapture: true }) } }, waiting: { phasedRegistrationNames: { bubbled: keyOf({ onWaiting: true }), captured: keyOf({ onWaitingCapture: true }) } }, wheel: { phasedRegistrationNames: { bubbled: keyOf({ onWheel: true }), captured: keyOf({ onWheelCapture: true }) } } }; var topLevelEventsToDispatchConfig = { topAbort: eventTypes.abort, topBlur: eventTypes.blur, topCanPlay: eventTypes.canPlay, topCanPlayThrough: eventTypes.canPlayThrough, topClick: eventTypes.click, topContextMenu: eventTypes.contextMenu, topCopy: eventTypes.copy, topCut: eventTypes.cut, topDoubleClick: eventTypes.doubleClick, topDrag: eventTypes.drag, topDragEnd: eventTypes.dragEnd, topDragEnter: eventTypes.dragEnter, topDragExit: eventTypes.dragExit, topDragLeave: eventTypes.dragLeave, topDragOver: eventTypes.dragOver, topDragStart: eventTypes.dragStart, topDrop: eventTypes.drop, topDurationChange: eventTypes.durationChange, topEmptied: eventTypes.emptied, topEncrypted: eventTypes.encrypted, topEnded: eventTypes.ended, topError: eventTypes.error, topFocus: eventTypes.focus, topInput: eventTypes.input, topKeyDown: eventTypes.keyDown, topKeyPress: eventTypes.keyPress, topKeyUp: eventTypes.keyUp, topLoad: eventTypes.load, topLoadedData: eventTypes.loadedData, topLoadedMetadata: eventTypes.loadedMetadata, topLoadStart: eventTypes.loadStart, topMouseDown: eventTypes.mouseDown, topMouseMove: eventTypes.mouseMove, topMouseOut: eventTypes.mouseOut, topMouseOver: eventTypes.mouseOver, topMouseUp: eventTypes.mouseUp, topPaste: eventTypes.paste, topPause: eventTypes.pause, topPlay: eventTypes.play, topPlaying: eventTypes.playing, topProgress: eventTypes.progress, topRateChange: eventTypes.rateChange, topReset: eventTypes.reset, topScroll: eventTypes.scroll, topSeeked: eventTypes.seeked, topSeeking: eventTypes.seeking, topStalled: eventTypes.stalled, topSubmit: eventTypes.submit, topSuspend: eventTypes.suspend, topTimeUpdate: eventTypes.timeUpdate, topTouchCancel: eventTypes.touchCancel, topTouchEnd: eventTypes.touchEnd, topTouchMove: eventTypes.touchMove, topTouchStart: eventTypes.touchStart, topVolumeChange: eventTypes.volumeChange, topWaiting: eventTypes.waiting, topWheel: eventTypes.wheel }; for (var type in topLevelEventsToDispatchConfig) { topLevelEventsToDispatchConfig[type].dependencies = [type]; } var ON_CLICK_KEY = keyOf({ onClick: null }); var onClickListeners = {}; var SimpleEventPlugin = { eventTypes: eventTypes, /** * @param {string} topLevelType Record from `EventConstants`. * @param {DOMEventTarget} topLevelTarget The listening component root node. * @param {string} topLevelTargetID ID of `topLevelTarget`. * @param {object} nativeEvent Native browser event. * @return {*} An accumulation of synthetic events. * @see {EventPluginHub.extractEvents} */ extractEvents: function (topLevelType, topLevelTarget, topLevelTargetID, nativeEvent, nativeEventTarget) { var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType]; if (!dispatchConfig) { return null; } var EventConstructor; switch (topLevelType) { case topLevelTypes.topAbort: case topLevelTypes.topCanPlay: case topLevelTypes.topCanPlayThrough: case topLevelTypes.topDurationChange: case topLevelTypes.topEmptied: case topLevelTypes.topEncrypted: case topLevelTypes.topEnded: case topLevelTypes.topError: case topLevelTypes.topInput: case topLevelTypes.topLoad: case topLevelTypes.topLoadedData: case topLevelTypes.topLoadedMetadata: case topLevelTypes.topLoadStart: case topLevelTypes.topPause: case topLevelTypes.topPlay: case topLevelTypes.topPlaying: case topLevelTypes.topProgress: case topLevelTypes.topRateChange: case topLevelTypes.topReset: case topLevelTypes.topSeeked: case topLevelTypes.topSeeking: case topLevelTypes.topStalled: case topLevelTypes.topSubmit: case topLevelTypes.topSuspend: case topLevelTypes.topTimeUpdate: case topLevelTypes.topVolumeChange: case topLevelTypes.topWaiting: // HTML Events // @see path_to_url#events-0 EventConstructor = SyntheticEvent; break; case topLevelTypes.topKeyPress: // FireFox creates a keypress event for function keys too. This removes // the unwanted keypress events. Enter is however both printable and // non-printable. One would expect Tab to be as well (but it isn't). if (getEventCharCode(nativeEvent) === 0) { return null; } /* falls through */ case topLevelTypes.topKeyDown: case topLevelTypes.topKeyUp: EventConstructor = SyntheticKeyboardEvent; break; case topLevelTypes.topBlur: case topLevelTypes.topFocus: EventConstructor = SyntheticFocusEvent; break; case topLevelTypes.topClick: // Firefox creates a click event on right mouse clicks. This removes the // unwanted click events. if (nativeEvent.button === 2) { return null; } /* falls through */ case topLevelTypes.topContextMenu: case topLevelTypes.topDoubleClick: case topLevelTypes.topMouseDown: case topLevelTypes.topMouseMove: case topLevelTypes.topMouseOut: case topLevelTypes.topMouseOver: case topLevelTypes.topMouseUp: EventConstructor = SyntheticMouseEvent; break; case topLevelTypes.topDrag: case topLevelTypes.topDragEnd: case topLevelTypes.topDragEnter: case topLevelTypes.topDragExit: case topLevelTypes.topDragLeave: case topLevelTypes.topDragOver: case topLevelTypes.topDragStart: case topLevelTypes.topDrop: EventConstructor = SyntheticDragEvent; break; case topLevelTypes.topTouchCancel: case topLevelTypes.topTouchEnd: case topLevelTypes.topTouchMove: case topLevelTypes.topTouchStart: EventConstructor = SyntheticTouchEvent; break; case topLevelTypes.topScroll: EventConstructor = SyntheticUIEvent; break; case topLevelTypes.topWheel: EventConstructor = SyntheticWheelEvent; break; case topLevelTypes.topCopy: case topLevelTypes.topCut: case topLevelTypes.topPaste: EventConstructor = SyntheticClipboardEvent; break; } !EventConstructor ? process.env.NODE_ENV !== 'production' ? invariant(false, 'SimpleEventPlugin: Unhandled event type, `%s`.', topLevelType) : invariant(false) : undefined; var event = EventConstructor.getPooled(dispatchConfig, topLevelTargetID, nativeEvent, nativeEventTarget); EventPropagators.accumulateTwoPhaseDispatches(event); return event; }, didPutListener: function (id, registrationName, listener) { // Mobile Safari does not fire properly bubble click events on // non-interactive elements, which means delegated click listeners do not // fire. The workaround for this bug involves attaching an empty click // listener on the target node. if (registrationName === ON_CLICK_KEY) { var node = ReactMount.getNode(id); if (!onClickListeners[id]) { onClickListeners[id] = EventListener.listen(node, 'click', emptyFunction); } } }, willDeleteListener: function (id, registrationName) { if (registrationName === ON_CLICK_KEY) { onClickListeners[id].remove(); delete onClickListeners[id]; } } }; module.exports = SimpleEventPlugin; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 133 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticClipboardEvent * @typechecks static-only */ 'use strict'; var SyntheticEvent = __webpack_require__(77); /** * @interface Event * @see path_to_url */ var ClipboardEventInterface = { clipboardData: function (event) { return 'clipboardData' in event ? event.clipboardData : window.clipboardData; } }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticUIEvent} */ function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface); module.exports = SyntheticClipboardEvent; /***/ }, /* 134 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticFocusEvent * @typechecks static-only */ 'use strict'; var SyntheticUIEvent = __webpack_require__(87); /** * @interface FocusEvent * @see path_to_url */ var FocusEventInterface = { relatedTarget: null }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticUIEvent} */ function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface); module.exports = SyntheticFocusEvent; /***/ }, /* 135 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticKeyboardEvent * @typechecks static-only */ 'use strict'; var SyntheticUIEvent = __webpack_require__(87); var getEventCharCode = __webpack_require__(136); var getEventKey = __webpack_require__(137); var getEventModifierState = __webpack_require__(88); /** * @interface KeyboardEvent * @see path_to_url */ var KeyboardEventInterface = { key: getEventKey, location: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, repeat: null, locale: null, getModifierState: getEventModifierState, // Legacy Interface charCode: function (event) { // `charCode` is the result of a KeyPress event and represents the value of // the actual printable character. // KeyPress is deprecated, but its replacement is not yet final and not // implemented in any major browser. Only KeyPress has charCode. if (event.type === 'keypress') { return getEventCharCode(event); } return 0; }, keyCode: function (event) { // `keyCode` is the result of a KeyDown/Up event and represents the value of // physical keyboard key. // The actual meaning of the value depends on the users' keyboard layout // which cannot be detected. Assuming that it is a US keyboard layout // provides a surprisingly accurate mapping for US and European users. // Due to this, it is left to the user to implement at this time. if (event.type === 'keydown' || event.type === 'keyup') { return event.keyCode; } return 0; }, which: function (event) { // `which` is an alias for either `keyCode` or `charCode` depending on the // type of the event. if (event.type === 'keypress') { return getEventCharCode(event); } if (event.type === 'keydown' || event.type === 'keyup') { return event.keyCode; } return 0; } }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticUIEvent} */ function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface); module.exports = SyntheticKeyboardEvent; /***/ }, /* 136 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getEventCharCode * @typechecks static-only */ 'use strict'; /** * `charCode` represents the actual "character code" and is safe to use with * `String.fromCharCode`. As such, only keys that correspond to printable * characters produce a valid `charCode`, the only exception to this is Enter. * The Tab-key is considered non-printable and does not have a `charCode`, * presumably because it does not produce a tab-character in browsers. * * @param {object} nativeEvent Native browser event. * @return {number} Normalized `charCode` property. */ function getEventCharCode(nativeEvent) { var charCode; var keyCode = nativeEvent.keyCode; if ('charCode' in nativeEvent) { charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`. if (charCode === 0 && keyCode === 13) { charCode = 13; } } else { // IE8 does not implement `charCode`, but `keyCode` has the correct value. charCode = keyCode; } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them. // Must not discard the (non-)printable Enter-key. if (charCode >= 32 || charCode === 13) { return charCode; } return 0; } module.exports = getEventCharCode; /***/ }, /* 137 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getEventKey * @typechecks static-only */ 'use strict'; var getEventCharCode = __webpack_require__(136); /** * Normalization of deprecated HTML5 `key` values * @see path_to_url#Key_names */ var normalizeKey = { 'Esc': 'Escape', 'Spacebar': ' ', 'Left': 'ArrowLeft', 'Up': 'ArrowUp', 'Right': 'ArrowRight', 'Down': 'ArrowDown', 'Del': 'Delete', 'Win': 'OS', 'Menu': 'ContextMenu', 'Apps': 'ContextMenu', 'Scroll': 'ScrollLock', 'MozPrintableKey': 'Unidentified' }; /** * Translation from legacy `keyCode` to HTML5 `key` * Only special keys supported, all others depend on keyboard layout or browser * @see path_to_url#Key_names */ var translateToKey = { 8: 'Backspace', 9: 'Tab', 12: 'Clear', 13: 'Enter', 16: 'Shift', 17: 'Control', 18: 'Alt', 19: 'Pause', 20: 'CapsLock', 27: 'Escape', 32: ' ', 33: 'PageUp', 34: 'PageDown', 35: 'End', 36: 'Home', 37: 'ArrowLeft', 38: 'ArrowUp', 39: 'ArrowRight', 40: 'ArrowDown', 45: 'Insert', 46: 'Delete', 112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6', 118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12', 144: 'NumLock', 145: 'ScrollLock', 224: 'Meta' }; /** * @param {object} nativeEvent Native browser event. * @return {string} Normalized `key` property. */ function getEventKey(nativeEvent) { if (nativeEvent.key) { // Normalize inconsistent values reported by browsers due to // implementations of a working draft specification. // FireFox implements `key` but returns `MozPrintableKey` for all // printable characters (normalized to `Unidentified`), ignore it. var key = normalizeKey[nativeEvent.key] || nativeEvent.key; if (key !== 'Unidentified') { return key; } } // Browser does not implement `key`, polyfill as much of it as we can. if (nativeEvent.type === 'keypress') { var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can // thus be captured by `keypress`, no other non-printable key should. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode); } if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') { // While user keyboard layout determines the actual meaning of each // `keyCode` value, almost all function keys have a universal value. return translateToKey[nativeEvent.keyCode] || 'Unidentified'; } return ''; } module.exports = getEventKey; /***/ }, /* 138 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticDragEvent * @typechecks static-only */ 'use strict'; var SyntheticMouseEvent = __webpack_require__(86); /** * @interface DragEvent * @see path_to_url */ var DragEventInterface = { dataTransfer: null }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticUIEvent} */ function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface); module.exports = SyntheticDragEvent; /***/ }, /* 139 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticTouchEvent * @typechecks static-only */ 'use strict'; var SyntheticUIEvent = __webpack_require__(87); var getEventModifierState = __webpack_require__(88); /** * @interface TouchEvent * @see path_to_url */ var TouchEventInterface = { touches: null, targetTouches: null, changedTouches: null, altKey: null, metaKey: null, ctrlKey: null, shiftKey: null, getModifierState: getEventModifierState }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticUIEvent} */ function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface); module.exports = SyntheticTouchEvent; /***/ }, /* 140 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticWheelEvent * @typechecks static-only */ 'use strict'; var SyntheticMouseEvent = __webpack_require__(86); /** * @interface WheelEvent * @see path_to_url */ var WheelEventInterface = { deltaX: function (event) { return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; }, deltaY: function (event) { return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive). 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive). 'wheelDelta' in event ? -event.wheelDelta : 0; }, deltaZ: null, // Browsers without "deltaMode" is reporting in raw wheel delta where one // notch on the scroll is always +/- 120, roughly equivalent to pixels. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size. deltaMode: null }; /** * @param {object} dispatchConfig Configuration used to dispatch this event. * @param {string} dispatchMarker Marker identifying the event target. * @param {object} nativeEvent Native browser event. * @extends {SyntheticMouseEvent} */ function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); } SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface); module.exports = SyntheticWheelEvent; /***/ }, /* 141 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SVGDOMPropertyConfig */ 'use strict'; var DOMProperty = __webpack_require__(23); var MUST_USE_ATTRIBUTE = DOMProperty.injection.MUST_USE_ATTRIBUTE; var NS = { xlink: 'path_to_url xml: 'path_to_url }; var SVGDOMPropertyConfig = { Properties: { clipPath: MUST_USE_ATTRIBUTE, cx: MUST_USE_ATTRIBUTE, cy: MUST_USE_ATTRIBUTE, d: MUST_USE_ATTRIBUTE, dx: MUST_USE_ATTRIBUTE, dy: MUST_USE_ATTRIBUTE, fill: MUST_USE_ATTRIBUTE, fillOpacity: MUST_USE_ATTRIBUTE, fontFamily: MUST_USE_ATTRIBUTE, fontSize: MUST_USE_ATTRIBUTE, fx: MUST_USE_ATTRIBUTE, fy: MUST_USE_ATTRIBUTE, gradientTransform: MUST_USE_ATTRIBUTE, gradientUnits: MUST_USE_ATTRIBUTE, markerEnd: MUST_USE_ATTRIBUTE, markerMid: MUST_USE_ATTRIBUTE, markerStart: MUST_USE_ATTRIBUTE, offset: MUST_USE_ATTRIBUTE, opacity: MUST_USE_ATTRIBUTE, patternContentUnits: MUST_USE_ATTRIBUTE, patternUnits: MUST_USE_ATTRIBUTE, points: MUST_USE_ATTRIBUTE, preserveAspectRatio: MUST_USE_ATTRIBUTE, r: MUST_USE_ATTRIBUTE, rx: MUST_USE_ATTRIBUTE, ry: MUST_USE_ATTRIBUTE, spreadMethod: MUST_USE_ATTRIBUTE, stopColor: MUST_USE_ATTRIBUTE, stopOpacity: MUST_USE_ATTRIBUTE, stroke: MUST_USE_ATTRIBUTE, strokeDasharray: MUST_USE_ATTRIBUTE, strokeLinecap: MUST_USE_ATTRIBUTE, strokeOpacity: MUST_USE_ATTRIBUTE, strokeWidth: MUST_USE_ATTRIBUTE, textAnchor: MUST_USE_ATTRIBUTE, transform: MUST_USE_ATTRIBUTE, version: MUST_USE_ATTRIBUTE, viewBox: MUST_USE_ATTRIBUTE, x1: MUST_USE_ATTRIBUTE, x2: MUST_USE_ATTRIBUTE, x: MUST_USE_ATTRIBUTE, xlinkActuate: MUST_USE_ATTRIBUTE, xlinkArcrole: MUST_USE_ATTRIBUTE, xlinkHref: MUST_USE_ATTRIBUTE, xlinkRole: MUST_USE_ATTRIBUTE, xlinkShow: MUST_USE_ATTRIBUTE, xlinkTitle: MUST_USE_ATTRIBUTE, xlinkType: MUST_USE_ATTRIBUTE, xmlBase: MUST_USE_ATTRIBUTE, xmlLang: MUST_USE_ATTRIBUTE, xmlSpace: MUST_USE_ATTRIBUTE, y1: MUST_USE_ATTRIBUTE, y2: MUST_USE_ATTRIBUTE, y: MUST_USE_ATTRIBUTE }, DOMAttributeNamespaces: { xlinkActuate: NS.xlink, xlinkArcrole: NS.xlink, xlinkHref: NS.xlink, xlinkRole: NS.xlink, xlinkShow: NS.xlink, xlinkTitle: NS.xlink, xlinkType: NS.xlink, xmlBase: NS.xml, xmlLang: NS.xml, xmlSpace: NS.xml }, DOMAttributeNames: { clipPath: 'clip-path', fillOpacity: 'fill-opacity', fontFamily: 'font-family', fontSize: 'font-size', gradientTransform: 'gradientTransform', gradientUnits: 'gradientUnits', markerEnd: 'marker-end', markerMid: 'marker-mid', markerStart: 'marker-start', patternContentUnits: 'patternContentUnits', patternUnits: 'patternUnits', preserveAspectRatio: 'preserveAspectRatio', spreadMethod: 'spreadMethod', stopColor: 'stop-color', stopOpacity: 'stop-opacity', strokeDasharray: 'stroke-dasharray', strokeLinecap: 'stroke-linecap', strokeOpacity: 'stroke-opacity', strokeWidth: 'stroke-width', textAnchor: 'text-anchor', viewBox: 'viewBox', xlinkActuate: 'xlink:actuate', xlinkArcrole: 'xlink:arcrole', xlinkHref: 'xlink:href', xlinkRole: 'xlink:role', xlinkShow: 'xlink:show', xlinkTitle: 'xlink:title', xlinkType: 'xlink:type', xmlBase: 'xml:base', xmlLang: 'xml:lang', xmlSpace: 'xml:space' } }; module.exports = SVGDOMPropertyConfig; /***/ }, /* 142 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDefaultPerf * @typechecks static-only */ 'use strict'; var DOMProperty = __webpack_require__(23); var ReactDefaultPerfAnalysis = __webpack_require__(143); var ReactMount = __webpack_require__(28); var ReactPerf = __webpack_require__(18); var performanceNow = __webpack_require__(144); function roundFloat(val) { return Math.floor(val * 100) / 100; } function addValue(obj, key, val) { obj[key] = (obj[key] || 0) + val; } var ReactDefaultPerf = { _allMeasurements: [], // last item in the list is the current one _mountStack: [0], _injected: false, start: function () { if (!ReactDefaultPerf._injected) { ReactPerf.injection.injectMeasure(ReactDefaultPerf.measure); } ReactDefaultPerf._allMeasurements.length = 0; ReactPerf.enableMeasure = true; }, stop: function () { ReactPerf.enableMeasure = false; }, getLastMeasurements: function () { return ReactDefaultPerf._allMeasurements; }, printExclusive: function (measurements) { measurements = measurements || ReactDefaultPerf._allMeasurements; var summary = ReactDefaultPerfAnalysis.getExclusiveSummary(measurements); console.table(summary.map(function (item) { return { 'Component class name': item.componentName, 'Total inclusive time (ms)': roundFloat(item.inclusive), 'Exclusive mount time (ms)': roundFloat(item.exclusive), 'Exclusive render time (ms)': roundFloat(item.render), 'Mount time per instance (ms)': roundFloat(item.exclusive / item.count), 'Render time per instance (ms)': roundFloat(item.render / item.count), 'Instances': item.count }; })); // TODO: ReactDefaultPerfAnalysis.getTotalTime() does not return the correct // number. }, printInclusive: function (measurements) { measurements = measurements || ReactDefaultPerf._allMeasurements; var summary = ReactDefaultPerfAnalysis.getInclusiveSummary(measurements); console.table(summary.map(function (item) { return { 'Owner > component': item.componentName, 'Inclusive time (ms)': roundFloat(item.time), 'Instances': item.count }; })); console.log('Total time:', ReactDefaultPerfAnalysis.getTotalTime(measurements).toFixed(2) + ' ms'); }, getMeasurementsSummaryMap: function (measurements) { var summary = ReactDefaultPerfAnalysis.getInclusiveSummary(measurements, true); return summary.map(function (item) { return { 'Owner > component': item.componentName, 'Wasted time (ms)': item.time, 'Instances': item.count }; }); }, printWasted: function (measurements) { measurements = measurements || ReactDefaultPerf._allMeasurements; console.table(ReactDefaultPerf.getMeasurementsSummaryMap(measurements)); console.log('Total time:', ReactDefaultPerfAnalysis.getTotalTime(measurements).toFixed(2) + ' ms'); }, printDOM: function (measurements) { measurements = measurements || ReactDefaultPerf._allMeasurements; var summary = ReactDefaultPerfAnalysis.getDOMSummary(measurements); console.table(summary.map(function (item) { var result = {}; result[DOMProperty.ID_ATTRIBUTE_NAME] = item.id; result.type = item.type; result.args = JSON.stringify(item.args); return result; })); console.log('Total time:', ReactDefaultPerfAnalysis.getTotalTime(measurements).toFixed(2) + ' ms'); }, _recordWrite: function (id, fnName, totalTime, args) { // TODO: totalTime isn't that useful since it doesn't count paints/reflows var writes = ReactDefaultPerf._allMeasurements[ReactDefaultPerf._allMeasurements.length - 1].writes; writes[id] = writes[id] || []; writes[id].push({ type: fnName, time: totalTime, args: args }); }, measure: function (moduleName, fnName, func) { return function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var totalTime; var rv; var start; if (fnName === '_renderNewRootComponent' || fnName === 'flushBatchedUpdates') { // A "measurement" is a set of metrics recorded for each flush. We want // to group the metrics for a given flush together so we can look at the // components that rendered and the DOM operations that actually // happened to determine the amount of "wasted work" performed. ReactDefaultPerf._allMeasurements.push({ exclusive: {}, inclusive: {}, render: {}, counts: {}, writes: {}, displayNames: {}, totalTime: 0, created: {} }); start = performanceNow(); rv = func.apply(this, args); ReactDefaultPerf._allMeasurements[ReactDefaultPerf._allMeasurements.length - 1].totalTime = performanceNow() - start; return rv; } else if (fnName === '_mountImageIntoNode' || moduleName === 'ReactBrowserEventEmitter' || moduleName === 'ReactDOMIDOperations' || moduleName === 'CSSPropertyOperations' || moduleName === 'DOMChildrenOperations' || moduleName === 'DOMPropertyOperations') { start = performanceNow(); rv = func.apply(this, args); totalTime = performanceNow() - start; if (fnName === '_mountImageIntoNode') { var mountID = ReactMount.getID(args[1]); ReactDefaultPerf._recordWrite(mountID, fnName, totalTime, args[0]); } else if (fnName === 'dangerouslyProcessChildrenUpdates') { // special format args[0].forEach(function (update) { var writeArgs = {}; if (update.fromIndex !== null) { writeArgs.fromIndex = update.fromIndex; } if (update.toIndex !== null) { writeArgs.toIndex = update.toIndex; } if (update.textContent !== null) { writeArgs.textContent = update.textContent; } if (update.markupIndex !== null) { writeArgs.markup = args[1][update.markupIndex]; } ReactDefaultPerf._recordWrite(update.parentID, update.type, totalTime, writeArgs); }); } else { // basic format var id = args[0]; if (typeof id === 'object') { id = ReactMount.getID(args[0]); } ReactDefaultPerf._recordWrite(id, fnName, totalTime, Array.prototype.slice.call(args, 1)); } return rv; } else if (moduleName === 'ReactCompositeComponent' && (fnName === 'mountComponent' || fnName === 'updateComponent' || // TODO: receiveComponent()? fnName === '_renderValidatedComponent')) { if (this._currentElement.type === ReactMount.TopLevelWrapper) { return func.apply(this, args); } var rootNodeID = fnName === 'mountComponent' ? args[0] : this._rootNodeID; var isRender = fnName === '_renderValidatedComponent'; var isMount = fnName === 'mountComponent'; var mountStack = ReactDefaultPerf._mountStack; var entry = ReactDefaultPerf._allMeasurements[ReactDefaultPerf._allMeasurements.length - 1]; if (isRender) { addValue(entry.counts, rootNodeID, 1); } else if (isMount) { entry.created[rootNodeID] = true; mountStack.push(0); } start = performanceNow(); rv = func.apply(this, args); totalTime = performanceNow() - start; if (isRender) { addValue(entry.render, rootNodeID, totalTime); } else if (isMount) { var subMountTime = mountStack.pop(); mountStack[mountStack.length - 1] += totalTime; addValue(entry.exclusive, rootNodeID, totalTime - subMountTime); addValue(entry.inclusive, rootNodeID, totalTime); } else { addValue(entry.inclusive, rootNodeID, totalTime); } entry.displayNames[rootNodeID] = { current: this.getName(), owner: this._currentElement._owner ? this._currentElement._owner.getName() : '<root>' }; return rv; } else { return func.apply(this, args); } }; } }; module.exports = ReactDefaultPerf; /***/ }, /* 143 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDefaultPerfAnalysis */ 'use strict'; var assign = __webpack_require__(39); // Don't try to save users less than 1.2ms (a number I made up) var DONT_CARE_THRESHOLD = 1.2; var DOM_OPERATION_TYPES = { '_mountImageIntoNode': 'set innerHTML', INSERT_MARKUP: 'set innerHTML', MOVE_EXISTING: 'move', REMOVE_NODE: 'remove', SET_MARKUP: 'set innerHTML', TEXT_CONTENT: 'set textContent', 'setValueForProperty': 'update attribute', 'setValueForAttribute': 'update attribute', 'deleteValueForProperty': 'remove attribute', 'setValueForStyles': 'update styles', 'replaceNodeWithMarkup': 'replace', 'updateTextContent': 'set textContent' }; function getTotalTime(measurements) { // TODO: return number of DOM ops? could be misleading. // TODO: measure dropped frames after reconcile? // TODO: log total time of each reconcile and the top-level component // class that triggered it. var totalTime = 0; for (var i = 0; i < measurements.length; i++) { var measurement = measurements[i]; totalTime += measurement.totalTime; } return totalTime; } function getDOMSummary(measurements) { var items = []; measurements.forEach(function (measurement) { Object.keys(measurement.writes).forEach(function (id) { measurement.writes[id].forEach(function (write) { items.push({ id: id, type: DOM_OPERATION_TYPES[write.type] || write.type, args: write.args }); }); }); }); return items; } function getExclusiveSummary(measurements) { var candidates = {}; var displayName; for (var i = 0; i < measurements.length; i++) { var measurement = measurements[i]; var allIDs = assign({}, measurement.exclusive, measurement.inclusive); for (var id in allIDs) { displayName = measurement.displayNames[id].current; candidates[displayName] = candidates[displayName] || { componentName: displayName, inclusive: 0, exclusive: 0, render: 0, count: 0 }; if (measurement.render[id]) { candidates[displayName].render += measurement.render[id]; } if (measurement.exclusive[id]) { candidates[displayName].exclusive += measurement.exclusive[id]; } if (measurement.inclusive[id]) { candidates[displayName].inclusive += measurement.inclusive[id]; } if (measurement.counts[id]) { candidates[displayName].count += measurement.counts[id]; } } } // Now make a sorted array with the results. var arr = []; for (displayName in candidates) { if (candidates[displayName].exclusive >= DONT_CARE_THRESHOLD) { arr.push(candidates[displayName]); } } arr.sort(function (a, b) { return b.exclusive - a.exclusive; }); return arr; } function getInclusiveSummary(measurements, onlyClean) { var candidates = {}; var inclusiveKey; for (var i = 0; i < measurements.length; i++) { var measurement = measurements[i]; var allIDs = assign({}, measurement.exclusive, measurement.inclusive); var cleanComponents; if (onlyClean) { cleanComponents = getUnchangedComponents(measurement); } for (var id in allIDs) { if (onlyClean && !cleanComponents[id]) { continue; } var displayName = measurement.displayNames[id]; // Inclusive time is not useful for many components without knowing where // they are instantiated. So we aggregate inclusive time with both the // owner and current displayName as the key. inclusiveKey = displayName.owner + ' > ' + displayName.current; candidates[inclusiveKey] = candidates[inclusiveKey] || { componentName: inclusiveKey, time: 0, count: 0 }; if (measurement.inclusive[id]) { candidates[inclusiveKey].time += measurement.inclusive[id]; } if (measurement.counts[id]) { candidates[inclusiveKey].count += measurement.counts[id]; } } } // Now make a sorted array with the results. var arr = []; for (inclusiveKey in candidates) { if (candidates[inclusiveKey].time >= DONT_CARE_THRESHOLD) { arr.push(candidates[inclusiveKey]); } } arr.sort(function (a, b) { return b.time - a.time; }); return arr; } function getUnchangedComponents(measurement) { // For a given reconcile, look at which components did not actually // render anything to the DOM and return a mapping of their ID to // the amount of time it took to render the entire subtree. var cleanComponents = {}; var dirtyLeafIDs = Object.keys(measurement.writes); var allIDs = assign({}, measurement.exclusive, measurement.inclusive); for (var id in allIDs) { var isDirty = false; // For each component that rendered, see if a component that triggered // a DOM op is in its subtree. for (var i = 0; i < dirtyLeafIDs.length; i++) { if (dirtyLeafIDs[i].indexOf(id) === 0) { isDirty = true; break; } } // check if component newly created if (measurement.created[id]) { isDirty = true; } if (!isDirty && measurement.counts[id] > 0) { cleanComponents[id] = true; } } return cleanComponents; } var ReactDefaultPerfAnalysis = { getExclusiveSummary: getExclusiveSummary, getInclusiveSummary: getInclusiveSummary, getDOMSummary: getDOMSummary, getTotalTime: getTotalTime }; module.exports = ReactDefaultPerfAnalysis; /***/ }, /* 144 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule performanceNow * @typechecks */ 'use strict'; var performance = __webpack_require__(145); var performanceNow; /** * Detect if we can use `window.performance.now()` and gracefully fallback to * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now * because of Facebook's testing infrastructure. */ if (performance.now) { performanceNow = function () { return performance.now(); }; } else { performanceNow = function () { return Date.now(); }; } module.exports = performanceNow; /***/ }, /* 145 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule performance * @typechecks */ 'use strict'; var ExecutionEnvironment = __webpack_require__(9); var performance; if (ExecutionEnvironment.canUseDOM) { performance = window.performance || window.msPerformance || window.webkitPerformance; } module.exports = performance || {}; /***/ }, /* 146 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactVersion */ 'use strict'; module.exports = '0.14.6'; /***/ }, /* 147 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule renderSubtreeIntoContainer */ 'use strict'; var ReactMount = __webpack_require__(28); module.exports = ReactMount.renderSubtreeIntoContainer; /***/ }, /* 148 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMServer */ 'use strict'; var ReactDefaultInjection = __webpack_require__(71); var ReactServerRendering = __webpack_require__(149); var ReactVersion = __webpack_require__(146); ReactDefaultInjection.inject(); var ReactDOMServer = { renderToString: ReactServerRendering.renderToString, renderToStaticMarkup: ReactServerRendering.renderToStaticMarkup, version: ReactVersion }; module.exports = ReactDOMServer; /***/ }, /* 149 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @typechecks static-only * @providesModule ReactServerRendering */ 'use strict'; var ReactDefaultBatchingStrategy = __webpack_require__(92); var ReactElement = __webpack_require__(42); var ReactInstanceHandles = __webpack_require__(45); var ReactMarkupChecksum = __webpack_require__(48); var ReactServerBatchingStrategy = __webpack_require__(150); var ReactServerRenderingTransaction = __webpack_require__(151); var ReactUpdates = __webpack_require__(54); var emptyObject = __webpack_require__(58); var instantiateReactComponent = __webpack_require__(62); var invariant = __webpack_require__(13); /** * @param {ReactElement} element * @return {string} the HTML markup */ function renderToString(element) { !ReactElement.isValidElement(element) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'renderToString(): You must pass a valid ReactElement.') : invariant(false) : undefined; var transaction; try { ReactUpdates.injection.injectBatchingStrategy(ReactServerBatchingStrategy); var id = ReactInstanceHandles.createReactRootID(); transaction = ReactServerRenderingTransaction.getPooled(false); return transaction.perform(function () { var componentInstance = instantiateReactComponent(element, null); var markup = componentInstance.mountComponent(id, transaction, emptyObject); return ReactMarkupChecksum.addChecksumToMarkup(markup); }, null); } finally { ReactServerRenderingTransaction.release(transaction); // Revert to the DOM batching strategy since these two renderers // currently share these stateful modules. ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy); } } /** * @param {ReactElement} element * @return {string} the HTML markup, without the extra React ID and checksum * (for generating static pages) */ function renderToStaticMarkup(element) { !ReactElement.isValidElement(element) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'renderToStaticMarkup(): You must pass a valid ReactElement.') : invariant(false) : undefined; var transaction; try { ReactUpdates.injection.injectBatchingStrategy(ReactServerBatchingStrategy); var id = ReactInstanceHandles.createReactRootID(); transaction = ReactServerRenderingTransaction.getPooled(true); return transaction.perform(function () { var componentInstance = instantiateReactComponent(element, null); return componentInstance.mountComponent(id, transaction, emptyObject); }, null); } finally { ReactServerRenderingTransaction.release(transaction); // Revert to the DOM batching strategy since these two renderers // currently share these stateful modules. ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy); } } module.exports = { renderToString: renderToString, renderToStaticMarkup: renderToStaticMarkup }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 150 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactServerBatchingStrategy * @typechecks */ 'use strict'; var ReactServerBatchingStrategy = { isBatchingUpdates: false, batchedUpdates: function (callback) { // Don't do anything here. During the server rendering we don't want to // schedule any updates. We will simply ignore them. } }; module.exports = ReactServerBatchingStrategy; /***/ }, /* 151 */ /***/ function(module, exports, __webpack_require__) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactServerRenderingTransaction * @typechecks */ 'use strict'; var PooledClass = __webpack_require__(56); var CallbackQueue = __webpack_require__(55); var Transaction = __webpack_require__(57); var assign = __webpack_require__(39); var emptyFunction = __webpack_require__(15); /** * Provides a `CallbackQueue` queue for collecting `onDOMReady` callbacks * during the performing of the transaction. */ var ON_DOM_READY_QUEUEING = { /** * Initializes the internal `onDOMReady` queue. */ initialize: function () { this.reactMountReady.reset(); }, close: emptyFunction }; /** * Executed within the scope of the `Transaction` instance. Consider these as * being member methods, but with an implied ordering while being isolated from * each other. */ var TRANSACTION_WRAPPERS = [ON_DOM_READY_QUEUEING]; /** * @class ReactServerRenderingTransaction * @param {boolean} renderToStaticMarkup */ function ReactServerRenderingTransaction(renderToStaticMarkup) { this.reinitializeTransaction(); this.renderToStaticMarkup = renderToStaticMarkup; this.reactMountReady = CallbackQueue.getPooled(null); this.useCreateElement = false; } var Mixin = { /** * @see Transaction * @abstract * @final * @return {array} Empty list of operation wrap procedures. */ getTransactionWrappers: function () { return TRANSACTION_WRAPPERS; }, /** * @return {object} The queue to collect `onDOMReady` callbacks with. */ getReactMountReady: function () { return this.reactMountReady; }, /** * `PooledClass` looks for this, and will invoke this before allowing this * instance to be reused. */ destructor: function () { CallbackQueue.release(this.reactMountReady); this.reactMountReady = null; } }; assign(ReactServerRenderingTransaction.prototype, Transaction.Mixin, Mixin); PooledClass.addPoolingTo(ReactServerRenderingTransaction); module.exports = ReactServerRenderingTransaction; /***/ }, /* 152 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactIsomorphic */ 'use strict'; var ReactChildren = __webpack_require__(110); var ReactComponent = __webpack_require__(123); var ReactClass = __webpack_require__(122); var ReactDOMFactories = __webpack_require__(153); var ReactElement = __webpack_require__(42); var ReactElementValidator = __webpack_require__(154); var ReactPropTypes = __webpack_require__(107); var ReactVersion = __webpack_require__(146); var assign = __webpack_require__(39); var onlyChild = __webpack_require__(156); var createElement = ReactElement.createElement; var createFactory = ReactElement.createFactory; var cloneElement = ReactElement.cloneElement; if (process.env.NODE_ENV !== 'production') { createElement = ReactElementValidator.createElement; createFactory = ReactElementValidator.createFactory; cloneElement = ReactElementValidator.cloneElement; } var React = { // Modern Children: { map: ReactChildren.map, forEach: ReactChildren.forEach, count: ReactChildren.count, toArray: ReactChildren.toArray, only: onlyChild }, Component: ReactComponent, createElement: createElement, cloneElement: cloneElement, isValidElement: ReactElement.isValidElement, // Classic PropTypes: ReactPropTypes, createClass: ReactClass.createClass, createFactory: createFactory, createMixin: function (mixin) { // Currently a noop. Will be used to validate and trace mixins. return mixin; }, // This looks DOM specific but these are actually isomorphic helpers // since they are just generating DOM strings. DOM: ReactDOMFactories, version: ReactVersion, // Hook for JSX spread, don't use this for anything else. __spread: assign }; module.exports = React; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 153 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMFactories * @typechecks static-only */ 'use strict'; var ReactElement = __webpack_require__(42); var ReactElementValidator = __webpack_require__(154); var mapObject = __webpack_require__(155); /** * Create a factory that creates HTML tag elements. * * @param {string} tag Tag name (e.g. `div`). * @private */ function createDOMFactory(tag) { if (process.env.NODE_ENV !== 'production') { return ReactElementValidator.createFactory(tag); } return ReactElement.createFactory(tag); } /** * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes. * This is also accessible via `React.DOM`. * * @public */ var ReactDOMFactories = mapObject({ a: 'a', abbr: 'abbr', address: 'address', area: 'area', article: 'article', aside: 'aside', audio: 'audio', b: 'b', base: 'base', bdi: 'bdi', bdo: 'bdo', big: 'big', blockquote: 'blockquote', body: 'body', br: 'br', button: 'button', canvas: 'canvas', caption: 'caption', cite: 'cite', code: 'code', col: 'col', colgroup: 'colgroup', data: 'data', datalist: 'datalist', dd: 'dd', del: 'del', details: 'details', dfn: 'dfn', dialog: 'dialog', div: 'div', dl: 'dl', dt: 'dt', em: 'em', embed: 'embed', fieldset: 'fieldset', figcaption: 'figcaption', figure: 'figure', footer: 'footer', form: 'form', h1: 'h1', h2: 'h2', h3: 'h3', h4: 'h4', h5: 'h5', h6: 'h6', head: 'head', header: 'header', hgroup: 'hgroup', hr: 'hr', html: 'html', i: 'i', iframe: 'iframe', img: 'img', input: 'input', ins: 'ins', kbd: 'kbd', keygen: 'keygen', label: 'label', legend: 'legend', li: 'li', link: 'link', main: 'main', map: 'map', mark: 'mark', menu: 'menu', menuitem: 'menuitem', meta: 'meta', meter: 'meter', nav: 'nav', noscript: 'noscript', object: 'object', ol: 'ol', optgroup: 'optgroup', option: 'option', output: 'output', p: 'p', param: 'param', picture: 'picture', pre: 'pre', progress: 'progress', q: 'q', rp: 'rp', rt: 'rt', ruby: 'ruby', s: 's', samp: 'samp', script: 'script', section: 'section', select: 'select', small: 'small', source: 'source', span: 'span', strong: 'strong', style: 'style', sub: 'sub', summary: 'summary', sup: 'sup', table: 'table', tbody: 'tbody', td: 'td', textarea: 'textarea', tfoot: 'tfoot', th: 'th', thead: 'thead', time: 'time', title: 'title', tr: 'tr', track: 'track', u: 'u', ul: 'ul', 'var': 'var', video: 'video', wbr: 'wbr', // SVG circle: 'circle', clipPath: 'clipPath', defs: 'defs', ellipse: 'ellipse', g: 'g', image: 'image', line: 'line', linearGradient: 'linearGradient', mask: 'mask', path: 'path', pattern: 'pattern', polygon: 'polygon', polyline: 'polyline', radialGradient: 'radialGradient', rect: 'rect', stop: 'stop', svg: 'svg', text: 'text', tspan: 'tspan' }, createDOMFactory); module.exports = ReactDOMFactories; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 154 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactElementValidator */ /** * ReactElementValidator provides a wrapper around a element factory * which validates the props passed to the element. This is intended to be * used only in DEV and could be replaced by a static type checker for languages * that support it. */ 'use strict'; var ReactElement = __webpack_require__(42); var ReactPropTypeLocations = __webpack_require__(65); var ReactPropTypeLocationNames = __webpack_require__(66); var ReactCurrentOwner = __webpack_require__(5); var canDefineProperty = __webpack_require__(43); var getIteratorFn = __webpack_require__(108); var invariant = __webpack_require__(13); var warning = __webpack_require__(25); function getDeclarationErrorAddendum() { if (ReactCurrentOwner.current) { var name = ReactCurrentOwner.current.getName(); if (name) { return ' Check the render method of `' + name + '`.'; } } return ''; } /** * Warn if there's no key explicitly set on dynamic arrays of children or * object keys are not valid. This allows us to keep track of children between * updates. */ var ownerHasKeyUseWarning = {}; var loggedTypeFailures = {}; /** * Warn if the element doesn't have an explicit key assigned to it. * This element is in an array. The array could grow and shrink or be * reordered. All children that haven't already been validated are required to * have a "key" property assigned to it. * * @internal * @param {ReactElement} element Element that requires a key. * @param {*} parentType element's parent's type. */ function validateExplicitKey(element, parentType) { if (!element._store || element._store.validated || element.key != null) { return; } element._store.validated = true; var addenda = getAddendaForKeyUse('uniqueKey', element, parentType); if (addenda === null) { // we already showed the warning return; } process.env.NODE_ENV !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s%s', addenda.parentOrOwner || '', addenda.childOwner || '', addenda.url || '') : undefined; } /** * Shared warning and monitoring code for the key warnings. * * @internal * @param {string} messageType A key used for de-duping warnings. * @param {ReactElement} element Component that requires a key. * @param {*} parentType element's parent's type. * @returns {?object} A set of addenda to use in the warning message, or null * if the warning has already been shown before (and shouldn't be shown again). */ function getAddendaForKeyUse(messageType, element, parentType) { var addendum = getDeclarationErrorAddendum(); if (!addendum) { var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; if (parentName) { addendum = ' Check the top-level render call using <' + parentName + '>.'; } } var memoizer = ownerHasKeyUseWarning[messageType] || (ownerHasKeyUseWarning[messageType] = {}); if (memoizer[addendum]) { return null; } memoizer[addendum] = true; var addenda = { parentOrOwner: addendum, url: ' See path_to_url for more information.', childOwner: null }; // Usually the current owner is the offender, but if it accepts children as a // property, it may be the creator of the child that's responsible for // assigning it a key. if (element && element._owner && element._owner !== ReactCurrentOwner.current) { // Give the component that originally created this child. addenda.childOwner = ' It was passed a child from ' + element._owner.getName() + '.'; } return addenda; } /** * Ensure that every element either is passed in a static location, in an * array with an explicit keys property defined, or in an object literal * with valid key property. * * @internal * @param {ReactNode} node Statically passed child of any type. * @param {*} parentType node's parent's type. */ function validateChildKeys(node, parentType) { if (typeof node !== 'object') { return; } if (Array.isArray(node)) { for (var i = 0; i < node.length; i++) { var child = node[i]; if (ReactElement.isValidElement(child)) { validateExplicitKey(child, parentType); } } } else if (ReactElement.isValidElement(node)) { // This element was passed in a valid location. if (node._store) { node._store.validated = true; } } else if (node) { var iteratorFn = getIteratorFn(node); // Entry iterators provide implicit keys. if (iteratorFn) { if (iteratorFn !== node.entries) { var iterator = iteratorFn.call(node); var step; while (!(step = iterator.next()).done) { if (ReactElement.isValidElement(step.value)) { validateExplicitKey(step.value, parentType); } } } } } } /** * Assert that the props are valid * * @param {string} componentName Name of the component for error messages. * @param {object} propTypes Map of prop name to a ReactPropType * @param {object} props * @param {string} location e.g. "prop", "context", "child context" * @private */ function checkPropTypes(componentName, propTypes, props, location) { for (var propName in propTypes) { if (propTypes.hasOwnProperty(propName)) { var error; // Prop type validation may throw. In case they do, we don't want to // fail the render phase where it didn't fail before. So we log it. // After these have been cleaned up, we'll let them throw. try { // This is intentionally an invariant that gets caught. It's the same // behavior as without this statement except with a better message. !(typeof propTypes[propName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], propName) : invariant(false) : undefined; error = propTypes[propName](props, propName, componentName, location); } catch (ex) { error = ex; } process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], propName, typeof error) : undefined; if (error instanceof Error && !(error.message in loggedTypeFailures)) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error.message] = true; var addendum = getDeclarationErrorAddendum(); process.env.NODE_ENV !== 'production' ? warning(false, 'Failed propType: %s%s', error.message, addendum) : undefined; } } } } /** * Given an element, validate that its props follow the propTypes definition, * provided by the type. * * @param {ReactElement} element */ function validatePropTypes(element) { var componentClass = element.type; if (typeof componentClass !== 'function') { return; } var name = componentClass.displayName || componentClass.name; if (componentClass.propTypes) { checkPropTypes(name, componentClass.propTypes, element.props, ReactPropTypeLocations.prop); } if (typeof componentClass.getDefaultProps === 'function') { process.env.NODE_ENV !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : undefined; } } var ReactElementValidator = { createElement: function (type, props, children) { var validType = typeof type === 'string' || typeof type === 'function'; // We warn in this case but don't throw. We expect the element creation to // succeed and there will likely be errors in render. process.env.NODE_ENV !== 'production' ? warning(validType, 'React.createElement: type should not be null, undefined, boolean, or ' + 'number. It should be a string (for DOM elements) or a ReactClass ' + '(for composite components).%s', getDeclarationErrorAddendum()) : undefined; var element = ReactElement.createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { return element; } // Skip key warning if the type isn't valid since our key validation logic // doesn't expect a non-string/function type and can throw confusing errors. // We don't want exception behavior to differ between dev and prod. // (Rendering will throw with a helpful message and as soon as the type is // fixed, the key warnings will appear.) if (validType) { for (var i = 2; i < arguments.length; i++) { validateChildKeys(arguments[i], type); } } validatePropTypes(element); return element; }, createFactory: function (type) { var validatedFactory = ReactElementValidator.createElement.bind(null, type); // Legacy hook TODO: Warn if this is accessed validatedFactory.type = type; if (process.env.NODE_ENV !== 'production') { if (canDefineProperty) { Object.defineProperty(validatedFactory, 'type', { enumerable: false, get: function () { process.env.NODE_ENV !== 'production' ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : undefined; Object.defineProperty(this, 'type', { value: type }); return type; } }); } } return validatedFactory; }, cloneElement: function (element, props, children) { var newElement = ReactElement.cloneElement.apply(this, arguments); for (var i = 2; i < arguments.length; i++) { validateChildKeys(arguments[i], newElement.type); } validatePropTypes(newElement); return newElement; } }; module.exports = ReactElementValidator; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 155 */ /***/ function(module, exports) { /** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule mapObject */ 'use strict'; var hasOwnProperty = Object.prototype.hasOwnProperty; /** * Executes the provided `callback` once for each enumerable own property in the * object and constructs a new object from the results. The `callback` is * invoked with three arguments: * * - the property value * - the property name * - the object being traversed * * Properties that are added after the call to `mapObject` will not be visited * by `callback`. If the values of existing properties are changed, the value * passed to `callback` will be the value at the time `mapObject` visits them. * Properties that are deleted before being visited are not visited. * * @grep function objectMap() * @grep function objMap() * * @param {?object} object * @param {function} callback * @param {*} context * @return {?object} */ function mapObject(object, callback, context) { if (!object) { return null; } var result = {}; for (var name in object) { if (hasOwnProperty.call(object, name)) { result[name] = callback.call(context, object[name], name, object); } } return result; } module.exports = mapObject; /***/ }, /* 156 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule onlyChild */ 'use strict'; var ReactElement = __webpack_require__(42); var invariant = __webpack_require__(13); /** * Returns the first child in a collection of children and verifies that there * is only one child in the collection. The current implementation of this * function assumes that a single child gets passed without a wrapper, but the * purpose of this helper function is to abstract away the particular structure * of children. * * @param {?object} children Child collection structure. * @return {ReactComponent} The first and only `ReactComponent` contained in the * structure. */ function onlyChild(children) { !ReactElement.isValidElement(children) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'onlyChild must be passed a children with exactly one child.') : invariant(false) : undefined; return children; } module.exports = onlyChild; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 157 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule deprecated */ 'use strict'; var assign = __webpack_require__(39); var warning = __webpack_require__(25); /** * This will log a single deprecation notice per function and forward the call * on to the new API. * * @param {string} fnName The name of the function * @param {string} newModule The module that fn will exist in * @param {string} newPackage The module that fn will exist in * @param {*} ctx The context this forwarded call should run in * @param {function} fn The function to forward on to * @return {function} The function that will warn once and then call fn */ function deprecated(fnName, newModule, newPackage, ctx, fn) { var warned = false; if (process.env.NODE_ENV !== 'production') { var newFn = function () { process.env.NODE_ENV !== 'production' ? warning(warned, // Require examples in this string must be split to prevent React's // build tools from mistaking them for real requires. // Otherwise the build tools will attempt to build a '%s' module. 'React.%s is deprecated. Please use %s.%s from require' + '(\'%s\') ' + 'instead.', fnName, newModule, fnName, newPackage) : undefined; warned = true; return fn.apply(ctx, arguments); }; // We need to make sure all properties of the original fn are copied over. // In particular, this is needed to support PropTypes return assign(newFn, fn); } return fn; } module.exports = deprecated; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 158 */, /* 159 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _createStore = __webpack_require__(160); var _createStore2 = _interopRequireDefault(_createStore); var _utilsCombineReducers = __webpack_require__(162); var _utilsCombineReducers2 = _interopRequireDefault(_utilsCombineReducers); var _utilsBindActionCreators = __webpack_require__(165); var _utilsBindActionCreators2 = _interopRequireDefault(_utilsBindActionCreators); var _utilsApplyMiddleware = __webpack_require__(166); var _utilsApplyMiddleware2 = _interopRequireDefault(_utilsApplyMiddleware); var _utilsCompose = __webpack_require__(167); var _utilsCompose2 = _interopRequireDefault(_utilsCompose); exports.createStore = _createStore2['default']; exports.combineReducers = _utilsCombineReducers2['default']; exports.bindActionCreators = _utilsBindActionCreators2['default']; exports.applyMiddleware = _utilsApplyMiddleware2['default']; exports.compose = _utilsCompose2['default']; /***/ }, /* 160 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports['default'] = createStore; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _utilsIsPlainObject = __webpack_require__(161); var _utilsIsPlainObject2 = _interopRequireDefault(_utilsIsPlainObject); /** * These are private action types reserved by Redux. * For any unknown actions, you must return the current state. * If the current state is undefined, you must return the initial state. * Do not reference these action types directly in your code. */ var ActionTypes = { INIT: '@@redux/INIT' }; exports.ActionTypes = ActionTypes; /** * Creates a Redux store that holds the state tree. * The only way to change the data in the store is to call `dispatch()` on it. * * There should only be a single store in your app. To specify how different * parts of the state tree respond to actions, you may combine several reducers * into a single reducer function by using `combineReducers`. * * @param {Function} reducer A function that returns the next state tree, given * the current state tree and the action to handle. * * @param {any} [initialState] The initial state. You may optionally specify it * to hydrate the state from the server in universal apps, or to restore a * previously serialized user session. * If you use `combineReducers` to produce the root reducer function, this must be * an object with the same shape as `combineReducers` keys. * * @returns {Store} A Redux store that lets you read the state, dispatch actions * and subscribe to changes. */ function createStore(reducer, initialState) { if (typeof reducer !== 'function') { throw new Error('Expected the reducer to be a function.'); } var currentReducer = reducer; var currentState = initialState; var listeners = []; var isDispatching = false; /** * Reads the state tree managed by the store. * * @returns {any} The current state tree of your application. */ function getState() { return currentState; } /** * Adds a change listener. It will be called any time an action is dispatched, * and some part of the state tree may potentially have changed. You may then * call `getState()` to read the current state tree inside the callback. * * @param {Function} listener A callback to be invoked on every dispatch. * @returns {Function} A function to remove this change listener. */ function subscribe(listener) { listeners.push(listener); var isSubscribed = true; return function unsubscribe() { if (!isSubscribed) { return; } isSubscribed = false; var index = listeners.indexOf(listener); listeners.splice(index, 1); }; } /** * Dispatches an action. It is the only way to trigger a state change. * * The `reducer` function, used to create the store, will be called with the * current state tree and the given `action`. Its return value will * be considered the **next** state of the tree, and the change listeners * will be notified. * * The base implementation only supports plain object actions. If you want to * dispatch a Promise, an Observable, a thunk, or something else, you need to * wrap your store creating function into the corresponding middleware. For * example, see the documentation for the `redux-thunk` package. Even the * middleware will eventually dispatch plain object actions using this method. * * @param {Object} action A plain object representing what changed. It is * a good idea to keep actions serializable so you can record and replay user * sessions, or use the time travelling `redux-devtools`. An action must have * a `type` property which may not be `undefined`. It is a good idea to use * string constants for action types. * * @returns {Object} For convenience, the same action object you dispatched. * * Note that, if you use a custom middleware, it may wrap `dispatch()` to * return something else (for example, a Promise you can await). */ function dispatch(action) { if (!_utilsIsPlainObject2['default'](action)) { throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.'); } if (typeof action.type === 'undefined') { throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?'); } if (isDispatching) { throw new Error('Reducers may not dispatch actions.'); } try { isDispatching = true; currentState = currentReducer(currentState, action); } finally { isDispatching = false; } listeners.slice().forEach(function (listener) { return listener(); }); return action; } /** * Replaces the reducer currently used by the store to calculate the state. * * You might need this if your app implements code splitting and you want to * load some of the reducers dynamically. You might also need this if you * implement a hot reloading mechanism for Redux. * * @param {Function} nextReducer The reducer for the store to use instead. * @returns {void} */ function replaceReducer(nextReducer) { currentReducer = nextReducer; dispatch({ type: ActionTypes.INIT }); } // When a store is created, an "INIT" action is dispatched so that every // reducer returns their initial state. This effectively populates // the initial state tree. dispatch({ type: ActionTypes.INIT }); return { dispatch: dispatch, subscribe: subscribe, getState: getState, replaceReducer: replaceReducer }; } /***/ }, /* 161 */ /***/ function(module, exports) { 'use strict'; exports.__esModule = true; exports['default'] = isPlainObject; var fnToString = function fnToString(fn) { return Function.prototype.toString.call(fn); }; var objStringValue = fnToString(Object); /** * @param {any} obj The object to inspect. * @returns {boolean} True if the argument appears to be a plain object. */ function isPlainObject(obj) { if (!obj || typeof obj !== 'object') { return false; } var proto = typeof obj.constructor === 'function' ? Object.getPrototypeOf(obj) : Object.prototype; if (proto === null) { return true; } var constructor = proto.constructor; return typeof constructor === 'function' && constructor instanceof constructor && fnToString(constructor) === objStringValue; } module.exports = exports['default']; /***/ }, /* 162 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports['default'] = combineReducers; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _createStore = __webpack_require__(160); var _isPlainObject = __webpack_require__(161); var _isPlainObject2 = _interopRequireDefault(_isPlainObject); var _mapValues = __webpack_require__(163); var _mapValues2 = _interopRequireDefault(_mapValues); var _pick = __webpack_require__(164); var _pick2 = _interopRequireDefault(_pick); /* eslint-disable no-console */ function getUndefinedStateErrorMessage(key, action) { var actionType = action && action.type; var actionName = actionType && '"' + actionType.toString() + '"' || 'an action'; return 'Reducer "' + key + '" returned undefined handling ' + actionName + '. ' + 'To ignore an action, you must explicitly return the previous state.'; } function getUnexpectedStateKeyWarningMessage(inputState, outputState, action) { var reducerKeys = Object.keys(outputState); var argumentName = action && action.type === _createStore.ActionTypes.INIT ? 'initialState argument passed to createStore' : 'previous state received by the reducer'; if (reducerKeys.length === 0) { return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; } if (!_isPlainObject2['default'](inputState)) { return 'The ' + argumentName + ' has unexpected type of "' + ({}).toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + '". Expected argument to be an object with the following ' + ('keys: "' + reducerKeys.join('", "') + '"'); } var unexpectedKeys = Object.keys(inputState).filter(function (key) { return reducerKeys.indexOf(key) < 0; }); if (unexpectedKeys.length > 0) { return 'Unexpected ' + (unexpectedKeys.length > 1 ? 'keys' : 'key') + ' ' + ('"' + unexpectedKeys.join('", "') + '" found in ' + argumentName + '. ') + 'Expected to find one of the known reducer keys instead: ' + ('"' + reducerKeys.join('", "') + '". Unexpected keys will be ignored.'); } } function assertReducerSanity(reducers) { Object.keys(reducers).forEach(function (key) { var reducer = reducers[key]; var initialState = reducer(undefined, { type: _createStore.ActionTypes.INIT }); if (typeof initialState === 'undefined') { throw new Error('Reducer "' + key + '" returned undefined during initialization. ' + 'If the state passed to the reducer is undefined, you must ' + 'explicitly return the initial state. The initial state may ' + 'not be undefined.'); } var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.'); if (typeof reducer(undefined, { type: type }) === 'undefined') { throw new Error('Reducer "' + key + '" returned undefined when probed with a random type. ' + ('Don\'t try to handle ' + _createStore.ActionTypes.INIT + ' or other actions in "redux/*" ') + 'namespace. They are considered private. Instead, you must return the ' + 'current state for any unknown actions, unless it is undefined, ' + 'in which case you must return the initial state, regardless of the ' + 'action type. The initial state may not be undefined.'); } }); } /** * Turns an object whose values are different reducer functions, into a single * reducer function. It will call every child reducer, and gather their results * into a single state object, whose keys correspond to the keys of the passed * reducer functions. * * @param {Object} reducers An object whose values correspond to different * reducer functions that need to be combined into one. One handy way to obtain * it is to use ES6 `import * as reducers` syntax. The reducers may never return * undefined for any action. Instead, they should return their initial state * if the state passed to them was undefined, and the current state for any * unrecognized action. * * @returns {Function} A reducer function that invokes every reducer inside the * passed object, and builds a state object with the same shape. */ function combineReducers(reducers) { var finalReducers = _pick2['default'](reducers, function (val) { return typeof val === 'function'; }); var sanityError; try { assertReducerSanity(finalReducers); } catch (e) { sanityError = e; } var defaultState = _mapValues2['default'](finalReducers, function () { return undefined; }); return function combination(state, action) { if (state === undefined) state = defaultState; if (sanityError) { throw sanityError; } var hasChanged = false; var finalState = _mapValues2['default'](finalReducers, function (reducer, key) { var previousStateForKey = state[key]; var nextStateForKey = reducer(previousStateForKey, action); if (typeof nextStateForKey === 'undefined') { var errorMessage = getUndefinedStateErrorMessage(key, action); throw new Error(errorMessage); } hasChanged = hasChanged || nextStateForKey !== previousStateForKey; return nextStateForKey; }); if (process.env.NODE_ENV !== 'production') { var warningMessage = getUnexpectedStateKeyWarningMessage(state, finalState, action); if (warningMessage) { console.error(warningMessage); } } return hasChanged ? finalState : state; }; } module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4))) /***/ }, /* 163 */ /***/ function(module, exports) { /** * Applies a function to every key-value pair inside an object. * * @param {Object} obj The source object. * @param {Function} fn The mapper function that receives the value and the key. * @returns {Object} A new object that contains the mapped values for the keys. */ "use strict"; exports.__esModule = true; exports["default"] = mapValues; function mapValues(obj, fn) { return Object.keys(obj).reduce(function (result, key) { result[key] = fn(obj[key], key); return result; }, {}); } module.exports = exports["default"]; /***/ }, /* 164 */ /***/ function(module, exports) { /** * Picks key-value pairs from an object where values satisfy a predicate. * * @param {Object} obj The object to pick from. * @param {Function} fn The predicate the values must satisfy to be copied. * @returns {Object} The object with the values that satisfied the predicate. */ "use strict"; exports.__esModule = true; exports["default"] = pick; function pick(obj, fn) { return Object.keys(obj).reduce(function (result, key) { if (fn(obj[key])) { result[key] = obj[key]; } return result; }, {}); } module.exports = exports["default"]; /***/ }, /* 165 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports['default'] = bindActionCreators; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _mapValues = __webpack_require__(163); var _mapValues2 = _interopRequireDefault(_mapValues); function bindActionCreator(actionCreator, dispatch) { return function () { return dispatch(actionCreator.apply(undefined, arguments)); }; } /** * Turns an object whose values are action creators, into an object with the * same keys, but with every function wrapped into a `dispatch` call so they * may be invoked directly. This is just a convenience method, as you can call * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. * * For convenience, you can also pass a single function as the first argument, * and get a function in return. * * @param {Function|Object} actionCreators An object whose values are action * creator functions. One handy way to obtain it is to use ES6 `import * as` * syntax. You may also pass a single function. * * @param {Function} dispatch The `dispatch` function available on your Redux * store. * * @returns {Function|Object} The object mimicking the original object, but with * every action creator wrapped into the `dispatch` call. If you passed a * function as `actionCreators`, the return value will also be a single * function. */ function bindActionCreators(actionCreators, dispatch) { if (typeof actionCreators === 'function') { return bindActionCreator(actionCreators, dispatch); } if (typeof actionCreators !== 'object' || actionCreators === null || actionCreators === undefined) { throw new Error('bindActionCreators expected an object or a function, instead received ' + (actionCreators === null ? 'null' : typeof actionCreators) + '. ' + 'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?'); } return _mapValues2['default'](actionCreators, function (actionCreator) { return bindActionCreator(actionCreator, dispatch); }); } module.exports = exports['default']; /***/ }, /* 166 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; exports['default'] = applyMiddleware; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _compose = __webpack_require__(167); var _compose2 = _interopRequireDefault(_compose); /** * Creates a store enhancer that applies middleware to the dispatch method * of the Redux store. This is handy for a variety of tasks, such as expressing * asynchronous actions in a concise manner, or logging every action payload. * * See `redux-thunk` package as an example of the Redux middleware. * * Because middleware is potentially asynchronous, this should be the first * store enhancer in the composition chain. * * Note that each middleware will be given the `dispatch` and `getState` functions * as named arguments. * * @param {...Function} middlewares The middleware chain to be applied. * @returns {Function} A store enhancer applying the middleware. */ function applyMiddleware() { for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) { middlewares[_key] = arguments[_key]; } return function (next) { return function (reducer, initialState) { var store = next(reducer, initialState); var _dispatch = store.dispatch; var chain = []; var middlewareAPI = { getState: store.getState, dispatch: function dispatch(action) { return _dispatch(action); } }; chain = middlewares.map(function (middleware) { return middleware(middlewareAPI); }); _dispatch = _compose2['default'].apply(undefined, chain)(store.dispatch); return _extends({}, store, { dispatch: _dispatch }); }; }; } module.exports = exports['default']; /***/ }, /* 167 */ /***/ function(module, exports) { /** * Composes single-argument functions from right to left. * * @param {...Function} funcs The functions to compose. * @returns {Function} A function obtained by composing functions from right to * left. For example, compose(f, g, h) is identical to arg => f(g(h(arg))). */ "use strict"; exports.__esModule = true; exports["default"] = compose; function compose() { for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { funcs[_key] = arguments[_key]; } return function (arg) { return funcs.reduceRight(function (composed, f) { return f(composed); }, arg); }; } module.exports = exports["default"]; /***/ } /******/ ]); ```
```c++ // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #if defined(__EMSCRIPTEN__) #include "osfiber_emscripten.h" #include "marl/export.h" extern "C" { MARL_EXPORT void marl_fiber_trampoline(void (*target)(void*), void* arg) { target(arg); } MARL_EXPORT void marl_main_fiber_init(marl_fiber_context* ctx) { emscripten_fiber_init_from_current_context( &ctx->context, ctx->asyncify_stack.data(), ctx->asyncify_stack.size()); } MARL_EXPORT void marl_fiber_set_target(marl_fiber_context* ctx, void* stack, uint32_t stack_size, void (*target)(void*), void* arg) { emscripten_fiber_init( &ctx->context, target, arg, stack, stack_size, ctx->asyncify_stack.data(), ctx->asyncify_stack.size()); } MARL_EXPORT extern void marl_fiber_swap(marl_fiber_context* from, const marl_fiber_context* to) { emscripten_fiber_swap(&from->context, const_cast<emscripten_fiber_t*>(&to->context)); } } #endif // defined(__EMSCRIPTEN__) ```
Kwangmyŏngsŏng-3 Unit 2 or Gwangmyeongseong-3 ho 2-hogi (; English: Bright Star-3 Unit 2 or Lodestar-3 Unit 2) is the first satellite successfully launched from North Korea, an Earth observation spacecraft that was launched on 12 December 2012, 00:49 UTC, in order to replace the original Kwangmyŏngsŏng-3, which failed to reach orbit on 13 April 2012. The United Nations Security Council condemned the satellite launch, regarding it as a violation of the ban on North Korean ballistic missile tests, as the rocket technology is the same. The launch came during the period when the DPRK was commemorating the first anniversary of the death of former leader Kim Jong-il and just before the first South Korean domestic launch of a satellite and the South Korean presidential election on 19 December 2012. The successful launch makes the DPRK the tenth space power capable of putting satellites in orbit using its own launch vehicles. North Korea declared the launch successful, and the South Korean military and North American Aerospace Defense Command (NORAD) reported that initial indications suggested that an object had achieved orbit. North Korea had previously claimed the Kwangmyŏngsŏng-1 and Kwangmyŏngsŏng-2 launches as successful, despite American military sources claiming that they failed to achieve orbit. Several days after the launch, Western sources stated that, while the satellite had indeed initially achieved orbit, it now seemed to be tumbling, and was probably out of control. Etymology The name "Kwangmyŏngsŏng" is richly symbolic for North Korean nationalism and the Kim family cult. While Soviet records recount that the late North Korean leader Kim Jong-il was born in the village of Vyatskoye near Khabarovsk in the Russian Far East, DPRK internal sources claim that Kim was born on Mount Baekdu and that on that day a bright lodestar ("kwangmyŏngsŏng") appeared in the sky. Background The launch of Kwangmyŏngsŏng-3 Unit 2 was the fourth North Korean attempt to orbit a satellite, and North Korea claimed that two of the previous launches had placed their payloads into orbit despite several other countries confirming that the launches had failed, and no independent confirmation that the satellite was in orbit. The first attempt occurred in August 1998, with a Baekdusan carrier rocket attempting to launch Kwangmyŏngsŏng-1; the second occurred in April 2009 with Kwangmyŏngsŏng-2, and the third in April 2012 with the original Kwangmyŏngsŏng-3. The April 2012 launch was the only one which North Korea acknowledged to have failed. The rocket was largely made using domestically produced parts and technology; this ability is seen as cause for greater concern over North Korea's ability to develop ballistic missile technology despite sanctions. Pre-launch announcement The launch was announced on 1 December 2012, when the Korean Central News Agency reported that the Korean Committee of Space Technology informed them that they "[plan] to launch another working satellite, second version of Kwangmyŏngsŏng-3, manufactured by its own efforts and with its own technology, true to the behests of leader Kim Jong-il," with a prospective launch window of 10–22 December 2012 given. The launcher splashdown zones were reported to the International Maritime Organization, indicating a polar orbit was intended. On 8 December 2012, KCNA reported that the KCST answered the "question raised by KCNA, as regards the launch of the second version of Kwangmyŏngsŏng-3 satellite" and also reported that the launch period was extended to 29 December 2012. Satellite North Korea claims the satellite would estimate crop yields and collect weather data as well as assess the country's forest coverage and natural resources. The country also claims that the satellite weighed about 100 kg (220 lbs) and that its planned lifetime was about two years. Launch On 12 December 2012, Kwangmyŏngsŏng-3 was launched from the Sohae Satellite Launching Ground at 00:49:46 UTC (09:49 KST). The North American Aerospace Defense Command was able to track the rocket at this time. The first stage impacted the ocean off the west coast of South Korea at 00:58, with the fairing coming down one minute later downrange. At 01:01, the rocket flew over Okinawa, with the second stage impacting east of the Philippines four minutes later. During the ascent the rocket performed a dog-leg manoeuvre to increase its inclination sufficiently to attain Sun-synchronous orbit. The satellite was deployed into a Sun-synchronous polar orbit with an apogee of , a perigee of , 97.4 degrees of orbital inclination, and an orbital period of 95 minutes and 29 seconds. The spacecraft separated from the rocket's third stage at 00:59:13; nine minutes and 27 seconds after liftoff. The U.S. Space Command began to track three objects from the launch, giving Kwangmyŏngsŏng-3 the Satellite Catalog Number 39026 and the international designator 2012-072A. They later began tracking a fourth object that was related to the launch. The following day, U.S. officials tracking the satellite reported that it appeared to be "tumbling out of control" in its orbit. However North Korean sources said that the satellite was orbiting normally. Data collected by Spain, Italy and Britain suggest the brightness of the satellite has been fluctuating, which indicates it is tumbling as it orbits. Examination South Korean missile experts examined components of the missile from the two stages of the rocket that fell back to Earth. Initially they reported the components were of poor quality and some foreign made. Further examination revealed that most of the components were produced domestically in North Korea. They were effective for the launch, but found mostly to be crude, unreliable, and inefficient. The rocket design was based on older technologies of the 1960s and 70s. The design of the rocket engine was almost identical to one built in Iran. Reaction At noon local time, the Korean Central News Agency released a news report on the launch: The report was followed by a more detailed report later in the afternoon stating: On 20 December, the Korean Central Television aired a 27-minute documentary titled "Successful Launch of Kwangmyongsong 3-2 under the Leadership of Dear Respected Marshal Kim Jong-Un". The documentary showed footage of the preparations for the rocket launch and how Kim Jong-Un was involved in the preparations. Internal celebrations Government vans with loudspeakers brought the news of the launch of Kwangmyŏngsŏng-3 to Pyongyang soon after the launch. On 14 December state television in North Korea broadcast images of hundreds of thousands of people celebrating the successful launch in Pyongyang's central square, while military and scientific personnel gave speeches. According to the news report, Kim Jong-Un had ordered more satellite launches after achieving orbit with Kwangmyŏngsŏng-3. International response Countries – Prime minister Julia Gillard labelled the launch as a "provocative and irresponsible act", and a violation of United Nations Security Council resolutions. – The Itamaraty issued a statement condemning the rocket launch and called for North Korea to "comply in full with the applicable resolutions of the U.N. Security Council" and asked for the resuming of negotiations "on peace and security in the Korean Peninsula". – The Foreign ministry described the launch as "a clear violation of the international obligations of the DPRK" and urged North Korea to refrain from further actions that could lead to the "isolation of the country". – Canada condemned the missile launch, and Foreign Affairs Minister John Baird stated that North Korea's actions "clearly demonstrate its wilful defiance of its international obligations". He also added that the regime has shown disregard for its people by funding military and nuclear programs before providing basic necessities for its citizens. – The Foreign ministry expressed concerns and "hope[d] parties concerned can take a long-term perspective, deal with this calmly and appropriately, avoid taking actions that may further escalate the situation, and jointly maintain the peace and stability on the Korean Peninsula and in the region as a whole." – Colombia, in consonance with the United Nations Security Council, being a non-permanent member on the time of the launch, and having ratified the Treaty on the Non-Proliferation of Nuclear Weapons, condemned the launch of the rocket Unha-3 executed by the DPRK via a press release from the Ministry of Foreign Affairs. Colombia also noted that "the DPRK breaches the resolution 1718 of 2006 as well as 1874 of 2009," and urged it to comply with the resolutions, adding, "such act affects the stability in the Korean Peninsula as well as international peace and security." – The Ministry of Foreign Affairs was deeply concerned about the implemented rocket launch. The launching was considered a clear violation of the country's international obligations and UN Security Council Resolution 1718 and 1874. Hungary called upon the DPRK to abide by its international obligations especially as it is defined by the relevant UN Security Council Resolutions. Hungary also urged the DPRK to refrain from any destabilising actions that could have further increased tensions in the region. – India's Ministry of External Affairs condemned the launch, saying it was concerned that 'unwarranted action' by North Korea would impact the stability of the whole peninsula, and noting that it was a violation of U.N. Security Council Resolution 1874. – General Masoud Jazaeri, a senior military official, congratulated North Korea on the launch, saying that "experience has shown that independent countries, by self-confidence and perseverance, can quickly reach the height of self-sufficiency in science and technology. Hegemonic powers, such as the United States, are unable to stop the progress of such countries." – Government spokesman Osamu Fujimura condemned the launch, saying that "it is extremely regrettable that North Korea went through with the launch despite our calls to exercise restraint. Our country cannot tolerate this. We strongly protest to North Korea." – The Department of Foreign Affairs condemned the launch, stating that the decision was in "clear violation" of three UN Security Council resolutions which "explicitly demanded the country not to use or conduct any launch using ballistic missile technology and the suspension of its ballistic missile program." – The Ministry of Foreign Affairs strongly condemned the launch, stating that North Korea "blatantly encroached upon the UN Security Council resolutions" and adding that "Romania, throughout its mandate of Local Representation of the EU in Pyongyang in the second half of 2012, has repeatedly conveyed messages to the DPRK authorities [...] demanding that Pyongyang refrain from any action affecting peace and security in North-East Asia." – The Foreign ministry released a statement stating "The new rocket launch carried out by North Korea [flouts] the opinion of the international community, including calls from the Russian side, and leaves us with deep regret." Russian Defense Ministry said its early missile warning systems had tracked the rocket launch along a southern trajectory, the Interfax-AVN military news agency reported. – Foreign Minister Kim Sung-hwan strongly denounced the launch, saying that "North Korea ignored repeated warnings and demands by the international community" and that "it should bear grave responsibility for the launch as the U.N. Security Council warned with its presidential statement in April." The Republic of Korea Navy later salvaged debris from the rocket, and a South Korean senior military official said, based on the debris, that the design of the oxidizer tank suggested an "Iran connection". – Via a spokesperson, President Ma Ying-jeou expressed that "the two North Korean rocket tests of this year have caused an uneasy situation in East Asia", and that he believed that such actions were unwise. It was also announced that Taiwan supported the international community in its opposition to North Korea's actions. – Foreign Secretary William Hague stated that he "deplore[d] the fact that the DPRK has chosen to prioritise this launch over improving the livelihood of its people". – A spokesman for the National Security Council described the launch as "another example of North Korea's pattern of irresponsible behavior" and called for "a clear message to North Korea that its violations of U.N. Security Council resolutions have consequences." – Foreign Ministry's Spokesperson Luong Thanh Nghi stressed " We expect relevant parties will not take actions harmful to the region's peace and stability and strictly observe the United Nations Security Council Resolution 1874". Organizations – The Secretary General described the launch as a "provocative act" which "exacerbates tensions in the region and risks further destabilising the Korean peninsula". – The Secretary-General Ban Ki-moon condemned the launch as a violation of United Nations Security Council Resolution 1874 by conducting a launch using ballistic missile technology. Registration On 22 February 2013, the Permanent Mission of the Democratic People's Republic of Korea to the United Nations registered the satellite in conformity with the Convention on Registration of Objects Launched into Outer Space. In the registration, North Korea states that the function is to survey crops, forest resources and natural disasters. References External links Live time satellite tracking 2012 in North Korea Spacecraft launched in 2012 Earth observation satellites Space program of North Korea First artificial satellites of a country Derelict satellites orbiting Earth
Franz Schnabel (18 December 1887, Mannheim – 25 February 1966, Munich) was a German historian. He wrote about German history, particularly the "cultural crisis" of the 19th century in Germany as well as humanism after the end of the Third Reich. He opposed Nazism during the Second World War. Early life Schnabel was born in Mannheim as the son of the merchant Karl Schnabel and his wife Maria Anna, née Guillemin. Schnabel's parents - the father, a Protestant, the mother a Catholic - had married in 1885 and raised their three children n the Roman Catholic Church faith: the second born Franz had an older and a younger sister. Schnabel grew in the milieu of liberalism in Baden. The bourgeoisie of his native city and, looking back, the close relationship to France that existed through his mother's family, had a formative influence on his personal development: "Thanks to my mother's relatives I came to Normandy and Paris as a boy. But whoever treads French soil in his youth will always take with him a sense of the great contours of world history". Schnabel attended the from which he graduated in 1906. He then studied History, German studies, French and Latin at the Humboldt University of Berlin and the Ruprecht-Karls-University Heidelberg. In 1910, he passed the Staatsexamen for the teaching profession at grammar schools and was awarded his doctorate in the same year under Hermann Oncken with the thesis The Unification of Political Catholicism in Germany in 1848. Career Early career In 1911, Schnabel entered the Baden teaching profession as a teacher's candidate, but took leave of absence at the beginning of 1914 to work on a History of the Baden Estates on behalf of the . The project could not be realised due to the outbreak of the First World War: Schnabel was drafted in April 1915, served on the Western Front throughout the war and was not released from the army until February 1919. He immediately returned to the Baden school system and taught Latin, French, and history at Karlsruhe schools: 1919/20 at the , Germany's first grammar school for girls, and 1920 to 1922 at the Goethe-Gymnasium Karlsruhe, a secondary school for boys. Parallel to his teaching, Schnabel, encouraged by the teacher Oncken, pursued his scientific career and habilitated as early as 1920 at the Karlsruhe Institute of Technology with the paper Geschichte der Ministerverantwortlichkeit in Baden, supervised by Hermann Wätjen. As early as 1922, he was appointed to the historical chair at the Technical University of Karlsruhe, which he held until his dismissal in 1936. In addition to his professorship, Schnabel served as director of the from 1924 to 1927. Schnabel's years at the Karlsruhe chair were characterised by extraordinary productivity. Following his habilitation thesis, he continued his research on early constitutionalism in Baden and in 1927, published two concise biographies of the Baden politicians, compiled from archival material Sigismund von Reitzenstein and Ludwig von Liebenstein. Already in 1920, Schnabel had taken over the elaboration of a source study, which was to achieve for modern history what Wilhelm Wattenbach had achieved for the Middle Ages; the work, published in 1931 and still relevant today, made the sources of the Reformation period accessible until 1550, but was not continued by Schnabelt. In the same year 1931, on the occasion of the 100th anniversary of the death of Heinrich Friedrich Karl vom und zum Stein, Schnabel published a brief biography of the Prussian reformer, who was accused by Gerhard Ritter of instrumentalizing Stein for current political purposes; Schnabel and Ritter discussed this question controversially. In the Weimar years, Schnabel also emerged as a textbook author: his textbook Geschichte der neuesten Zeit, first published in 1923 by B. G. Teubner Verlag, was also published as an independent work for other circles, had several editions and was still relevant for students after 1945. Above all, however, Schnabel's main work since the mid-1920s was the Deutsche Geschichte im neunzehnten Jahrhundert, which appeared in four volumes in 1929, 1933, 1934, and 1937. In this unfinished work, which did not go beyond the year 1840, Schnabel attempted to analyse the political history as well as the social, cultural, economic, and technological history of the 19th century in their interaction and to interpret them as prerequisites for the "cultural crisis" of the 20th century. A fifth volume entitled Das Erwachen des deutschen Volkstums was completed by Schnabel as a manuscript, but could not be published because of the Nazi censorship. In contrast to most historians of his time, Schnabel had a positive attitude towards the Weimar Republic, which he expressed in public, in lectures, and in his scientific work, but without becoming involved in party politics. His campaign reached a climax in October 1932, when he spoke out in the Hochland magazine against the Preußenschlag of the Papen government. His text Neudeutsche Reichsreform began with the dramatic words: "Even if the discussion should be closed and in the future will only be dictated in the German fatherland, it remains the duty of the spiritual leading class to raise its voice as long as this is possible". Despite his clear commitment to the rule of law and federalism, a phase can be discerned after his accession to power, in which Schnabel took part in efforts to build a bridge between Catholicism and National Socialism, for example by taking up the concept of the Ständestaates or the Reich concept. This phase ended in 1935 at the latest, when Schnabel was indirectly affected by Walter Frank's actions against his teacher, Hermann Oncken: In his article against Oncken, Frank casually referred to Schnabel as a "clerical historian" and insinuated regime hostility. On 15 July 1936, Schnabel was released in Karlsruhe. He immediately moved to Heidelberg, where he lived as a private scholar until 1945. In these years, Schnabel published mainly articles on cultural history in the daily press, especially in the Frankfurter Zeitung In addition he published essays and numerous reviews in the magazine Hochland, until it had to be discontinued in 1941, as well as in other journals. In 1944, Schnabel would almost still have been called up for military service, despite his 57 years in the meantime, but was released through the intervention of the friendly ex-general . In September 1945, Schnabel was appointed state director for education and culture in the district of Baden, the northern part of the newly formed state Württemberg-Baden. He owed this appointment to his acquaintance with Heinrich Köhler, who was the district president at that time. In October 1945, Schnabel was also reinstated as professor in Karlsruhe. However, he now aspired to a professorship at a university, preferably in Heidelberg. An opportunity arose in 1946 when Willy Andreas had to vacate his chair under pressure from the American occupying power. Schnabel pursued his appointment, against which the philosophical faculty in Heidelberg massively resisted. In the background were Schnabel's statements from 1945, in which he had reproached the University of Heidelberg in particular for having attracted the future Nazi elites even before 1933. Against the attempt of the state government to enforce its cult official Schnabel in Heidelberg, the university gave an expert opinion that was devastating for Schnabel and was able to prevent the appeal. Schnabel drew the consequences from his broken relationship with the university and resigned as state director. Later career Already in the summer of 1945, the Ludwig Maximilian University of Munich approached Schnabel with the question whether he would accept an appointment. In Munich in early summer 1945, numerous professors had been dismissed under pressure from the American occupying forces, including Heinrich Köhler, who had held the chair of Middle and Modern History. Schnabel showed interest in this professorship, but did not definitely accept it. This for two reasons: on the one hand, he would have preferred an appointment in Heidelberg, on the other hand he disliked the fact that it was considered to rededicate said chair to a in order to be able to appoint the Protestant Hermann Heimpel to the previous Concordat Chair of Medieval History. Schnabel did not accept the chair in Munich until February 10, 1947, after his Heidelberg ambitions had been shattered and the rededication of the chair after Heimpel's failed appointment was off the table. Schnabel was already teaching as a visiting professor in Munich in the summer of 1947 and took over the chair of Medieval and Modern History, which Walter Goetz had held as a substitute, on 1 November 1947. When Schnabel had reached retirement age in 1955, he was privileged to determine the date of his retirement himself. In fact, he was only retired at his own request after the 1962 summer semester at the age of almost 75 and continued to lecture until 1964. He was the only professor in Munich who represented the history of modern times and always resisted an increase in the teaching staff; thus the chair was divided only after his retirement into one for early modern history and one for modern history, to which Fritz Wagner and were appointed. In Katharina Weigand (ed.): Münchner Historiker zwischen Politik und Wissenschaft. 150 Jahre Historisches Seminar der Ludwig-Maximilians-Universität. Munich 2010, , here in the Bayerischen Akademie der Wissenschaften of which he was president from 1951 to 1959. Since 1948 he was also a full member of the Bavarian Academy of Sciences. Schnabel's years at the Munich chair differed markedly from his time in Karlsruhe. While his own research had been the focus of his work there, in Munich he concentrated entirely on his role as an academic teacher. The expert in constitutional law Ernst-Wolfgang Böckenförde, who received his doctorate in history under Schnabel, passed on Schnabel's statement in this regard: "I am of the opinion that in today's world everyone should be able to carry out a socially necessary activity. And I believe that teaching to students is socially more necessary than writing your own books. It was clear to me when I accepted the call to Munich that I would not be coming here to continue my work on my German history." Schnabel's lectures in the Große Aula or in the Auditorium maximum, always held on Monday and Tuesday afternoon for two hours each, always had 800 to 1200 listeners. They were also well attended by students of other subjects and from the Münchner Stadtgesellschaft. Schnabel became a magnet for the University of Munich, attracting students, comparable only with Romano Guardini. It was only in the Munich years that Schnabel was able to train his own academic students, including Franz Herre, Heinrich Lutz, Karl Otmar von Aretin, Friedrich Hermann Schubert, Eberhard Weis, Erich Angermann, Lothar Gall, Hans Schmidt, Peter Hoffmann, Peter Krüger, Adelheid von Saldern and Karl-Egon Lönne. Schnabel's four-volume Deutsche Geschichte im neunzehnten Jahrhundert was reprinted unchanged between 1947 and 1951, appeared in 1964/65 in an eight-volume paperback edition and was last published by Deutscher Taschenbuch Verlag in 1987. Schnabel did not work on a continuation of his main work after 1945, nor did he print the fifth volume of the work. After his death, his appearance was announced, later still asked for from time to time, bis heute aber nicht realisiert. Thomas Hertfelder vertrat die Auffassung, dies sei "zu Schnabels Glück" nicht geschehen: Schnabel habe in diesem Band in einer Mischung aus Zensur und Selbstzensur liberale Positionen preisgegeben und sich von der westeuropäischen politischen Tradition abgewandt. Schnabel continued his career as a textbook author after the war. Other publications of the Munich years were mostly the result of lectures that were initiated by anniversaries, such as in 1951 on the occasion of the 150th anniversary of the Verlag Herder or 1958 on the occasion of the 100th anniversary of the founding of the Munich Historical Commission. Schnabel's great concern after the end of the Third Reich and as a reaction to it was the renewal of the humanistic educational idea, for which his 1955 academy lecture Das humanistische Bildungsgut im Wandel von Staat und Gesellschaft is characteristic. Schnabel took part in the debates after 1945 about the person and work of Otto von Bismarck, and in a review of the Bismarck biography by Erich Eyck, Schnabel argued that the Kleindeutsche Lösung of the German Question had been a mistake. Well-known colleagues, including Gerhard Ritter, who had already criticized Schnabel's liberal interpretation of Freiherr vom Stein in the early 1930s, argued against Schnabel's position. Death The grave of his parents Karl and Maria (née Guillemin) as well as his sister Katharina were laid to rest. Next to Schnabel, his sister Maria (1889-1971) was buried, who took care of him for decades. Honours In 1954, Schnabel was awarded honorary citizenship of the city of Mannheim, and in 1961 he received the Bavarian Order of Merit. Schnabel was an honorary doctor of engineering and political science (Aachen and Munich) and an honorary member of the British Historical Association and the American Historical Association. A street in and in Karlsruhe-Hagsfeld and a building of the Karlsruhe Institute of Technology are named after him. The Franz Schnabel Memorial Medal, an award of the Upper Rhine Foundation for History and Culture for high school graduates in Baden-Württemberg, which is presented to the best student of the year for outstanding achievements in the subject history, was named after him. Publications A bibliography of Franz Schnabel's publications compiled by Karl-Egon Lönne appeared in Franz Schnabel: Abhandlungen und Vorträge 1914–1965. edit. by Heinrich Lutz. Herder, Freiburg/Basel/Wien 1970, . Der Zusammenschluß des politischen Katholizismus in Deutschland im Jahre 1848. Winter, Heidelberg 1910 (Heidelberger Abhandlungen zur mittleren und neueren Geschichte, 29). Geschichte der Ministerverantwortlichkeit in Baden. G. Braun, Karlsruhe 1922. Freiherr vom Stein. B. G. Teubner, Leipzig/Berlin 1931. Deutsche Geschichte im neunzehnten Jahrhundert. Herder, Freiburg im Breisgau 1929–1937; Nachdruck: Deutscher Taschenbuch Verlag, Munich 1987. Vol. 1: Die Grundlagen. 1929, Reprint: . Vol. 2: Monarchie und Volkssouveränität. 1933; Reprint: . Vol. 3: Erfahrungswissenschaften und Technik. 1934; Reprint: . Vol. 4: Die religiösen Kräfte. 1937; Reprint: . Abhandlungen und Vorträge 1914–1965. Edit. by Heinrich Lutz. Herder, Freiburg/Basel/Vienna 1970. Literature : "Kritik und Erneuerung. Der Historismus bei Franz Schnabel." In 25 (1996), . Franz Schnabel – zu Leben und Werk (1887–1966). Vorträge zur Feier seines 100. Geburtstages. Oldenbourg, Munich 1988, . Thomas Hertfelder: Franz Schnabel und die deutsche Geschichtswissenschaft. Geschichtsschreibung zwischen Historismus und Kulturkritik (1910–1945) (Schriftenreihe der Historischen Kommission bei der Bayerischen Akademie der Wissenschaften. Vol. 60). 2 volumes. Vandenhoeck und Ruprecht, Göttingen 1998, , (online: Vol. 1, Vol. 2). Thomas Hertfelder: "Franz Schnabel." In Katharina Weigand (ed.): Münchner Historiker zwischen Politik und Wissenschaft. 150 Jahre Historisches Seminar der Ludwig-Maximilians-Universität. Utz, Munich 2010, , pp. 233–258. Thomas Hertfelder: Historie als Kulturkritik. Zu einem Interpretationsmuster in Franz Schnabels ""Deutscher Geschichte im neunzehnten Jahrhundert". In 116 (1996), . Karl-Egon Lönne: Franz Schnabel. In Hans-Ulrich Wehler: Deutsche Historiker. Vol. IX. Vandenhoeck u. Ruprecht, Göttingen 1982, , . Clemens Rehm (ed.): Franz Schnabel – eine andere Geschichte. Historiker, Demokrat, Pädagoge. Begleitpublikation zur Ausstellung des Generallandesarchivs Karlsruhe und des Instituts für Geschichte der Universität Karlsruhe (TH). Freiburg im Breisgau 2002, . Peter Steinbach, Angela Borgstedt (ed.): Franz Schnabel – Der Historiker des freiheitlichen Verfassungsstaates. Ausstellungskatalog mit zahlreichen Fachbeiträgen, Berlin 2009, . Bernhard Stier: "Franz Schnabel (1887–1966)." In Technikgeschichte 76 (2009), issue 4, (online). References External links Short biography of Franz Schnabel from the Faculty of Humanities and Social Sciences at the Karlsruhe Institute of Technology with further links to the stages of his life as a historian, professor, in the Nazi era and as a state politician. 1887 births 1966 deaths Writers from Mannheim 20th-century German historians Academic staff of the Ludwig Maximilian University of Munich Academic staff of the Karlsruhe Institute of Technology Members of the German Academy of Sciences at Berlin
Kevin Sean Michaels is an American film director, artist, producer and entertainer. Biography and career Michaels is best known as an Art Director for Troma Entertainment as well as directing and producing his own documentaries, Vampira: The Movie and The Wild World of Ted V. Mikels. Radio show In 2015, Michaels began hosting a radio show on Universal Broadcasting Network called "Friend or Foe", where guests included Weird Al Yankovic and others. Film work Michaels was Art Director for Troma Entertainment for five years, and briefly worked on Troma's Poultrygeist: Night of the Chicken Dead. While at Troma, Michaels designed and edited 250 DVD covers, 90% of their DVD titles. Michaels' first documentary was Vampira: The Movie, which profiled Maila Nurmi, the first horror host. The film featured testimonials by Sid Haig, Julie Strain, Kevin Eastman, Forrest Ackerman, Debbie Rochon, John Zacherle, Lloyd Kaufman, Bill Moseley, Cassandra Peterson, Jami Deadly, Jerry Only and horror historian David J. Skal. The score was written and performed by Ari Lehman, the first Jason Voorhies of Friday The 13th. Premiering in October 2006, Vampira: The Movie was released on DVD in September 2007 by Alpha Video, and won a Rondo Hatton Classic Horror Award in 2008 for Best Independent Production. Michaels' second documentary was The Wild World of Ted V. Mikels on director Ted V. Mikels, who produced The Astro-Zombies, Girl in Gold Boots, The Doll Squad and many others. The DVD was released in 2010 by Alpha Video. Michaels also served as Creative Consultant on Mikels' third installment in his Astro-Zombies series. It was narrated by John Waters. Michaels' third documentary was Ingrid Pitt: Beyond the Forest on actress Ingrid Pitt, who starred in Where Eagles Dare and numerous productions by Hammer Films. This animated short turned out to be the last project for Pitt, who recorded the narration in May 2010. The animation is by 10-year-old artist Perry Chen, under the guidance of two-time Academy Award nominee Bill Plympton. Ingrid Pitt: Beyond the Forest made the long-list and qualified for the Academy Award for Short Animated Film in 2011. Michaels produced a documentary starring David Lynch called Beyond The Noise: My Transcendental Meditation Journey, by young film student Dana Farley, who has severe dyslexia and attention deficit disorder. He currently creates music videos and content for Lynch's non-profit organization. In 2010, Michaels was one of 75 international artists and animators who Plympton referred to as "Dog Jammers" for a remake of Plympton's short film called Guard Dog Global Jam. In 2012, Michaels produced a short animated film called, The Namazu, animated by Dani Bowman, with voices contributed by Tom Kenny and Stella Ritter (daughter of John Ritter). References External links Vampira: The Movie Official Website The Wild World of Ted V. Mikels Official Website Who Calls the Shots interview with Kevin Sean Michaels Ingrid Pitt: Beyond The Forest: Official website American documentary film directors Living people Film directors from Brooklyn Year of birth missing (living people)
```cmake add_cmake_project(OpenCSG EXCLUDE_FROM_ALL ON # No need to build this lib by default. Only used in experiment in sandboxes/opencsg URL path_to_url URL_HASH SHA256=your_sha256_hash PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt.in ./CMakeLists.txt ) set(DEP_OpenCSG_DEPENDS GLEW ZLIB) ```
Raissac-sur-Lampy (; ) is a commune in the Aude department in southern France. Population See also Communes of the Aude department References Communes of Aude Aude communes articles needing translation from French Wikipedia
```xml <?xml version="1.0" encoding="UTF-8"?> <issues format="6" by="lint 8.7.0-alpha01" type="baseline" client="gradle" dependencies="false" name="AGP (8.7.0-alpha01)" variant="all" version="8.7.0-alpha01"> <issue id="MoshiUsageNonMoshiClassPlatform" message="Platform type &apos;Instant&apos; is not natively supported by Moshi." errorLine1=" @Json(name = &quot;showcased_at&quot;) val showcasedAt: Instant," errorLine2=" ~~~~~~~"> <location file="src/main/kotlin/catchup/service/uplabs/model/UplabsModels.kt" line="25" column="49"/> </issue> <issue id="MoshiUsageNonMoshiClassPlatform" message="Platform type &apos;Instant&apos; is not natively supported by Moshi." errorLine1=" @Json(name = &quot;created_at&quot;) val createdAt: Instant," errorLine2=" ~~~~~~~"> <location file="src/main/kotlin/catchup/service/uplabs/model/UplabsModels.kt" line="60" column="45"/> </issue> </issues> ```
The Hanriot H.170, H.180, and H.190 were a family of light utility aircraft produced in France in the 1930s. All introduced in 1934, they appeared side by side at the Paris Air Show that year, the model numbers distinguishing between versions powered by Salmson, Renault, and Régnier engines respectively. Design and development In basic construction, the different variants were otherwise almost identical, as largely conventional monoplanes with high, strut-braced wings and fixed, tailskid undercarriage. The pilot and one or two passengers sat in an extensively-glazed, enclosed cabin. Although usually described as a monoplane, this family of aircraft all featured small, stub wings at the bottom of the fuselage. These carried the fuel tanks and served as a mounting point for the wing struts and undercarriage. An interesting feature was that the upper portion of the rear fuselage was a removable module, allowing it to be replaced with alternative modules for different roles, for example to carry a stretcher, or a second, open cockpit for pilot or gunnery training. Operational history The H.182 was the major production version, accounting for 346 out of the total of 392 aircraft built. Most of these were produced as part of a government order for machines to equip the Cercles Aériens Régionaux reserve flying units, with 172 aircraft still operational at the Fall of France in 1940. Ten more were purchased by the Second Spanish Republic for use in the Spanish Civil War, and 50 aircraft originally ordered by the French government were diverted to Turkey as part of a military aid agreement. Variants H.170 H.170 - two-seat military observation version with Salmson 6Te engine (1 built) H.171 - three-seat civil tourer version of H.170 (1 built) H.172 H.172B - two-seat trainer (1 built) H.172N - three-seat tourer (7 built) H.173 - aerobatic trainer version (1 built) H.174 - three-seat trainer (1 built) H.175 - liaison aircraft for French Navy (10 built) H.180 H.180 H.180T - three-seat tourer with Renault 4Pdi engine (1 built) H.180M - two-seat military observation version with Renault 4Pei engine (1 built) H.181 - air ambulance version of H.180T (1 built) H.182 - main production version as trainer aircraft for French reserve aviation units. H.183 - aerobatic trainer with Renault 438 engine (1 built) H.184 - trainer version with uprated version of Renault 4Pei engine (1 built) H.185 - two-seat liaison version for French navy (6 built) H.190 H.190 H.190M - two-seat observation aircraft with Régnier 60-01 engine (1 built) H.191 - three-seat tourer (1 built) H.192 H.192B - two-seat trainer (1 built) H.192N - two-seat civil trainer with Régnier 6Bo.1 engine (9 built) H.195 - two-seat liaison aircraft with Régnier 6Bo.1 engine (1 built) Operators French Air Force French Navy Spanish Republican Air Force Turkish Air Force Specifications (H.182) See also References External links 1930s French civil utility aircraft 1930s French military utility aircraft H.180 High-wing aircraft Single-engined tractor aircraft Aircraft first flown in 1934
The Great Depression is the fourth studio album by American rapper DMX. It was released on October 23, 2001 by Ruff Ryders Entertainment and Def Jam Recordings. The production on the album was handled by multiple producers including Just Blaze, Dame Grease, Black Key and DMX himself. The album also features guest appearances by Stephanie Mills, Faith Evans and Mashonda. The Great Depression was supported by three singles: "We Right Here", "Who We Be" and "I Miss You". The album demonstrated his continually strong allegiance with the Ruff Ryders. The album received generally mixed to positive reviews from music critics and was a commercial success. It debuted at number one on the US Billboard 200 chart, selling 440,000 copies in the first week. It became certified platinum in December of that same year. Singles The Great Depression was supported by three singles. The first single, "We Right Here" was released on August 14, 2001. The single failed to chart on the Billboard Hot 100 but managed to peak at number 17 on the US Bubbling Under the Hot 100 chart. The single also peaked at number 43 on the US Hot R&B/Hip-Hop Songs and number eight on the US Hot Rap Songs charts respectively. The second single, "Who We Be" was released on September 25, 2001. Unlike the previous single, it peaked at number 60 on the US Billboard Hot 100 chart. The single also peaked at number 16 on the US Hot R&B/Hip-Hop Songs and number ten on the US Hot Rap Songs charts. The third single, "I Miss You" was released on January 15, 2002. The single peaked at number 86 on the Billboard Hot 100 chart. It also peaked at number 37 on the US Hot R&B/Hip-Hop Songs chart. Critical reception The Great Depression received generally mixed to positive reviews from music critics. At Metacritic, which assigns a normalized rating out of 100 to reviews from professional publications, the album received an average score of 62, based on ten reviews. Commercial performance The Great Depression debuted at number one on the US Billboard 200 chart, selling 440,000 copies in its first week. This became DMX's fourth US number one debut on the chart. In its second week, the album dropped to number three on the chart, selling an additional 214,000 copies. On December 14, 2001, the album was certified platinum by the Recording Industry Association of America (RIAA) for shipments of over one million copies in the US. As of October 2009, the album has sold 1,862,000 copies in the United States. Track listing Credits adapted from the album's liner notes. Notes "Who We Be" contains additional vocals by Dustin Adams. "Bloodline Anthem contains additional vocals by Dia. Sample credits "When I'm Nothing" contains a sample of "Whatcha Gonna Do (with My Lovin')", written by James Mtume and Reggie Lucas, and performed by Stephanie Mills. "Pull Up" (Skit) and "Pull Out" (Skit) contain samples of "I'll Be Around (Whenever You Want Me)", written by Thom Bell and Phil Hurtt, and performed by The Spinners. Charts Weekly charts Year-end charts Certifications References External links 2001 albums DMX albums Albums produced by Swizz Beatz Albums produced by Just Blaze Albums produced by Dame Grease Gangsta rap albums by American artists Ruff Ryders Entertainment albums
The Titular Bishop of Jegra () is a titular bishop of the Serbian Orthodox Church, who also serves as the vicar bishop for the Bishop of Bačka. The see of bishop is Kovilj Monastery in Kovilj near Novi Sad. The Eparchy of Bačka is an ecclesiastical territory in the Bačka region, Serbia. Created in 1999, the titular bishop bears the title of the old Eparchy of Jegra (named after the Hungarian city Eger), which was the northernmost eparchy during the time of the Serbian Patriarchate of Peć. The eparchy was abolished in 1713, and its territory was annexed to the Eparchy of Bačka, whose bishop bore the title "Bačka, Szeged and Jegar". The titular bishop is a member of the Bishops' Council of the Serbian Orthodox Church. List of bishops See also List of eparchies of the Serbian Orthodox Church References Bishops of the Serbian Orthodox Church
```javascript [ { "class": "title_bar", "settings": [ "!ui_native_titlebar" ], "bg": "#10141c", "fg": "#bfbdb6" }, { "class": "title_bar", "settings": [ "!ui_native_titlebar", "ui_separator" ], "bg": "#0d1017" }, { "class": "sidebar_container", "content_margin": [ 0, 6, 0, 0 ], "layer0.opacity": 1, "layer0.tint": "#10141c" }, { "class": "sidebar_container", "settings": [ "ui_separator" ], "layer0.tint": "#0d1017", "layer1.texture": "ayu/assets/separator-sidebar.png", "layer1.inner_margin": [ 0, 38, 2, 1 ], "layer1.opacity": 1, "layer1.tint": "#1b1f29" }, { "class": "sidebar_tree", "indent_top_level": false, "row_padding": [ 20, 5 ], "dark_content": false, "spacer_rows": true, "indent_offset": 2, "indent": 8 }, { "class": "sidebar_heading", "color": "#565b66", "font.bold": true, "font.size": 11 }, { "class": "tree_row", "layer0.texture": "ayu/assets/tree-highlight.png", "layer0.tint": "#47526600", "layer0.inner_margin": [ 8, 4 ], "layer0.opacity": 1, "layer1.texture": "ayu/assets/tree-highlight-border.png", "layer1.tint": "#47526640", "layer1.inner_margin": [ 8, 4 ], "layer1.opacity": 0 }, { "class": "tree_row", "attributes": [ "selectable", "hover" ], "layer0.tint": "#47526640", "layer1.opacity": 1 }, { "class": "tree_row", "attributes": [ "selectable", "selected" ], "layer0.tint": "#47526633" }, { "class": "tree_row", "attributes": [ "selectable", "selected", "hover" ], "layer0.tint": "#47526640" }, { "class": "sidebar_label", "fg": "#565b66", "font.size": 12 }, { "class": "sidebar_label", "parents": [ { "class": "tree_row", "attributes": [ "hover" ] } ], "fg": "#bfbdb6" }, { "class": "sidebar_label", "parents": [ { "class": "tree_row", "attributes": [ "selected" ] } ], "fg": "#bfbdb6" }, { "class": "sidebar_label", "parents": [ { "class": "tree_row", "attributes": [ "expandable" ] } ], "fg": "#565b66", "font.bold": false }, { "class": "sidebar_label", "parents": [ { "class": "tree_row", "attributes": [ "expandable" ] } ], "settings": [ "bold_folder_labels" ], "font.bold": true }, { "class": "sidebar_label", "parents": [ { "class": "tree_row", "attributes": [ "expandable", "hover" ] } ], "fg": "#bfbdb6" }, { "class": "sidebar_label", "parents": [ { "class": "tree_row", "attributes": [ "expanded" ] } ], "fg": "#bfbdb6" }, { "class": "sidebar_label", "parents": [ { "class": "tree_row", "attributes": [ "expanded" ] } ], "settings": [ "bold_folder_labels" ], "font.bold": true }, { "class": "sidebar_label", "attributes": [ "transient" ], "font.italic": false }, { "class": "sidebar_label", "parents": [ { "class": "file_system_entry", "attributes": [ "ignored" ] } ], "fg": "#565b6680" }, { "class": "disclosure_button_control", "content_margin": [ 0, 0, 0, 0 ] }, { "class": "close_button", "content_margin": [ 6, 8 ], "layer0.texture": "ayu/assets/close.png", "layer0.opacity": 0, "layer0.inner_margin": [ 0, 0 ], "layer0.tint": "#565b66" }, { "class": "close_button", "parents": [ { "class": "tree_row", "attributes": [ "hover" ] } ], "layer0.opacity": 1 }, { "class": "close_button", "attributes": [ "dirty" ], "layer0.texture": "ayu/assets/dirty.png", "layer0.tint": "#565b66", "layer0.opacity": 1 }, { "class": "close_button", "attributes": [ "hover" ], "layer0.opacity": 1, "layer0.tint": "#e6b450" }, { "class": "icon_folder", "content_margin": [ 9, 9 ], "layer0.tint": "#0d1017", "layer0.opacity": 0, "layer1.texture": "ayu/assets/folder.png", "layer1.tint": "#565b66bf", "layer1.opacity": 1, "layer2.texture": "ayu/assets/folder-open.png", "layer2.tint": "#e6b450", "layer2.opacity": 0 }, { "class": "icon_folder", "parents": [ { "class": "tree_row", "attributes": [ "expanded" ] } ], "layer1.opacity": 0, "layer2.opacity": 1 }, { "class": "icon_folder", "parents": [ { "class": "tree_row", "attributes": [ "hover" ] } ], "layer1.tint": "#e6b450" }, { "class": "icon_folder", "parents": [ { "class": "tree_row", "attributes": [ "expanded", "hover" ] } ], "layer2.texture": { "keyframes": [ "ayu/assets/folder-open-1.png", "ayu/assets/folder-open-1.png", "ayu/assets/folder-open-2.png", "ayu/assets/folder-open-3.png", "ayu/assets/folder-open-4.png", "ayu/assets/folder-open-5.png", "ayu/assets/folder-open-5.png", "ayu/assets/folder-open-5.png", "ayu/assets/folder-open-6.png", "ayu/assets/folder-open-6.png", "ayu/assets/folder-open-6.png", "ayu/assets/folder-open-6.png", "ayu/assets/folder-open.png" ], "loop": false, "frame_time": 0.02 }, "layer1.opacity": 0, "layer2.opacity": 1 }, { "class": "icon_folder", "parents": [ { "class": "tree_row", "attributes": [ "selected" ] } ], "layer1.tint": "#e6b450" }, { "class": "icon_folder_loading", "layer1.texture": { "keyframes": [ "ayu/assets/spinner11.png", "ayu/assets/spinner10.png", "ayu/assets/spinner9.png", "ayu/assets/spinner8.png", "ayu/assets/spinner7.png", "ayu/assets/spinner6.png", "ayu/assets/spinner5.png", "ayu/assets/spinner4.png", "ayu/assets/spinner3.png", "ayu/assets/spinner2.png", "ayu/assets/spinner1.png", "ayu/assets/spinner.png" ], "loop": true, "frame_time": 0.075 }, "layer1.tint": "#e6b450", "layer0.opacity": 0, "content_margin": [ 8, 8 ] }, { "class": "icon_folder_dup", "content_margin": [ 9, 9 ], "layer0.texture": "ayu/assets/folder.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "layer1.texture": "ayu/assets/folder-symlink.png", "layer1.tint": "#565b66", "layer1.opacity": 0.3 }, { "class": "icon_folder_dup", "parents": [ { "class": "tree_row", "attributes": [ "hover" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_folder_dup", "parents": [ { "class": "tree_row", "attributes": [ "expanded" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_file_type", "content_margin": [ 8, 8 ] }, { "class": "vcs_status_badge", "attributes": [ "ignored" ], "layer0.tint": "#565b664d" }, { "class": "vcs_status_badge", "attributes": [ "added" ], "layer0.tint": "#7fd96266" }, { "class": "vcs_status_badge", "attributes": [ "modified" ], "layer0.tint": "#73b8ff66" }, { "class": "vcs_status_badge", "attributes": [ "deleted" ], "layer0.tint": "#f26d7866" }, { "class": "sheet_contents", "background_modifier": "" }, { "class": "sheet_contents", "settings": { "inactive_sheet_dimming": true }, "attributes": [ "!highlighted" ], "background_modifier": "blend(#0d1017 0%)" }, { "class": "tabset_control", "mouse_wheel_switch": false, "tab_min_width": 50, "tab_overlap": 0, "tab_height": 38, "tab_width": 100, "layer0.tint": "#10141c", "layer0.opacity": 1, "content_margin": [ 10, 0 ] }, { "class": "tabset_control", "settings": [ "mouse_wheel_switches_tabs", "!enable_tab_scrolling" ], "mouse_wheel_switch": true }, { "class": "tabset_control", "settings": [ "ui_separator" ], "tab_overlap": 8, "connector_height": 2, "content_margin": [ 0, 0, 0, 0 ], "layer0.tint": "#0d1017", "layer1.texture": "ayu/assets/tabset-border.png", "layer1.tint": "#1b1f29", "layer1.inner_margin": [ 1, 1, 1, 6 ], "layer1.opacity": 1 }, { "class": "tab_connector", "layer0.texture": "", "layer0.opacity": 1, "tint_index": 0 }, { "class": "tab_control", "settings": [ "!ui_separator" ], "layer0.texture": "ayu/assets/separator-bottom.png", "layer0.tint": "#1b1f29", "layer0.inner_margin": [ 0, 0, 0, 2 ], "layer0.opacity": 0, "content_margin": [ 15, -2, 15, 0 ], "max_margin_trim": 12 }, { "class": "tab_control", "settings": [ "ui_separator" ], "layer1.texture": "ayu/assets/tab.png", "layer1.inner_margin": [ 9, 0, 9, 0 ], "layer1.opacity": 0, "layer2.texture": "ayu/assets/tab-border.png", "layer2.inner_margin": [ 9, 0, 9, 0 ], "layer2.tint": "#1b1f29", "layer2.opacity": 0, "content_margin": [ 16, 5, 11, 4 ], "hit_test_level": 0 }, { "class": "tab_control", "attributes": [ "selected" ], "settings": [ "!ui_separator" ], "layer0.tint": "#e6b450", "layer0.opacity": 1 }, { "class": "tab_control", "attributes": [ "selected", "!highlighted" ], "settings": [ "ui_separator" ], "layer1.opacity": 1, "layer1.tint": "#0d1017", "layer2.opacity": 1 }, { "class": "tab_control", "attributes": [ "selected", "highlighted" ], "settings": [ "ui_separator" ], "layer1.opacity": { "target": 1, "speed": 1, "interpolation": "smoothstep" }, "layer1.tint": "#10141c", "layer2.opacity": 1 }, { "class": "tab_control", "attributes": [ "hover" ], "settings": [ "!ui_separator" ], "layer0.tint": "#e6b450", "layer0.opacity": 1 }, { "class": "tab_control", "attributes": [ "hover" ], "settings": [ "ui_separator" ] }, { "class": "tab_control", "attributes": [ "selected", "hover" ], "settings": [ "!ui_separator" ], "layer0.opacity": 1 }, { "class": "tab_control", "attributes": [ "selected", "hover" ], "settings": [ "ui_separator" ] }, { "class": "tab_label", "fg": "#565b66", "font.italic": false, "font.bold": false, "font.size": 12 }, { "class": "tab_label", "settings": [ "highlight_modified_tabs" ], "font.italic": true, "attributes": [ "dirty" ], "fg": "#e6b450" }, { "class": "tab_label", "parents": [ { "class": "tab_control", "attributes": [ "selected", "highlighted" ] } ], "fg": "#bfbdb6" }, { "class": "tab_label", "parents": [ { "class": "tab_control", "attributes": [ "hover" ] } ], "fg": "#bfbdb6" }, { "class": "tab_label", "attributes": [ "transient" ], "font.italic": true }, { "class": "tab_close_button", "content_margin": [ 0, 0 ], "layer0.texture": "ayu/assets/close.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "layer1.texture": "ayu/assets/dirty.png", "layer1.tint": "#565b66", "layer1.opacity": 0 }, { "class": "tab_close_button", "settings": [ "show_tab_close_buttons" ], "content_margin": [ 6, 8 ] }, { "class": "tab_close_button", "settings": [ "show_tab_close_buttons", "highlight_modified_tabs" ], "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "tab_close_button", "parents": [ { "class": "tab_control", "attributes": [ "dirty" ] } ], "layer0.opacity": 0, "layer1.opacity": 1, "content_margin": [ 6, 8 ] }, { "class": "tab_close_button", "parents": [ { "class": "tab_control", "attributes": [ "dirty" ] } ], "attributes": [ "hover" ], "layer0.opacity": 1, "layer1.opacity": 0 }, { "class": "tab_close_button", "parents": [ { "class": "tab_control", "attributes": [ "selected", "dirty" ] } ], "layer0.opacity": 0, "layer1.opacity": 1, "layer1.tint": "#e6b450" }, { "class": "tab_close_button", "parents": [ { "class": "tab_control", "attributes": [ "selected", "dirty" ] } ], "attributes": [ "hover" ], "layer0.opacity": 1, "layer1.opacity": 0 }, { "class": "scroll_tabs_left_button", "content_margin": [ 12, 15 ], "layer0.texture": "ayu/assets/arrow-left.png", "layer0.tint": "#565b66", "layer0.opacity": 1 }, { "class": "scroll_tabs_left_button", "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "scroll_tabs_right_button", "content_margin": [ 12, 15 ], "layer0.texture": "ayu/assets/arrow-right.png", "layer0.tint": "#565b66", "layer0.opacity": 1 }, { "class": "scroll_tabs_right_button", "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "show_tabs_dropdown_button", "content_margin": [ 12, 12 ], "layer0.texture": "ayu/assets/overflow-menu.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "layer0.inner_margin": [ 0, 0 ] }, { "class": "show_tabs_dropdown_button", "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "overlay_control", "layer0.texture": "ayu/assets/overlay-shadow.png", "layer0.inner_margin": [ 15, 35, 15, 25 ], "layer0.opacity": 1, "layer0.tint": "#00000099", "layer1.texture": "ayu/assets/overlay-border.png", "layer1.inner_margin": [ 15, 35, 15, 25 ], "layer1.opacity": 1, "layer1.tint": "#1b1f29", "layer2.texture": "ayu/assets/overlay-bg.png", "layer2.inner_margin": [ 15, 35, 15, 25 ], "layer2.opacity": 1, "layer2.tint": "#141821", "content_margin": [ 10, 35, 10, 20 ] }, { "class": "quick_panel", "row_padding": [ 13, 7 ], "layer0.tint": "#141821", "layer0.opacity": 1 }, { "class": "quick_panel", "parents": [ { "class": "overlay_control" } ], "row_padding": [ 13, 7 ], "layer0.tint": "#141821", "layer0.opacity": 1 }, { "class": "mini_quick_panel_row", "layer0.texture": "ayu/assets/tree-highlight.png", "layer0.tint": "#47526640", "layer0.inner_margin": [ 8, 4 ], "layer0.opacity": 0, "layer1.texture": "ayu/assets/tree-highlight-border.png", "layer1.tint": "#47526640", "layer1.inner_margin": [ 8, 4 ], "layer1.opacity": 0 }, { "class": "mini_quick_panel_row", "attributes": [ "selected" ], "layer0.opacity": 1, "layer1.opacity": 1 }, { "class": "quick_panel_row", "layer0.texture": "ayu/assets/tree-highlight.png", "layer0.tint": "#47526640", "layer0.inner_margin": [ 8, 4 ], "layer0.opacity": 0, "layer1.texture": "ayu/assets/tree-highlight-border.png", "layer1.tint": "#47526640", "layer1.inner_margin": [ 8, 4 ], "layer1.opacity": 0 }, { "class": "quick_panel_row", "attributes": [ "selected" ], "layer0.opacity": 1, "layer1.opacity": 1 }, { "class": "quick_panel_label", "fg": "#565b66", "match_fg": "#e6b450", "selected_fg": "#bfbdb6", "selected_match_fg": "#e6b450" }, { "class": "quick_panel_label", "parents": [ { "class": "overlay_control" } ], "fg": "#565b66", "match_fg": "#e6b450", "selected_fg": "#bfbdb6", "selected_match_fg": "#e6b450" }, { "class": "quick_panel_path_label", "fg": "#565b66", "match_fg": "#bfbdb6", "selected_fg": "#565b66", "selected_match_fg": "#bfbdb6" }, { "class": "quick_panel_detail_label", "link_color": "#59c2ff" }, { "class": "grid_layout_control", "border_size": 0, "border_color": "#1b1f29" }, { "class": "grid_layout_control", "settings": [ "ui_separator" ], "border_size": 0 }, { "class": "minimap_control", "settings": [ "always_show_minimap_viewport" ], "viewport_color": "#565b66", "viewport_opacity": 0.3 }, { "class": "minimap_control", "settings": [ "!always_show_minimap_viewport" ], "viewport_color": "#565b66", "viewport_opacity": { "target": 0, "speed": 4, "interpolation": "smoothstep" } }, { "class": "minimap_control", "attributes": [ "hover" ], "settings": [ "!always_show_minimap_viewport" ], "viewport_opacity": { "target": 0.3, "speed": 4, "interpolation": "smoothstep" } }, { "class": "fold_button_control", "layer0.texture": "ayu/assets/unfold.png", "layer0.opacity": 1, "layer0.inner_margin": 0, "layer0.tint": "#565b66", "content_margin": [ 8, 6, 8, 6 ] }, { "class": "fold_button_control", "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "fold_button_control", "attributes": [ "expanded" ], "layer0.texture": "ayu/assets/fold.png" }, { "class": "popup_shadow", "layer0.texture": "ayu/assets/popup-shadow.png", "layer0.inner_margin": [ 14, 11, 14, 15 ], "layer0.opacity": 1, "layer0.tint": "#00000099", "layer0.draw_center": false, "layer1.texture": "ayu/assets/popup-border.png", "layer1.inner_margin": [ 14, 11, 14, 15 ], "layer1.opacity": 1, "layer1.tint": "#1b1f29", "layer1.draw_center": false, "content_margin": [ 10, 7, 10, 13 ] }, { "class": "popup_control", "layer0.texture": "ayu/assets/popup-bg.png", "layer0.inner_margin": [ 4, 4, 4, 4 ], "layer0.opacity": 1, "layer0.tint": "#141821", "content_margin": [ 0, 4 ] }, { "class": "auto_complete", "row_padding": [ 5, 0 ] }, { "class": "table_row", "layer0.texture": "ayu/assets/tree-highlight.png", "layer0.tint": "#47526640", "layer0.inner_margin": [ 8, 4 ], "layer0.opacity": 0, "layer1.texture": "ayu/assets/tree-highlight-border.png", "layer1.tint": "#47526640", "layer1.inner_margin": [ 8, 4 ], "layer1.opacity": 0 }, { "class": "table_row", "attributes": [ "selected" ], "layer0.opacity": 1, "layer1.opacity": 1 }, { "class": "auto_complete_label", "fg": "transparent", "match_fg": "#e6b450", "selected_fg": "transparent", "selected_match_fg": "#e6b450", "fg_blend": true }, { "class": "auto_complete_hint", "opacity": 0.7, "font.italic": true }, { "class": "kind_container", "layer0.texture": "ayu/assets/kind-bg.png", "layer0.tint": "#141821", "layer0.inner_margin": [ 4, 4, 7, 4 ], "layer0.opacity": 0, "layer1.texture": "ayu/assets/kind-bg.png", "layer1.tint": "#14182100", "layer1.inner_margin": [ 4, 4, 7, 4 ], "layer1.opacity": 0.3, "layer2.texture": "ayu/assets/kind-border.png", "layer2.tint": "#14182100", "layer2.inner_margin": [ 4, 4, 7, 4 ], "layer2.opacity": 0.1, "content_margin": [ 4, 0, 6, 0 ] }, { "class": "kind_label", "font.size": "1rem", "font.bold": true, "font.italic": true, "color": "#565b66" }, { "class": "kind_label", "parents": [ { "class": "quick_panel" } ], "font.size": "1.1rem" }, { "class": "kind_container kind_function", "layer0.opacity": 1, "layer1.tint": "#ffb454", "layer2.tint": "#ffb454" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_function" } ], "color": "#ffb454" }, { "class": "kind_container kind_keyword", "layer0.opacity": 1, "layer1.tint": "#ff8f40", "layer2.tint": "#ff8f40" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_keyword" } ], "color": "#ff8f40" }, { "class": "kind_container kind_markup", "layer0.opacity": 1, "layer1.tint": "#39bae6", "layer2.tint": "#39bae6" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_markup" } ], "color": "#39bae6" }, { "class": "kind_container kind_namespace", "layer0.opacity": 1, "layer1.tint": "#59c2ff", "layer2.tint": "#59c2ff" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_namespace" } ], "color": "#59c2ff" }, { "class": "kind_container kind_navigation", "layer0.opacity": 1, "layer1.tint": "#e6b673", "layer2.tint": "#e6b673" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_navigation" } ], "color": "#e6b673" }, { "class": "kind_container kind_snippet", "layer0.opacity": 1, "layer1.tint": "#f07178", "layer2.tint": "#f07178" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_snippet" } ], "color": "#f07178" }, { "class": "kind_container kind_type", "layer0.opacity": 1, "layer1.tint": "#59c2ff", "layer2.tint": "#59c2ff" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_type" } ], "color": "#59c2ff" }, { "class": "kind_container kind_variable", "layer0.opacity": 1, "layer1.tint": "#acb6bf8c", "layer2.tint": "#acb6bf8c" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_variable" } ], "color": "#acb6bf8c" }, { "class": "kind_container kind_color_redish", "layer0.opacity": 1, "layer1.tint": "#f07178", "layer2.tint": "#f07178" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_redish" } ], "color": "#f07178" }, { "class": "kind_container kind_color_orangish", "layer0.opacity": 1, "layer1.tint": "#ff8f40", "layer2.tint": "#ff8f40" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_orangish" } ], "color": "#ff8f40" }, { "class": "kind_container kind_color_yellowish", "layer0.opacity": 1, "layer1.tint": "#ffb454", "layer2.tint": "#ffb454" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_yellowish" } ], "color": "#ffb454" }, { "class": "kind_container kind_color_greenish", "layer0.opacity": 1, "layer1.tint": "#aad94c", "layer2.tint": "#aad94c" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_greenish" } ], "color": "#aad94c" }, { "class": "kind_container kind_color_cyanish", "layer0.opacity": 1, "layer1.tint": "#95e6cb", "layer2.tint": "#95e6cb" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_cyanish" } ], "color": "#95e6cb" }, { "class": "kind_container kind_color_bluish", "layer0.opacity": 1, "layer1.tint": "#39bae6", "layer2.tint": "#39bae6" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_bluish" } ], "color": "#39bae6" }, { "class": "kind_container kind_color_purplish", "layer0.opacity": 1, "layer1.tint": "#d2a6ff", "layer2.tint": "#d2a6ff" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_purplish" } ], "color": "#d2a6ff" }, { "class": "kind_container kind_color_pinkish", "layer0.opacity": 1, "layer1.tint": "#f29668", "layer2.tint": "#f29668" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_pinkish" } ], "color": "#f29668" }, { "class": "kind_container kind_color_dark", "layer0.opacity": 1, "layer1.tint": "#565b66", "layer2.tint": "#565b66" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_dark" } ], "color": "#565b66" }, { "class": "kind_container kind_color_light", "layer0.opacity": 1, "layer1.tint": "white", "layer2.tint": "white" }, { "class": "kind_label", "parents": [ { "class": "kind_container kind_color_light" } ], "color": "#555" }, { "class": "symbol_container", "content_margin": [ 4, 3, 4, 3 ] }, { "class": "trigger_container", "content_margin": [ 4, 3, 4, 3 ] }, { "class": "auto_complete_detail_pane", "layer0.opacity": 1, "layer0.tint": "#141821", "layer1.opacity": 1, "layer1.tint": "#141821", "content_margin": [ 8, 10, 8, 5 ] }, { "class": "auto_complete_kind_name_label", "font.size": "0.9rem", "font.italic": true, "border_color": "#565b66" }, { "class": "auto_complete_details", "background_color": "#141821", "monospace_background_color": "#141821" }, { "class": "panel_control", "layer0.tint": "#10141c", "layer0.opacity": 1, "content_margin": [ 0, 5 ] }, { "class": "panel_control", "settings": [ "ui_separator" ], "layer0.tint": "#0d1017", "layer1.texture": "ayu/assets/separator-top.png", "layer1.tint": "#1b1f29", "layer1.inner_margin": [ 1, 2, 1, 0 ], "layer1.opacity": 1 }, { "class": "panel_grid_control" }, { "class": "panel_close_button", "layer0.texture": "ayu/assets/close.png", "layer0.opacity": 1, "layer0.tint": "#565b66", "content_margin": [ 0, 0 ] }, { "class": "panel_close_button", "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "status_bar", "layer0.texture": "", "layer0.tint": "#10141c", "layer0.opacity": 1, "layer1.texture": "ayu/assets/separator-top.png", "layer1.tint": "#1b1f29", "layer1.inner_margin": [ 1, 2, 1, 0 ], "content_margin": [ 10, 2 ] }, { "class": "status_bar", "settings": [ "ui_separator" ], "layer0.tint": "#0d1017", "layer1.opacity": 1 }, { "class": "panel_button_control", "layer0.texture": "ayu/assets/switch-panel.png", "layer0.tint": "#565b66", "layer0.opacity": 1 }, { "class": "panel_button_control", "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "status_container", "content_margin": [ 0, 5 ] }, { "class": "status_button", "min_size": [ 100, 0 ] }, { "class": "vcs_branch_icon", "layer0.tint": "#565b66" }, { "class": "vcs_changes_annotation", "border_color": "#565b66b3" }, { "class": "dialog", "layer0.tint": "#0d1017", "layer0.opacity": 1 }, { "class": "progress_bar_control", "layer0.tint": "#0d1017", "layer0.opacity": 1 }, { "class": "progress_gauge_control", "layer0.tint": "#e6b450", "layer0.opacity": 1, "content_margin": [ 0, 6 ] }, { "class": "scroll_area_control", "settings": [ "overlay_scroll_bars" ], "overlay": true }, { "class": "scroll_area_control", "settings": [ "!overlay_scroll_bars" ], "overlay": false }, { "class": "scroll_bar_control", "layer0.tint": "#0d1017", "layer0.opacity": 1, "layer1.texture": "ayu/assets/scrollbar-vertical-wide.png", "layer1.tint": "#565b66", "layer1.opacity": 0.1, "layer1.inner_margin": [ 0, 10 ] }, { "class": "scroll_bar_control", "parents": [ { "class": "overlay_control" } ], "layer0.tint": "#141821" }, { "class": "scroll_bar_control", "attributes": [ "horizontal" ], "layer1.texture": "ayu/assets/scrollbar-horizontal-wide.png", "layer1.inner_margin": [ 10, 0 ] }, { "class": "scroll_bar_control", "settings": [ "overlay_scroll_bars" ], "layer0.opacity": 0, "layer1.texture": "ayu/assets/scrollbar-vertical.png", "layer1.inner_margin": [ 4, 6, 6, 6 ] }, { "class": "scroll_bar_control", "settings": [ "overlay_scroll_bars", "ui_wide_scrollbars" ], "layer0.texture": "ayu/assets/scrollbar-vertical-wide.png" }, { "class": "scroll_bar_control", "settings": [ "overlay_scroll_bars" ], "attributes": [ "horizontal" ], "layer0.opacity": 0, "layer1.texture": "ayu/assets/scrollbar-horizontal.png", "layer1.inner_margin": [ 6, 4, 6, 6 ] }, { "class": "scroll_bar_control", "attributes": [ "horizontal" ], "settings": [ "overlay_scroll_bars", "ui_wide_scrollbars" ], "layer0.texture": "ayu/assets/scrollbar-horizontal-wide.png" }, { "class": "scroll_track_control", "layer0.tint": "#0d1017", "layer0.opacity": 1 }, { "class": "scroll_corner_control", "layer0.tint": "#0d1017", "layer0.opacity": 1 }, { "class": "puck_control", "layer0.texture": "ayu/assets/scrollbar-vertical-wide.png", "layer0.tint": "#565b66", "layer0.opacity": 0.3, "layer0.inner_margin": [ 0, 10 ], "content_margin": [ 6, 12 ] }, { "class": "puck_control", "attributes": [ "horizontal" ], "layer0.texture": "ayu/assets/scrollbar-horizontal-wide.png", "layer0.inner_margin": [ 10, 0 ], "content_margin": [ 12, 6 ] }, { "class": "puck_control", "settings": [ "overlay_scroll_bars" ], "layer0.texture": "ayu/assets/scrollbar-vertical.png", "layer0.inner_margin": [ 4, 6, 6, 6 ], "content_margin": [ 5, 20 ] }, { "class": "puck_control", "settings": [ "overlay_scroll_bars", "ui_wide_scrollbars" ], "layer0.texture": "ayu/assets/scrollbar-vertical-wide.png" }, { "class": "puck_control", "settings": [ "overlay_scroll_bars" ], "attributes": [ "horizontal" ], "layer0.texture": "ayu/assets/scrollbar-horizontal.png", "layer0.inner_margin": [ 6, 4, 6, 6 ], "content_margin": [ 20, 5 ] }, { "class": "puck_control", "attributes": [ "horizontal" ], "settings": [ "overlay_scroll_bars", "ui_wide_scrollbars" ], "layer0.texture": "ayu/assets/scrollbar-horizontal-wide.png" }, { "class": "text_line_control", "layer0.texture": "ayu/assets/input-bg.png", "layer0.opacity": 1, "layer0.inner_margin": [ 10, 8 ], "layer0.tint": "#141821", "layer1.texture": "ayu/assets/input-border.png", "layer1.opacity": 1, "layer1.inner_margin": [ 10, 8 ], "layer1.tint": "#1b1f29", "content_margin": [ 10, 7, 10, 5 ] }, { "class": "text_line_control", "parents": [ { "class": "overlay_control" } ], "layer0.texture": "", "layer0.opacity": 0, "layer1.texture": "ayu/assets/input-prompt.png", "layer1.opacity": 1, "layer1.tint": "#565b66", "layer1.inner_margin": [ 36, 26, 0, 0 ], "content_margin": [ 38, 5, 10, 5 ] }, { "class": "text_line_control", "parents": [ { "class": "overlay_control goto_file" } ], "layer1.texture": "ayu/assets/input-search.png" }, { "class": "text_line_control", "parents": [ { "class": "overlay_control command_palette" } ], "layer1.texture": "ayu/assets/input-command.png" }, { "class": "text_line_control", "parents": [ { "class": "overlay_control goto_symbol" } ], "layer1.texture": "ayu/assets/input-symbol.png" }, { "class": "text_line_control", "parents": [ { "class": "overlay_control goto_symbol_in_project" } ], "layer1.texture": "ayu/assets/input-symbol.png" }, { "class": "text_line_control", "parents": [ { "class": "overlay_control goto_word" } ], "layer1.texture": "ayu/assets/input-word.png" }, { "class": "dropdown_button_control", "content_margin": [ 12, 12 ], "layer0.texture": "ayu/assets/overflow-menu.png", "layer0.tint": "#565b66", "layer0.opacity": 1 }, { "class": "dropdown_button_control", "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "button_control", "content_margin": [ 15, 9, 15, 10 ], "min_size": [ 60, 0 ], "layer0.tint": "#e6b450", "layer0.texture": "ayu/assets/input-bg.png", "layer0.inner_margin": [ 10, 8 ], "layer0.opacity": 0 }, { "class": "button_control", "attributes": [ "hover" ], "layer0.opacity": 1 }, { "class": "icon_button_control", "layer0.tint": [ 0, 0, 0 ], "layer0.opacity": 0, "layer2.tint": "#bfbdb6", "layer2.opacity": { "target": 0, "speed": 10, "interpolation": "smoothstep" }, "content_margin": [ 10, 5 ] }, { "class": "icon_regex", "layer0.texture": "ayu/assets/regex.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_regex", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_case", "layer0.texture": "ayu/assets/matchcase.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_case", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_whole_word", "layer0.texture": "ayu/assets/word.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_whole_word", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_wrap", "layer0.texture": "ayu/assets/wrap.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_wrap", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_in_selection", "layer0.texture": "ayu/assets/inselection.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_in_selection", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_highlight", "layer0.texture": "ayu/assets/highlight.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_highlight", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_preserve_case", "layer0.texture": "ayu/assets/replace-preserve-case.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_preserve_case", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_context", "layer0.texture": "ayu/assets/context.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_context", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_use_buffer", "layer0.texture": "ayu/assets/buffer.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_use_buffer", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "icon_use_gitignore", "layer0.texture": "ayu/assets/gitignore.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "icon_use_gitignore", "parents": [ { "class": "icon_button_control", "attributes": [ "selected" ] } ], "layer0.tint": "#e6b450" }, { "class": "sidebar_button_control", "layer0.texture": "ayu/assets/sidebar.png", "layer0.tint": "#565b66", "layer0.opacity": 1, "content_margin": [ 12, 12 ] }, { "class": "sidebar_button_control", "attributes": [ "hover" ], "layer0.tint": "#e6b450" }, { "class": "label_control", "color": "#565b66", "shadow_color": [ 0, 0, 0, 0 ], "shadow_offset": [ 0, 0 ], "font.bold": false, "font.size": 12 }, { "class": "label_control", "parents": [ { "class": "status_bar" } ], "color": "#565b66", "font.bold": false }, { "class": "label_control", "parents": [ { "class": "button_control" } ], "color": "#565b66" }, { "class": "label_control", "parents": [ { "class": "button_control", "attributes": [ "hover" ] } ], "color": "#734d00" }, { "class": "title_label_control", "color": "#e6b450" }, { "class": "tool_tip_control", "layer0.tint": "#565b66", "layer0.inner_margin": [ 0, 0 ], "layer0.opacity": 1, "content_margin": [ 6, 3 ] }, { "class": "tool_tip_label_control", "color": "#0d1017", "font.size": 12 } ] ```
Brighthouse Financial, Inc. is one of the largest providers of annuities and life insurance in the United States, with $219 billion in total assets and approximately 2.6 million insurance policies and annuity contracts in-force (as of March 31, 2018). Overview On August 4, 2017, Brighthouse Financial completed its separation from MetLife and began trading on the Nasdaq stock exchange on August 7, 2017, under the symbol "BHF." Upon completion of the separation, MetLife retained a 19.2% stake in the company. In 2018, MetLife divested its remaining interest through a debt-for-equity exchange with four financial institutions that owned MetLife debt. Headquartered in Charlotte, North Carolina, the company began selling annuity and life insurance under the Brighthouse Financial brand on March 6, 2017. Separation from MetLife In January 2016, MetLife, Inc. announced its intention to separate a substantial portion of the company’s U.S. Retail segment, which focused on selling life insurance and annuities. The entities marked for separation into the new enterprise included: Brighthouse Life Insurance Company (formerly MetLife Insurance Company USA), Brighthouse Life Insurance Company of NY (formerly First MetLife Investors Insurance Company) and New England Life Insurance Company. On July 21, 2016, MetLife announced it would rebrand the business as Brighthouse Financial and on March 6, 2017 the company began selling annuity and life insurance under the Brighthouse Financial brand. On August 4, 2017, Brighthouse Financial completed its separation from MetLife. The company began trading on the Nasdaq stock exchange on August 7, 2017 under the symbol "BHF". Products Brighthouse Financial sells annuity and life insurance products to U.S. consumers through multiple independent distribution channels. These products are serviced by a third-party vendor "DXC Technology" instead of directly by Brighthouse Financial. Company leadership Brighthouse Financial is led by President and Chief Executive Officer Eric Steigerwalt (formerly Executive Vice President of U.S. Retail Business at MetLife). Additional members of the management team include: Chief Financial Officer Edward Spehar (formerly treasurer at MetLife), Chief Operating Officer Conor Murphy (formerly Chief Financial Officer for MetLife's Latin America region), Chief Investment Officer John Rosenthal (formerly Senior Managing Director at MetLife), and Chief Marketing and Distribution Officer Myles Lambert (formerly Senior Vice President of MetLife’s Northeast Region for the MetLife Premier Client Group). References External links MetLife Companies based in Charlotte, North Carolina Financial services companies established in 2016 American companies established in 2016 Corporate spin-offs Companies listed on the Nasdaq Insurance companies of the United States
```go // Unless explicitly stated otherwise all files in this repository are licensed // This product includes software developed at Datadog (path_to_url // Package ecs contains the definition of the AWS ECS environment. package ecs import ( "fmt" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssm" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/DataDog/test-infra-definitions/common/config" "github.com/DataDog/test-infra-definitions/components/datadog/agent" "github.com/DataDog/test-infra-definitions/components/datadog/ecsagentparams" fakeintakeComp "github.com/DataDog/test-infra-definitions/components/datadog/fakeintake" ecsComp "github.com/DataDog/test-infra-definitions/components/ecs" "github.com/DataDog/test-infra-definitions/resources/aws" "github.com/DataDog/test-infra-definitions/resources/aws/ecs" "github.com/DataDog/test-infra-definitions/scenarios/aws/fakeintake" "github.com/DataDog/datadog-agent/test/new-e2e/pkg/e2e" "github.com/DataDog/datadog-agent/test/new-e2e/pkg/environments" "github.com/DataDog/datadog-agent/test/new-e2e/pkg/runner" "github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/optional" ) const ( provisionerBaseID = "aws-ecs-" defaultECS = "ecs" ) // ProvisionerParams contains all the parameters needed to create the environment type ProvisionerParams struct { name string agentOptions []ecsagentparams.Option fakeintakeOptions []fakeintake.Option extraConfigParams runner.ConfigMap ecsFargate bool ecsLinuxECSOptimizedNodeGroup bool ecsLinuxECSOptimizedARMNodeGroup bool ecsLinuxBottlerocketNodeGroup bool ecsWindowsNodeGroup bool infraShouldDeployFakeintakeWithLB bool workloadAppFuncs []WorkloadAppFunc awsEnv *aws.Environment } func newProvisionerParams() *ProvisionerParams { // We use nil arrays to decide if we should create or not return &ProvisionerParams{ name: defaultECS, agentOptions: []ecsagentparams.Option{}, fakeintakeOptions: []fakeintake.Option{}, extraConfigParams: runner.ConfigMap{}, ecsFargate: false, ecsLinuxECSOptimizedNodeGroup: false, ecsLinuxECSOptimizedARMNodeGroup: false, ecsLinuxBottlerocketNodeGroup: false, ecsWindowsNodeGroup: false, infraShouldDeployFakeintakeWithLB: false, } } // GetProvisionerParams return ProvisionerParams from options opts setup func GetProvisionerParams(opts ...ProvisionerOption) *ProvisionerParams { params := newProvisionerParams() err := optional.ApplyOptions(params, opts) if err != nil { panic(fmt.Errorf("unable to apply ProvisionerOption, err: %w", err)) } return params } // ProvisionerOption is a function that modifies the ProvisionerParams type ProvisionerOption func(*ProvisionerParams) error // WithAgentOptions sets the options for the Docker Agent func WithAgentOptions(opts ...ecsagentparams.Option) ProvisionerOption { return func(params *ProvisionerParams) error { params.agentOptions = append(params.agentOptions, opts...) return nil } } // WithExtraConfigParams sets the extra config params for the environment func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption { return func(params *ProvisionerParams) error { params.extraConfigParams = configMap return nil } } // WithFakeIntakeOptions sets the options for the FakeIntake func WithFakeIntakeOptions(opts ...fakeintake.Option) ProvisionerOption { return func(params *ProvisionerParams) error { params.fakeintakeOptions = append(params.fakeintakeOptions, opts...) return nil } } // WithECSFargateCapacityProvider enable Fargate ECS func WithECSFargateCapacityProvider() ProvisionerOption { return func(params *ProvisionerParams) error { params.ecsFargate = true return nil } } // WithECSLinuxECSOptimizedNodeGroup enable aws/ecs/linuxECSOptimizedNodeGroup func WithECSLinuxECSOptimizedNodeGroup() ProvisionerOption { return func(params *ProvisionerParams) error { params.ecsLinuxECSOptimizedNodeGroup = true return nil } } // WithECSLinuxECSOptimizedARMNodeGroup enable aws/ecs/linuxECSOptimizedARMNodeGroup func WithECSLinuxECSOptimizedARMNodeGroup() ProvisionerOption { return func(params *ProvisionerParams) error { params.ecsLinuxECSOptimizedARMNodeGroup = true return nil } } // WithECSLinuxBottlerocketNodeGroup enable aws/ecs/linuxBottlerocketNodeGroup func WithECSLinuxBottlerocketNodeGroup() ProvisionerOption { return func(params *ProvisionerParams) error { params.ecsLinuxBottlerocketNodeGroup = true return nil } } // WithECSWindowsNodeGroup enable aws/ecs/windowsLTSCNodeGroup func WithECSWindowsNodeGroup() ProvisionerOption { return func(params *ProvisionerParams) error { params.ecsWindowsNodeGroup = true return nil } } // WithInfraShouldDeployFakeintakeWithLB enable load balancer on Fakeintake func WithInfraShouldDeployFakeintakeWithLB() ProvisionerOption { return func(params *ProvisionerParams) error { params.infraShouldDeployFakeintakeWithLB = true return nil } } // WithoutFakeIntake deactivates the creation of the FakeIntake func WithoutFakeIntake() ProvisionerOption { return func(params *ProvisionerParams) error { params.fakeintakeOptions = nil return nil } } // WithoutAgent deactivates the creation of the Docker Agent func WithoutAgent() ProvisionerOption { return func(params *ProvisionerParams) error { params.agentOptions = nil return nil } } // WithAwsEnv asks the provisioner to use the given environment, it is created otherwise func WithAwsEnv(env *aws.Environment) ProvisionerOption { return func(params *ProvisionerParams) error { params.awsEnv = env return nil } } // WorkloadAppFunc is a function that deploys a workload app to an ECS cluster type WorkloadAppFunc func(e aws.Environment, clusterArn pulumi.StringInput) (*ecsComp.Workload, error) // WithWorkloadApp adds a workload app to the environment func WithWorkloadApp(appFunc WorkloadAppFunc) ProvisionerOption { return func(params *ProvisionerParams) error { params.workloadAppFuncs = append(params.workloadAppFuncs, appFunc) return nil } } // Run deploys a ECS environment given a pulumi.Context func Run(ctx *pulumi.Context, env *environments.ECS, params *ProvisionerParams) error { var awsEnv aws.Environment var err error if params.awsEnv != nil { awsEnv = *params.awsEnv } else { awsEnv, err = aws.NewEnvironment(ctx) if err != nil { return err } } // Create cluster ecsCluster, err := ecs.CreateEcsCluster(awsEnv, params.name) if err != nil { return err } // Export clusters properties ctx.Export("ecs-cluster-name", ecsCluster.Name) ctx.Export("ecs-cluster-arn", ecsCluster.Arn) // Handle capacity providers capacityProviders := pulumi.StringArray{} if params.ecsFargate { capacityProviders = append(capacityProviders, pulumi.String("FARGATE")) } linuxNodeGroupPresent := false if params.ecsLinuxECSOptimizedNodeGroup { cpName, err := ecs.NewECSOptimizedNodeGroup(awsEnv, ecsCluster.Name, false) if err != nil { return err } capacityProviders = append(capacityProviders, cpName) linuxNodeGroupPresent = true } if params.ecsLinuxECSOptimizedARMNodeGroup { cpName, err := ecs.NewECSOptimizedNodeGroup(awsEnv, ecsCluster.Name, true) if err != nil { return err } capacityProviders = append(capacityProviders, cpName) linuxNodeGroupPresent = true } if params.ecsLinuxBottlerocketNodeGroup { cpName, err := ecs.NewBottlerocketNodeGroup(awsEnv, ecsCluster.Name) if err != nil { return err } capacityProviders = append(capacityProviders, cpName) linuxNodeGroupPresent = true } if params.ecsWindowsNodeGroup { cpName, err := ecs.NewWindowsNodeGroup(awsEnv, ecsCluster.Name) if err != nil { return err } capacityProviders = append(capacityProviders, cpName) } // Associate capacity providers _, err = ecs.NewClusterCapacityProvider(awsEnv, ctx.Stack(), ecsCluster.Name, capacityProviders) if err != nil { return err } var apiKeyParam *ssm.Parameter var fakeIntake *fakeintakeComp.Fakeintake // Create task and service if params.agentOptions != nil { if params.fakeintakeOptions != nil { fakeIntakeOptions := []fakeintake.Option{} fakeIntakeOptions = append(fakeIntakeOptions, params.fakeintakeOptions...) if awsEnv.InfraShouldDeployFakeintakeWithLB() { fakeIntakeOptions = append(fakeIntakeOptions, fakeintake.WithLoadBalancer()) } if fakeIntake, err = fakeintake.NewECSFargateInstance(awsEnv, "ecs", fakeIntakeOptions...); err != nil { return err } if err := fakeIntake.Export(awsEnv.Ctx(), &env.FakeIntake.FakeintakeOutput); err != nil { return err } } apiKeyParam, err = ssm.NewParameter(ctx, awsEnv.Namer.ResourceName("agent-apikey"), &ssm.ParameterArgs{ Name: awsEnv.CommonNamer().DisplayName(1011, pulumi.String("agent-apikey")), Type: ssm.ParameterTypeSecureString, Overwrite: pulumi.Bool(true), Value: awsEnv.AgentAPIKey(), }, awsEnv.WithProviders(config.ProviderAWS)) if err != nil { return err } // Deploy EC2 Agent if linuxNodeGroupPresent { agentDaemon, err := agent.ECSLinuxDaemonDefinition(awsEnv, "ec2-linux-dd-agent", apiKeyParam.Name, fakeIntake, ecsCluster.Arn, params.agentOptions...) if err != nil { return err } ctx.Export("agent-ec2-linux-task-arn", agentDaemon.TaskDefinition.Arn()) ctx.Export("agent-ec2-linux-task-family", agentDaemon.TaskDefinition.Family()) ctx.Export("agent-ec2-linux-task-version", agentDaemon.TaskDefinition.Revision()) } } for _, appFunc := range params.workloadAppFuncs { _, err := appFunc(awsEnv, ecsCluster.Arn) if err != nil { return err } } return nil } // Provisioner creates a VM environment with an EC2 VM with Docker, an ECS Fargate FakeIntake and a Docker Agent configured to talk to each other. // FakeIntake and Agent creation can be deactivated by using [WithoutFakeIntake] and [WithoutAgent] options. func Provisioner(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.ECS] { // We need to build params here to be able to use params.name in the provisioner name params := GetProvisionerParams(opts...) provisioner := e2e.NewTypedPulumiProvisioner(provisionerBaseID+params.name, func(ctx *pulumi.Context, env *environments.ECS) error { return Run(ctx, env, params) }, params.extraConfigParams) return provisioner } ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package com.haulmont.cuba.web.gui; public enum MainTabSheetMode { DEFAULT, MANAGED } ```
Estádio Hailé Pinheiro, better known as Estádio da Serrinha, is a multi-use stadium located in Goiânia, Brazil. It is used mostly for football matches and hosts the home matches of Goiás Esporte Clube. The stadium has currently a maximum capacity of 14,450 people. History The stadium had originally a capacity for 6,403 people. Estádio da Serrinha was one of the venues of the 2019 FIFA U-17 World Cup. Expansion In February 2019 Goiás started expanding the stadium with the construction of a new terrace behind one of the goalposts, raising the capacity to 12,500 people. In February 2020 was started another phase of the expansion with the construction of a new sideline terrace scheduled to be finished in May 2020, with this expansion the capacity raised to 14,000 people, Goiás planned to start using the stadium for Campeonato Brasileiro Série A matches. References External links Templos do Futebol Serrinha Sports venues in Goiás
In tennis, the 2017 US Open Series was the fourteenth edition of the US Open Series, which comprised a group of hard court tournaments that started on July 24, 2017 in Atlanta and concluded in Connecticut for the women and in Winston-Salem for the men on August 26, 2017. This edition consisted of three separate men's tournaments and three women's tournaments, with the Western & Southern Open hosting both a men's and women's event. The series was headlined by two ATP World Tour Masters 1000 and two WTA Premier 5 events. Discontinuation of the Bonus Challenge The 2017 US Open Series is the first edition of the series not to feature the Bonus Challenge. In previous years, players had been eligible for additional prize money, based on a combination of their finish in the series and their finish in the US Open itself, with the maximum amount of money being awarded to a player who won both. Tournament schedule Week 1 ATP – BB&T Atlanta Open Nick Kyrgios was the defending champion, but chose not to participate this year. Main Draw Finals Week 2 WTA – Bank of the West Classic (Stanford) Johanna Konta was the defending champion, but chose not to participate this year. Main Draw Finals Week 3 ATP – Rogers Cup (Montreal) Novak Djokovic was the defending champion but withdrew with an elbow injury before the tournament began. He also announced that he would miss the remainder of the 2017 season, and thereby the entire US Open Series, due to the injury. Main Draw Finals WTA – Rogers Cup (Toronto) Simona Halep was the defending champion, but lost to Elina Svitolina in the semifinals. Main Draw Finals Week 4 ATP – Western & Southern Open (Cincinnati) Marin Čilić was the defending champion, but withdrew before the tournament began. Main Draw Finals WTA – Western & Southern Open (Cincinnati) Karolína Plíšková was the defending champion, but lost in the semifinals to Garbiñe Muguruza. Main Draw Finals Week 5 ATP – Winston-Salem Open Pablo Carreño Busta was the defending champion, but lost in the second round to Julien Benneteau. Roberto Bautista Agut won the title, defeating Damir Džumhur in the final, 6–4, 6–4. Main Draw Finals WTA – Connecticut Open (New Haven) Agnieszka Radwańska was the defending champion but lost to the eventual champion Daria Gavrilova in the semi-finals. Main Draw Finals Weeks 6–7 ATP – US Open (New York) Stan Wawrinka was the defending champion but withdrew with a knee injury before the tournament began having announced he would miss the remainder of the 2017 season. Main Draw Finals WTA – US Open (New York) Angelique Kerber was the defending champion, but lost in the first round to Naomi Osaka. Main Draw Finals References External links
```xml /** * Mnemonist PassjoinIndex Typings * ================================ */ type LevenshteinDistanceFunction<T> = (a: T, b: T) => number; export default class PassjoinIndex<T> implements Iterable<T> { // Members size: number; // Constructor constructor(levenshtein: LevenshteinDistanceFunction<T>, k: number); // Methods add(value: T): this; search(query: T): Set<T>; clear(): void; forEach(callback: (value: T, index: number, self: this) => void, scope?: any): void; values(): IterableIterator<T>; [Symbol.iterator](): IterableIterator<T>; inspect(): any; // Statics static from<I>( iterable: Iterable<I> | {[key: string]: I}, levenshtein: LevenshteinDistanceFunction<I>, k: number ): PassjoinIndex<I>; } export function countKeys(k: number, s: number): number; export function comparator<T>(a: T, b: T): number; export function partition(k: number, l: number): Array<[number, number]>; export function segments<T>(k: number, string: T): Array<T>; export function segmentPos<T>(k: number, i: number, string: T): number; export function multiMatchAwareInterval( k: number, delta: number, i: number, s: number, pi: number, li: number ): [number, number]; export function multiMatchAwareSubstrings<T>( k: number, string: T, l: number, i: number, pi: number, li: number ): Array<T>; ```
Louis Bennett LeCocq (March 27, 1892 – May 31, 1919) was an American racecar driver. LeCocq and his riding mechanic Robert Bandini were killed in the 1919 Indianapolis 500 after the fuel tank on their "Roamer" ruptured and exploded. Indianapolis 500 results See also List of fatalities at the Indianapolis Motor Speedway References External links 1892 births 1919 deaths People from Pella, Iowa Racing drivers from Iowa Indianapolis 500 drivers AAA Championship Car drivers Racing drivers who died while racing Sports deaths in Indiana
Wynand Nicolas Breytenbach (25 June 1935 – 18 October 2002) was a South African politician and a former pilot in the South African Air Force. He was Deputy Minister of Defence from 1987 to 1994. A member of the National Party (NP) and a former mayor of Kroonstad, Breytenbach represented the Kroonstad constituency in the apartheid-era House of Assembly from 1981 to 1994. Although he was elected to the post-apartheid National Assembly in 1994, he retired later the same year. Early life and career Breytenbach was born on 25 June 1935 in Perdeberg in the former Orange Free State. He grew up in Boshof. He was trained as a pilot in the South African Defence Force and, after his service in the air force, he worked in the civil aviation sector before launching his own aerial irrigation company, which operated mainly in the Cape Province. Political career Breytenbach entered politics in 1972 when he was elected as a local councillor in Kroonstad. He served as the town's mayor in 1977. He later represented the Lindley constituency in the provincial council and then was elected to the House of Assembly, representing the Kroonstad constituency, in the 1981 general election. He remained in his seat until the house was disbanded upon the end of apartheid in 1994, and he also served as Deputy Minister of Defence from 1987 to 1994. He was the NP's representative on the defence sub-council of the Transitional Executive Council that was established to facilitate the democratic transition. In the 1994 general election, he was elected to represent the NP in the new multi-racial National Assembly. He resigned later in 1994 and retired from politics. Personal life and death Breytenbach's first wife died in 1968. He was married to his second wife, Martie, at the time of his death. He had seven children and lived in Noordhoek. Breytenbach had a heart condition and underwent a heart transplant in 2000. In October 2002, he was admitted to the Christiaan Barnard Memorial Hospital in Cape Town, and he died there two weeks later, on 18 October 2002. References 1935 births 2002 deaths 20th-century South African politicians Members of the National Assembly of South Africa Members of the House of Assembly (South Africa) Politicians from the Free State (province) Mayors of places in South Africa National Party (South Africa) politicians
Francis John Shaughnessy Jr. (June 21, 1911 – June 12, 1982) was a Canadian/American athlete. In ice hockey, he was a member of the American team which won the bronze medal in the 1936 Winter Olympics. He was the son of Frank Shaughnessy, also an athlete and sports official. Sporting career He was born in Roanoke, Virginia and raised in Montreal, Quebec. In Montreal, Shaughnessy was an all-star halfback for the McGill Redmen football team and was also a player on the ice hockey team. Shaughnessy held dual American and Canadian citizenship and he joined the American team for the 1936 Olympics. Shaughnessy was active in the Canadian Olympic Association, serving as chef de mission at five Olympic Winter Games and was vice president of the COA from 1957 through 1975. Shaughnessy later was one of the organizers of the 1976 Summer Olympics in Montreal. Shaughnessy was also an administrator in the Canadian Ski Association and the Canadian and Quebec Golf Associations. Shaughnessy died in 1982 in Montreal. References External links 1911 births 1982 deaths American men's ice hockey defensemen Anglophone Quebec people Canadian ice hockey defencemen Ice hockey people from Virginia Ice hockey players at the 1936 Winter Olympics McGill Redbirds football players McGill Redbirds and Martlets ice hockey players Medalists at the 1936 Winter Olympics Olympic bronze medalists for the United States in ice hockey Players of Canadian football from Quebec Sportspeople from Roanoke, Virginia American emigrants to Canada
```python # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. import unittest import numpy as np import paddle from paddle import pir from paddle.decomposition import decompose from paddle.framework import core paddle.enable_static() def meshgrid_net(x1, x2, x3, x4): return paddle.meshgrid(x1, x2, x3, x4) class TestBuildOp(unittest.TestCase): def setUp(self): np.random.seed(2023) self.dtype = "float32" self.c_shape = [64] self.init_x_shape = [1, 64, 512, 1024] self.x1 = np.random.random(self.c_shape).astype(self.dtype) self.x2 = np.random.random(self.c_shape).astype(self.dtype) self.x3 = np.random.random(self.c_shape).astype(self.dtype) self.x4 = np.random.random(self.c_shape).astype(self.dtype) self.net = meshgrid_net def get_ir_program(self): paddle.enable_static() with paddle.pir_utils.OldIrGuard(): main_program, start_program = ( paddle.static.Program(), paddle.static.Program(), ) with paddle.static.program_guard(main_program, start_program): x1 = paddle.static.data('x1', self.c_shape, self.dtype) x2 = paddle.static.data('x2', self.c_shape, self.dtype) x3 = paddle.static.data('x3', self.c_shape, self.dtype) x4 = paddle.static.data('x4', self.c_shape, self.dtype) y = meshgrid_net(x1, x2, x3, x4) res1 = paddle.tanh(y[0]) res2 = paddle.sin(y[1]) res3 = paddle.cos(y[2]) pir_program = pir.translate_to_pir(main_program.desc) return pir_program def test_build_op(self): pir_program = self.get_ir_program() y = pir_program.global_block().ops[-1].results() orig_shape = y[0].shape with paddle.pir_utils.IrGuard(): core._set_prim_forward_enabled(True) y_new = decompose(pir_program, y) core._set_prim_forward_enabled(False) new_shape = y_new[0].shape assert ( orig_shape == new_shape ), f"Original shape {orig_shape} is not equal to new shape {new_shape}" op_name_list = [op.name() for op in pir_program.global_block().ops] assert "pd_op.meshgrid" not in op_name_list if __name__ == "__main__": unittest.main() ```
HMS Viper was launched at Cowes in 1805 as the mercantile schooner Princess Charlotte. The Royal Navy purchased her in 1807. Lieutenant William Towning commissioned her. On 9 (or 18) February 1809 she sailed from Cadiz for Gibraltar. She never arrived and was presumed to have foundered with all hands. She was carrying as a passenger Robert Arbuthnot, the former Chief Secretary in Ceylon. Citations References 1805 ships Age of Sail merchant ships of England Schooners of the Royal Navy Maritime incidents in 1809 Missing ships Warships lost with all hands
Hortoneda is a hamlet located in the municipality of Conca de Dalt, in Province of Lleida province, Catalonia, Spain. As of 2020, it has a population of 29. Geography Hortoneda is located 117km north-northeast of Lleida. References Populated places in the Province of Lleida
```python # flake8: noqa # __streaming_example_start__ # File name: stream.py from typing import AsyncGenerator, Generator from ray import serve from ray.serve.handle import DeploymentHandle, DeploymentResponseGenerator @serve.deployment class Streamer: def __call__(self, limit: int) -> Generator[int, None, None]: for i in range(limit): yield i @serve.deployment class Caller: def __init__(self, streamer: DeploymentHandle): self._streamer = streamer.options( # Must set `stream=True` on the handle, then the output will be a # response generator. stream=True, ) async def __call__(self, limit: int) -> AsyncGenerator[int, None]: # Response generator can be used in an `async for` block. r: DeploymentResponseGenerator = self._streamer.remote(limit) async for i in r: yield i app = Caller.bind(Streamer.bind()) handle: DeploymentHandle = serve.run(app).options( stream=True, ) # Response generator can also be used as a regular generator in a sync context. r: DeploymentResponseGenerator = handle.remote(10) assert list(r) == list(range(10)) # __streaming_example_end__ ```
Podachaenium is a genus of Mesoamerican plants in the tribe Heliantheae within the family Asteraceae. Species Podachaenium chiapanum B.L.Turner & Panero - Chiapas Podachaenium eminens (Lag.) Sch.Bip. ex Sch.Bip. - from Sinaloa to Costa Rica Podachaenium pachyphyllum (Sch.Bip. ex Klatt) R.K.Jansen, N.A.Harriman & Urbatsch - Puebla, Oaxaca Podachaenium paniculatum Benth. - Costa Rica formerly included see Squamopappus Verbesina Podachaenium skutchii (S.F.Blake) H.Rob. - Squamopappus skutchii (S.F.Blake) R.K.Jansen, N.A.Harriman & Urbatsch Podachaenium standleyi (Steyerm.) B.L.Turner & Panero - Verbesina standleyi (Steyerm.) D.L.Nash References Asteraceae genera Heliantheae Flora of Northern America
Mateo de Sagade de Bugueyro also Mateo Segade Bugueiro or Mateo Sagade Bugueyro (1605 – 28 August 1672) was a Spanish Catholic prelate who served as Archbishop (Personal Title) of Cartagena (1664–1672) and Archbishop of Mexico (1655–1664). Biography Mateo de Sagade de Bugueyro was born in Pontevedra, Spain. On 14 May 1655, he selected by the King of Spain and confirmed by Pope Alexander VII as Archbishop of Mexico. On 25 July 1656, he was consecrated bishop by Juan Merlo de la Fuente, Bishop of Comayagua with Pedro de Barrientos Lomelin, Bishop of Durango serving as co-consecrator. On 28 January 1664, he was appointed by Pope Alexander VII as Archbishop (Personal Title) of Cartagena. He served as Archbishop of Cartagena until his death on 28 August 1672. Episcopal succession While bishop, he was the principal consecrator of: Juan Alonso de Cuevas y Davalos, Bishop of Antequera, Oaxaca (1658); Juan Aguirre y Gorozpe, Bishop of Durango (1660); and Antonio Fernández del Campo Angulo y Velasco, Bishop of Tui (1666). References External links and additional sources (for Chronology of Bishops) (for Chronology of Bishops) (for Chronology of Bishops) (for Chronology of Bishops) 1672 deaths 17th-century Roman Catholic archbishops in Mexico 17th-century Roman Catholic archbishops in Spain Roman Catholic archbishops of Mexico (city) Spanish Roman Catholic bishops in North America Bishops appointed by Pope Alexander VII 1605 births
"Blue River" is a 1965 song by Elvis Presley. He released it on a single in December 1965 or January 1966. Writing and recording The song was written by Paul Evans and Fred Tobias. Presley recorded it on May 27, 1963 at RCA's Studio B in Nashville, Tennessee. Track listings 7-inch single (RCA 47–8740, 1965 or January 1966) "Tell Me Why" "Blue River" 7-inch single (1965) "Blue River" "Do Not Disturb" 7-inch single (1965) "Blue River" (2:10) "You'll Be Gone" (2:20) 7-inch EP (RCA Victor 86.508 M, France, 1966) "Blue River" "Memphis Tennessee" "Puppet on a String" "Tell Me Why" Charts References External links Elvis Presley – Blue River / Do Not Disturb (7-inch single) at Discogs Elvis Presley - Tell Me Why / Blue River (7-inch single) at Discogs Elvis Presley - Blue River / Do Not Disturb (7-inch single) at Discogs Elvis Presley With The Jordanaires - Blue River / You'll Be Gone (7-inch single) at Discogs Elvis Presley, The Jordanaires - Blue River ... Memphis Tennessee / Puppet on a String / Tell Me Why (7-inch EP, France) at Discogs 1965 songs 1965 singles Elvis Presley songs RCA Records singles Songs written by Paul Evans (musician) Songs written by Fred Tobias
```xml import type { MessageItem } from 'vscode'; import { QuickInputButtons, Uri, window, workspace } from 'vscode'; import type { Config } from '../../config'; import { proBadge, proBadgeSuperscript } from '../../constants'; import type { Container } from '../../container'; import { CancellationError } from '../../errors'; import { PlusFeatures } from '../../features'; import { convertLocationToOpenFlags, convertOpenFlagsToLocation, reveal } from '../../git/actions/worktree'; import { ApplyPatchCommitError, ApplyPatchCommitErrorReason, WorktreeCreateError, WorktreeCreateErrorReason, WorktreeDeleteError, WorktreeDeleteErrorReason, } from '../../git/errors'; import { uncommitted, uncommittedStaged } from '../../git/models/constants'; import type { GitReference } from '../../git/models/reference'; import { getNameWithoutRemote, getReferenceLabel, isBranchReference, isRevisionReference, isSha, } from '../../git/models/reference'; import type { Repository } from '../../git/models/repository'; import type { GitWorktree } from '../../git/models/worktree'; import { showGenericErrorMessage } from '../../messages'; import type { QuickPickItemOfT } from '../../quickpicks/items/common'; import { createQuickPickSeparator } from '../../quickpicks/items/common'; import { Directive } from '../../quickpicks/items/directive'; import type { FlagsQuickPickItem } from '../../quickpicks/items/flags'; import { createFlagsQuickPickItem } from '../../quickpicks/items/flags'; import { configuration } from '../../system/configuration'; import { basename, isDescendant } from '../../system/path'; import type { Deferred } from '../../system/promise'; import { pluralize, truncateLeft } from '../../system/string'; import { getWorkspaceFriendlyPath, openWorkspace, revealInFileExplorer } from '../../system/utils'; import type { ViewsWithRepositoryFolders } from '../../views/viewBase'; import type { AsyncStepResultGenerator, CustomStep, PartialStepState, QuickPickStep, StepGenerator, StepResultGenerator, StepSelection, StepState, } from '../quickCommand'; import { canPickStepContinue, canStepContinue, createConfirmStep, createCustomStep, createPickStep, endSteps, QuickCommand, StepResultBreak, } from '../quickCommand'; import { appendReposToTitle, ensureAccessStep, inputBranchNameStep, pickBranchOrTagStep, pickRepositoryStep, pickWorktreesStep, pickWorktreeStep, } from '../quickCommand.steps'; interface Context { repos: Repository[]; associatedView: ViewsWithRepositoryFolders; defaultUri?: Uri; pickedRootFolder?: Uri; pickedSpecificFolder?: Uri; showTags: boolean; title: string; worktrees?: GitWorktree[]; } type CreateConfirmationChoice = Uri | 'changeRoot' | 'chooseFolder'; type CreateFlags = '--force' | '-b' | '--detach' | '--direct'; interface CreateState { subcommand: 'create'; repo: string | Repository; uri: Uri; reference?: GitReference; addRemote?: { name: string; url: string }; createBranch?: string; flags: CreateFlags[]; result?: Deferred<GitWorktree | undefined>; reveal?: boolean; overrides?: { title?: string; }; onWorkspaceChanging?: (() => Promise<void>) | (() => void); skipWorktreeConfirmations?: boolean; } type DeleteFlags = '--force'; interface DeleteState { subcommand: 'delete'; repo: string | Repository; uris: Uri[]; flags: DeleteFlags[]; overrides?: { title?: string; }; } type OpenFlags = '--add-to-workspace' | '--new-window' | '--reveal-explorer'; interface OpenState { subcommand: 'open'; repo: string | Repository; worktree: GitWorktree; flags: OpenFlags[]; openOnly?: boolean; overrides?: { disallowBack?: boolean; title?: string; confirmation?: { title?: string; placeholder?: string; }; }; onWorkspaceChanging?: (() => Promise<void>) | (() => void); skipWorktreeConfirmations?: boolean; } interface CopyChangesState { subcommand: 'copy-changes'; repo: string | Repository; worktree: GitWorktree; changes: | { baseSha?: string; contents?: string; type: 'index' | 'working-tree' } | { baseSha: string; contents: string; type?: 'index' | 'working-tree' }; overrides?: { title?: string; }; } type State = CreateState | DeleteState | OpenState | CopyChangesState; type WorktreeStepState<T extends State> = SomeNonNullable<StepState<T>, 'subcommand'>; type CreateStepState<T extends CreateState = CreateState> = WorktreeStepState<ExcludeSome<T, 'repo', string>>; type DeleteStepState<T extends DeleteState = DeleteState> = WorktreeStepState<ExcludeSome<T, 'repo', string>>; type OpenStepState<T extends OpenState = OpenState> = WorktreeStepState<ExcludeSome<T, 'repo', string>>; type CopyChangesStepState<T extends CopyChangesState = CopyChangesState> = WorktreeStepState< ExcludeSome<T, 'repo', string> >; function assertStateStepRepository( state: PartialStepState<State>, ): asserts state is PartialStepState<State> & { repo: Repository } { if (state.repo != null && typeof state.repo !== 'string') return; debugger; throw new Error('Missing repository'); } const subcommandToTitleMap = new Map<State['subcommand'] | undefined, string>([ [undefined, `Worktrees ${proBadgeSuperscript}`], ['create', `Create Worktree`], ['delete', `Delete Worktrees`], ['open', `Open Worktree`], ['copy-changes', 'Copy Changes to'], ]); function getTitle(subcommand: State['subcommand'] | undefined, suffix?: string) { return `${subcommandToTitleMap.get(subcommand)}${suffix ?? ''}`; } export interface WorktreeGitCommandArgs { readonly command: 'worktree'; confirm?: boolean; state?: Partial<State>; } export class WorktreeGitCommand extends QuickCommand<State> { private subcommand: State['subcommand'] | undefined; constructor(container: Container, args?: WorktreeGitCommandArgs) { super(container, 'worktree', 'worktree', `Worktrees ${proBadgeSuperscript}`, { description: `${proBadge}\u00a0\u00a0open, create, or delete worktrees`, }); let counter = 0; if (args?.state?.subcommand != null) { counter++; switch (args.state.subcommand) { case 'create': if (args.state.uri != null) { counter++; } if (args.state.reference != null) { counter++; } break; case 'delete': if (args.state.uris != null && (!Array.isArray(args.state.uris) || args.state.uris.length !== 0)) { counter++; } break; case 'open': if (args.state.worktree != null) { counter++; } break; case 'copy-changes': if (args.state.worktree != null) { counter++; } break; } } if (args?.state?.repo != null) { counter++; } this.initialState = { counter: counter, confirm: args?.confirm, ...args?.state, }; } override get canConfirm(): boolean { return this.subcommand != null; } private _canSkipConfirmOverride: boolean | undefined; override get canSkipConfirm(): boolean { return this._canSkipConfirmOverride ?? this.subcommand === 'open'; } override get skipConfirmKey() { return `${this.key}${this.subcommand == null ? '' : `-${this.subcommand}`}:${this.pickedVia}`; } protected async *steps(state: PartialStepState<State>): StepGenerator { const context: Context = { repos: this.container.git.openRepositories, associatedView: this.container.worktreesView, showTags: false, title: this.title, }; let skippedStepTwo = false; while (this.canStepsContinue(state)) { context.title = state.overrides?.title ?? this.title; if (state.counter < 1 || state.subcommand == null) { this.subcommand = undefined; const result = yield* this.pickSubcommandStep(state); // Always break on the first step (so we will go back) if (result === StepResultBreak) break; state.subcommand = result; } this.subcommand = state.subcommand; context.title = state.overrides?.title ?? getTitle(state.subcommand); if (state.counter < 2 || state.repo == null || typeof state.repo === 'string') { skippedStepTwo = false; if (context.repos.length === 1) { skippedStepTwo = true; if (state.repo == null) { state.counter++; } state.repo = context.repos[0]; } else { const result = yield* pickRepositoryStep(state, context); if (result === StepResultBreak) continue; state.repo = result; } } if (state.subcommand !== 'copy-changes') { // Ensure we use the "main" repository if we are in a worktree already state.repo = (await state.repo.getCommonRepository()) ?? state.repo; } assertStateStepRepository(state); const result = yield* ensureAccessStep(state, context, PlusFeatures.Worktrees); if (result === StepResultBreak) continue; switch (state.subcommand) { case 'create': { yield* this.createCommandSteps(state as CreateStepState, context); // Clear any chosen path, since we are exiting this subcommand state.uri = undefined; break; } case 'delete': { if (state.uris != null && !Array.isArray(state.uris)) { state.uris = [state.uris]; } yield* this.deleteCommandSteps(state as DeleteStepState, context); break; } case 'open': { yield* this.openCommandSteps(state as OpenStepState, context); break; } case 'copy-changes': { yield* this.copyChangesCommandSteps(state as CopyChangesStepState, context); break; } default: endSteps(state); break; } // If we skipped the previous step, make sure we back up past it if (skippedStepTwo) { state.counter--; } } return state.counter < 0 ? StepResultBreak : undefined; } private *pickSubcommandStep(state: PartialStepState<State>): StepResultGenerator<State['subcommand']> { const step = createPickStep<QuickPickItemOfT<State['subcommand']>>({ title: this.title, placeholder: `Choose a ${this.label} command`, items: [ { label: 'open', description: 'opens the specified worktree', picked: state.subcommand === 'open', item: 'open', }, { label: 'create', description: 'creates a new worktree', picked: state.subcommand === 'create', item: 'create', }, { label: 'delete', description: 'deletes the specified worktrees', picked: state.subcommand === 'delete', item: 'delete', }, ], buttons: [QuickInputButtons.Back], }); const selection: StepSelection<typeof step> = yield step; return canPickStepContinue(step, state, selection) ? selection[0].item : StepResultBreak; } private async *createCommandSteps(state: CreateStepState, context: Context): AsyncStepResultGenerator<void> { if (context.defaultUri == null) { context.defaultUri = await state.repo.getWorktreesDefaultUri(); } if (state.flags == null) { state.flags = []; } context.pickedRootFolder = undefined; context.pickedSpecificFolder = undefined; // Don't allow skipping the confirm step state.confirm = true; this._canSkipConfirmOverride = undefined; while (this.canStepsContinue(state)) { if (state.counter < 3 || state.reference == null) { const result = yield* pickBranchOrTagStep(state, context, { placeholder: context => `Choose a branch${context.showTags ? ' or tag' : ''} to create the new worktree for`, picked: state.reference?.ref ?? (await state.repo.getBranch())?.ref, titleContext: ' for', value: isRevisionReference(state.reference) ? state.reference.ref : undefined, }); // Always break on the first step (so we will go back) if (result === StepResultBreak) break; state.reference = result; } if (state.uri == null) { state.uri = context.defaultUri!; } if (this.confirm(state.confirm)) { const result = yield* this.createCommandConfirmStep(state, context); if (result === StepResultBreak) continue; if (typeof result[0] === 'string') { switch (result[0]) { case 'changeRoot': { const result = yield* this.createCommandChoosePathStep(state, context, { title: `Choose a Different Root Folder for this Worktree`, label: 'Choose Root Folder', pickedUri: context.pickedRootFolder, defaultUri: context.pickedRootFolder ?? context.defaultUri, }); if (result === StepResultBreak) continue; state.uri = result; // Keep track of the actual uri they picked, because we will modify it in later steps context.pickedRootFolder = state.uri; context.pickedSpecificFolder = undefined; continue; } case 'chooseFolder': { const result = yield* this.createCommandChoosePathStep(state, context, { title: `Choose a Specific Folder for this Worktree`, label: 'Choose Worktree Folder', pickedUri: context.pickedRootFolder, defaultUri: context.pickedSpecificFolder ?? context.defaultUri, }); if (result === StepResultBreak) continue; state.uri = result; // Keep track of the actual uri they picked, because we will modify it in later steps context.pickedRootFolder = undefined; context.pickedSpecificFolder = state.uri; continue; } } } [state.uri, state.flags] = result; } // Reset any confirmation overrides state.confirm = true; this._canSkipConfirmOverride = undefined; const isRemoteBranch = state.reference?.refType === 'branch' && state.reference?.remote; if (isRemoteBranch && !state.flags.includes('-b')) { state.flags.push('-b'); state.createBranch = getNameWithoutRemote(state.reference); const branch = await state.repo.getBranch(state.createBranch); if (branch != null) { state.createBranch = state.reference.name; } } if (state.flags.includes('-b')) { let createBranchOverride: string | undefined; if (state.createBranch != null) { let valid = await this.container.git.validateBranchOrTagName(state.repo.path, state.createBranch); if (valid) { const alreadyExists = await state.repo.getBranch(state.createBranch); valid = alreadyExists == null; } if (!valid) { createBranchOverride = state.createBranch; state.createBranch = undefined; } } if (state.createBranch == null) { const result = yield* inputBranchNameStep(state, context, { titleContext: ` and New Branch from ${getReferenceLabel(state.reference, { capitalize: true, icon: false, label: state.reference.refType !== 'branch', })}`, value: createBranchOverride ?? state.createBranch ?? getNameWithoutRemote(state.reference), }); if (result === StepResultBreak) { // Clear the flags, since we can backup after the confirm step below (which is non-standard) state.flags = []; continue; } state.createBranch = result; } } const uri = state.flags.includes('--direct') ? state.uri : Uri.joinPath( state.uri, ...(state.createBranch ?? state.reference.name).replace(/\\/g, '/').split('/'), ); let worktree: GitWorktree | undefined; try { if (state.addRemote != null) { await state.repo.addRemote(state.addRemote.name, state.addRemote.url, { fetch: true }); } worktree = await state.repo.createWorktree(uri, { commitish: state.reference?.name, createBranch: state.flags.includes('-b') ? state.createBranch : undefined, detach: state.flags.includes('--detach'), force: state.flags.includes('--force'), }); state.result?.fulfill(worktree); } catch (ex) { if ( WorktreeCreateError.is(ex, WorktreeCreateErrorReason.AlreadyCheckedOut) && !state.flags.includes('--force') ) { const createBranch: MessageItem = { title: 'Create New Branch' }; const force: MessageItem = { title: 'Create Anyway' }; const cancel: MessageItem = { title: 'Cancel', isCloseAffordance: true }; const result = await window.showWarningMessage( `Unable to create the new worktree because ${getReferenceLabel(state.reference, { icon: false, quoted: true, })} is already checked out.\n\nWould you like to create a new branch for this worktree or forcibly create it anyway?`, { modal: true }, createBranch, force, cancel, ); if (result === createBranch) { state.flags.push('-b'); this._canSkipConfirmOverride = true; state.confirm = false; continue; } if (result === force) { state.flags.push('--force'); this._canSkipConfirmOverride = true; state.confirm = false; continue; } } else if (WorktreeCreateError.is(ex, WorktreeCreateErrorReason.AlreadyExists)) { const confirm: MessageItem = { title: 'OK' }; const openFolder: MessageItem = { title: 'Open Folder' }; void window .showErrorMessage( `Unable to create a new worktree in '${getWorkspaceFriendlyPath( uri, )}' because the folder already exists and is not empty.`, confirm, openFolder, ) .then(result => { if (result === openFolder) { void revealInFileExplorer(uri); } }); } else { void showGenericErrorMessage( `Unable to create a new worktree in '${getWorkspaceFriendlyPath(uri)}.`, ); } } endSteps(state); if (worktree == null) break; if (state.reveal !== false) { setTimeout(() => { if (this.container.worktreesView.visible) { void reveal(worktree, { select: true, focus: false }); } }, 100); } type OpenAction = Config['worktrees']['openAfterCreate']; const action: OpenAction = configuration.get('worktrees.openAfterCreate'); if (action !== 'never') { let flags: OpenFlags[]; switch (action) { case 'always': flags = convertLocationToOpenFlags('currentWindow'); break; case 'alwaysNewWindow': flags = convertLocationToOpenFlags('newWindow'); break; case 'onlyWhenEmpty': flags = convertLocationToOpenFlags( workspace.workspaceFolders?.length ? 'newWindow' : 'currentWindow', ); break; default: flags = []; break; } yield* this.openCommandSteps( { subcommand: 'open', repo: state.repo, worktree: worktree, flags: flags, counter: 3, confirm: action === 'prompt', openOnly: true, overrides: { disallowBack: true }, skipWorktreeConfirmations: state.skipWorktreeConfirmations, onWorkspaceChanging: state.onWorkspaceChanging, } satisfies OpenStepState, context, ); } } } private *createCommandChoosePathStep( state: CreateStepState, context: Context, options: { title: string; label: string; pickedUri: Uri | undefined; defaultUri?: Uri }, ): StepResultGenerator<Uri> { const step = createCustomStep<Uri>({ show: async (_step: CustomStep<Uri>) => { const uris = await window.showOpenDialog({ canSelectFiles: false, canSelectFolders: true, canSelectMany: false, defaultUri: options.pickedUri ?? state.uri ?? context.defaultUri, openLabel: options.label, title: options.title, }); if (uris == null || uris.length === 0) return Directive.Back; return uris[0]; }, }); const value: StepSelection<typeof step> = yield step; if (!canStepContinue(step, state, value)) return StepResultBreak; return value; } private *createCommandConfirmStep( state: CreateStepState, context: Context, ): StepResultGenerator<[CreateConfirmationChoice, CreateFlags[]]> { /** * Here are the rules for creating the recommended path for the new worktree: * * If the user picks a folder outside the repo, it will be `<chosen-path>/<repo>.worktrees/<?branch>` * If the user picks the repo folder, it will be `<repo>/../<repo>.worktrees/<?branch>` * If the user picks a folder inside the repo, it will be `<repo>/../<repo>.worktrees/<?branch>` */ let createDirectlyInFolder = false; if (context.pickedSpecificFolder != null) { createDirectlyInFolder = true; } const pickedUri = context.pickedSpecificFolder ?? context.pickedRootFolder ?? state.uri; const pickedFriendlyPath = truncateLeft(getWorkspaceFriendlyPath(pickedUri), 60); let recommendedRootUri; const repoUri = state.repo.uri; const trailer = `${basename(repoUri.path)}.worktrees`; if (repoUri.toString() !== pickedUri.toString()) { if (isDescendant(pickedUri, repoUri)) { recommendedRootUri = Uri.joinPath(repoUri, '..', trailer); } else if (basename(pickedUri.path) === trailer) { recommendedRootUri = pickedUri; } else { recommendedRootUri = Uri.joinPath(pickedUri, trailer); } } else { recommendedRootUri = Uri.joinPath(repoUri, '..', trailer); // Don't allow creating directly into the main worktree folder createDirectlyInFolder = false; } const branchName = state.reference != null ? getNameWithoutRemote(state.reference) : undefined; const recommendedFriendlyPath = `<root>/${truncateLeft( `${trailer}/${branchName?.replace(/\\/g, '/') ?? ''}`, 65, )}`; const recommendedNewBranchFriendlyPath = `<root>/${trailer}/${state.createBranch || '<new-branch-name>'}`; const isBranch = isBranchReference(state.reference); const isRemoteBranch = isBranchReference(state.reference) && state.reference?.remote; type StepType = FlagsQuickPickItem<CreateFlags, CreateConfirmationChoice>; const defaultOption = createFlagsQuickPickItem<CreateFlags, Uri>( state.flags, [], { label: isRemoteBranch ? 'Create Worktree for New Local Branch' : isBranch ? 'Create Worktree for Branch' : context.title, description: '', detail: `Will create worktree in $(folder) ${recommendedFriendlyPath}`, }, recommendedRootUri, ); const confirmations: StepType[] = []; if (!createDirectlyInFolder) { if (!state.createBranch) { if (state.skipWorktreeConfirmations) { return [defaultOption.context, defaultOption.item]; } confirmations.push(defaultOption); } confirmations.push( createFlagsQuickPickItem<CreateFlags, Uri>( state.flags, ['-b'], { label: isRemoteBranch ? 'Create Worktree for New Local Branch Named...' : 'Create Worktree for New Branch Named...', description: '', detail: `Will create worktree in $(folder) ${recommendedNewBranchFriendlyPath}`, }, recommendedRootUri, ), ); } else { if (!state.createBranch) { confirmations.push( createFlagsQuickPickItem<CreateFlags, Uri>( state.flags, ['--direct'], { label: isRemoteBranch ? 'Create Worktree for Local Branch' : isBranch ? 'Create Worktree for Branch' : context.title, description: '', detail: `Will create worktree directly in $(folder) ${truncateLeft( pickedFriendlyPath, 60, )}`, }, pickedUri, ), ); } confirmations.push( createFlagsQuickPickItem<CreateFlags, Uri>( state.flags, ['-b', '--direct'], { label: isRemoteBranch ? 'Create Worktree for New Local Branch' : 'Create Worktree for New Branch', description: '', detail: `Will create worktree directly in $(folder) ${truncateLeft(pickedFriendlyPath, 60)}`, }, pickedUri, ), ); } if (!createDirectlyInFolder) { confirmations.push( createQuickPickSeparator(), createFlagsQuickPickItem<CreateFlags, CreateConfirmationChoice>( [], [], { label: 'Change Root Folder...', description: `$(folder) ${truncateLeft(pickedFriendlyPath, 65)}`, picked: false, }, 'changeRoot', ), ); } confirmations.push( createFlagsQuickPickItem<CreateFlags, CreateConfirmationChoice>( [], [], { label: 'Choose a Specific Folder...', description: '', picked: false, }, 'chooseFolder', ), ); const step = createConfirmStep( appendReposToTitle( `Confirm ${context.title} \u2022 ${ state.createBranch || getReferenceLabel(state.reference, { icon: false, label: false, }) }`, state, context, ), confirmations, context, ); const selection: StepSelection<typeof step> = yield step; return canPickStepContinue(step, state, selection) ? [selection[0].context, selection[0].item] : StepResultBreak; } private async *deleteCommandSteps(state: DeleteStepState, context: Context): StepGenerator { context.worktrees = await state.repo.getWorktrees(); if (state.flags == null) { state.flags = []; } while (this.canStepsContinue(state)) { if (state.counter < 3 || state.uris == null || state.uris.length === 0) { context.title = getTitle(state.subcommand); const result = yield* pickWorktreesStep(state, context, { filter: wt => !wt.main || !wt.opened, // Can't delete the main or opened worktree includeStatus: true, picked: state.uris?.map(uri => uri.toString()), placeholder: 'Choose worktrees to delete', }); // Always break on the first step (so we will go back) if (result === StepResultBreak) break; state.uris = result.map(w => w.uri); } context.title = getTitle(state.subcommand); const result = yield* this.deleteCommandConfirmStep(state, context); if (result === StepResultBreak) continue; state.flags = result; endSteps(state); for (const uri of state.uris) { let retry = false; let skipHasChangesPrompt = false; do { retry = false; const force = state.flags.includes('--force'); try { if (force) { const worktree = context.worktrees.find(wt => wt.uri.toString() === uri.toString()); let status; try { status = await worktree?.getStatus(); } catch {} if ((status?.hasChanges ?? false) && !skipHasChangesPrompt) { const confirm: MessageItem = { title: 'Force Delete' }; const cancel: MessageItem = { title: 'Cancel', isCloseAffordance: true }; const result = await window.showWarningMessage( `The worktree in '${uri.fsPath}' has uncommitted changes.\n\nDeleting it will cause those changes to be FOREVER LOST.\nThis is IRREVERSIBLE!\n\nAre you sure you still want to delete it?`, { modal: true }, confirm, cancel, ); if (result !== confirm) return; } } await state.repo.deleteWorktree(uri, { force: force }); } catch (ex) { skipHasChangesPrompt = false; if (WorktreeDeleteError.is(ex)) { if (ex.reason === WorktreeDeleteErrorReason.MainWorkingTree) { void window.showErrorMessage('Unable to delete the main worktree'); } else if (!force) { const confirm: MessageItem = { title: 'Force Delete' }; const cancel: MessageItem = { title: 'Cancel', isCloseAffordance: true }; const result = await window.showErrorMessage( ex.reason === WorktreeDeleteErrorReason.HasChanges ? `Unable to delete worktree because there are UNCOMMITTED changes in '${uri.fsPath}'.\n\nForcibly deleting it will cause those changes to be FOREVER LOST.\nThis is IRREVERSIBLE!\n\nWould you like to forcibly delete it?` : `Unable to delete worktree in '${uri.fsPath}'.\n\nWould you like to try to forcibly delete it?`, { modal: true }, confirm, cancel, ); if (result === confirm) { state.flags.push('--force'); retry = true; skipHasChangesPrompt = ex.reason === WorktreeDeleteErrorReason.HasChanges; } } } else { void showGenericErrorMessage(`Unable to delete worktree in '${uri.fsPath}.`); } } } while (retry); } } } private *deleteCommandConfirmStep(state: DeleteStepState, context: Context): StepResultGenerator<DeleteFlags[]> { const step: QuickPickStep<FlagsQuickPickItem<DeleteFlags>> = createConfirmStep( appendReposToTitle(`Confirm ${context.title}`, state, context), [ createFlagsQuickPickItem<DeleteFlags>(state.flags, [], { label: context.title, detail: `Will delete ${pluralize('worktree', state.uris.length, { only: state.uris.length === 1, })}${state.uris.length === 1 ? ` in $(folder) ${getWorkspaceFriendlyPath(state.uris[0])}` : ''}`, }), createFlagsQuickPickItem<DeleteFlags>(state.flags, ['--force'], { label: `Force ${context.title}`, description: 'including ANY UNCOMMITTED changes', detail: `Will forcibly delete ${pluralize('worktree', state.uris.length, { only: state.uris.length === 1, })} ${state.uris.length === 1 ? ` in $(folder) ${getWorkspaceFriendlyPath(state.uris[0])}` : ''}`, }), ], context, ); const selection: StepSelection<typeof step> = yield step; return canPickStepContinue(step, state, selection) ? selection[0].item : StepResultBreak; } private async *openCommandSteps(state: OpenStepState, context: Context): StepGenerator { if (state.flags == null) { state.flags = []; } // Allow skipping the confirm step this._canSkipConfirmOverride = true; while (this.canStepsContinue(state)) { if (state.counter < 3 || state.worktree == null) { context.title = getTitle(state.subcommand); context.worktrees ??= await state.repo.getWorktrees(); const result = yield* pickWorktreeStep(state, context, { excludeOpened: true, includeStatus: true, picked: state.worktree?.uri?.toString(), placeholder: 'Choose worktree to open', }); // Always break on the first step (so we will go back) if (result === StepResultBreak) break; state.worktree = result; } context.title = getTitle(state.subcommand, ` \u2022 ${state.worktree.name}`); if (this.confirm(state.confirm)) { const result = yield* this.openCommandConfirmStep(state, context); if (result === StepResultBreak) continue; state.flags = result; } endSteps(state); if (state.flags.includes('--reveal-explorer')) { void revealInFileExplorer(state.worktree.uri); } else { let name; const repo = (await state.repo.getCommonRepository()) ?? state.repo; if (repo.name !== state.worktree.name) { name = `${repo.name}: ${state.worktree.name}`; } else { name = state.worktree.name; } const location = convertOpenFlagsToLocation(state.flags); if (location === 'currentWindow' || location === 'newWindow') { await state.onWorkspaceChanging?.(); } openWorkspace(state.worktree.uri, { location: convertOpenFlagsToLocation(state.flags), name: name }); } } } private *openCommandConfirmStep(state: OpenStepState, context: Context): StepResultGenerator<OpenFlags[]> { type StepType = FlagsQuickPickItem<OpenFlags>; const newWindowItem = createFlagsQuickPickItem<OpenFlags>(state.flags, ['--new-window'], { label: `Open Worktree in a New Window`, detail: 'Will open the worktree in a new window', }); if (state.skipWorktreeConfirmations) { return newWindowItem.item; } const confirmations: StepType[] = [ createFlagsQuickPickItem<OpenFlags>(state.flags, [], { label: 'Open Worktree', detail: 'Will open the worktree in the current window', }), newWindowItem, createFlagsQuickPickItem<OpenFlags>(state.flags, ['--add-to-workspace'], { label: `Add Worktree to Workspace`, detail: 'Will add the worktree into the current workspace', }), ]; if (!state.openOnly) { confirmations.push( createQuickPickSeparator(), createFlagsQuickPickItem<OpenFlags>(state.flags, ['--reveal-explorer'], { label: `Reveal in File Explorer`, description: `$(folder) ${truncateLeft(getWorkspaceFriendlyPath(state.worktree.uri), 40)}`, detail: 'Will open the worktree in the File Explorer', }), ); } const step = createConfirmStep( appendReposToTitle(state.overrides?.confirmation?.title ?? `Confirm ${context.title}`, state, context), confirmations, context, undefined, { disallowBack: state.overrides?.disallowBack, placeholder: state.overrides?.confirmation?.placeholder ?? 'Confirm Open Worktree', }, ); const selection: StepSelection<typeof step> = yield step; return canPickStepContinue(step, state, selection) ? selection[0].item : StepResultBreak; } private async *copyChangesCommandSteps(state: CopyChangesStepState, context: Context): StepGenerator { while (this.canStepsContinue(state)) { context.title = state?.overrides?.title ?? getTitle(state.subcommand); if (state.counter < 3 || state.worktree == null) { context.worktrees ??= await state.repo.getWorktrees(); let placeholder; switch (state.changes.type) { case 'index': placeholder = 'Choose a worktree to copy your staged changes to'; break; case 'working-tree': placeholder = 'Choose a worktree to copy your working changes to'; break; default: placeholder = 'Choose a worktree to copy changes to'; break; } const result = yield* pickWorktreeStep(state, context, { excludeOpened: true, includeStatus: true, picked: state.worktree?.uri?.toString(), placeholder: placeholder, }); // Always break on the first step (so we will go back) if (result === StepResultBreak) break; state.worktree = result; } if (!state.changes.contents || !state.changes.baseSha) { const diff = await this.container.git.getDiff( state.repo.uri, state.changes.type === 'index' ? uncommittedStaged : uncommitted, 'HEAD', ); if (!diff?.contents) { void window.showErrorMessage(`No changes to copy`); endSteps(state); break; } state.changes.contents = diff.contents; state.changes.baseSha = diff.from; } if (!isSha(state.changes.baseSha)) { const commit = await this.container.git.getCommit(state.repo.uri, state.changes.baseSha); if (commit != null) { state.changes.baseSha = commit.sha; } } if (this.confirm(state.confirm)) { const result = yield* this.copyChangesCommandConfirmStep(state, context); if (result === StepResultBreak) continue; } endSteps(state); try { const commit = await this.container.git.createUnreachableCommitForPatch( state.worktree.uri, state.changes.contents, state.changes.baseSha, 'Copied Changes', ); if (commit == null) return; await this.container.git.applyUnreachableCommitForPatch(state.worktree.uri, commit.sha, { stash: false, }); void window.showInformationMessage(`Changes copied successfully`); } catch (ex) { if (ex instanceof CancellationError) return; if (ex instanceof ApplyPatchCommitError) { if (ex.reason === ApplyPatchCommitErrorReason.AppliedWithConflicts) { void window.showWarningMessage('Changes copied with conflicts'); } else if (ex.reason === ApplyPatchCommitErrorReason.ApplyAbortedWouldOverwrite) { void window.showErrorMessage( 'Unable to copy changes as some local changes would be overwritten', ); return; } else { void window.showErrorMessage(`Unable to copy changes: ${ex.message}`); return; } } else { void window.showErrorMessage(`Unable to copy changes: ${ex.message}`); return; } } yield* this.openCommandSteps( { subcommand: 'open', repo: state.repo, worktree: state.worktree, flags: [], counter: 3, confirm: true, openOnly: true, overrides: { disallowBack: true }, } satisfies OpenStepState, context, ); } } private async *copyChangesCommandConfirmStep( state: CopyChangesStepState, context: Context, ): AsyncStepResultGenerator<void> { const files = await this.container.git.getDiffFiles(state.repo.uri, state.changes.contents!); const count = files?.files.length ?? 0; const confirmations = []; switch (state.changes.type) { case 'index': confirmations.push({ label: 'Copy Staged Changes to Worktree', detail: `Will copy the staged changes${ count > 0 ? ` (${pluralize('file', count)})` : '' } to worktree '${state.worktree.name}'`, }); break; case 'working-tree': confirmations.push({ label: 'Copy Working Changes to Worktree', detail: `Will copy the working changes${ count > 0 ? ` (${pluralize('file', count)})` : '' } to worktree '${state.worktree.name}'`, }); break; default: confirmations.push( createFlagsQuickPickItem([], [], { label: 'Copy Changes to Worktree', detail: `Will copy the changes${ count > 0 ? ` (${pluralize('file', count)})` : '' } to worktree '${state.worktree.name}'`, }), ); break; } const step = createConfirmStep( `Confirm ${context.title} \u2022 ${state.worktree.name}`, confirmations, context, ); const selection: StepSelection<typeof step> = yield step; return canPickStepContinue(step, state, selection) ? undefined : StepResultBreak; } } ```
```javascript //your_sha256_hash--------------------------------------- //your_sha256_hash--------------------------------------- function print(x) { WScript.Echo(x+''); } function inner(func) { print(func.caller); if (func.arguments) { print(func.arguments[0]); print(func.arguments.caller); } if (func.caller) { if (func.arguments.caller) { print(func.arguments.caller[0]); } else { print("func.arguments.caller undefined"); } } print(""); } function f() { inner(f); try { try { throw null; } finally { inner(g); } } catch (e) { inner(f); } } function g() { f("f from g"); } f("f from global"); g("g from global"); function callerA() { AA(null); } function AA(x) { print(AA.caller); } function callerB() { eval("AB(null)"); } function AB(x) { print(AB.caller); } callerA(); callerB(); (function() { print(arguments.caller); print(delete arguments.caller); print(arguments.caller); arguments.caller = 0; print(arguments.caller); function f() { print(arguments.caller); print(delete arguments.caller); print(arguments.caller); arguments.caller = 0; print(arguments.caller); } f(); })(); function test0(){ var func0 = function(){ var __loopvar1 = 0; while(((b <<= (arguments.caller && arguments.caller[1]) ? 3 : 1)) && __loopvar1 < 3) { __loopvar1++; } } var func2 = function(){ func0(); } var b = 1; function bar0 () { func2(); } bar0(1, 1, 1); WScript.Echo("b = " + (b|0)); }; // generate profile test0(); test0(); ```
The City of Chengdu is the capital city of Sichuan Province and the most populous prefectural-level division in China. As of 2023, the City of Chengdu is administratively divided into 12 districts, 5 county-level cities, and 3 counties. Administrative divisions Other management zones Tianfu New Area Chengdu Economic and Technological Development Zone Chengdu Hi-tech Industrial Development Zone Chengdu Tianfu Software Park Chengdu Export Processing Zone References Chengdu Geography of Chengdu
```smalltalk using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Roslynator.CSharp.CodeFixes; using Roslynator.Testing.CSharp; using Xunit; namespace Roslynator.CSharp.Analysis.Tests; public class RCS1154SortEnumMembersTests : AbstractCSharpDiagnosticVerifier<SortEnumMembersAnalyzer, EnumDeclarationCodeFixProvider> { public override DiagnosticDescriptor Descriptor { get; } = DiagnosticRules.SortEnumMembers; [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SortEnumMembers)] public async Task Test() { await VerifyDiagnosticAndFixAsync(@" enum [|Foo|] { B = 1, A = 0, D = 3, C = 2 } ", @" enum Foo { A = 0, B = 1, C = 2, D = 3 } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SortEnumMembers)] public async Task Test_TrailingSeparator() { await VerifyDiagnosticAndFixAsync(@" enum [|Foo|] { B = 1, A = 0, D = 3, C = 2, } ", @" enum Foo { A = 0, B = 1, C = 2, D = 3, } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SortEnumMembers)] public async Task Test_EmptyLines() { await VerifyDiagnosticAndFixAsync(@" enum [|Foo|] { B = 1, A = 0, D = 3, C = 2 } ", @" enum Foo { A = 0, B = 1, C = 2, D = 3 } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SortEnumMembers)] public async Task Test_WithComments() { await VerifyDiagnosticAndFixAsync(@" enum [|Foo|] { /// <summary>B</summary> B = 1, // B /// <summary>A</summary> A = 0, // A /// <summary>D</summary> D = 3, // D /// <summary>C</summary> C = 2, // C } ", @" enum Foo { /// <summary>A</summary> A = 0, // A /// <summary>B</summary> B = 1, // B /// <summary>C</summary> C = 2, // C /// <summary>D</summary> D = 3, // D } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SortEnumMembers)] public async Task Test_Comments_EmptyLines() { await VerifyDiagnosticAndFixAsync(@" enum [|Foo|] { /// <summary>B</summary> B = 1, // B /// <summary>A</summary> A = 0, // A /// <summary>D</summary> D = 3, // D /// <summary>C</summary> C = 2 // C } ", @" enum Foo { /// <summary>A</summary> A = 0, // A /// <summary>B</summary> B = 1, // B /// <summary>C</summary> C = 2, // C /// <summary>D</summary> D = 3 // D } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SortEnumMembers)] public async Task Test_Comments_EmptyLines_TrailingSeparator() { await VerifyDiagnosticAndFixAsync(@" enum [|Foo|] { /// <summary>B</summary> B = 1, // B /// <summary>A</summary> A = 0, // A /// <summary>D</summary> D = 3, // D /// <summary>C</summary> C = 2, // C } ", @" enum Foo { /// <summary>A</summary> A = 0, // A /// <summary>B</summary> B = 1, // B /// <summary>C</summary> C = 2, // C /// <summary>D</summary> D = 3, // D } "); } } ```
Dipika Rukshana Chanmugam-Appleton (born 9 March 1972) is a Sri Lankan former swimmer. She competed in three events at the 1988 Summer Olympics. She was the first woman to represent Sri Lanka at the Olympics. Early life She is the daughter of Neil Chanmugam and granddaughter of Fredrick de Saram. References External links 1972 births Living people Sri Lankan female swimmers Sri Lankan female freestyle swimmers Olympic swimmers for Sri Lanka Swimmers at the 1988 Summer Olympics Place of birth missing (living people) South Asian Games gold medalists for Sri Lanka South Asian Games medalists in swimming
```xml // // // Microsoft Bot Framework: path_to_url // // Bot Framework Emulator Github: // path_to_url // // All rights reserved. // // 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. // import { updateNewTunnelInfo, updateTunnelError, updateTunnelStatus, NgrokTunnelActions, TunnelInfo, TunnelError, TunnelStatus, checkOnTunnel, setTimeIntervalSinceLastPing, TunnelCheckTimeInterval, clearAllNotifications, addNotification, } from './ngrokTunnelActions'; describe('Ngrok Tunnel Actions', () => { it('should create an update tunnel info action', () => { const payload: TunnelInfo = { publicUrl: 'path_to_url inspectUrl: 'path_to_url logPath: 'ngrok.log', postmanCollectionPath: 'postman.json', }; const action = updateNewTunnelInfo(payload); expect(action.type).toBe(NgrokTunnelActions.setDetails); expect(action.payload).toEqual(payload); }); it('should create a update tunnel error action', () => { const payload: TunnelError = { statusCode: 402, errorMessage: 'Tunnel has expired', }; const action = updateTunnelError(payload); expect(action.type).toBe(NgrokTunnelActions.updateOnError); expect(action.payload).toEqual(payload); }); it('should create a tunnel status update action', () => { const mockDate = new Date(1466424490000); jest.spyOn(global, 'Date').mockImplementation(() => mockDate as any); const expectedStatus: TunnelStatus = TunnelStatus.Active; const action = updateTunnelStatus({ tunnelStatus: expectedStatus, }); expect(action.type).toBe(NgrokTunnelActions.setStatus); expect(action.payload.timestamp).toBe(new Date().getTime()); expect(action.payload.status).toBe(expectedStatus); }); it('should create a tunnel status update action on TunnelError', () => { const mockDate = new Date(1466424490000); jest.spyOn(global, 'Date').mockImplementation(() => mockDate as any); const expectedStatus: TunnelStatus = TunnelStatus.Error; const action = updateTunnelStatus({ tunnelStatus: expectedStatus, }); expect(action.type).toBe(NgrokTunnelActions.setStatus); expect(action.payload.timestamp).toBe(new Date().getTime()); expect(action.payload.status).toBe(expectedStatus); }); it('should create a checkOnTunnel action', () => { const action = checkOnTunnel({ onTunnelPingError: jest.fn(), onTunnelPingSuccess: jest.fn(), }); expect(action.type).toBe(NgrokTunnelActions.checkOnTunnel); }); it('should create a setTimeIntervalSinceLastPing action', () => { const action = setTimeIntervalSinceLastPing(TunnelCheckTimeInterval.SecondInterval); expect(action.type).toBe(NgrokTunnelActions.setTimeIntervalSinceLastPing); expect(action.payload).toBe(TunnelCheckTimeInterval.SecondInterval); }); it('should create a clear notifications action', () => { const action = clearAllNotifications(); expect(action.type).toBe(NgrokTunnelActions.clearAllNotifications); expect(action.payload).toBeNull; }); it('should create add notification action', () => { const notificationId = 'notification-1'; const action = addNotification(notificationId); expect(action.type).toBe(NgrokTunnelActions.addNotification); expect(action.payload).toBe(notificationId); }); }); ```
Straight Up is a 2019 independent film written, produced and directed by James Sweeney. Sweeney stars in the film with Katie Findlay, Dana Drori, James Scully, Tracie Thoms, Betsy Brandt and Randall Park. The film premiered at the Outfest on July 23, 2019. The film was released in a limited release by Strand Releasing on February 28, 2020. Plot Todd, a twenty-something man from Los Angeles with OCD, has difficulty in his romantic relationships as he has a strong aversion to bodily fluids. He likes the men he dates, but aside from an attempt at oral sex, he has never had penetrative sex with them. Eventually he decides to try dating women, and attempts to hook up with a girl after getting drunk with her but freaks out when her hymen breaks. His psychoanalyst wonders if this exploration of sexuality is a good idea, but Todd fears being alone and resolves to continue trying. He soon meets Rory, a struggling actress who has trouble emotionally connecting with others, in the self-help section of a library. They immediately take a liking to each other, as they both have the same eccentric sense of humor. They later spend hours talking and connecting with each other. Rory quickly moves in with Todd and joins him on his various house-sitting jobs. Todd's friends oppose his relationship with Rory as they view it as a manifestation of Todd's internalized homophobia, and frequently undermine the validity of their relationship. Rory agrees to pursue a romantic relationship with him—though sex is off the table. After Todd introduces Rory to his parents, he worries that they might like him more because he's now dating a woman. At an awkward Christmas party with Todd's friends where they play truth or dare, Rory walks in on Todd in a compromising position with his gay friend and leaves. Rory becomes increasingly unhappy with her life in LA, and decides to move to Seattle. During their break up conversation, Rory says she may want kids (they had previously agreed neither wanted children) and Todd goes into a panic attack. Some time later Rory has an established office job in Seattle, but still has problems connecting with her coworkers. Todd refuses to date anyone since Rory left. One of Rory's coworkers takes an interest in her, but she realizes they are too different. She calls Todd but hangs up before he can pick up. When she leaves work at the end of the day she finds Todd waiting for her. In an attempt at a grand romantic gesture, Todd proposes, but Rory declines. Todd makes an impassioned plea to her, tells her he loves her, and does not want to be with anyone else. The movie ends with Todd and Rory playing a board game together. As they talk another man sits down between them, and the intimacy among the three leaves the ending open to audience interpretation. Cast Katie Findlay as Rory James Sweeney as Todd, Topanga and Wallace's son Dana Drori as Meg James Scully as Ryder Tracie Thoms as Dr. Larson Betsy Brandt as Topanga, Todd's mother and Wallace's wife Randall Park as Wallace, Todd's father and Topanga's husband Production Development Straight Up was partly funded through a crowdfunding campaign on Seed&Spark which raised $23,340 for production. Sweeney based the film on his proof of concept short Normal Doors which was created for Fox Digital Studios. In an interview with The Desert Sun, Sweeney said:If you think it’s not a love story, maybe the film should challenge what the idea of love is. Even the idea of romantic love, because there’s more than one type of love, but specifically the idea of romantic love is a relatively modern concept and especially the western notion of what that love is, is part of what inspired the concept of the film. [...] Here are these two people, Todd and Rory, who click each other’s boxes in so many ways except for this big box known as sex. Can you not love somebody because you don’t have sex with them? I’m not trying to answer that question for all people or make a statement of what love is, because that’s not for me to say. Everybody has their own relationship with love. Filming Principal photography took place over 18 days in 20 different locations with two additional days of pick up. The film was shot in a 4:3 aspect ratio. On the aspect ratio, Sweeney said "in a lot of ways Todd and Rory are living in a box, and you could argue that some of their relationship is taken out of a 1930s Hays Code–era movie plot, which is when that ratio was standard. They conform to the modern ideal but don’t fit, and feel boxed in by that. Thematically that’s where it lands, but it also lends itself aesthetically to a lot of the composition and symmetry we were trying to showcase". Release The film had its world premiere at the 2019 Outfest on July 23, 2019. It was also show at the NewFest on October 26, 2019. In August 2019, Strand Releasing acquired U.S distribution rights. The film was released in a limited release on February 28, 2020. The film was also released in the United Kingdom in March 2020. In April and May 2020, due to the closure of cinemas during the COVID-19 pandemic, Strand Releasing partnered with various arthouse exhibitors to screen the film in virtual cinemas. Reception On Rotten Tomatoes, the film holds an approval rating of based on reviews, with an average of . The website's critical consensus reads, "Well-acted and sharply written, Straight Up serves as an effervescent calling card for writer/director/star James Sweeney." On Metacritic, the film has a weighted average score of 66 out of 100, based on 12 critics, indicating "generally favorable reviews". Straight Up was the Breakthrough Centerpiece at the 2019 Outfest and won the Grand Jury Award at the 2019 San Diego Asian Film Festival. David Lewis, for the San Francisco Chronicle, highlighted Sweeney's directorial debut as "impressive" and wrote that "on the surface, Sweeney’s film is a playful examination of sexual fluidity, but underneath the gags, it’s really a universal, sweet movie about the modern complexities of finding a soulmate. It’s also a nice example of how independent films can breathe fresh air into genres like the romantic comedy". Keith Uhlich of The Hollywood Reporter wrote: "Both Sweeney and Findlay are more than up to the task of playing arrested millennials dancing around their problems, forever walking a fine line between charm and aggravation. And Sweeney as filmmaker effectively goes the Wes Anderson route of letting emotion bust through all the aesthetic archness at key moments. [...] We often make our own psychological prisons, and Straight Up is a droll embodiment of its protagonist's (and perhaps its maker's?) inner turmoil. Todd's sexual proclivities aren't fully on one side or the other of the Kinsey scale. Maybe he has none at all (that's fine, too!)". Carlos Aguilar, for TheWrap, wrote: "Lack of intimacy, both physical and emotional, is at the heart of Todd’s current crisis. Unfulfilled with same-sex romance, he wonders whether a foray into straight dating could unblock the door to self-discovery and prevent him from spending the rest of his days alone (as he exaggeratedly puts it). [...] True to the unlabeled happiness Todd is after, 'Straight Up' doesn't conclude by assigning a new concrete definition of what these sexless sweethearts understand as being in love, regardless of the mechanics of their commitment. Sweeney's movie lets it flow with all its moving parts and uncertain specificities, focusing only on their spiritually solid bond". Owen Gleiberman, for Variety, wrote that the film "is really about a generation of people who have discovered a new way to connect through their detachment. A little of this can go a long way (the film is sometimes a bit airless), but James Sweeney is a filmmaker with the rare ability to toss antically inspired dialogue right off the edge of his brain. 'Straight Up' is the work of a startling talent". Black Girl Nerds gave the film a 4.5/5 rating and Donnie Lopez wrote: "In Straight Up, the two characters fall for one another’s intellect. [...] But just like any rom-com, no good thing can last without there being some kind of complications to their unique coupling. This struggle is brought on by a modern understanding of a relationship—one that is not often covered in people’s everyday lives. This film gives way to the underappreciated and overlooked forms of sexuality. [...] Too often the narratives that circle gay and queer stories are about physical mating, yet queer people are more complex than that. This film explores a different kind of gay narrative, one that opens discussion up to a different perspective. [...] The film Straight Up gives you a sense of love from a different perspective. No jabs, no punches, just a real-life interpretation of what two people in love with each other's mind would look like—just a lot of heart". References External links Campaign on Seed&Spark 2019 films American independent films 2019 independent films 2019 LGBT-related films Bisexuality-related films LGBT-related comedy films Films about obsessive–compulsive disorder 2010s English-language films 2010s American films
Gilletiodendron is a genus of plants in the family Fabaceae. It includes five species native to sub-Saharan Africa, which range from Côte d'Ivoire to DR Congo and Angola. Species accepted by the Plants of the World Online as of August 2023: Gilletiodendron escherichii Gilletiodendron glandulosum Gilletiodendron kisantuense Gilletiodendron mildbraedii Gilletiodendron pierreanum References Detarioideae Fabaceae genera Taxonomy articles created by Polbot Afrotropical realm flora
```go // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. package prometheus import ( "testing" dto "github.com/prometheus/client_model/go" ) func TestTimerObserve(t *testing.T) { var ( his = NewHistogram(HistogramOpts{Name: "test_histogram"}) sum = NewSummary(SummaryOpts{Name: "test_summary"}) gauge = NewGauge(GaugeOpts{Name: "test_gauge"}) ) func() { hisTimer := NewTimer(his) sumTimer := NewTimer(sum) gaugeTimer := NewTimer(ObserverFunc(gauge.Set)) defer hisTimer.ObserveDuration() defer sumTimer.ObserveDuration() defer gaugeTimer.ObserveDuration() }() m := &dto.Metric{} his.Write(m) if want, got := uint64(1), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for histogram, got %d", want, got) } m.Reset() sum.Write(m) if want, got := uint64(1), m.GetSummary().GetSampleCount(); want != got { t.Errorf("want %d observations for summary, got %d", want, got) } m.Reset() gauge.Write(m) if got := m.GetGauge().GetValue(); got <= 0 { t.Errorf("want value > 0 for gauge, got %f", got) } } func TestTimerEmpty(t *testing.T) { emptyTimer := NewTimer(nil) emptyTimer.ObserveDuration() // Do nothing, just demonstrate it works without panic. } func TestTimerConditionalTiming(t *testing.T) { var ( his = NewHistogram(HistogramOpts{ Name: "test_histogram", }) timeMe = true m = &dto.Metric{} ) timedFunc := func() { timer := NewTimer(ObserverFunc(func(v float64) { if timeMe { his.Observe(v) } })) defer timer.ObserveDuration() } timedFunc() // This will time. his.Write(m) if want, got := uint64(1), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for histogram, got %d", want, got) } timeMe = false timedFunc() // This will not time again. m.Reset() his.Write(m) if want, got := uint64(1), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for histogram, got %d", want, got) } } func TestTimerByOutcome(t *testing.T) { var ( his = NewHistogramVec( HistogramOpts{Name: "test_histogram"}, []string{"outcome"}, ) outcome = "foo" m = &dto.Metric{} ) timedFunc := func() { timer := NewTimer(ObserverFunc(func(v float64) { his.WithLabelValues(outcome).Observe(v) })) defer timer.ObserveDuration() if outcome == "foo" { outcome = "bar" return } outcome = "foo" } timedFunc() his.WithLabelValues("foo").Write(m) if want, got := uint64(0), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for 'foo' histogram, got %d", want, got) } m.Reset() his.WithLabelValues("bar").Write(m) if want, got := uint64(1), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for 'bar' histogram, got %d", want, got) } timedFunc() m.Reset() his.WithLabelValues("foo").Write(m) if want, got := uint64(1), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for 'foo' histogram, got %d", want, got) } m.Reset() his.WithLabelValues("bar").Write(m) if want, got := uint64(1), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for 'bar' histogram, got %d", want, got) } timedFunc() m.Reset() his.WithLabelValues("foo").Write(m) if want, got := uint64(1), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for 'foo' histogram, got %d", want, got) } m.Reset() his.WithLabelValues("bar").Write(m) if want, got := uint64(2), m.GetHistogram().GetSampleCount(); want != got { t.Errorf("want %d observations for 'bar' histogram, got %d", want, got) } } ```
Elsie Fisher (born April 3, 2003) is an American actor. They are known for their starring role in Bo Burnham's comedy-drama film Eighth Grade (2018), for which they earned a nomination for the Golden Globe Award for Best Actress – Motion Picture Comedy or Musical. Fisher is also known for voicing animated characters such as Agnes in Despicable Me (2010) and Despicable Me 2 (2013), Masha in Masha and the Bear (2009–2012) and Parker Needler in The Addams Family (2019). Life and career Fisher was born in Riverside, California, on April 3, 2003. Fisher began their career at age six, appearing in a 2009 episode of the NBC supernatural drama series Medium. From 2009 to 2012, they voiced Masha for the English dub of the Russian animated children's series Masha and the Bear. Fisher gained further recognition for voicing Agnes in the animated comedy film Despicable Me (2010) and its sequel Despicable Me 2 (2013). However, they did not participate in the third film in the series. Fisher appeared in a supporting role in the sports drama film McFarland, USA, which was released in February 2015. Fisher has appeared in over sixteen national commercials by March 2016. In 2018, Fisher received critical acclaim for their performance as socially-struggling teenage girl Kayla Day in the comedy-drama film Eighth Grade, the directorial debut of comedian Bo Burnham. For their performance, Fisher earned numerous accolades, including a Golden Globe Award nomination for Best Actress – Motion Picture Comedy or Musical. After filming Eighth Grade, they began high school and did not get cast in their high school play. They went on to voice Parker Needler in the animated dark comedy film The Addams Family in 2019. That same year, they appeared in the main role of Joy Wilkes, daughter of Annie Wilkes, in the second season of the Hulu anthology horror series Castle Rock. In 2022, Fisher joined the cast of HBO dark comedy series Barry in its third season. In their personal life, Fisher uses they/them pronouns. Filmography Film Television Web Awards and nominations References External links 2003 births Living people 21st-century American women American child actresses American film actresses American television actresses American voice actresses Actresses from Riverside, California
The Tribune Review Publishing Company Building was designed by architect Louis Kahn as the office and printing plant for the Tribune-Review newspaper in Greensburg, Pennsylvania, about 35 miles southeast of Pittsburgh. Although not in his usual line of work, Kahn accepted the commission at the request of William Huff, an architect on his staff who was related to the newspaper's owner. The building is considered to be one of Kahn's relatively minor works, but it has some interesting features nonetheless. Kahn began work on the design in 1958 and the building was completed in 1962. The building is a rectangle approximately 132 x 120 feet (40 x 36 m). A service area with bathrooms, stairs, etc., occupies a strip 20 feet (6 m) wide that runs lengthwise through the center of the building, dividing the remainder into two sections that are each 132 x 50 feet (40 x 15 m). One of those sections was designed for the printing equipment and composing room and the other for the offices, with the service area acting as a buffer between them to shield the offices from the noise of the printing machinery. In addition to the high-ceilinged ground floor, there are also work spaces in the basement. The room for the heavy printing equipment spans both floors. The building's structure consists of concrete piers and beams rather than a steel skeleton. Kahn had decided several years earlier to use only massive materials like concrete and masonry as structure for his buildings instead of the relatively lightweight materials, such as steel, usually associated with modern architecture. August Komendant, Kahn's preferred collaborator and an expert in reinforced concrete, was the consulting structural engineer. Pre-stressed concrete beams supported by piers made of concrete blocks span the 50 foot (15 m) width of each of the two main sections of the building, leaving them free of internal support columns. In line with his belief that structure should be made visible, Kahn distinguished the piers from the non-weight-bearing walls within which they are embedded by using concrete blocks the size of bricks for the piers and larger concrete blocks for the walls. The beams are clearly visible in the interior of the building as are the ends of the beams on top of the piers on the exterior. The piers, which are on the long sides of the building, project from the external walls to create a light-and-shadow effect. Kahn created additional visual interest by placing the twelve sets of piers in a pattern that is not quite equally spaced; the walls between the piers alternate between being slightly wider than expected and slightly narrower than expected. A large T-shaped window is located between each pair of adjacent piers. The horizontal part of each "T" fits in the space formed by the beams that support the roof. That is, the top bar of each "T" begins at the roof structure, as each beam does, extends downward as far as the bottom of the beams, and then extends horizontally across the entire space between two beams. As a result, the top parts of the T-shaped windows form a horizontal strip of glass just beneath the roof that extends the entire length of the building, interrupted only by the ends of the beams atop the piers. The vertical part of each "T" extends to the bottom of the ground floor. On the shorter sides of the building are six windows that could be described as distorted Ts; each has the form a square with a stubby tail descending from it. This photo shows the front of the building, the T-shaped windows, the ends of the roof-supporting beams on top of the piers, and one of the square windows beneath the beam at the end of the building. It is from the William S. Huff collection of photos listed below under External Links. Kahn used the T-shaped windows, sometimes called keyhole windows, to maximize the amount of natural light within the building while minimizing glare at desk height. Light enters the building mostly through the upper parts of the windows at the ceiling, brightening the rooms indirectly. The narrow, lower parts of the windows permit employees to see outside without letting in too much direct sunlight. Kahn used variations of the keyhole window in some of his subsequent designs. The use of this type of window spread and "soon became a cliché in the hands of other architects". The interplay of T-shaped window and structure is an architectural highlight of Kahn's design: the structure, which is exposed, determines the placement of the windows, and the windows in turn reveal and illuminate the structure, especially the beams running across the ceiling. Robert McCarter, author of Louis I. Kahn, which is the most extensive source of information about this building, provides this summary: "In the Tribune Review Building, which is rarely studied and almost never considered among his greatest works, Kahn achieved his most resolved expression to date of the relation between structure and light. He not only discovered new ways to bring natural light into the space, but also revealed the structure in its light." A later addition obscures the south side of the building and part of its east side. In this aerial view, the Tribune Review building is in the center. The portion that Kahn designed is at the upper left of the expanded building; the piers supporting its roof beams are visible at its left edge. References External links The William S. Huff Photographs of the Work of Louis Kahn collection at University at Buffalo Libraries has several photos of the Tribune Review building under construction and after completion. Huff was the architect on Kahn's staff who convinced him to take the commission. The Museum of Modern Art has two sketches by Kahn of early designs for the Tribune Review building, one for the entrance and one for the entire building. The San Francisco Museum of Modern Art also has a drawing by Kahn of an early design for the Tribune Review building. Buildings and structures completed in 1961 Louis Kahn buildings Office buildings in Pittsburgh Modernist architecture in Pennsylvania 1961 establishments in Pennsylvania
Ad Daff is the main district in Khulais city in Makkah Province, in western Saudi Arabia. See also List of cities and towns in Saudi Arabia Regions of Saudi Arabia References Populated places in Mecca Province
Rafael Osuna and Dennis Ralston were the defending champions, but Osuna did not compete. Ralston competed with Chuck McKinley but lost in the quarterfinals to Roy Emerson and Neale Fraser. Emerson and Fraser defeated Bob Hewitt and Fred Stolle in the final, 6–4, 6–8, 6–4, 6–8, 8–6 to win the gentlemen's doubles tennis title at the 1961 Wimbledon Championship. Seeds Roy Emerson / Neale Fraser (champions) Rod Laver / Bob Mark (semifinals) Nicola Pietrangeli / Orlando Sirola (first round) Luis Ayala / Ramanathan Krishnan (quarterfinals) Draw Finals Top half Section 1 Section 2 Bottom half Section 3 Section 4 References External links Men's Doubles 1961