text
stringlengths
1
22.8M
John Slight is a retired Scottish international lawn bowler. Bowls career He won a silver medal in the fours at the 1970 British Commonwealth Games in Edinburgh with Alex McIntosh, Norman Pryde and David Pearson. He also won the Scottish National Bowls Championships fours title (with McIntosh, Pryde and Pearson) in 1968. References Living people Scottish male bowls players Commonwealth Games silver medallists for Scotland Commonwealth Games medallists in lawn bowls Bowls players at the 1970 British Commonwealth Games Year of birth missing (living people) Medallists at the 1970 British Commonwealth Games
Bob Hall may refer to: Bob Hall (American motoring journalist) Bob Hall (American political journalist), executive director of Democracy NC Bob Hall (Australian rules footballer) (1908–1999), Australian rules footballer Bob Hall (outfielder) (1878–1950), Major League Baseball infielder/outfielder Bob Hall (pitcher) (1923–1983), Major League Baseball pitcher Bob Hall (musician) (born 1942), English musician Bob Hall (comics) (born 1944), comic book illustrator, co-creator of The West Coast Avengers Bob Hall (ice hockey) (1899–1950), American ice hockey player Bob Hall (New Brunswick politician), Canadian politician, member of the 50th New Brunswick Legislature Bob Hall (politician) (born 1942), Texas state senator Bob Hall (British journalist) (1945–2022), British sports journalist See also Robert Hall (disambiguation)
Sir Gawain Westray Bell (21 January 1909 – 26 July 1995) was a British colonial administrator who became the Governor of Northern Nigeria. Early life Bell was born in Cape Town, South Africa to an executive of the New Zealand Shipping Company. At 10, his family moved back to Cumberland, England where he attended the Dragon School, Oxford, Winchester College and Hertford College, Oxford. Sudan, Palestine, and World War II In 1931, Bell entered the Sudan Political Service, where he learned Arabic. His postings included Eastern Sudan, the Nuba Mountains, and Kurdofan. In 1938, Bell was seconded to the Government of Palestine where he worked with the police in Gaza. He eventually became commander of the Beersheba Camel Gendarmerie. Bell volunteered for service in the Second World War. Bell rode horseback with an irregular force of Druze cavalry, and participated in the capture of Suweida from the Vichy French. He became a regiment leader of the Arab Legion and was appointed MBE (military) in the 1942 New Year Honours. In 1945, he married Silvia Cornwell-Clyne. Following the war, Bell returned to Khartoum, Sudan where he became Deputy Civil Secretary and later Permanent Under Secretary to the Ministry of the Interior. He left Sudan in 1955 to become the British Political Agent in Kuwait during the Suez crisis. Nigeria In 1957 the Colonial Office recruited Bell to become the Governor of Northern Nigeria, where he worked closely with Sir Ahmadu Bello, the Sardauna of Sokoto. Bello was regarded by the British as difficult to work with; Bell came to his new job with an open mind and won over Bello to the point that he was asked to remain in his post as governor after Nigeria gained its independence from the United Kingdom. He stepped down as governor in 1962. Later life Bell worked on several political projects in the Middle East following his time in Nigeria. He worked with Sir Ralph Hone on a constitution for the Federation of South Arabia, and additional projects in the Trucial States and Oman. From 1966 until 1970 he was the last European Secretary-General of the South Pacific Commission (now called the Secretariat of the Pacific Community. After retiring in 1970, he concentrated on voluntary and charity work. He served as vice president and later chairman of LEPRA, and served on the governing board of the School of Oriental and African Studies at the University of London. He was also the first President of the Society for the Study of the Sudans UK He published two volumes of memoirs. The first, "Shadows on the Sand", was published in 1984 and covers his life through his time in the Sudan. The second, "An Imperial Twilight", details his five years in Nigeria, as well as his time in Arabia. Awards and decorations Member of the Order of the British Empire (Military Division; 1942) Commander of the Order of the British Empire (1955) Knight Commander of the Order of St Michael and St George (1957) Knight of the Order of St John (1959) References BELL, Sir Gawain (Westray), Who Was Who, A & C Black, 1920–2015 (online edition, Oxford University Press, 2014) 1909 births 1995 deaths People educated at The Dragon School People educated at Winchester College Alumni of Hertford College, Oxford Sudan Political Service officers Colonial Administrative Service officers Pacific Community people British Governors and Governors-General of Nigeria Knights Commander of the Order of St Michael and St George Commanders of the Order of the British Empire Knights of the Order of St John Recipients of the Order of Independence (Jordan) British memoirists Arab Legion
1928 Great Barrier Reef expedition, also known as the Yonge Expedition or the Low Isles Expedition was a thirteen-month scientific program beginning in 1928, which was promoted to study the Australian Great Barrier Reef. Origins The Great Barrier Reef Expedition was a scientific study suggested by Sir Matthew Nathan and Professor Henry Richards who led the Australian Great Barrier Reef Committee from its establishment in 1922. With support from the British Barrier Reef Committee and the Association for the Advancement of Science in England, there was considerable interest in conducting zoological studies of Australia's Great Barrier Reef, to investigate theories put forward by Charles Darwin and others. It was also planned to determine the economic importance of the reef's marine life. This largely British expedition of scientists sought financial support from the Australian government, universities and the public to fund the expedition and study biological and geological life in a number of sections of the Reef. Personnel C. Maurice Yonge, a marine invertebrate researcher, was encouraged to join a proposed expedition to Australia's Great Barrier Reef in 1927. He was eventually appointed its leader. Twelve scientists including Yonge, his wife Dr Mattie Yonge who would act as medical officer, as well as Frederick Russell, a naturalist with the Marine Biological Association in Plymouth and his wife Gweneth, Dr Andrew Orr and Dr Sheina Marshall, naturalists at Millport Marine Laboratory, Dr Thomas Stephenson, lecturer in zoology at University of London and his wife Anne, Geoffrey Tandy a botanist with the Natural History Museum who would collect marine plants and animals joined the expedition. Others included James Steers, lecturer in geomorphology who acted as the expedition's surveyor. He was assisted by Michael Spender and E.C. Marchant. G.W. Otter and Aubrey Nicholls would be assistants, and Frank Moorhouse of the University of Queensland would provide local marine biology knowledge. They arrived at the two islands of Low Isles on 16 July 1928 and encamped there for thirteen months. Sidnie Manton and Elizabeth Fraser would join the expedition for four months and work with the shore party. The expedition was unique in its inclusion of female researchers. The Australian Museum also sent five people to help with the research throughout the year – Tom Iredale, Gilbert Whitley, William Boardman, Arthur Livingstone and Frank McNeill. Indigenous workers were hired from the nearby Anglican mission at Yarrabah to work on Low Isles in support of the team. They included Andy and Grace Dabah who worked as handyman and cook and were later replaced by Claude and Minnie Connolly. The children of the Dabah and Connolly families also lived with their parents during the time they supported the expedition. Harry Mossman and Paul Sexton from Yarrabah were hired as crew on the research vessel Luana. The Luana was used to carry out scientific studies on and in the water as well as carry provisions to and from the mainland. The expedition was divided into four parts. Researchers investigated ocean conditions, taking hydrographic measurements, recording meteorological and tidal data and monitored plankton. They observed the growth rate of the corals and the marine life around it. They collected specimens including plankton as well as conducting dredging and trawling around the reef. Trochus shell was collected and studied and at the time a trochus farming industry was proposed. Black-Lip pearl oysters, Beche De Mer and rock and mangrove oysters, as well as the fish populations of the surrounding areas were assessed for potential economic development. Other studies considered a sardine fishing industry for the region and the turtle industry of Heron Island, near Gladstone. Boring of the reef had been undertaken around Michaelmas Cay in 1926 to determine the age and thickness of the reef, which helped the geological research. Outcomes of the expedition The scientific discoveries of the expedition were well reported in the press during 1928–1929. One of the first visitors to Low Isles during the Expedition was journalist Charles Barrett whose newspaper articles were later published as a book. The expedition itself published seven volumes of scientific material in addition to articles in scholarly journals. Maurice Yonge also published a book aimed at a general audience – A year on the Great Barrier Reef (1930). In part due to the extensive newspaper coverage, tourists sought out the islands following the expedition to collect shells and corals. This collecting for scientific and private collections was so extreme that the island was ‘virtually swept clean’. Yonge and his team's research pioneered studies into coral physiology and their research persists in being vital reference material to current study. Subsequent expeditions In 1968 a Belgian expedition to the reef was undertaken. In 1973, a Royal Society and Universities of Queensland Expedition was undertaken to the northern part of the reef. References Great Barrier Reef 1928 in science Scientific expeditions
The ARIA Music Award for Best Music DVD, was an award presented at the annual ARIA Music Awards, which recognises "the many achievements of Aussie artists across all music genres", since 1987. It was handed out by the Australian Recording Industry Association (ARIA), an organisation whose aim is "to advance the interests of the Australian record industry." Best Music DVD was first presented in 2004, for work by a solo artist or group, at the ARIA Awards ceremony. For its final year, in 2011, it was presented at the ARIA Artisan Awards ceremony. Compilations were entered for this category. Content was at least 60% original. The release was eligible to appear on the ARIA Music DVD chart, which means "bonus disc" releases were not eligible. Winners and nominees In the following table, the winner is highlighted in a separate colour, and in boldface; the nominees are those that are not highlighted or in boldface. References External links The ARIA Awards Official website U
Teeboy Kamara (born 18 May 1996) is a soccer player who plays as a forward for Bayswater City in the NPL WA. Born in Liberia, he has represented Australia at youth level. Early life Kamara was born in 1996 in Liberia. He left with his family, arriving in Australia as a refugee in the early 2000s. Club career Adelaide United In 2011, Kamara signed with A-League club Adelaide United. He made his professional debut in the 2011-12 A-League season on 16 December 2011, in a round 11 clash against Gold Coast United making him the youngest player to make a senior appearance in the competition at 15 years and 212 days old. He also made an additional 2 appearances in the Asian Champions League for Adelaide. On 21 December 2011 it was announced he had signed a three-year senior contract with Adelaide United with the contract beginning on his 16th birthday. However, in spite of a promising start to his career, Kamara was sidelined with what was later revealed to be hepatitis A over a two-year period. Having contracted the illness on a youth tour of China to play in the Weifang Cup, his illness became so severe that a liver transplant was considered by his physicians. He was eventually released from his contract by the club. State League Career He was subsequently signed by Inglewood United to play in the NPL WA. He has continued to feature for various clubs in the National Premier Leagues in both Victoria and Western Australia. Personal life In 2002 at the age of 6 he moved to Australia with his mother and siblings to escape the civil war in his homeland. His stepfather was the goalkeeper coach of the Liberia national football team. References 1996 births Living people Men's association football forwards Australian men's soccer players Australian Institute of Sport soccer players Salisbury United FC players Croydon FC (Australia) players Adelaide United FC players A-League Men players Liberian men's footballers Liberian emigrants to Australia
```freemarker <#macro narrative section entries> <text> <table border="1" width="100%"> <thead> <tr> <th>Start</th> <th>Stop</th> <th>Description</th> <th>Code</th> <#if entries[0].value??> <th>Value</th> </#if> </tr> </thead> <tbody> <#list entries as entry> <tr> <td>${entry.start?number_to_datetime?iso_local}</td> <td><#if entry.stop != 0>${entry.stop?number_to_datetime?iso_local}</#if></td> <td ID="${section}-desc-${entry?counter}">${entry.codes[0].display}</td> <td ID="${section}-code-${entry?counter}">${entry.codes[0].system} ${entry.codes[0].code}</td> <#if entry.value??> <td>${entry.value} ${(entry.unit)!""}</td> <#elseif entry.category?? && entry.observations?? && entry.observations?has_content> <td> <#list entry.observations as obs> <#if obs.value??> <#if obs.value?is_boolean || obs.value?is_number> ${obs.codes[0].display} ${obs.value?c} ${obs.unit} <#else> ${obs.codes[0].display} ${obs.value} ${obs.unit} </#if> </#if> </#list> </td> </#if> </tr> </#list> </tbody> </table> </text> </#macro> ```
Dorit Bar Or () (born May 19, 1975) is an Israeli actress and fashion designer. In August 2009, Bar Or and the puppet cast of the TV show Red Band won the prize for the best TV comedy of the year. That year, she was also cited as Israel's best-dressed woman in Pnai Plus magazine. Theater, television and film career Dorit Bar Or graduated with an acting degree from Sorbonne, Paris in 1994. She then moved to Tel Aviv and starred in several low-key theater adaptations including Love and Human Remains, in the role of Candy. She also played the role of French Revolutionist Charlotte Corday in Peter Weiss's Marat/Sade. At Beit Lessin Theater in Tel Aviv she led the cast of Slihot, written by Hana Azoulay-Hasfari. She later joined the cast of the Cameri Theater production of Mirele Efros with co-actress Yona Elian. For that role she was nominated "Promising Actress Of The Year". The following year, she performed in Milano, a play by Shmuel Hasfari. In 1999, Bar Or appeared alongside Zvika Hadar in Shemesh, an Israeli sitcom. The following year she played the lead in Ken O Lo with actor and filmmaker Assi Dayan on Israel's Channel 1. In 2000, she appeared in the first Channel 2 Israeli neighborhood-oriented drama Florentin directed by Eytan Fox. Her colleague in that show was Angels & Demonss star Ayelet Zurer. In 2004 she made her debut on Channel 10, playing a leading role in Ahava Ze Koev, created by Dana Modan. The series won Best Drama and Best Scripted Show at Israel's Television Academy Awards for that year. She appeared in the feature film Gotta have Joy by Julie Shles and Etzba Haeloim by Dany Boon. Returning to television in 2006, Bar Or hosted 48 Hours, one of Israel's first reality shows, alongside Ido Rosenblum. She also played the leading role of Adi in a drama series, Hot's Parashat Ha-Shavua created by Rani Blair and Ari Folman. In 2008, she appeared in Out of the Blue, written and directed by Yigal Bursztyn. In 2007, Bar Or starred in the series Al Ktzot Hezbaot, the story of three dancer sisters enmeshed in a world of law and misfortune. The show was produced by Keshet and aired on Israeli Channel 2 for 24 episodes. In 2009, Bar Or appeared in the comedy show Red Band directed by Eitan Tzur. Fashion career Bar Or is the designer of Pas Pour Toi (Not For You). Explaining the name of her label, she says: "Forgive my arrogance, but I'm a style icon in Israel. I'm a very famous actress and I got sick of everyone asking where my clothes were from. I started making up names. It was hilarious. Everyone would say, 'Oh yes I love that designer' or 'I wear such and such's clothes, too'—and it didn't exist. So it amuses me to call my line Not For You. It's the opposite of inclusive..." Controversy In October 2023, Israeli media reported that Bar Or posted a controversial anti-Hamas Instagram story during the 2023 Israel–Hamas war, which resulted in her eponymous line's removal from Mytheresa, Net-a-Porter, and Matches Fashion following complaints by Kuwaiti designer Najeeba Hayat. See also Television in Israel Israeli fashion References External links "Fingertips", full episodes created by Dorit Bar Or. (from Keshet Israeli television) Habama page, Dorit Bar Or Dorit Bar Or french kissing on the "48 Hours" reality show 1975 births Israeli fashion designers Israeli film actresses Israeli stage actresses Israeli television actresses Israel Prize in cinema recipients Living people University of Paris alumni Israeli expatriates in France
The David G. Raney House is a historic site in Apalachicola, Florida, United States, located at the southwest corner of Market Street and Avenue F. On September 22, 1972, it was added to the U.S. National Register of Historic Places. The Apalachicola Area Historical Society operates the house as the Raney House Museum, featuring 19th century furnishings, decorations, artifacts and documents. Admission is free. References External links Florida's Office of Cultural and Historical Programs Franklin County listings Franklin County markers Raney House Museum Houses on the National Register of Historic Places in Florida Museums in Apalachicola, Florida Historic house museums in Florida Historical society museums in Florida Historic American Buildings Survey in Florida Houses in Franklin County, Florida National Register of Historic Places in Franklin County, Florida 1840 establishments in Florida Territory
Austrofestuca, called beach fescue, is a genus of Australian and New Zealand plants in the grass family. The only accepted species is Austrofestuca littoralis, native to seacoast regions in Australia (all states except Queensland) and New Zealand (North I, South I, and Chatham Is). The genus used to include: see Hookerochloa Austrofestuca eriopoda – Hookerochloa eriopoda Austrofestuca hookeriana – Hookerochloa hookeriana See also List of Poaceae genera References Pooideae Grasses of Oceania Monotypic Poaceae genera Taxa named by Jacques Labillardière
```yaml # Each section from every release note are combined when the # CHANGELOG.rst is rendered. So the text needs to be worded so that # it does not depend on any information only available in another # section. This may mean repeating some details, but each section # must be readable independently of the other. # # Each section note must be formatted as reStructuredText. --- fixes: - | APM OTLP: Fix an issue where a span's local "peer.service" attribute would not override a resource attribute-level service. ```
Zuhrah ibn Kilab ibn Murrah () was the great-grandfather of Aminah bint Wahb, and was thus the great-great-grandfather of the Islamic prophet Muhammad. He was also the progenitor of the Banu Zuhrah clan of the Quraysh tribe in Mecca. Biography According to traditional Islamic belief, Zuhrah's father was Kilab ibn Murrah, a descendant of Ibrahim (Abraham) through his son Ismail (Ishmael). His younger brother Qusai ibn Kilab became the first Quraysh custodian of the Ka'bah. After his father's death his mother Fatimah bint Sa'd married Rabi'ah ibn Haram from the Bani Azra tribe. His younger brother, Qusai ibn Kilab, became the first Quraysh custodian of the Ka'aba and brought those of Quraysh who were his nearest of kin and settled them in the Meccan valley besides the Sanctuary. Which included him, his uncle Taym ibn Murrah, the son of another uncle Makhzum ibn Yaqazah, and his other cousins Jumah and Sahm who were less close. During the apparent quarrels of his nephews 'Abd Manaf and 'Abd ad-Dar, after Qusai had invested 'Abd ad-Dar with all his rights, powers, and transferred the ownership of the House of Assembly shortly before his death, Zuhrah supported 'Abd Manaf in contesting 'Abd ad-Dar's inheritance. Family tree * indicates that the marriage order is disputed Note that direct lineage is marked in bold. See also Family tree of Muhammad References Year of death unknown Year of birth unknown Ancient Arabs Ancestors of Muhammad Sahabah ancestors 5th-century Arab people
Mount Huckle is a mainly ice-covered mountain, high, near the northern end of the Douglas Range in eastern Alexander Island, Antarctica. It rises south-southeast of Mount Spivey on the west side of Toynbee Glacier and is inland from George VI Sound. Mount Huckle is the fourth highest mountain of Alexander Island, proceeded by Mount Cupola and succeeded by Mount Paris in the nearby Rouen Mountains. The mountain was possibly first seen in 1909 by the French Antarctic Expedition under Jean-Baptiste Charcot, but not recognized as part of Alexander Island. It was photographed from the air in 1936–37 by the British Graham Land Expedition under John Riddoch Rymill, and surveyed from the ground in 1948 by the Falkland Islands Dependencies Survey (FIDS). Etymology The mountain was named after John Sydney Rodney Huckle, a general assistant at Stonington Island, who aided in the FIDS survey of the west side of George VI Sound in 1949. References Mountains of Alexander Island
```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 org.thingsboard.server.actors.device; import org.thingsboard.server.actors.ActorSystemContext; import org.thingsboard.server.actors.TbActor; import org.thingsboard.server.actors.TbActorId; import org.thingsboard.server.actors.TbEntityActorId; import org.thingsboard.server.actors.service.ContextBasedCreator; import org.thingsboard.server.common.data.id.DeviceId; import org.thingsboard.server.common.data.id.TenantId; public class DeviceActorCreator extends ContextBasedCreator { private final TenantId tenantId; private final DeviceId deviceId; public DeviceActorCreator(ActorSystemContext context, TenantId tenantId, DeviceId deviceId) { super(context); this.tenantId = tenantId; this.deviceId = deviceId; } @Override public TbActorId createActorId() { return new TbEntityActorId(deviceId); } @Override public TbActor createActor() { return new DeviceActor(context, tenantId, deviceId); } } ```
Esther Short Park is a public park and town square located in downtown Vancouver, Washington. Established in 1853, it is the oldest public park in the state of Washington. and one of the oldest public parks in the West. It is located in the city's downtown between West Columbia and 8th Street. It was bequeathed to the city in 1862, and includes a children's playground, a rose garden, a large fountain system made of columnar basalt, the Salmon Run Bell Tower, and the historic Slocum House. The park also houses a weekend farmer's market. In the summer of 2007, the park hosted over 30 outdoor summer concerts, many free. Esther Short Esther Short was an early Vancouver resident. She and her husband Amos, and ten children, "jumped a claim" near present-day downtown Vancouver. This land was originally part of a larger land plot by American Henry Williamson, who mapped out a little town called Vancouver City and registered the claim in the US courthouse in Oregon City. He left his caretaker, David Gardner, in-charge of the land before leaving for California. During a dispute, Amos Short killed Gardner, though he was acquitted of any crime. Short used his courtroom experience to become a judge and claim the disputed land for himself. He died during a return voyage from selling local produce in San Francisco. With Williamson's registered claim intact, Esther Short filed papers to claim the land. Ultimately, she obtained part of the land (including the parcel which includes present-day Esther Short Park), along with the Catholic Church and Vancouver City. She also gave permission to use house ferry boats to land on her property, at the foot of present-day Washington Street, where she operated a restaurant and hotel called The Alta House. The park was part of this land, bequeathed as a public plaza by Esther after Amos died in a shipwreck at the mouth of the Columbia. Some of her other land is now the Port of Vancouver. Esther Short Park's The Pioneer Mother Memorial (1928) was sculpted by Avard Fairbanks. Contemporary development Before the last decade or so, downtown Vancouver was in serious economic decline, and the park was mainly home to transients. A 1996 Columbian article named the park as the nucleus of the majority of emergency 911 calls in the city. As part of the push for revitalization by mayor Royce Pollard and others, the park received $5.67 million in direct aid, and investment of $220 million of capital funded a slew of development in and surrounding the park. This movement to revamp the park is widely believed to have been jump started by a 1997 incident involving Pollard at a series of social events he designed to make the park a family-friendly gathering place. According to reports, a transient individual pushed Pollard in the back with a shopping cart, and made threatening comments warning him to leave. The man was arrested, and henceforth public interest and support in reclaiming the park surged. In the summer of 2007, the property received the "Development of Excellence" award from the Urban Land Institute of Oregon and Southwest Washington. It was also honored as one of the nation's "ten great public spaces" by the American Planning Association for 2013. References Additional references "Images of America DOWNTOWN VANCOUVER", Pat Jollota, p42. External links Photograph of the Slocum House from the Clark County official website Geography of Vancouver, Washington Parks in Clark County, Washington Parks in Washington (state) Tourist attractions in Vancouver, Washington Urban public parks
Karachi FM is a radio station broadcasting on 96.0 FM in Karachi, Pakistan. The radio station is owned and operated by Vectracom Broadcasting Services (Pvt.) Ltd. History The station was established in 2004 as Radioactive 96 FM. It was owned by Riffat Siddiqi. The station changed names to Karachi FM in 2013. See also List of radio stations in Pakistan City FM 89 Radio Pakistan References Radio stations in Pakistan Mass media in Karachi
Lies My Father Told Me is a 1960 film directed by Don Chaffey. It stars Harry Brogan and Betsy Blair. Plot This film follows Jewish people in Dublin; in a working-class family, a young boy becomes increasingly close to an old orthodox Jew and assimilates his views, much to the dismay of his family. Cast Harry Brogan as Grandfather Betsy Blair as Mother Eddie Golden as Father Rita O'Dea as Grandmother Terry Raven as David References External links 1960 films Films directed by Don Chaffey British drama films 1960 drama films 1960s English-language films 1960s British films
```html <!-- 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. --> <mat-form-field [formGroup]="selectDashboardFormGroup" [class]="{'tb-inline-field': inlineField, 'flex': inlineField, 'tb-suffix-absolute': (inlineField && !selectDashboardFormGroup.get('dashboard').value)}" class="mat-block" [floatLabel]="floatLabel" [appearance]="inlineField ? 'outline' : appearance" [subscriptSizing]="inlineField ? 'dynamic' : subscriptSizing"> <mat-label *ngIf="!inlineField && label">{{ label }}</mat-label> <input matInput type="text" #dashboardInput placeholder="{{ placeholder }}" formControlName="dashboard" (focusin)="onFocus()" [required]="required" [matAutocomplete]="dashboardAutocomplete" [fxShow]="!useDashboardLink || !disabled || !selectDashboardFormGroup.get('dashboard').value"> <a *ngIf="useDashboardLink && selectDashboardFormGroup.get('dashboard').value && disabled" aria-label="Open device profile" [routerLink]=dashboardURL> {{ displayDashboardFn(selectDashboardFormGroup.get('dashboard').value) }} </a> <button *ngIf="selectDashboardFormGroup.get('dashboard').value && !disabled" type="button" matSuffix mat-icon-button aria-label="Clear" (click)="clear()"> <mat-icon class="material-icons">close</mat-icon> </button> <mat-icon matSuffix matTooltipPosition="above" matTooltipClass="tb-error-tooltip" [matTooltip]="requiredText | translate" *ngIf="inlineField && requiredText && selectDashboardFormGroup.get('dashboard').hasError('required') && selectDashboardFormGroup.get('dashboard').touched" class="tb-error"> warning </mat-icon> <mat-autocomplete class="tb-autocomplete" #dashboardAutocomplete="matAutocomplete" [displayWith]="displayDashboardFn"> <mat-option *ngFor="let dashboard of filteredDashboards | async" [value]="dashboard"> <span [innerHTML]="dashboard.title | highlight:searchText"></span> </mat-option> <mat-option *ngIf="!(filteredDashboards | async)?.length" [value]="null"> <div (click)="$event.stopPropagation()"> <div *ngIf="!textIsNotEmpty(searchText); else searchNotEmpty"> <span>{{ 'dashboard.no-dashboards-text' | translate }}</span> </div> <ng-template #searchNotEmpty> <span> {{ translate.get('dashboard.no-dashboards-matching', {entity: searchText}) | async }} </span> </ng-template> </div> </mat-option> </mat-autocomplete> <mat-error *ngIf="!inlineField"> <ng-content select="[tb-error]"></ng-content> </mat-error> <mat-hint *ngIf="!inlineField"> <ng-content select="[tb-hint]"></ng-content> </mat-hint> </mat-form-field> ```
```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\Vision; class GoogleCloudVisionV1p3beta1WebDetectionWebLabel extends \Google\Model { /** * @var string */ public $label; /** * @var string */ public $languageCode; /** * @param string */ public function setLabel($label) { $this->label = $label; } /** * @return string */ public function getLabel() { return $this->label; } /** * @param string */ public function setLanguageCode($languageCode) { $this->languageCode = $languageCode; } /** * @return string */ public function getLanguageCode() { return $this->languageCode; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudVisionV1p3beta1WebDetectionWebLabel::class, your_sha256_hashabel'); ```
```java package com.example.ec2; // snippet-start:[ec2.java2.terminate_instance.import] import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.ec2.Ec2Client; import software.amazon.awssdk.services.ec2.model.TerminateInstancesRequest; import software.amazon.awssdk.services.ec2.model.TerminateInstancesResponse; import software.amazon.awssdk.services.ec2.model.InstanceStateChange; import software.amazon.awssdk.services.ec2.model.Ec2Exception; import java.util.List; // snippet-end:[ec2.java2.terminate_instance.import] /** * Before running this Java V2 code example, set up your development * environment, including your credentials. * * For more information, see the following documentation topic: * * path_to_url */ public class TerminateInstance { public static void main(String[] args) { final String usage = """ Usage: <instanceId> Where: instanceId - An instance id value that you can obtain from the AWS Console.\s """; if (args.length != 1) { System.out.println(usage); System.exit(1); } String instanceId = args[0]; Region region = Region.US_EAST_1; Ec2Client ec2 = Ec2Client.builder() .region(region) .build(); terminateEC2(ec2, instanceId); ec2.close(); } public static void terminateEC2(Ec2Client ec2, String instanceID) { try { TerminateInstancesRequest ti = TerminateInstancesRequest.builder() .instanceIds(instanceID) .build(); TerminateInstancesResponse response = ec2.terminateInstances(ti); List<InstanceStateChange> list = response.terminatingInstances(); for (InstanceStateChange sc : list) { System.out.println("The ID of the terminated instance is " + sc.instanceId()); } } catch (Ec2Exception e) { System.err.println(e.awsErrorDetails().errorMessage()); System.exit(1); } } } ```
```python import time import logging from pyasn1.compat.octets import octs2ints from pyasn1 import error from pyasn1 import __version__ flagNone = 0x0000 flagEncoder = 0x0001 flagDecoder = 0x0002 flagAll = 0xffff flagMap = { 'encoder': flagEncoder, 'decoder': flagDecoder, 'all': flagAll } class Printer: def __init__(self, logger=None, handler=None, formatter=None): if logger is None: logger = logging.getLogger('pyasn1') logger.setLevel(logging.DEBUG) if handler is None: handler = logging.StreamHandler() if formatter is None: formatter = logging.Formatter('%(asctime)s %(name)s: %(message)s') handler.setFormatter(formatter) handler.setLevel(logging.DEBUG) logger.addHandler(handler) self.__logger = logger def __call__(self, msg): self.__logger.debug(msg) def __str__(self): return '<python built-in logging>' if hasattr(logging, 'NullHandler'): NullHandler = logging.NullHandler else: # Python 2.6 and older class NullHandler(logging.Handler): def emit(self, record): pass class Debug: defaultPrinter = None def __init__(self, *flags, **options): self._flags = flagNone if options.get('printer') is not None: self._printer = options.get('printer') elif self.defaultPrinter is not None: self._printer = self.defaultPrinter if 'loggerName' in options: # route our logs to parent logger self._printer = Printer( logger=logging.getLogger(options['loggerName']), handler=NullHandler() ) else: self._printer = Printer() self('running pyasn1 version %s' % __version__) for f in flags: inverse = f and f[0] in ('!', '~') if inverse: f = f[1:] try: if inverse: self._flags &= ~flagMap[f] else: self._flags |= flagMap[f] except KeyError: raise error.PyAsn1Error('bad debug flag %s' % f) self('debug category \'%s\' %s' % (f, inverse and 'disabled' or 'enabled')) def __str__(self): return 'logger %s, flags %x' % (self._printer, self._flags) def __call__(self, msg): self._printer(msg) def __and__(self, flag): return self._flags & flag def __rand__(self, flag): return flag & self._flags logger = 0 def setLogger(l): global logger logger = l def hexdump(octets): return ' '.join( [ '%s%.2X' % (n%16 == 0 and ('\n%.5d: ' % n) or '', x) for n,x in zip(range(len(octets)), octs2ints(octets)) ] ) class Scope: def __init__(self): self._list = [] def __str__(self): return '.'.join(self._list) def push(self, token): self._list.append(token) def pop(self): return self._list.pop() scope = Scope() ```
```python #!/usr/bin/python3 # # # 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 sys import atheris from sigstore.models import Bundle class NullPolicy: def verify(self, cert): return def TestOneInput(data): fdp = atheris.FuzzedDataProvider(data) try: bundle = Bundle.from_json(fdp.ConsumeUnicodeNoSurrogates(fdp.ConsumeIntInRange(50, 10000))) except Exception as e: return try: verify_artifact(fdp.ConsumeBytes(fdp.ConsumeIntInRange(50, 10000)), bundle, NullPolicy()) except InvalidBundle: pass def main(): atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput) atheris.Fuzz() if __name__ == "__main__": main() ```
"Diamond Rings and Old Barstools" is a song recorded by American country music artist Tim McGraw featuring Catherine Dunn. It was released in January 2015 as the fourth and final single from his second studio album for Big Machine Records, Sundown Heaven Town. The song was written by Jonathan Singleton, Barry Dean and Luke Laird. Content The song is a mid-tempo ballad featuring backing vocals from McGraw's cousin, Catherine Dunn. Its lyrics mainly compare certain objects such as "midnight and cigarette smoke" and "watered-down whiskey and Coke" to illustrate a story of two people who are incompatible with each other. Critical reception Jon Freeman of Country Weekly gave the song an A−, saying that "It's a gorgeous production: sparse without being skeletal, warm without being overbearing and perfectly tailored to Tim's oak-aged vocals." He said of the lyrics that "Not all of the pairings in the lyric make perfect sense, but that doesn't take anything away from the overall effect and message." The song was nominated at the 58th Grammy Awards for Best Country Song. Music video The music video was directed by Brian Olinger and premiered in March 2015. Chart performance The song has sold 298,000 copies in the US as of July 2015. Year-end charts Certifications References 2014 songs 2015 singles Tim McGraw songs Big Machine Records singles Male–female vocal duets Songs written by Barry Dean (songwriter) Songs written by Luke Laird Songs written by Jonathan Singleton Song recordings produced by Byron Gallimore Song recordings produced by Tim McGraw
Hjem til gården 2020 (Home to the Farm 2020) is the fourth season of the Danish version of The Farm. 14 contestants from across Denmark come to the farm and live like it was 100 years ago. Each week, the head of the farm nominates one person to be in a duel, the nominee then chooses who they'll face off against in one of three challenges. The person who loses the duel is sent home but not before writing a letter delivered to the farm stating who the head of farm for the next week is. The winner wins a grand prize of 500,000 kr. The season was originally supposed to premiere on 29 March 2020 but was pushed back due to the COVID-19 pandemic. As a result, the season ended up premiering on 21 June 2020. Finishing order All contestants entered on Day 1. The game References External links The Farm (franchise) Danish television series
```objective-c /* tc-vax.h -- Header file for tc-vax.c. Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. GAS is free software; you can redistribute it and/or modify the Free Software Foundation; either version 2, or (at your option) any later version. GAS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with GAS; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define TC_VAX 1 #define TARGET_BYTES_BIG_ENDIAN 0 #ifdef OBJ_AOUT #if defined(TE_NetBSD) || defined(TE_OpenBSD) #define TARGET_FORMAT "a.out-vax-netbsd" #endif #ifndef TARGET_FORMAT #define TARGET_FORMAT "a.out-vax-bsd" #endif #endif #ifdef OBJ_VMS #define TARGET_FORMAT "vms-vax" #endif #ifdef OBJ_ELF #define TARGET_FORMAT "elf32-vax" #endif #define BFD_ARCH bfd_arch_vax /* for non-BFD_ASSEMBLER */ #define TARGET_ARCH bfd_arch_vax /* BFD_ASSEMBLER */ #ifdef BFD_ASSEMBLER #define NO_RELOC BFD_RELOC_NONE #else #define NO_RELOC 0 #endif #define NOP_OPCODE 0x01 #define tc_aout_pre_write_hook(x) {;} /* not used */ #define tc_crawl_symbol_chain(a) {;} /* not used */ #define md_operand(x) long md_chars_to_number PARAMS ((unsigned char *, int)); extern const struct relax_type md_relax_table[]; #define TC_GENERIC_RELAX_TABLE md_relax_table #ifdef BFD_ASSEMBLER /* Values passed to md_apply_fix3 don't include symbol values. */ #define MD_APPLY_SYM_VALUE(FIX) 0 #define tc_fix_adjustable(FIX) \ ((FIX)->fx_r_type != BFD_RELOC_VTABLE_INHERIT \ && (FIX)->fx_r_type != BFD_RELOC_32_PLT_PCREL \ && (FIX)->fx_r_type != BFD_RELOC_32_GOT_PCREL \ && (FIX)->fx_r_type != BFD_RELOC_VTABLE_ENTRY \ && ((FIX)->fx_pcrel \ || ((FIX)->fx_subsy != NULL \ && (S_GET_SEGMENT ((FIX)->fx_subsy) \ == S_GET_SEGMENT ((FIX)->fx_addsy))) \ || S_IS_LOCAL ((FIX)->fx_addsy))) #endif /* * Local Variables: * comment-column: 0 * fill-column: 131 * End: */ ```
The Ukrainian Museum of Canada () is a network of museums across Canada that promote Ukrainian cultural life, with a particular focus on experiences of the Canadian Ukrainian diaspora. Background The Ukrainian Museum of Canada is a network of museums across Canada that promote Ukrainian cultural life. The headquarters of the network is in Saskatoon, where the first museum was established in 1941 by the Ukrainian Women's Association of Canada. One of the co-founders was the activist and writer Savella Stechishin. Originally it was housed in the Mohyla Ukrainian Institute, before moving to its own building in 1980. The Edmonton branch was the next to be established, in 1944. Locations The museum network has branches in Saskatoon, Winnipeg, Toronto, Edmonton, Calgary and Vancouver. The museums have collections that specialise in folk art, textiles and social history objects relating to the experiences of Ukrainian Canadians. In 2020 the Toronto branch jointly curated an exhibition on beadwork with the Native Canadian Centre of Toronto. In 2022, in response to the Russian invasion of Ukraine, the museums noted increased visitor numbers and interest in their collections. List of museums Ukrainian Museum of Canada, Alberta Branch Ukrainian Museum of Canada, Calgary Collection Ukrainian Museum of Canada, Manitoba Branch Ukrainian Museum of Canada, Ontario Branch Ukrainian Museum of Canada, Saskatoon References Museum associations and consortia Ukrainian-Canadian culture Ukrainian museums in Canada
Richmond was launched in 1811 as a West Indiaman. She made one voyage for the British East India Company (EIC). She wrecked in 1822 in the Sea of Java. Career Richmond entered the Register of Shipping in 1812 with T. Hearn, master, Sedgewick, owner, and trade Portsmouth—West Indies. Around 26 July 1816 Richmond, Hearn, master, arrived in England. She had left Old Harbour, Jamaica, on 28 May. On 24 June she had boarded the hull of Little Jane, of Baltimore. On 19 April 1819 Richmond, "Horn", master, was in Colombo Roads when the SW monsoon arrived. She had chain cables and lost 70 fathoms of cable when her windlass broke. Captain James Kay sailed Richmond from the Downs 25 June 1820, bound for St Helena and Bengal on a voyage as an "extra ship" for the EIC. She reached St Helena on 29 August and arrived at Calcutta on 11 December. Homeward bound, she was at Diamond Harbour on 31 January, Madras on 15 February, and Colombo on 8 March. She left Colombo on 9 April, reached the Cape of Good Hope on 14 June and St Helena on 9 July, and then arrived at her moorings on 28 September. The Register of Shipping for 1822 carried Richmond with Kays, master, Johnstone, owner, and trade London—New South Wales. Fate In July 1822 Richmond was in the Java Sea in company with , the vessels having sailed from Port Jackson, when Richmond wrecked on Hog Island on 31 July. Almorah picked up Richmonds crew and took them to Batavia, where they arrived on 5 August. Citations References 1811 ships Merchant ships of the United Kingdom Age of Sail merchant ships Ships of the British East India Company Maritime incidents in July 1822
Members of the Left Front Ministry in the Indian state of West Bengal as in May 2006 were as follows: Cabinet ministers Buddhadeb Bhattacharjee - Chief minister, Home, Home (P & R), Information & Cultural Affairs, Science & Technology, Minorities development, Darjeeling, Food processing, Horticulture, Development & Planning Nirupam Sen - Commerce & Industries, Public Undertakings, Industrial Reconstruction Dr Surjya Kanta Mishra - Health & Family Welfare, Panchayats & Rural Development, Bio-technology, ESI Gautam Deb - Housing, Public Health Engineering Dr Asim Dasgupta - Finance, Excise Subhas Chakraborty - Transport, Youth Services, Sports Naren De - Agriculture, Consumer Affairs Kshiti Goswami – PWD Nandagopal Bhattacharjee - Minor Irrigation, Water Investigation & Development Kiranmoy Nanda - Fisheries, Aqua-culture, Harbours Pratim Chatterjee - Fire services, Emergency Services Partha De - School Education Department Manab Mukherjee - Cottage & Small Scale, Tourism Rekha Goswami - Self-help Group, Self-employment Ashok Bhattacharya - Municipal Affairs, Urban Development, North Bengal Development and Hill affairs, Town & Country planning Abdur Razzak Molla - Land & Land Reforms Sailen Sarkar - Parliamentary Affairs Mrinal Banerjee - Power, labour Biswanath Chowdhury - Jail, Child & Women Development, Social Welfare Rabindra Ghosh - Co-operation Jogesh Barman - Backward Classes Welfare Anisur Rahaman - Animal Resources Development Dr Debesh Das - Information Technology Prof. Sudarshan Roy Choudhury - Higher Education Ananta Roy Barman – Forests Paresh Chandra Adhikari - Food and Supplies Department Robilal Moitra - Judicial and Law Department Chakradhar Meikap - Technical Education Subhas Naskar - Irrigation, Waterways Kanti Ganguly - Sunderbans Development Affairs Susanta Ghosh - Paschimanchal Unnayan Affairs Mohanta Chatterjee – Environment Dr Mortoza Hossein - Relief, Agricultural Marketing Ministers of State Deblina Hembram - MOS Backward Classes Welfare Manohar Tirkey - MOS PWD Srikumar Mukherjee - MOS Home, Civil Defence Bilashibala Sahis - MOS Forests Narayan Biswas - MOS Cottage & Small Scale Industries Abdus Sattar - MOS Minorities Development, Welfare, Madrasah Bankim Chandra Ghosh - MOS Panchayat & Rural Development Anwarul Haque - MOS Public Health engineering Binay Krishna Biswas - MOS Refugee relief & Rehabilitation Tapan Roy - MOS Mass Education Extension, Library Anadi Kumar Sahu - MOS Labour Notes References West Bengal ministries 2006 in Indian politics Communist Party of India (Marxist) state ministries 2006 establishments in West Bengal 2011 disestablishments in India Cabinets established in 2006 Cabinets disestablished in 2011
```go //go:build journald // +build journald /* 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 logcounter import ( "fmt" "time" "k8s.io/utils/clock" "k8s.io/node-problem-detector/cmd/logcounter/options" "k8s.io/node-problem-detector/pkg/logcounter/types" "k8s.io/node-problem-detector/pkg/systemlogmonitor" "k8s.io/node-problem-detector/pkg/systemlogmonitor/logwatchers/journald" watchertypes "k8s.io/node-problem-detector/pkg/systemlogmonitor/logwatchers/types" systemtypes "k8s.io/node-problem-detector/pkg/systemlogmonitor/types" ) const ( bufferSize = 1000 timeout = 1 * time.Second journaldSourceKey = "source" ) type logCounter struct { logCh <-chan *systemtypes.Log buffer systemlogmonitor.LogBuffer pattern string revertPattern string clock clock.Clock } func NewJournaldLogCounter(options *options.LogCounterOptions) (types.LogCounter, error) { watcher := journald.NewJournaldWatcher(watchertypes.WatcherConfig{ Plugin: "journald", PluginConfig: map[string]string{journaldSourceKey: options.JournaldSource}, LogPath: options.LogPath, Lookback: options.Lookback, Delay: options.Delay, }) logCh, err := watcher.Watch() if err != nil { return nil, fmt.Errorf("error watching journald: %v", err) } return &logCounter{ logCh: logCh, buffer: systemlogmonitor.NewLogBuffer(bufferSize), pattern: options.Pattern, revertPattern: options.RevertPattern, clock: clock.RealClock{}, }, nil } func (e *logCounter) Count() (count int, err error) { start := e.clock.Now() for { select { case log, ok := <-e.logCh: if !ok { err = fmt.Errorf("log channel closed unexpectedly") return } // We only want to count events up until the time at which we started. // Otherwise we would run forever if start.Before(log.Timestamp) { return } e.buffer.Push(log) if len(e.buffer.Match(e.pattern)) != 0 { count++ } if e.revertPattern != "" && len(e.buffer.Match(e.revertPattern)) != 0 { count-- } case <-e.clock.After(timeout): // Don't block forever if we do not get any new messages return } } } ```
Minenhle Lethuxolo Mthethwa (born 5 August 1991) is a South African professional rugby union player who most recently played with the . He usually plays as a winger, but can also play as an outside centre. Rugby career Youth rugby Mthethwa was born in Empangeni, and went to school in Eshowe. However, he was never selected to represent his local KwaZulu-Natal province at any national tournaments at schoolboy level. University of the Western Cape Mthethwa moved to Cape Town, where he enrolled at the University of the Western Cape, establishing himself in their first team. He was included in their rugby team that participated in the 2013 Varsity Shield. He scored a try on his debut in the competition, in a 42–4 victory over , and a second in their 36–13 victory over three weeks later. He made a total of five appearances for his team during the regular season, helping them to second spot on the log to qualify for the final against . He also started the final, but could not prevent the side from Bloemfontein winning 29–19 to win the competition. Mthethwa was a key player for the team in the 2014 Varsity Shield, starting seven of their eight matches. He scored tries in matches against , and – the second-highest try tally for a UWC player behind James Verity-Amm – in a disappointing season for UWC, which saw them finish fourth in the five-team competition, winning just three of their matches. Mthethwa made six appearances for UWC in the 2015 Varsity Shield, scoring one try in their 58–8 win over the as the team finished in third place, again missing out on a place in the final. He featured in all eight of their matches during the round-robin stage of the 2016 Varsity Shield. He scored a single try in their 30–5 victory over the UFH Blues, as UWC finishing in second place on the log after had twelve points deducted for fielding an ineligible player in their matches. Mthethwa started the final, where UWC again ended on the losing side, with winning the match 39–2, and also started in a promotion play-off match against fellow Cape Town team . UWC lost the match 5–40 to remain in the Varsity Shield for 2017. Eastern Province Kings In August 2016, Mthethwa was contracted by the for the 2016 Currie Cup Premier Division. He made his debut in the team's 35–49 defeat to the in Pretoria, coming on as a replacement for the last quarter of an hour. He made his first start 12 days later as Eastern Province faced in a rescheduled midweek match, and made his third and final appearance of the season as a replacement in their 0–53 loss to the . The Eastern Province Kings endured a torrid season, losing all eight of their matches to finish bottom of the log. References South African rugby union players Living people 1991 births People from Empangeni Rugby union centres Rugby union wings Eastern Province Elephants players Rugby union players from KwaZulu-Natal
```smalltalk namespace Veldrid { public struct MouseEvent { public MouseButton MouseButton { get; } public bool Down { get; } public MouseEvent(MouseButton button, bool down) { MouseButton = button; Down = down; } } public enum MouseButton { // // Summary: // The left mouse button. Left = 0, // // Summary: // The middle mouse button. Middle = 1, // // Summary: // The right mouse button. Right = 2, // // Summary: // The first extra mouse button. Button1 = 3, // // Summary: // The second extra mouse button. Button2 = 4, // // Summary: // The third extra mouse button. Button3 = 5, // // Summary: // The fourth extra mouse button. Button4 = 6, // // Summary: // The fifth extra mouse button. Button5 = 7, // // Summary: // The sixth extra mouse button. Button6 = 8, // // Summary: // The seventh extra mouse button. Button7 = 9, // // Summary: // The eigth extra mouse button. Button8 = 10, // // Summary: // The ninth extra mouse button. Button9 = 11, // // Summary: // Indicates the last available mouse button. LastButton = 12 } } ```
The women's heptathlon event at the 2000 World Junior Championships in Athletics was held in Santiago, Chile, at Estadio Nacional Julio Martínez Prádanos on 20 and 21 October. Medalists Results Final 20/21 October Participation According to an unofficial count, 20 athletes from 17 countries participated in the event. References Heptathlon Combined events at the World Athletics U20 Championships
```smalltalk // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Toolkit.Uwp; using Microsoft.Toolkit.Uwp.UI; using Microsoft.Toolkit.Uwp.UI.Controls; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.ObjectModel; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Markup; namespace UnitTests.UWP.UI.Controls { [TestClass] public class Test_ListDetailsView_UI : VisualUITestBase { private const string SampleXaml = @"<controls:ListDetailsView xmlns=""path_to_url"" xmlns:x=""path_to_url"" xmlns:controls=""using:Microsoft.Toolkit.Uwp.UI.Controls"" NoSelectionContent=""No item selected"" > <controls:ListDetailsView.ItemTemplate> <DataTemplate> <TextBlock Text=""Item"" /> </DataTemplate> </controls:ListDetailsView.ItemTemplate> <controls:ListDetailsView.DetailsTemplate> <DataTemplate> <TextBox Text=""{Binding}"" /> </DataTemplate> </controls:ListDetailsView.DetailsTemplate> </controls:ListDetailsView>"; [TestCategory("ListDetailsView")] [TestMethod] public async Task Test_LoseFocusOnNoSelection() { await App.DispatcherQueue.EnqueueAsync(async () => { var listDetailsView = XamlReader.Load(SampleXaml) as ListDetailsView; listDetailsView.ItemsSource = new ObservableCollection<string> { "First", }; listDetailsView.SelectedIndex = 0; await SetTestContentAsync(listDetailsView); var firsttb = listDetailsView.FindDescendant<TextBox>(); await App.DispatcherQueue.EnqueueAsync(() => firsttb.Focus(FocusState.Programmatic)); Assert.AreEqual(firsttb, FocusManager.GetFocusedElement(), "TextBox didn't get focus"); var tcs = new TaskCompletionSource<bool>(); firsttb.LostFocus += (s, e) => tcs.SetResult(true); listDetailsView.SelectedIndex = -1; await Task.WhenAny(tcs.Task, Task.Delay(2000)); Assert.IsTrue(tcs.Task.IsCompleted); Assert.IsTrue(tcs.Task.Result, "TextBox in the first item should have lost focus."); }); } [TestCategory("ListDetailsView")] [TestMethod] public async Task Test_LoseFocusOnSelectOther() { await App.DispatcherQueue.EnqueueAsync(async () => { var listDetailsView = XamlReader.Load(SampleXaml) as ListDetailsView; listDetailsView.ItemsSource = new ObservableCollection<string> { "First", "Second", }; listDetailsView.SelectedIndex = 0; await SetTestContentAsync(listDetailsView); var firsttb = listDetailsView.FindDescendant<TextBox>(); await App.DispatcherQueue.EnqueueAsync(() => firsttb.Focus(FocusState.Programmatic)); Assert.AreEqual(firsttb, FocusManager.GetFocusedElement(), "TextBox didn't get focus"); var tcs = new TaskCompletionSource<bool>(); firsttb.LostFocus += (s, e) => tcs.SetResult(true); listDetailsView.SelectedIndex = 1; await Task.WhenAny(tcs.Task, Task.Delay(2000)); Assert.IsTrue(tcs.Task.IsCompleted); Assert.IsTrue(tcs.Task.Result, "TextBox in the first item should have lost focus."); }); } } } ```
```javascript /** * Created by jsaon on 16/7/15. */ import {Dimensions} from 'react-native'; let window = { width: Dimensions.get('window').width, height: Dimensions.get('window').height, } /* let HomeDate = { "response": "channels", "isDisplay": "yes", "channels": [ { "channelId": "1", "channelName": "" }, { "channelId": "433c6f9289da4bb2bf7d237f735662aa", "channelName": "" }, { "channelId": "8168654a159149f68979efd3eb2a94c3", "channelName": "" }, { "channelId": "588dbe1651b24069a21aef8d220eaed5", "channelName": "" } ], "skinChannel": {}, "module": [ { "moduleTitle": "", "moduleStyle": "101", "moduleType": "3", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "0", "modulePosition": "1", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "7864a7fa0bd24384b8871c8375a08060", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "7864a7fa0bd24384b8871c8375a08060", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "e7767e156179424caba972a5f3c4891b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "e7767e156179424caba972a5f3c4891b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "a2325b23f7fa484b83c3a41a61e4d602", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "a2325b23f7fa484b83c3a41a61e4d602", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "4c4e878276b64953b7ae732ec1613e18", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "4c4e878276b64953b7ae732ec1613e18", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "f858531248a342c5aa8aebaa45b75284", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "", "commodityCode": "f858531248a342c5aa8aebaa45b75284", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "102", "moduleType": "2", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "2", "moduleTypeBg": "0", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1001", "type_argu": "782f8018c3d940138d423dcd590e988f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "782f8018c3d940138d423dcd590e988f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "782f8018c3d940138d423dcd590e988f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "782f8018c3d940138d423dcd590e988f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "3b1162682a594956a9ed45d14adb0598", "title": "O2O", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "3b1162682a594956a9ed45d14adb0598", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "102", "moduleType": "2", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "3", "moduleTypeBg": "0", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "beb6565510644e6d9bcb6c45c919a46f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "beb6565510644e6d9bcb6c45c919a46f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "eb531927f20549c48085b13dd7b888b6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "eb531927f20549c48085b13dd7b888b6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "3b27eb3118814946b710cd220f7059c4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "3b27eb3118814946b710cd220f7059c4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "c148f19cbeb646eaa1e12ef012a0b84e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "c148f19cbeb646eaa1e12ef012a0b84e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "104", "moduleType": "4", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "4", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": ",~", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "18", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "5", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "d25eb525e27241cfb578db3b43a65877", "secKillImg": "path_to_url", "secKillState": "1", "secKillLeftTime": "25943", "secKillStartTime": "2016-08-10 18:00:00", "moduleDetail": [ { "type": "1027", "type_argu": "100386532", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "adidas2016S78963", "commodityCode": "100386532", "secSkillStat": "0", "secSkillPrice": "398", "publicPrice": "829", "salePrice": "398" }, { "type": "1027", "type_argu": "100382380", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "Teenmix/2016/PU31750BT6", "commodityCode": "100382380", "secSkillStat": "0", "secSkillPrice": "188", "publicPrice": "698", "salePrice": "188" }, { "type": "1027", "type_argu": "100440344", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "Paul Frank2016PFATE162759M76", "commodityCode": "100440344", "secSkillStat": "0", "secSkillPrice": "129", "publicPrice": "369", "salePrice": "129" }, { "type": "1027", "type_argu": "100457440", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "NIKE2016AS NIKE TEE-SOLSTICE JDIT810371-455", "commodityCode": "100457440", "secSkillStat": "0", "secSkillPrice": "139", "publicPrice": "229", "salePrice": "139" }, { "type": "1027", "type_argu": "100440343", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "Paul Frank2016PFATE162759M31", "commodityCode": "100440343", "secSkillStat": "0", "secSkillPrice": "129", "publicPrice": "369", "salePrice": "129" }, { "type": "1027", "type_argu": "100430788", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "NIKE2016AS NIKE TEE-BF LYNX JDIT779264-063", "commodityCode": "100430788", "secSkillStat": "0", "secSkillPrice": "110", "publicPrice": "229", "salePrice": "110" }, { "type": "1027", "type_argu": "100441126", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "Paul Frank2016PFATE162759M13", "commodityCode": "100441126", "secSkillStat": "0", "secSkillPrice": "129", "publicPrice": "369", "salePrice": "129" }, { "type": "1027", "type_argu": "100432025", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "8", "commodityName": "adidas2016TAJ8639", "commodityCode": "100432025", "secSkillStat": "1", "secSkillPrice": "115", "publicPrice": "229", "salePrice": "115" }, { "type": "1027", "type_argu": "100408002", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "9", "commodityName": "adidas2016TAI6145", "commodityCode": "100408002", "secSkillStat": "1", "secSkillPrice": "108", "publicPrice": "229", "salePrice": "108" }, { "type": "1027", "type_argu": "100264462", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "10", "commodityName": "CHUMS XTCH11-1016-W001", "commodityCode": "100264462", "secSkillStat": "1", "secSkillPrice": "159", "publicPrice": "368", "salePrice": "159" }, { "type": "1027", "type_argu": "100370297", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "11", "commodityName": "adidas2016F37493", "commodityCode": "100370297", "secSkillStat": "1", "secSkillPrice": "398", "publicPrice": "799", "salePrice": "398" }, { "type": "1027", "type_argu": "100470019", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "12", "commodityName": "PUMA2016Sesame Street TeeT83881702", "commodityCode": "100470019", "secSkillStat": "1", "secSkillPrice": "109", "publicPrice": "199", "salePrice": "109" }, { "type": "1027", "type_argu": "100417613", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "13", "commodityName": "adidas2016TAK1006", "commodityCode": "100417613", "secSkillStat": "1", "secSkillPrice": "115", "publicPrice": "229", "salePrice": "115" }, { "type": "1027", "type_argu": "100447994", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "14", "commodityName": "Belle/2016688-8AQ6", "commodityCode": "100447994", "secSkillStat": "1", "secSkillPrice": "238", "publicPrice": "838", "salePrice": "238" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "6", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "183", "moduleSpace": "0", "modulePosition": "7", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "4", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "8", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "ae9d9c258bec41f9be1e7da1a961d67d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "ae9d9c258bec41f9be1e7da1a961d67d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7a5205573d1a4fb3ac62b0d6fe8b50e6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "7a5205573d1a4fb3ac62b0d6fe8b50e6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "f9f48e4cd3634e0b9e6b5e92d8945a48", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "f9f48e4cd3634e0b9e6b5e92d8945a48", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "9", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "10", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "81e7187543e14cea96feaedc68965434", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "81e7187543e14cea96feaedc68965434", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "11", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "dd6003d892094cf4b2f997d812fa9222", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "dd6003d892094cf4b2f997d812fa9222", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "55bf18a6bf874e138f943cdc4b0d8b39", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "55bf18a6bf874e138f943cdc4b0d8b39", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0016223fba784fc6bde84fc4a78058c7", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "0016223fba784fc6bde84fc4a78058c7", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "12", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "220", "moduleSpace": "0", "modulePosition": "13", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "3b1162682a594956a9ed45d14adb0598", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "3b1162682a594956a9ed45d14adb0598", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "14", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "5791192d97ca4cb6b6f5e993813a3f21", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "5791192d97ca4cb6b6f5e993813a3f21", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "15", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "af346e66faba4f9eaf874e8ee896d22c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "af346e66faba4f9eaf874e8ee896d22c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "36eea1e21fc042b0b0f59c82b1e52373", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "36eea1e21fc042b0b0f59c82b1e52373", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "5a6c324b5fc347b286082743087136d1", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "5a6c324b5fc347b286082743087136d1", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "16", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "17", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "64b235398e3442d8b215dd311c838ded", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "64b235398e3442d8b215dd311c838ded", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "18", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "20d57a5472d8495b85bea03c366178cd", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "20d57a5472d8495b85bea03c366178cd", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "a7ecd39d51594185881ca79c2422e6a6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "a7ecd39d51594185881ca79c2422e6a6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "6ddeaed898f849c09acf1eb2d1a4073c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "6ddeaed898f849c09acf1eb2d1a4073c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "19", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "20", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "01e6b838805c4a70be768666e3ffe46f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "01e6b838805c4a70be768666e3ffe46f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "21", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "9ae7b2c91e424386914495f77f14a103", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "9ae7b2c91e424386914495f77f14a103", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "47de0e18ab2148359087d6880078892b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "47de0e18ab2148359087d6880078892b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "22", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "23", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "a6b1a88f4c614f099042a259d92c2048", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "a6b1a88f4c614f099042a259d92c2048", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "24", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "1b0bf498d4404206abc70999f19320be", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "1b0bf498d4404206abc70999f19320be", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "4c63a6186b344f0bb617716a33e13159", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "4c63a6186b344f0bb617716a33e13159", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "ae9d9c258bec41f9be1e7da1a961d67d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "ae9d9c258bec41f9be1e7da1a961d67d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "25", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "26", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "412bf431ae894a31aeec1b528ea1438f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "412bf431ae894a31aeec1b528ea1438f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "27", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "ae7166d9d25041dc8ec9d143bafade22", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "ae7166d9d25041dc8ec9d143bafade22", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "5df396da8e71433e976a805cbee07cc5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "5df396da8e71433e976a805cbee07cc5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7d33744123114e4996496c059495ae32", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "7d33744123114e4996496c059495ae32", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "28", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "29", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "e34e35063b6c42aa95cb7529e7590d2d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "e34e35063b6c42aa95cb7529e7590d2d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "30", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "00911a3ccd3d42fd895311b38e972b97", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "00911a3ccd3d42fd895311b38e972b97", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "cd1f13d3751d442cb2aab9cedcc55165", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "cd1f13d3751d442cb2aab9cedcc55165", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "17e8b6036ba845199b44ebf6dc7eefb5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "17e8b6036ba845199b44ebf6dc7eefb5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "f5f4eda3ffd7463e8f5f28e796a98e74", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "f5f4eda3ffd7463e8f5f28e796a98e74", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "31", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "a2ae5e426dbc43b8908458211096f5c3", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "a2ae5e426dbc43b8908458211096f5c3", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "4d127c47ace2419399317a798a9cd1b3", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "4d127c47ace2419399317a798a9cd1b3", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "c18c8df37518416dac4b58f348aeedd9", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "c18c8df37518416dac4b58f348aeedd9", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "323bdf395223433daf298adb78a3362d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "323bdf395223433daf298adb78a3362d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "32", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "8", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "33", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "34", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0b7e1edd162b45fd8610f633ef8e2d7f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "0b7e1edd162b45fd8610f633ef8e2d7f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "26b62da462ef4c9b9293dfb1e8fdd5df", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "26b62da462ef4c9b9293dfb1e8fdd5df", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "35", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b65e546a86a84a53b5393ee6c3bc97a0", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b65e546a86a84a53b5393ee6c3bc97a0", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "23808871e17c4021ae4cea9f44607381", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "23808871e17c4021ae4cea9f44607381", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "dca38398893141618070636eae0d67f4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "dca38398893141618070636eae0d67f4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "25da3263ac3b48daac52355083db787f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "25da3263ac3b48daac52355083db787f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "36", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "37", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "671313a206dd4666938e8e61b2e5191b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "671313a206dd4666938e8e61b2e5191b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "3b95bf0e824e4552bca3190d66848443", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "3b95bf0e824e4552bca3190d66848443", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "b0fba84233f44964960033aad1f9a8ea", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "b0fba84233f44964960033aad1f9a8ea", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "6d3de0795cfc4b9e9e1fe2cbd1246746", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "6d3de0795cfc4b9e9e1fe2cbd1246746", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "38", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "00336fa071284f968d825820a80e83d9", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "00336fa071284f968d825820a80e83d9", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "42aeca2a6b08467abed191d400ffde47", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "42aeca2a6b08467abed191d400ffde47", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "4f6c81f662e148348f2b4e28e323a82b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "4f6c81f662e148348f2b4e28e323a82b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0ca068c62719437d8ad9ff06ca6494b4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "0ca068c62719437d8ad9ff06ca6494b4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "39", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "7338d4c4f0f84596bb9115fda0926632", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "7338d4c4f0f84596bb9115fda0926632", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "8476c02df0344d03bcceb3d37e546eda", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "8476c02df0344d03bcceb3d37e546eda", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "9fd7da561c35432486d3f500539028bb", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "9fd7da561c35432486d3f500539028bb", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "2ccbe6cd65ef4eb48706721ebd80b5eb", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "2ccbe6cd65ef4eb48706721ebd80b5eb", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "200", "moduleSpace": "10", "modulePosition": "40", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "782f8018c3d940138d423dcd590e988f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "782f8018c3d940138d423dcd590e988f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] } ] } */ let ShoppingCarDate = { "response": "car", "car_total_size": "9", "cny_car_size": "9", "hkd_car_size": "0", "ker_car_size": "0", "ker_zf_car_size": "0", "cny_total_price": "2342", "cny_tempSaleAmount": "3119", "cny_subAmount": "777", "hkd_total_price": "0", "hkd_tempSaleAmount": "0", "hkd_subAmount": "0", "ker_total_price": "0", "ker_tempSaleAmount": "0", "ker_subAmount": "0", "ker_tip": "", "taxAmount": "0", "ker_zf_total_price": "0", "ker_zf_tempSaleAmount": "0", "ker_zf_subAmount": "0", "taxAmountZf": "0", "cny_firstOrder": "", "hkd_firstOrder": "", "ker_firstOrder": "", "kerzf_firstOrder": "", "shopcargroup": [ { "title": "", "subtitle": "", "group_subAmount": "", "group_totalAmount": "550", "car_gifts": { "carGiftTotal": "0", "canGetGifts": "0", "carHasGet": "0", "gifts": [] }, "car_getGifts": [], "car_productlist": [ { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "8318cef796e1bebacbd6910091e4bbad__n", "buyStatus": true, "id": "99948220002", "commodityNo": "99948220", "merchant": "", "commodityMark": { "marks": [] }, "name": "Columbia/100% PL7234676", "size": "S", "number": "1", "stockNum": "6", "state": "1", "pic": "path_to_url", "color": "", "type": "0", "activity_desc": "", "activeid": "", "activityType": "0", "price1": { "key": ":", "value": "275" }, "price2": { "key": ":", "value": "275" } }, { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "9045b3027f536f9f27dccb9c31f0bc88__n", "buyStatus": true, "id": "99948219002", "commodityNo": "99948219", "merchant": "", "commodityMark": { "marks": [] }, "name": "Columbia/100% PL7234160", "size": "S", "number": "1", "stockNum": "6", "state": "1", "pic": "path_to_url", "color": "", "type": "0", "activity_desc": "", "activeid": "", "activityType": "0", "price1": { "key": ":", "value": "275" }, "price2": { "key": ":", "value": "275" } } ] }, { "title": "", "subtitle": "", "group_subAmount": "577", "group_totalAmount": "1393", "car_gifts": { "carGiftTotal": "0", "canGetGifts": "0", "carHasGet": "0", "gifts": [] }, "car_getGifts": [], "car_productlist": [ { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "9806d0a0283b7cb763a7f0e0c93c2a33__m", "buyStatus": true, "id": "100408055001", "commodityNo": "100408055", "merchant": "", "commodityMark": { "marks": [] }, "name": "adidas2016AJ4273", "size": "F", "number": "1", "stockNum": "243", "state": "1", "pic": "path_to_url", "color": "", "type": "0", "activity_desc": "823", "activeid": "9806d0a0283b7cb763a7f0e0c93c2a33__m", "activityType": "21", "price1": { "key": ":", "value": "199" }, "price2": { "key": ":", "value": "99" } }, { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "8bcb80570f0506a562e2d380a5585403__m", "buyStatus": true, "id": "100242454002", "commodityNo": "100242454", "merchant": "", "commodityMark": { "marks": [] }, "name": "VANS VN-02K2ADI", "size": "M", "number": "1", "stockNum": "16", "state": "1", "pic": "path_to_url", "color": "", "type": "0", "activity_desc": "823", "activeid": "8bcb80570f0506a562e2d380a5585403__m", "activityType": "21", "price1": { "key": ":", "value": "379" }, "price2": { "key": ":", "value": "299" } }, { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "a832dcbe055065ef60ecb770b9eda0a9__m", "buyStatus": true, "id": "99939225001", "commodityNo": "99939225", "merchant": "", "commodityMark": { "marks": [] }, "name": "JACK WOLFSKIN 1501731-6032-141", "size": "34", "number": "1", "stockNum": "10", "state": "1", "pic": "path_to_url", "color": "", "type": "0", "activity_desc": "823", "activeid": "a832dcbe055065ef60ecb770b9eda0a9__m", "activityType": "21", "price1": { "key": ":", "value": "349" }, "price2": { "key": ":", "value": "259" } }, { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "b99889ef70eb529edbde8ca8e70ce422__m", "buyStatus": true, "id": "99939225003", "commodityNo": "99939225", "merchant": "", "commodityMark": { "marks": [] }, "name": "JACK WOLFSKIN 1501731-6032-141", "size": "38", "number": "1", "stockNum": "3", "state": "1", "pic": "path_to_url", "color": "", "type": "0", "activity_desc": "823", "activeid": "b99889ef70eb529edbde8ca8e70ce422__m", "activityType": "21", "price1": { "key": ":", "value": "349" }, "price2": { "key": ":", "value": "259" } }, { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "073a7e6754e1daf872ffb03f0edb35d0__m", "buyStatus": true, "id": "100149022003", "commodityNo": "100149022", "merchant": "", "commodityMark": { "marks": [] }, "name": "Crocs / 12220-367", "size": "27-28", "number": "1", "stockNum": "28", "state": "1", "pic": "path_to_url", "color": "/", "type": "0", "activity_desc": "823", "activeid": "073a7e6754e1daf872ffb03f0edb35d0__m", "activityType": "21", "price1": { "key": ":", "value": "263" }, "price2": { "key": ":", "value": "188" } }, { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "db5811aa25f9094a430f40465b1c22fb__m", "buyStatus": true, "id": "100419284001", "commodityNo": "100419284", "merchant": "", "commodityMark": { "marks": [] }, "name": "CONVERSE/ 2016Chuck Taylor 552908C", "size": "35", "number": "1", "stockNum": "4", "state": "1", "pic": "path_to_url", "color": "", "type": "0", "activity_desc": "823", "activeid": "db5811aa25f9094a430f40465b1c22fb__m", "activityType": "21", "price1": { "key": ":", "value": "431" }, "price2": { "key": ":", "value": "289" } } ] }, { "title": "", "subtitle": "200.0", "group_subAmount": "200", "group_totalAmount": "399", "car_gifts": { "carGiftTotal": "0", "canGetGifts": "0", "carHasGet": "0", "gifts": [] }, "car_getGifts": [], "car_productlist": [ { "isfavorite": "false", "prompt": "", "mianNO": "", "merchantid": "SPYG", "rowid": "1f544ee92611248ee5aae45c57e9a8a3__m", "buyStatus": true, "id": "100457556005", "commodityNo": "100457556", "merchant": "", "commodityMark": { "marks": [] }, "name": "adidas2016AQ5859", "size": "36.5", "number": "1", "stockNum": "12", "state": "1", "pic": "path_to_url", "color": "/1/", "type": "0", "activity_desc": "-8.29-", "activeid": "1f544ee92611248ee5aae45c57e9a8a3__m", "activityType": "9", "price1": { "key": ":", "value": "599" }, "price2": { "key": ":", "value": "599" } } ] } ], "shopcargroup_hkd": [], "shopcargroup_ker": [], "shopcargroup_ker_zf": [], "msg": " ", "msg_hkd": " ", "msg_ker": " ", "msg_ker_zf": " " } /** let HomeDate = { "response": "channels", "isDisplay": "yes", "channels": [ { "channelId": "1", "channelName": "" }, { "channelId": "433c6f9289da4bb2bf7d237f735662aa", "channelName": "" }, { "channelId": "8168654a159149f68979efd3eb2a94c3", "channelName": "" }, { "channelId": "588dbe1651b24069a21aef8d220eaed5", "channelName": "" } ], "skinChannel": {}, "module": [ { "moduleTitle": "", "moduleStyle": "101", "moduleType": "3", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "0", "modulePosition": "1", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "7864a7fa0bd24384b8871c8375a08060", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "7864a7fa0bd24384b8871c8375a08060", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "e7767e156179424caba972a5f3c4891b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "e7767e156179424caba972a5f3c4891b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "a2325b23f7fa484b83c3a41a61e4d602", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "a2325b23f7fa484b83c3a41a61e4d602", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "4c4e878276b64953b7ae732ec1613e18", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "4c4e878276b64953b7ae732ec1613e18", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "f858531248a342c5aa8aebaa45b75284", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "", "commodityCode": "f858531248a342c5aa8aebaa45b75284", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "102", "moduleType": "2", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "2", "moduleTypeBg": "0", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1001", "type_argu": "782f8018c3d940138d423dcd590e988f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "782f8018c3d940138d423dcd590e988f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "782f8018c3d940138d423dcd590e988f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "782f8018c3d940138d423dcd590e988f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "3b1162682a594956a9ed45d14adb0598", "title": "O2O", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "3b1162682a594956a9ed45d14adb0598", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "102", "moduleType": "2", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "3", "moduleTypeBg": "0", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "beb6565510644e6d9bcb6c45c919a46f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "beb6565510644e6d9bcb6c45c919a46f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "eb531927f20549c48085b13dd7b888b6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "eb531927f20549c48085b13dd7b888b6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "3b27eb3118814946b710cd220f7059c4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "3b27eb3118814946b710cd220f7059c4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "c148f19cbeb646eaa1e12ef012a0b84e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "c148f19cbeb646eaa1e12ef012a0b84e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "104", "moduleType": "4", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "4", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "100", "type_argu": "34ff50bb0d2a4616b29fb459215a929b", "title": "10", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "34ff50bb0d2a4616b29fb459215a929b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "13", "type_argu": "path_to_url", "title": ",,~", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "18", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "5", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "e65afe00425c4ee287ffeefac06a2191", "secKillImg": "path_to_url", "secKillState": "1", "secKillLeftTime": "26641", "secKillStartTime": "2016-08-11 18:00:00", "moduleDetail": [ { "type": "1027", "type_argu": "100135222", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "CONVERSE/ 11223C035", "commodityCode": "100135222", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "259", "salePrice": "99" }, { "type": "1027", "type_argu": "100430778", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "NIKE2016AS NIKE TEE-BF LYNX JDIT779264-010", "commodityCode": "100430778", "secSkillStat": "0", "secSkillPrice": "110", "publicPrice": "229", "salePrice": "110" }, { "type": "1027", "type_argu": "100418877", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "NIKE2016AS NIKE FC FOIL TEET810506-480", "commodityCode": "100418877", "secSkillStat": "0", "secSkillPrice": "118", "publicPrice": "229", "salePrice": "118" }, { "type": "1027", "type_argu": "100404899", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "NIKE2016NIKE HAYWARD FUTURA M 2.0BA5134-556", "commodityCode": "100404899", "secSkillStat": "0", "secSkillPrice": "198", "publicPrice": "369", "salePrice": "198" }, { "type": "1027", "type_argu": "100236646", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "LACOSTEBAYLISS VULC VST30SPM00361P4", "commodityCode": "100236646", "secSkillStat": "0", "secSkillPrice": "198", "publicPrice": "690", "salePrice": "198" }, { "type": "1027", "type_argu": "100353049", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "NIKE2016NIKE AIR PEGASUS 83 LTR827922-015", "commodityCode": "100353049", "secSkillStat": "0", "secSkillPrice": "359", "publicPrice": "649", "salePrice": "359" }, { "type": "1027", "type_argu": "100404918", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "NIKE2016NIKE CORE SMALL ITEMS IIBA4293-556", "commodityCode": "100404918", "secSkillStat": "0", "secSkillPrice": "75", "publicPrice": "129", "salePrice": "75" }, { "type": "1027", "type_argu": "100382211", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "8", "commodityName": "adidas2016F99572", "commodityCode": "100382211", "secSkillStat": "1", "secSkillPrice": "298", "publicPrice": "629", "salePrice": "298" }, { "type": "1027", "type_argu": "100435425", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "9", "commodityName": "adidas2016TAK1797", "commodityCode": "100435425", "secSkillStat": "1", "secSkillPrice": "99", "publicPrice": "199", "salePrice": "99" }, { "type": "1027", "type_argu": "100406272", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "10", "commodityName": "adidas2016TAH4138", "commodityCode": "100406272", "secSkillStat": "1", "secSkillPrice": "138", "publicPrice": "269", "salePrice": "138" }, { "type": "1027", "type_argu": "100351882", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "11", "commodityName": "adidas2016F99650", "commodityCode": "100351882", "secSkillStat": "1", "secSkillPrice": "398", "publicPrice": "799", "salePrice": "398" }, { "type": "1027", "type_argu": "100386736", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "12", "commodityName": "adidas2016TAK1075", "commodityCode": "100386736", "secSkillStat": "1", "secSkillPrice": "102", "publicPrice": "229", "salePrice": "102" }, { "type": "1027", "type_argu": "100436109", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "13", "commodityName": "adidas2016TAX5581", "commodityCode": "100436109", "secSkillStat": "1", "secSkillPrice": "115", "publicPrice": "229", "salePrice": "115" }, { "type": "1027", "type_argu": "100443206", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "14", "commodityName": "adidas2016SUMMER ATTACKAP5919", "commodityCode": "100443206", "secSkillStat": "1", "secSkillPrice": "148", "publicPrice": "299", "salePrice": "148" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "6", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "200", "moduleSpace": "0", "modulePosition": "7", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "7864a7fa0bd24384b8871c8375a08060", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "7864a7fa0bd24384b8871c8375a08060", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "4", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "8", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "ae9d9c258bec41f9be1e7da1a961d67d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "ae9d9c258bec41f9be1e7da1a961d67d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7a5205573d1a4fb3ac62b0d6fe8b50e6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "7a5205573d1a4fb3ac62b0d6fe8b50e6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "f9f48e4cd3634e0b9e6b5e92d8945a48", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "f9f48e4cd3634e0b9e6b5e92d8945a48", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "9", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "10", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "81e7187543e14cea96feaedc68965434", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "81e7187543e14cea96feaedc68965434", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "11", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "dd6003d892094cf4b2f997d812fa9222", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "dd6003d892094cf4b2f997d812fa9222", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "55bf18a6bf874e138f943cdc4b0d8b39", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "55bf18a6bf874e138f943cdc4b0d8b39", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0016223fba784fc6bde84fc4a78058c7", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "0016223fba784fc6bde84fc4a78058c7", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "12", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "220", "moduleSpace": "0", "modulePosition": "13", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "3b1162682a594956a9ed45d14adb0598", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "3b1162682a594956a9ed45d14adb0598", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "14", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "e7767e156179424caba972a5f3c4891b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "e7767e156179424caba972a5f3c4891b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "15", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "af346e66faba4f9eaf874e8ee896d22c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "af346e66faba4f9eaf874e8ee896d22c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "36eea1e21fc042b0b0f59c82b1e52373", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "36eea1e21fc042b0b0f59c82b1e52373", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "5a6c324b5fc347b286082743087136d1", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "5a6c324b5fc347b286082743087136d1", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "16", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "17", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "a2325b23f7fa484b83c3a41a61e4d602", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "a2325b23f7fa484b83c3a41a61e4d602", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "18", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "20d57a5472d8495b85bea03c366178cd", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "20d57a5472d8495b85bea03c366178cd", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "a7ecd39d51594185881ca79c2422e6a6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "a7ecd39d51594185881ca79c2422e6a6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "6ddeaed898f849c09acf1eb2d1a4073c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "6ddeaed898f849c09acf1eb2d1a4073c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "19", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "20", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "8fa6c922a2ef4388a39850f035623bba", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "8fa6c922a2ef4388a39850f035623bba", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "21", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "9ae7b2c91e424386914495f77f14a103", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "9ae7b2c91e424386914495f77f14a103", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "47de0e18ab2148359087d6880078892b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "47de0e18ab2148359087d6880078892b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "22", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "23", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "a6b1a88f4c614f099042a259d92c2048", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "a6b1a88f4c614f099042a259d92c2048", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "24", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "1b0bf498d4404206abc70999f19320be", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "1b0bf498d4404206abc70999f19320be", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "4c63a6186b344f0bb617716a33e13159", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "4c63a6186b344f0bb617716a33e13159", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "ae9d9c258bec41f9be1e7da1a961d67d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "ae9d9c258bec41f9be1e7da1a961d67d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "25", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "26", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "e83fbe91ea0d4de788d281a1f70d94ab", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "e83fbe91ea0d4de788d281a1f70d94ab", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "27", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "ae7166d9d25041dc8ec9d143bafade22", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "ae7166d9d25041dc8ec9d143bafade22", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "5df396da8e71433e976a805cbee07cc5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "5df396da8e71433e976a805cbee07cc5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7d33744123114e4996496c059495ae32", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "7d33744123114e4996496c059495ae32", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "28", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "29", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "e34e35063b6c42aa95cb7529e7590d2d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "e34e35063b6c42aa95cb7529e7590d2d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "30", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "00911a3ccd3d42fd895311b38e972b97", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "00911a3ccd3d42fd895311b38e972b97", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "cd1f13d3751d442cb2aab9cedcc55165", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "cd1f13d3751d442cb2aab9cedcc55165", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "17e8b6036ba845199b44ebf6dc7eefb5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "17e8b6036ba845199b44ebf6dc7eefb5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "f5f4eda3ffd7463e8f5f28e796a98e74", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "f5f4eda3ffd7463e8f5f28e796a98e74", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "31", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "a2ae5e426dbc43b8908458211096f5c3", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "a2ae5e426dbc43b8908458211096f5c3", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "4d127c47ace2419399317a798a9cd1b3", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "4d127c47ace2419399317a798a9cd1b3", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "c18c8df37518416dac4b58f348aeedd9", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "c18c8df37518416dac4b58f348aeedd9", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "323bdf395223433daf298adb78a3362d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "323bdf395223433daf298adb78a3362d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "32", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "8", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "33", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "34", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0b7e1edd162b45fd8610f633ef8e2d7f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "0b7e1edd162b45fd8610f633ef8e2d7f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "26b62da462ef4c9b9293dfb1e8fdd5df", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "26b62da462ef4c9b9293dfb1e8fdd5df", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "35", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b65e546a86a84a53b5393ee6c3bc97a0", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b65e546a86a84a53b5393ee6c3bc97a0", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "23808871e17c4021ae4cea9f44607381", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "23808871e17c4021ae4cea9f44607381", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "dca38398893141618070636eae0d67f4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "dca38398893141618070636eae0d67f4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "25da3263ac3b48daac52355083db787f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "25da3263ac3b48daac52355083db787f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "36", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "37", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "671313a206dd4666938e8e61b2e5191b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "671313a206dd4666938e8e61b2e5191b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "3b95bf0e824e4552bca3190d66848443", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "3b95bf0e824e4552bca3190d66848443", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "b0fba84233f44964960033aad1f9a8ea", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "b0fba84233f44964960033aad1f9a8ea", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "6d3de0795cfc4b9e9e1fe2cbd1246746", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "6d3de0795cfc4b9e9e1fe2cbd1246746", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "38", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "00336fa071284f968d825820a80e83d9", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "00336fa071284f968d825820a80e83d9", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "42aeca2a6b08467abed191d400ffde47", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "42aeca2a6b08467abed191d400ffde47", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "4f6c81f662e148348f2b4e28e323a82b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "4f6c81f662e148348f2b4e28e323a82b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0ca068c62719437d8ad9ff06ca6494b4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "0ca068c62719437d8ad9ff06ca6494b4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "39", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "7338d4c4f0f84596bb9115fda0926632", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "7338d4c4f0f84596bb9115fda0926632", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "8476c02df0344d03bcceb3d37e546eda", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "8476c02df0344d03bcceb3d37e546eda", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "9fd7da561c35432486d3f500539028bb", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "9fd7da561c35432486d3f500539028bb", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "2ccbe6cd65ef4eb48706721ebd80b5eb", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "2ccbe6cd65ef4eb48706721ebd80b5eb", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "200", "moduleSpace": "10", "modulePosition": "40", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "782f8018c3d940138d423dcd590e988f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "782f8018c3d940138d423dcd590e988f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] } ] } */ let HomeDate = { "response": "channels", "isDisplay": "yes", "channels": [ { "channelId": "1", "channelName": "" }, { "channelId": "433c6f9289da4bb2bf7d237f735662aa", "channelName": "" }, { "channelId": "8168654a159149f68979efd3eb2a94c3", "channelName": "" } ], "skinChannel": {}, "module": [ { "moduleTitle": "", "moduleStyle": "101", "moduleType": "3", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "0", "modulePosition": "1", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "f5f0ea9b2e6a43f3b611c6ee69283426", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "f5f0ea9b2e6a43f3b611c6ee69283426", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "bd20cc4450c849ee870689d94496b35e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "bd20cc4450c849ee870689d94496b35e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "4b32f1a16d39400291a1fa958f1a31fc", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "4b32f1a16d39400291a1fa958f1a31fc", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "ba1c9818712441f99dbfc7198e2a4daa", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "ba1c9818712441f99dbfc7198e2a4daa", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "0825485540d94c11a8fea5e5f891e04f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "", "commodityCode": "0825485540d94c11a8fea5e5f891e04f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "102", "moduleType": "2", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "2", "moduleTypeBg": "0", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "3b1162682a594956a9ed45d14adb0598", "title": "O2O", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "3b1162682a594956a9ed45d14adb0598", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "5f1becb9593b4af4a4b42fa2ee06e621", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "5f1becb9593b4af4a4b42fa2ee06e621", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "bd20cc4450c849ee870689d94496b35e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "bd20cc4450c849ee870689d94496b35e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "104", "moduleType": "4", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "3", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "G20", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "2ba749da1cd444c09e5dd41a4a25acfa", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "18", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "4", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "7ecbd448d9eb4e2b9ff36f70060a3a7b", "secKillImg": "path_to_url", "secKillState": "1", "secKillLeftTime": "82896", "secKillStartTime": "2016-08-27 10:00:00", "moduleDetail": [ { "type": "1027", "type_argu": "100385822", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "Dickies 2016161XG08AP15RD", "commodityCode": "100385822", "secSkillStat": "0", "secSkillPrice": "149", "publicPrice": "359", "salePrice": "149" }, { "type": "1027", "type_argu": "100457556", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "adidas2016AQ5859", "commodityCode": "100457556", "secSkillStat": "0", "secSkillPrice": "358", "publicPrice": "599", "salePrice": "358" }, { "type": "1027", "type_argu": "100470754", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "adidas2016AX6936", "commodityCode": "100470754", "secSkillStat": "0", "secSkillPrice": "179", "publicPrice": "299", "salePrice": "179" }, { "type": "1027", "type_argu": "100443328", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "adidas2016AF5858", "commodityCode": "100443328", "secSkillStat": "0", "secSkillPrice": "358", "publicPrice": "799", "salePrice": "358" }, { "type": "1027", "type_argu": "100433892", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "adidas2016TAX5568", "commodityCode": "100433892", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "229", "salePrice": "99" }, { "type": "1027", "type_argu": "100412187", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "PUMA2016T83621301", "commodityCode": "100412187", "secSkillStat": "0", "secSkillPrice": "89", "publicPrice": "169", "salePrice": "89" }, { "type": "1027", "type_argu": "100004787", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "Onitsuka Tiger 2016MEXICO 66DL408-1659", "commodityCode": "100004787", "secSkillStat": "0", "secSkillPrice": "599", "publicPrice": "788", "salePrice": "599" }, { "type": "1027", "type_argu": "100386520", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "8", "commodityName": "adidas2016AKTIVAQ5211", "commodityCode": "100386520", "secSkillStat": "1", "secSkillPrice": "278", "publicPrice": "699", "salePrice": "278" }, { "type": "1027", "type_argu": "100443329", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "9", "commodityName": "adidas2016AF5859", "commodityCode": "100443329", "secSkillStat": "1", "secSkillPrice": "358", "publicPrice": "799", "salePrice": "358" }, { "type": "1027", "type_argu": "100408204", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "10", "commodityName": "adidas2016S79617", "commodityCode": "100408204", "secSkillStat": "1", "secSkillPrice": "258", "publicPrice": "529", "salePrice": "258" }, { "type": "1027", "type_argu": "100436085", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "11", "commodityName": "adidas2016TAK1217", "commodityCode": "100436085", "secSkillStat": "1", "secSkillPrice": "99", "publicPrice": "229", "salePrice": "99" }, { "type": "1027", "type_argu": "100449900", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "12", "commodityName": "PUMA2016T57139501", "commodityCode": "100449900", "secSkillStat": "1", "secSkillPrice": "125", "publicPrice": "249", "salePrice": "125" }, { "type": "1027", "type_argu": "100344539", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "13", "commodityName": "NIKE2016NIKE AIR ZOOM FLY 2707606-002", "commodityCode": "100344539", "secSkillStat": "1", "secSkillPrice": "365", "publicPrice": "729", "salePrice": "365" }, { "type": "1027", "type_argu": "100453151", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "14", "commodityName": "NIKE2016TEE-SCOOP PHOTO JDIT779178-696", "commodityCode": "100453151", "secSkillStat": "1", "secSkillPrice": "112", "publicPrice": "229", "salePrice": "112" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "5", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "250", "moduleSpace": "0", "modulePosition": "6", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "250", "moduleSpace": "0", "modulePosition": "7", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "bd20cc4450c849ee870689d94496b35e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "bd20cc4450c849ee870689d94496b35e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "4", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "8", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "98f7afe9657e464b8eaf24e760800169", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "98f7afe9657e464b8eaf24e760800169", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "92cc2cc400664ce8a127a10d352633b5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "92cc2cc400664ce8a127a10d352633b5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "ff6169f0215946258efaadc94a38bc11", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "ff6169f0215946258efaadc94a38bc11", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "9", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "10", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "ec651535a91e4ffe9a1963ad792acac6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "ec651535a91e4ffe9a1963ad792acac6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "11", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "62b1a01e1fb4422290539a8c104984bf", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "62b1a01e1fb4422290539a8c104984bf", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "c89c22186bdd42dcac0b0db13bc2396e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "c89c22186bdd42dcac0b0db13bc2396e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "f7a1984a17ee4a18a6a66f9efccea9d3", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "f7a1984a17ee4a18a6a66f9efccea9d3", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "12", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "13", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "3b1162682a594956a9ed45d14adb0598", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "3b1162682a594956a9ed45d14adb0598", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "14", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "f57cc6f033dc4c018ede2a5fba4ced67", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "f57cc6f033dc4c018ede2a5fba4ced67", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "83d9e0d90155421c98aa190021643881", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "83d9e0d90155421c98aa190021643881", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1026", "type_argu": "c653ef7df3274780adbb9b5ca87d6e3b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "c653ef7df3274780adbb9b5ca87d6e3b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "15", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "250", "moduleSpace": "0", "modulePosition": "16", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "9d715350b6b34c549d9e1d988046cff2", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "9d715350b6b34c549d9e1d988046cff2", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "17", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "673ae71f6bdb43ea88a51bc8df57be95", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "673ae71f6bdb43ea88a51bc8df57be95", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "6430d7f7ae054837916dc01fd18e5fad", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "6430d7f7ae054837916dc01fd18e5fad", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "98a75db4e4004512a5244a0ed89387e4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "98a75db4e4004512a5244a0ed89387e4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "18", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "250", "moduleSpace": "0", "modulePosition": "19", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "98f7afe9657e464b8eaf24e760800169", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "98f7afe9657e464b8eaf24e760800169", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "20", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "e0a7515c2d764f7eafb743b4b81b3ad2", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "e0a7515c2d764f7eafb743b4b81b3ad2", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "ef9db33da85c4255abeda263db08db9c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "ef9db33da85c4255abeda263db08db9c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "21", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "22", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "f29b7fa6803d418a8bc47404bd8edd15", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "f29b7fa6803d418a8bc47404bd8edd15", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "23", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "c5c8a423db144fbf9280d03a7d54472d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "c5c8a423db144fbf9280d03a7d54472d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0ae5b33d451348f5a4cf082d7f321c3e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "0ae5b33d451348f5a4cf082d7f321c3e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "42ca8e3f47dd41f0940885adfd7c5d4c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "42ca8e3f47dd41f0940885adfd7c5d4c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "24", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "246", "moduleSpace": "0", "modulePosition": "25", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "2a17efb23e8e42e39a0e75ecfc3b203c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "2a17efb23e8e42e39a0e75ecfc3b203c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "1", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "26", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "032ce143c76f489991b881d83c730469", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "032ce143c76f489991b881d83c730469", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "5df396da8e71433e976a805cbee07cc5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "5df396da8e71433e976a805cbee07cc5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7d33744123114e4996496c059495ae32", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "7d33744123114e4996496c059495ae32", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "27", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "28", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "00911a3ccd3d42fd895311b38e972b97", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "00911a3ccd3d42fd895311b38e972b97", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "cd1f13d3751d442cb2aab9cedcc55165", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "cd1f13d3751d442cb2aab9cedcc55165", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "17e8b6036ba845199b44ebf6dc7eefb5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "17e8b6036ba845199b44ebf6dc7eefb5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "f5f4eda3ffd7463e8f5f28e796a98e74", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "f5f4eda3ffd7463e8f5f28e796a98e74", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "29", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "a2ae5e426dbc43b8908458211096f5c3", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "a2ae5e426dbc43b8908458211096f5c3", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "4d127c47ace2419399317a798a9cd1b3", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "4d127c47ace2419399317a798a9cd1b3", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "c18c8df37518416dac4b58f348aeedd9", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "c18c8df37518416dac4b58f348aeedd9", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "323bdf395223433daf298adb78a3362d", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "323bdf395223433daf298adb78a3362d", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "30", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "8", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "31", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "32", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b65e546a86a84a53b5393ee6c3bc97a0", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b65e546a86a84a53b5393ee6c3bc97a0", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "23808871e17c4021ae4cea9f44607381", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "23808871e17c4021ae4cea9f44607381", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "dca38398893141618070636eae0d67f4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "dca38398893141618070636eae0d67f4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "25da3263ac3b48daac52355083db787f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "25da3263ac3b48daac52355083db787f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "33", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "13", "type_argu": "path_to_url", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0b7e1edd162b45fd8610f633ef8e2d7f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "0b7e1edd162b45fd8610f633ef8e2d7f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "26b62da462ef4c9b9293dfb1e8fdd5df", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "26b62da462ef4c9b9293dfb1e8fdd5df", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "620", "moduleHeight": "50", "moduleSpace": "0", "modulePosition": "34", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "0", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "35", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "671313a206dd4666938e8e61b2e5191b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "671313a206dd4666938e8e61b2e5191b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "3b95bf0e824e4552bca3190d66848443", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "3b95bf0e824e4552bca3190d66848443", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "b0fba84233f44964960033aad1f9a8ea", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "b0fba84233f44964960033aad1f9a8ea", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "6d3de0795cfc4b9e9e1fe2cbd1246746", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "6d3de0795cfc4b9e9e1fe2cbd1246746", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "36", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "00336fa071284f968d825820a80e83d9", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "00336fa071284f968d825820a80e83d9", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "42aeca2a6b08467abed191d400ffde47", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "42aeca2a6b08467abed191d400ffde47", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "4f6c81f662e148348f2b4e28e323a82b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "4f6c81f662e148348f2b4e28e323a82b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0ca068c62719437d8ad9ff06ca6494b4", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "0ca068c62719437d8ad9ff06ca6494b4", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "37", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "7338d4c4f0f84596bb9115fda0926632", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "7338d4c4f0f84596bb9115fda0926632", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "8476c02df0344d03bcceb3d37e546eda", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "8476c02df0344d03bcceb3d37e546eda", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "9fd7da561c35432486d3f500539028bb", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "9fd7da561c35432486d3f500539028bb", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "2ccbe6cd65ef4eb48706721ebd80b5eb", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "2ccbe6cd65ef4eb48706721ebd80b5eb", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] } ] } /** let seaGoDate = { "response": "channels", "isDisplay": "yes", "channels": [ { "channelId": "1", "channelName": "" }, { "channelId": "433c6f9289da4bb2bf7d237f735662aa", "channelName": "" }, { "channelId": "8168654a159149f68979efd3eb2a94c3", "channelName": "" }, { "channelId": "588dbe1651b24069a21aef8d220eaed5", "channelName": "" } ], "skinChannel": {}, "module": [ { "moduleTitle": "", "moduleStyle": "101", "moduleType": "3", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "0", "modulePosition": "1", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1026", "type_argu": "f858531248a342c5aa8aebaa45b75284", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "f858531248a342c5aa8aebaa45b75284", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "9ae7b2c91e424386914495f77f14a103", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "9ae7b2c91e424386914495f77f14a103", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "47de0e18ab2148359087d6880078892b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "47de0e18ab2148359087d6880078892b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "fe7bfde22f7f41039607b79f0e7ee98e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "", "commodityCode": "fe7bfde22f7f41039607b79f0e7ee98e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "102", "moduleType": "2", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "2", "moduleTypeBg": "0", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7d52a0e401ff4fe4a1c303749ad14c7c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "7d52a0e401ff4fe4a1c303749ad14c7c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7adae81451bf4eb8803fafb5b81f8a78", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "7adae81451bf4eb8803fafb5b81f8a78", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1001", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "3", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "8fa6c922a2ef4388a39850f035623bba", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "8fa6c922a2ef4388a39850f035623bba", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "4", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100434100", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "CHRIS.CHRISTY KEXASSM3236-1 ", "commodityCode": "100434100", "secSkillStat": "0", "secSkillPrice": "139", "publicPrice": "214", "salePrice": "139" }, { "type": "1007", "type_argu": "100436602", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "NII TNNXAPSM3211-1 ", "commodityCode": "100436602", "secSkillStat": "0", "secSkillPrice": "149", "publicPrice": "215", "salePrice": "149" }, { "type": "1007", "type_argu": "100463199", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "NII TNNYARSM3561-1 ", "commodityCode": "100463199", "secSkillStat": "0", "secSkillPrice": "139", "publicPrice": "167", "salePrice": "139" }, { "type": "1007", "type_argu": "100463188", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "NII VTNNUARSM3521-1 ", "commodityCode": "100463188", "secSkillStat": "0", "secSkillPrice": "139", "publicPrice": "167", "salePrice": "139" }, { "type": "1007", "type_argu": "100368963", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "NII POLONNUASRM0111-1 ", "commodityCode": "100368963", "secSkillStat": "0", "secSkillPrice": "139", "publicPrice": "219", "salePrice": "139" }, { "type": "1007", "type_argu": "100365140", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "ANDEW POLOO152TS303P-1 ", "commodityCode": "100365140", "secSkillStat": "0", "secSkillPrice": "139", "publicPrice": "270", "salePrice": "139" }, { "type": "1007", "type_argu": "100434096", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "CHRIS.CHRISTY TKEXASSM3511-1 ", "commodityCode": "100434096", "secSkillStat": "0", "secSkillPrice": "129", "publicPrice": "160", "salePrice": "129" }, { "type": "1007", "type_argu": "100436588", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "8", "commodityName": "NII TNNUARSM31N6-1 ", "commodityCode": "100436588", "secSkillStat": "0", "secSkillPrice": "79", "publicPrice": "107", "salePrice": "79" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "5", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "01e6b838805c4a70be768666e3ffe46f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "01e6b838805c4a70be768666e3ffe46f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "6", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100428685", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "HUM H165M215A-1 ", "commodityCode": "100428685", "secSkillStat": "0", "secSkillPrice": "229", "publicPrice": "322", "salePrice": "229" }, { "type": "1007", "type_argu": "100364898", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "CHRIS.CHRISTY POLOKCXASRV0531-1 ", "commodityCode": "100364898", "secSkillStat": "0", "secSkillPrice": "169", "publicPrice": "329", "salePrice": "169" }, { "type": "1007", "type_argu": "100277255", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "CLRIDE.n TCFC8TS813F-2 ", "commodityCode": "100277255", "secSkillStat": "0", "secSkillPrice": "119", "publicPrice": "161", "salePrice": "119" }, { "type": "1007", "type_argu": "100277169", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "CHRIS.CHRISTY KCUWARZ0126-2 ", "commodityCode": "100277169", "secSkillStat": "0", "secSkillPrice": "239", "publicPrice": "323", "salePrice": "239" }, { "type": "1007", "type_argu": "100307424", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "CLRIDE.n CFC8SH365M-2 ", "commodityCode": "100307424", "secSkillStat": "0", "secSkillPrice": "229", "publicPrice": "274", "salePrice": "229" }, { "type": "1007", "type_argu": "100387013", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "NAIN NMF1NW-SK2196M0-1 ", "commodityCode": "100387013", "secSkillStat": "0", "secSkillPrice": "259", "publicPrice": "357", "salePrice": "259" }, { "type": "1007", "type_argu": "100244123", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "BILIWILI A45_BTS423-2 ", "commodityCode": "100244123", "secSkillStat": "0", "secSkillPrice": "129", "publicPrice": "207", "salePrice": "129" }, { "type": "1007", "type_argu": "100387012", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "8", "commodityName": "NAIN NMF1CW-SK2191M0-1 ", "commodityCode": "100387012", "secSkillStat": "0", "secSkillPrice": "269", "publicPrice": "357", "salePrice": "269" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "7", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "93255a9d5f4d4941be5dd1e63314c352", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "93255a9d5f4d4941be5dd1e63314c352", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "8", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100244030", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "BEYOND CLOSET BCOIACR15U-2 ", "commodityCode": "100244030", "secSkillStat": "0", "secSkillPrice": "349", "publicPrice": "387", "salePrice": "349" }, { "type": "1007", "type_argu": "100428667", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "HUM H162H401A-1 ", "commodityCode": "100428667", "secSkillStat": "0", "secSkillPrice": "229", "publicPrice": "322", "salePrice": "229" }, { "type": "1007", "type_argu": "100277183", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "CHRIS.CHRISTY /KCUWARZ0166-2 ", "commodityCode": "100277183", "secSkillStat": "0", "secSkillPrice": "229", "publicPrice": "323", "salePrice": "229" }, { "type": "1007", "type_argu": "100189161", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "CHRIS.CHRISTY KCXNLRV1201-2 ", "commodityCode": "100189161", "secSkillStat": "0", "secSkillPrice": "169", "publicPrice": "449", "salePrice": "169" }, { "type": "1007", "type_argu": "100275057", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "NAIN NME5SD-PT2273M0-2 ", "commodityCode": "100275057", "secSkillStat": "0", "secSkillPrice": "309", "publicPrice": "335", "salePrice": "309" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "9", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "9ae7b2c91e424386914495f77f14a103", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "9ae7b2c91e424386914495f77f14a103", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "10", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100275471", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "HUM H153U205A-2 ", "commodityCode": "100275471", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "377", "salePrice": "99" }, { "type": "1007", "type_argu": "100251608", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "BEYOND CLOSET BCOIACR05U-2 ", "commodityCode": "100251608", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "387", "salePrice": "99" }, { "type": "1007", "type_argu": "100275731", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "FRANK STONE CFC8DP582F-2 ", "commodityCode": "100275731", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "431", "salePrice": "99" }, { "type": "1007", "type_argu": "100428687", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "HUM H165M217A-1 ", "commodityCode": "100428687", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "322", "salePrice": "99" }, { "type": "1007", "type_argu": "100343807", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "CHRIS.CHRISTY KCXNLRF1071-55-2 ", "commodityCode": "100343807", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "439", "salePrice": "99" }, { "type": "1007", "type_argu": "100342951", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "NAIN NME7NW-OP2486M0-2 ", "commodityCode": "100342951", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "490", "salePrice": "99" }, { "type": "1007", "type_argu": "100270658", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "ADVISORY TWCTY333A-2 ", "commodityCode": "100270658", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "427", "salePrice": "99" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "11", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "47de0e18ab2148359087d6880078892b", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "47de0e18ab2148359087d6880078892b", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "12", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100307370", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "BEYOND CLOSET BCOIICR86U-2 ", "commodityCode": "100307370", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "435", "salePrice": "199" }, { "type": "1007", "type_argu": "100343898", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "HUM H154U240A-13-2 ", "commodityCode": "100343898", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "439", "salePrice": "199" }, { "type": "1007", "type_argu": "100387001", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "HUM H161W173A-1 ", "commodityCode": "100387001", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "817", "salePrice": "199" }, { "type": "1007", "type_argu": "100274979", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "NAIN NMB5NN-SH814-2 ", "commodityCode": "100274979", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "718", "salePrice": "199" }, { "type": "1007", "type_argu": "100247444", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "ANDEW O155AB220P-2 ", "commodityCode": "100247444", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "737", "salePrice": "199" }, { "type": "1007", "type_argu": "100274992", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "NAIN NMD5NN-SH1213-2 ", "commodityCode": "100274992", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "853", "salePrice": "199" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "13", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "fe7bfde22f7f41039607b79f0e7ee98e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "fe7bfde22f7f41039607b79f0e7ee98e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "14", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100244540", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "ADVISORY WATY322A-2 ", "commodityCode": "100244540", "secSkillStat": "0", "secSkillPrice": "299", "publicPrice": "519", "salePrice": "299" }, { "type": "1007", "type_argu": "100386975", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "HUM H161M171A-1 ", "commodityCode": "100386975", "secSkillStat": "0", "secSkillPrice": "299", "publicPrice": "817", "salePrice": "299" }, { "type": "1007", "type_argu": "100343788", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "CHRIS.CHRISTY KCXDLRW3021-05-2 ", "commodityCode": "100343788", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "549", "salePrice": "199" }, { "type": "1007", "type_argu": "100244277", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "GGPX GFB6-JP792F-2 ", "commodityCode": "100244277", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "525", "salePrice": "99" }, { "type": "1007", "type_argu": "100275491", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "HUM H153W245A-2 ", "commodityCode": "100275491", "secSkillStat": "0", "secSkillPrice": "299", "publicPrice": "535", "salePrice": "299" }, { "type": "1007", "type_argu": "100270676", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "ADVISORY WCTY212A-2 ", "commodityCode": "100270676", "secSkillStat": "0", "secSkillPrice": "299", "publicPrice": "529", "salePrice": "299" }, { "type": "1007", "type_argu": "100274978", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "NAIN NMB5NT-SH805-2 ", "commodityCode": "100274978", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "697", "salePrice": "199" }, { "type": "1007", "type_argu": "100276687", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "8", "commodityName": "BONNIE ALEX BCOY102A-2 ", "commodityCode": "100276687", "secSkillStat": "0", "secSkillPrice": "99", "publicPrice": "691", "salePrice": "99" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "15", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "16", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100458659", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": " 20 ", "commodityCode": "100458659", "secSkillStat": "0", "secSkillPrice": "171", "publicPrice": "342", "salePrice": "171" }, { "type": "1007", "type_argu": "100456692", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": " 170ml ", "commodityCode": "100456692", "secSkillStat": "0", "secSkillPrice": "56", "publicPrice": "80", "salePrice": "56" }, { "type": "1007", "type_argu": "100456674", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": " 10 ", "commodityCode": "100456674", "secSkillStat": "0", "secSkillPrice": "137", "publicPrice": "228", "salePrice": "137" }, { "type": "1007", "type_argu": "100456575", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "SNP 1.4g*60 ", "commodityCode": "100456575", "secSkillStat": "0", "secSkillPrice": "85", "publicPrice": "131", "salePrice": "85" }, { "type": "1007", "type_argu": "100450823", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "Fascy - 5g ", "commodityCode": "100450823", "secSkillStat": "0", "secSkillPrice": "87", "publicPrice": "103", "salePrice": "87" }, { "type": "1007", "type_argu": "100436767", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "SNP 10P ", "commodityCode": "100436767", "secSkillStat": "0", "secSkillPrice": "127", "publicPrice": "171", "salePrice": "127" }, { "type": "1007", "type_argu": "100436170", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "BYHERB 49 50g ", "commodityCode": "100436170", "secSkillStat": "0", "secSkillPrice": "199", "publicPrice": "314", "salePrice": "199" }, { "type": "1007", "type_argu": "100426112", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "8", "commodityName": "AESTHETIC HOUSE 700ml ", "commodityCode": "100426112", "secSkillStat": "0", "secSkillPrice": "396", "publicPrice": "502", "salePrice": "396" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "17", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "3f4054a6200542e2a3b1a2337002a2c6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "3f4054a6200542e2a3b1a2337002a2c6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "18bc19ecb28e41d3b0753205c657dcf5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "18bc19ecb28e41d3b0753205c657dcf5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "54ace52e857642c5857df59a668fdc98", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "54ace52e857642c5857df59a668fdc98", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "f1054ec36e6e47b0a42801e37ee51c76", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "f1054ec36e6e47b0a42801e37ee51c76", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "18", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "617d53d6366042d5b7d2810d7c5add19", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "617d53d6366042d5b7d2810d7c5add19", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "1e1e4ee5d77449d6a9fbd7266e9c47a9", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "1e1e4ee5d77449d6a9fbd7266e9c47a9", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "a31375b643d7499e9d16c51c007fcdd6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "a31375b643d7499e9d16c51c007fcdd6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "3b255c5d028040dca83f7598c878ba64", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "3b255c5d028040dca83f7598c878ba64", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "19", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "d3f3c72b664e4ef4a95e88f608d0f715", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "d3f3c72b664e4ef4a95e88f608d0f715", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "5ff1016d0daf48eeb357dbac6522c226", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "5ff1016d0daf48eeb357dbac6522c226", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "d297e892f67045d9b82ce7871d1e1408", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "d297e892f67045d9b82ce7871d1e1408", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "873266cc1bb94517b60e0417bfeb5266", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "873266cc1bb94517b60e0417bfeb5266", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] } ] }*/ let seaGoDate = { "response": "channels", "isDisplay": "yes", "channels": [ { "channelId": "1", "channelName": "" }, { "channelId": "433c6f9289da4bb2bf7d237f735662aa", "channelName": "" }, { "channelId": "8168654a159149f68979efd3eb2a94c3", "channelName": "" } ], "skinChannel": {}, "module": [ { "moduleTitle": "", "moduleStyle": "101", "moduleType": "3", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "1", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "98f7afe9657e464b8eaf24e760800169", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "98f7afe9657e464b8eaf24e760800169", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "fdbade7484c44b3da3f1574c970f9366", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "fdbade7484c44b3da3f1574c970f9366", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "b070ec197f164f908c8716eadd7a6556", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "b070ec197f164f908c8716eadd7a6556", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "0c998e04b77e452ebcda27374048078f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "0c998e04b77e452ebcda27374048078f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "102", "moduleType": "2", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "2", "moduleTypeBg": "0", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7d52a0e401ff4fe4a1c303749ad14c7c", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "7d52a0e401ff4fe4a1c303749ad14c7c", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7adae81451bf4eb8803fafb5b81f8a78", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "7adae81451bf4eb8803fafb5b81f8a78", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "1001", "type_argu": "", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "3", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "98f7afe9657e464b8eaf24e760800169", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "98f7afe9657e464b8eaf24e760800169", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "4", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100368963", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "NII POLONNUASRM0111-1 ", "commodityCode": "100368963", "secSkillStat": "0", "secSkillPrice": "139", "publicPrice": "219", "salePrice": "139" }, { "type": "1007", "type_argu": "100434101", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "CHRIS.CHRISTY KEXASSM3246-1 ", "commodityCode": "100434101", "secSkillStat": "0", "secSkillPrice": "139", "publicPrice": "214", "salePrice": "139" }, { "type": "1007", "type_argu": "100368950", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "NII POLONNUASRM0021-1 ", "commodityCode": "100368950", "secSkillStat": "0", "secSkillPrice": "119", "publicPrice": "219", "salePrice": "119" }, { "type": "1007", "type_argu": "100369042", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "NII TNNXASRM1191-1 ", "commodityCode": "100369042", "secSkillStat": "0", "secSkillPrice": "119", "publicPrice": "164", "salePrice": "119" }, { "type": "1007", "type_argu": "100244512", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "CLRIDE.n TCFC8TS361M-2 ", "commodityCode": "100244512", "secSkillStat": "0", "secSkillPrice": "119", "publicPrice": "158", "salePrice": "119" }, { "type": "1007", "type_argu": "100436589", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "NII TNNUARSM31N6-1 ", "commodityCode": "100436589", "secSkillStat": "0", "secSkillPrice": "39", "publicPrice": "107", "salePrice": "39" }, { "type": "1007", "type_argu": "100434123", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "CHRIS.CHRISTY POLOKEXASSV3396-1 ", "commodityCode": "100434123", "secSkillStat": "0", "secSkillPrice": "169", "publicPrice": "268", "salePrice": "169" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "5", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "fdbade7484c44b3da3f1574c970f9366", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "fdbade7484c44b3da3f1574c970f9366", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "6", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100243973", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "US N THEM TCSY207-A-2 ", "commodityCode": "100243973", "secSkillStat": "0", "secSkillPrice": "299", "publicPrice": "370", "salePrice": "299" }, { "type": "1007", "type_argu": "100428732", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "HUM H165W240A-1 ", "commodityCode": "100428732", "secSkillStat": "0", "secSkillPrice": "239", "publicPrice": "376", "salePrice": "239" }, { "type": "1007", "type_argu": "100275471", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "HUM H153U205A-2 ", "commodityCode": "100275471", "secSkillStat": "0", "secSkillPrice": "299", "publicPrice": "377", "salePrice": "299" }, { "type": "1007", "type_argu": "100189156", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "CHRIS.CHRISTY KCXNLRS0031-2 ", "commodityCode": "100189156", "secSkillStat": "0", "secSkillPrice": "349", "publicPrice": "447", "salePrice": "349" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "7", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b070ec197f164f908c8716eadd7a6556", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b070ec197f164f908c8716eadd7a6556", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "8", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100244019", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "BEYOND CLOSET BCOIACR06U-2 ", "commodityCode": "100244019", "secSkillStat": "0", "secSkillPrice": "349", "publicPrice": "387", "salePrice": "349" }, { "type": "1007", "type_argu": "100244546", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "ADVISORY WATY312A-2 ", "commodityCode": "100244546", "secSkillStat": "0", "secSkillPrice": "429", "publicPrice": "472", "salePrice": "429" }, { "type": "1007", "type_argu": "100307430", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "ADVISORY WCTY281A-2 ", "commodityCode": "100307430", "secSkillStat": "0", "secSkillPrice": "489", "publicPrice": "539", "salePrice": "489" }, { "type": "1007", "type_argu": "100244548", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "ADVISORY WATY304A-2 ", "commodityCode": "100244548", "secSkillStat": "0", "secSkillPrice": "379", "publicPrice": "419", "salePrice": "379" }, { "type": "1007", "type_argu": "100244018", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "BEYOND CLOSET BCOIACR04U-2 ", "commodityCode": "100244018", "secSkillStat": "0", "secSkillPrice": "349", "publicPrice": "387", "salePrice": "349" }, { "type": "1007", "type_argu": "100270657", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "6", "commodityName": "ADVISORY TWCTY333A-2 ", "commodityCode": "100270657", "secSkillStat": "0", "secSkillPrice": "389", "publicPrice": "427", "salePrice": "389" }, { "type": "1007", "type_argu": "100244034", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "7", "commodityName": "BEYOND CLOSET BCOIACR19U-2 ", "commodityCode": "100244034", "secSkillStat": "0", "secSkillPrice": "349", "publicPrice": "387", "salePrice": "349" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "9", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "0c998e04b77e452ebcda27374048078f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "0c998e04b77e452ebcda27374048078f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "12", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "10", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "1007", "type_argu": "100386973", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "HUM H161M163A-1 ", "commodityCode": "100386973", "secSkillStat": "0", "secSkillPrice": "299", "publicPrice": "982", "salePrice": "299" }, { "type": "1007", "type_argu": "100344479", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "TOPGIRL TFDAPD900F-013-2 ", "commodityCode": "100344479", "secSkillStat": "0", "secSkillPrice": "269", "publicPrice": "765", "salePrice": "269" }, { "type": "1007", "type_argu": "100275412", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "HUM H153U170A-2 ", "commodityCode": "100275412", "secSkillStat": "0", "secSkillPrice": "299", "publicPrice": "859", "salePrice": "299" }, { "type": "1007", "type_argu": "100244277", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "GGPX GFB6-JP792F-2 ", "commodityCode": "100244277", "secSkillStat": "0", "secSkillPrice": "209", "publicPrice": "525", "salePrice": "209" }, { "type": "1007", "type_argu": "100343899", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "5", "commodityName": "HUM H154U240A-24-2 ", "commodityCode": "100343899", "secSkillStat": "0", "secSkillPrice": "179", "publicPrice": "439", "salePrice": "179" } ] }, { "moduleTitle": "", "moduleStyle": "11", "moduleType": "1", "moduleWidth": "640", "moduleHeight": "250", "moduleSpace": "10", "modulePosition": "11", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "b8578472fb8d4c359bb383791045f29e", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "b8578472fb8d4c359bb383791045f29e", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "12", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "3f4054a6200542e2a3b1a2337002a2c6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "3f4054a6200542e2a3b1a2337002a2c6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "18bc19ecb28e41d3b0753205c657dcf5", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "18bc19ecb28e41d3b0753205c657dcf5", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "54ace52e857642c5857df59a668fdc98", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "54ace52e857642c5857df59a668fdc98", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "f1054ec36e6e47b0a42801e37ee51c76", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "f1054ec36e6e47b0a42801e37ee51c76", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "13", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "617d53d6366042d5b7d2810d7c5add19", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "617d53d6366042d5b7d2810d7c5add19", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "1e1e4ee5d77449d6a9fbd7266e9c47a9", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "1e1e4ee5d77449d6a9fbd7266e9c47a9", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "a31375b643d7499e9d16c51c007fcdd6", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "a31375b643d7499e9d16c51c007fcdd6", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "3b255c5d028040dca83f7598c878ba64", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "3b255c5d028040dca83f7598c878ba64", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "0", "modulePosition": "14", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "d3f3c72b664e4ef4a95e88f608d0f715", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "d3f3c72b664e4ef4a95e88f608d0f715", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "5ff1016d0daf48eeb357dbac6522c226", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "5ff1016d0daf48eeb357dbac6522c226", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "d297e892f67045d9b82ce7871d1e1408", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "d297e892f67045d9b82ce7871d1e1408", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "873266cc1bb94517b60e0417bfeb5266", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "873266cc1bb94517b60e0417bfeb5266", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "15", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "9acd58393f674ff29f0ed6e4ab80592a", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "9acd58393f674ff29f0ed6e4ab80592a", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "d4c393fe2ea44f43adb26a39b1734ad0", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "d4c393fe2ea44f43adb26a39b1734ad0", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "e12c5982054e4c5599f3c589b9c508d1", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "e12c5982054e4c5599f3c589b9c508d1", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "9dad01617d0a4546aa43727b0ab0a9df", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "9dad01617d0a4546aa43727b0ab0a9df", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] }, { "moduleTitle": "", "moduleStyle": "10", "moduleType": "1", "moduleWidth": "0", "moduleHeight": "0", "moduleSpace": "10", "modulePosition": "16", "moduleTypeBg": "1", "moduleBg": "", "secKillId": "", "secKillImg": "", "secKillState": "0", "secKillLeftTime": "0", "secKillStartTime": "", "moduleDetail": [ { "type": "5", "type_argu": "6d5d6289e1ed4054bfdd54390ff0dd66", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "1", "commodityName": "", "commodityCode": "6d5d6289e1ed4054bfdd54390ff0dd66", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "7a1cb3ad4c3b4fc78f703c736b3e8210", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "2", "commodityName": "", "commodityCode": "7a1cb3ad4c3b4fc78f703c736b3e8210", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "f34025e1e739427da3d5d57ee3be2b5f", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "3", "commodityName": "", "commodityCode": "f34025e1e739427da3d5d57ee3be2b5f", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" }, { "type": "5", "type_argu": "f8159cb52e7940a0957b7c48caef45fd", "title": "", "subtitle": "", "image": "path_to_url", "detailPosition": "4", "commodityName": "", "commodityCode": "f8159cb52e7940a0957b7c48caef45fd", "secSkillStat": "0", "secSkillPrice": "0", "publicPrice": "0", "salePrice": "0" } ] } ] } let BrandDate = [{ "response": "brands", "totalpage": "8", "brands_title": [ { "name": "", "id": "" }, { "name": "", "id": "eaec32113fea4c87a0a231f5147040e0" }, { "name": "", "id": "5da2011498fd4455afd2e29896a489d6" }, { "name": "", "id": "1e7cd6973c7e4f0ab30e4f4a6281f19d" }, { "name": "", "id": "32f8ddd36f4d4e5b965a3ac8b79c5c29" }, { "name": "", "id": "4a93de5dfcf4404c93bcf851228577f3" }, { "name": "", "id": "07e0610989b54e3381e032ebd05de897" }, { "name": "", "id": "5c166c0c914a48ca857ef865919a04e8" } ], "advert_banner": [], "brands_wall": [ { "key": "", "value": [ { "name": "", "brandEnglishName": "adidas", "id": "1jJK", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "nike", "id": "FUYN", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "belle", "id": "jHz8", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "puma", "id": "45O5", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "teenmix", "id": "Fbf5", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "tata", "id": "iU5u", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "adidas Originals", "id": "uOkv", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "adidas neo", "id": "Cyz8", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "converse", "id": "MxXO", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "staccato", "id": "Hfjt", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "innet", "id": "Mckz", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "basto", "id": "YDun", "pic": "path_to_url" }, { "name": "NII", "brandEnglishName": "NII", "id": "0OBG", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "senda", "id": "50LY", "pic": "path_to_url" }, { "name": "CHRIS.CHRISTY", "brandEnglishName": "CHRIS.CHRISTY", "id": "Ck9u", "pic": "path_to_url" }, { "name": "HUM", "brandEnglishName": "HUM", "id": "y303", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "Bata", "id": "6JEt", "pic": "path_to_url" }, { "name": "NEW BALANCE", "brandEnglishName": "New Balance", "id": "kLfX", "pic": "path_to_url" }, { "name": "NAIN", "brandEnglishName": "NAIN", "id": "xMU7", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "li-ning", "id": "9nEx", "pic": "path_to_url" } ] } ] },{ "response": "brands", "totalpage": "8", "brands_title": [ { "name": "", "id": "" }, { "name": "", "id": "eaec32113fea4c87a0a231f5147040e0" }, { "name": "", "id": "5da2011498fd4455afd2e29896a489d6" }, { "name": "", "id": "1e7cd6973c7e4f0ab30e4f4a6281f19d" }, { "name": "", "id": "32f8ddd36f4d4e5b965a3ac8b79c5c29" }, { "name": "", "id": "4a93de5dfcf4404c93bcf851228577f3" }, { "name": "", "id": "07e0610989b54e3381e032ebd05de897" }, { "name": "", "id": "5c166c0c914a48ca857ef865919a04e8" } ], "advert_banner": [], "brands_wall": [ { "key": "", "catno": "KDT", "value": [ { "name": "CAMEL", "brandEnglishName": "CAMEL", "id": "tbFi", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "TOREAD", "id": "gGBP", "pic": "path_to_url" }, { "name": "RAX", "brandEnglishName": "RAX", "id": "3Re8", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "CHUMS", "id": "pfRA", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "The north face", "id": "7XjA", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "clothin", "id": "syPj", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "Columbia", "id": "uceo", "pic": "path_to_url" }, { "name": "JACK WOLFSKIN", "brandEnglishName": "JACK WOLFSKIN", "id": "lJdP", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "cat", "id": "Xtf2", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "merrell", "id": "0BFm", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "Timberland", "id": "7BO7", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "Patagonia", "id": "JQfs", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "innet", "id": "Mckz", "pic": "path_to_url" }, { "name": "", "brandEnglishName": "Warrior", "id": "Fbf1", "pic": "path_to_url" } ] } ] }] export default { window: window, HomeDate:HomeDate, seaGoDate:seaGoDate, BrandDate:BrandDate, ShoppingCarDate:ShoppingCarDate, } ```
The administrative divisions of Illinois are counties, townships, precincts, cities, towns, villages, and special-purpose districts. The basic subdivisions of Illinois are the 102 counties. Illinois has more units of local government than any other state—over 8,000 in all. The Constitution of 1970 created, for the first time in Illinois, a type of "home rule", which allows localities to govern themselves to a certain extent. Illinois also has several types of school districts and additional units of government that oversee many other functions. Property taxes are a major source of tax revenue for local government taxing districts. The property tax is a local tax, imposed by counties, townships, municipalities, school districts, and special taxation districts. The property tax in Illinois is imposed only on real property. Illinois counties, townships, cities, and villages may also promulgate local ordinances. Counties The basic subdivisions of Illinois are the 102 counties. Cook County is the only home rule county. Townships and precincts Of the 102 counties, 85 are divided into townships. The remaining 17 counties are divided into 261 precincts, instead of townships. In addition, all governmental functions were removed from townships in Chicago by a mayoral proclamation in 1902. For several cities in Illinois, including Springfield and Cicero, the township and municipal governments are carried out by the same governing body. Municipalities Municipal governments are the cities, villages, and incorporated towns. The minimum size for incorporation as a city is 2,500, and the minimum size for incorporation as a village varies by the county population. Municipalities having a population above 25,000 automatically have home rule status, whereas smaller municipalities have the option via referendums. School districts Illinois has several types of school districts: Chicago Public Schools Common school districts Community college districts (the Illinois Community College System) Community high school districts Community unit school districts Non-high school districts Special charter school districts Township high school districts Elected boards of education and boards of trustees (in the case of community college districts) govern these districts, except for the Chicago Public Schools and the City Colleges of Chicago, for which the boards are appointed by the Mayor with the approval of the Chicago City Council, and the special charter districts, which may have elected or appointed boards. The Illinois Board of Higher Education (IBHE) is the administrative agency with responsibility for overseeing all higher education in Illinois. With regards to the Illinois Community College System, the Illinois Community College Board (ICCB) is the state coordinating board for community colleges. Area vocational centers and special education cooperatives may be formed by joint agreement between two or more school districts. A board consisting of representatives of each participating school district governs each entity of these two types. Educational service regions replaced the former county school units administered by county superintendents. Each region originally served one county but now may serve multiple counties because of minimum population requirements. Each region is headed by a regional superintendent of schools and is also governed by a regional board of trustees; the latter deal primarily with district boundary changes. Township land commissioners manage school lands and funds in certain counties. Educational service centers are established by the state board of education and function primarily to coordinate and provide special and ordinary services to affiliated school districts. These service centers are governed by boards consisting of members appointed by the regional superintendent. Special districts Special purpose districts in Illinois are forms of local government that are responsible for a narrow set of responsibilities. Illinois has the most special purpose districts of any U.S. state. The exact number depends on how one defines a “special purpose district.” The United States Census Bureau has determined that Illinois has 3,227 special purpose governments as of June 30, 2012. The Office of the Illinois Comptroller, which uses a broader definition that includes special districts without budget autonomy, determined the state has 4,755 as of December 2015. See also List of census-designated places in Illinois List of unincorporated communities in Illinois Notes References Illinois
The Artist–Museum Partnership Act is a United States bill that was proposed to amend the Internal Revenue Code of 1986 to allow taxpayers who create literary, musical, artistic, or scholarly compositions or similar property a fair market value (determined at the time of contribution) tax deduction for contributions of such properties, the copyrights thereon, or both, to certain tax-exempt organizations, if such properties are properly appraised and are donated no sooner than 18 months after their creation. The bill would place limits on the amount of such deduction based upon the donor's artistic adjusted gross income, as defined by this Act. The bill was first introduced to the United States Congress by Democratic Senator of Vermont, Patrick Leahy on February 14, 2005. At that time the bill was referred to the Committee on Finance. The measure has passed the Senate more than once in the past several years, but it still hasn't become law. Current law Under current law, artists who donate self-created works are only able to deduct the cost of supplies such as canvas, pen, paper and ink, which does not even come close to their true value. Prior to 1969, artists and collectors alike were able to take a deduction equivalent to the fair market value of a work, but Congress changed the law with respect to artists in the Tax Reform Act of 1969. Since then, fewer and fewer artists have donated their works to museums and cultural institutions. References Proposed legislation of the 109th United States Congress United States proposed federal taxation legislation
Ho Vann () is a Cambodian politician. He belongs to the Cambodia National Rescue Party and was elected to represent Phnom Penh in the National Assembly of Cambodia in 2003 and re-elected most recently in 2013. References 1947 births Members of the National Assembly (Cambodia) Cambodia National Rescue Party politicians Candlelight Party politicians Living people Royal University of Law and Economics alumni People from Takéo province
```c /*********************************************************************/ /* */ /* Optimized BLAS libraries */ /* By Kazushige Goto <kgoto@tacc.utexas.edu> */ /* */ /* UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING */ /* THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, */ /* NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY */ /* THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF */ /* TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO */ /* THE USE OF THE SOFTWARE OR DOCUMENTATION. */ /* Under no circumstances shall University be liable for incidental, */ /* special, indirect, direct or consequential damages or loss of */ /* profits, interruption of business, or related expenses which may */ /* arise from use of Software or Documentation, including but not */ /* limited to those resulting from defects in Software and/or */ /* Documentation, or loss or inaccuracy of data of any kind. */ /*********************************************************************/ #if defined(__alpha) && defined(__DECC) #include <c_asm.h> #endif int implver(void){ int arch; #ifndef __DECC asm __volatile__("implver %0" : "=r"(arch) : : "memory"); #else arch = asm("implver %v0"); #endif return arch; } void get_architecture(void){ printf("ALPHA"); } void get_subarchitecture(void){ printf("ev%d", implver() + 4); } void get_subdirname(void){ printf("alpha"); } void get_cpuconfig(void){ printf("#define EV%d\n", implver() + 4); switch (implver()){ case 0: printf("#define L1_DATA_SIZE 16384\n"); printf("#define L1_DATA_LINESIZE 32\n"); printf("#define L2_SIZE 2097152\n"); printf("#define L2_LINESIZE 32\n"); printf("#define DTB_ENTRIES 32\n"); printf("#define DTB_SIZE 8192\n"); break; case 1: printf("#define L1_DATA_SIZE 16384\n"); printf("#define L1_DATA_LINESIZE 32\n"); printf("#define L2_SIZE 2097152\n"); printf("#define L2_LINESIZE 64\n"); printf("#define DTB_ENTRIES 64\n"); printf("#define DTB_SIZE 8192\n"); break; case 2: printf("#define L1_DATA_SIZE 32768\n"); printf("#define L1_DATA_LINESIZE 64\n"); printf("#define L2_SIZE 4194304\n"); printf("#define L2_LINESIZE 64\n"); printf("#define DTB_ENTRIES 64\n"); printf("#define DTB_SIZE 8192\n"); break; } } void get_libname(void){ printf("ev%d\n", implver() + 4); } ```
The International Group for Historic Aircraft Recovery (TIGHAR) is an American nonprofit organization based in Pennsylvania. It was founded by Richard Gillespie in 1985. According to TIGHAR's Federal Tax Exemption Form 990 for Non Profits, the organization's mission is to "promote responsible aviation archaeological and historic preservation". Amelia Earhart TIGHAR has long been involved with the search for Amelia Earhart and advocates the theory that Earhart successfully landed on Gardner Island, now known as Nikumaroro. In 2012, TIGHAR was searching for clues around the Kiribati Islands using sonar equipment with the help of the State Department and undersea explorer Robert Ballard. Ballard led a 2019 expedition to locate Earhart's Electra or evidence that it landed on Nikumaroro as supposed by the Gardner/Nikumaroro hypothesis. After days of searching the deep cliffs supporting the island and the nearby ocean using state of the art equipment and technology, Ballard did not find any evidence of the plane or any associated wreckage of it. Allison Fundis, Ballard's Chief Operating Officer of the expedition, stated, “We felt like if her plane was there, we would have found it pretty early in the expedition.” Although Ballard maintains that the plane or significant portions still exist and will eventually be found, TIGHAR argues that the Electra has been "broken up" by the surf and other harsh environmental elements. Glenn Miller In January 2019, it was reported that TIGHAR would investigate Glenn Miller's disappearance. Per a BBC report, TIGHAR's interest in Glenn Miller was inspired by a fisherman's claims that he caught a plane wreck in his nets, then released it. Although TIGHAR has failed to independently corroborate the claims to date, and have not seen or verified the wreck, they maintain that there is a possibility that the reported debris could be associated with Glenn Miller. "These things often start with stories", says TIGHAR Executive Director Ric Gillespie. References External links Panel discussion on the disappearance of Amelia Earhart with members of TIGHAR, March 12, 2014 Non-profit organizations based in Delaware Amelia Earhart 1985 establishments in Delaware
Crosland Moor is a district of the town of Huddersfield, West Yorkshire, England. Location It begins 1 mile (1.6 km) to the south west of Huddersfield town centre. Crosland Moor begins at the junction of the Manchester Road A62 and Blackmoorfoot Road the main thoroughfare. The area rises up the hillside to overlook the areas of Milnsbridge and Golcar in the Colne Valley. The name is derived from the local landowners the Crosland family, who owned much of the area in 15th and 16th centuries. Their home Crosland Lodge, and business holdings at Crosland Moor Mill were situated in the area. The Walpole and Balmoral Avenue housing estates are also a part of Crosland Moor. The area (including Crosland Hill and Beaumont Park) is bordered by Lockwood, Netherton, Linthwaite, Milnsbridge, Paddock and Thornton Lodge. Political The electoral ward of Crosland Moor and Netherton, in the Colne Valley constituency. The area of Crosland Moor includes Beaumont Park, Crosland Hill and Walpole and has a population of 9,085 according to the 2001 census. The ward was renamed Crosland Moor and Netherton in time for the 2011 Census. Its population at the Census was 18,723. St Luke's Hospital The former St. Luke's Hospital was situated alongside Blackmoorfoot Road. It was originally a workhouse for the poor and needy of the area in the 19th century. This ended up being a hospital that included the headquarters for the Calderdale & Huddersfield NHS Trust, a psychiatric unit and also other services such as physiotherapy. The hospital closed in December 2010 and over time, all the buildings on that site have been demolished and the site has been fenced off. However, in 2015 a plan to regenerate the hospital site with up to 200 homes, a retail unit and a small neighbourhood centre have been approved by councillors. Education Moor End Academy (formally Moor End Technology College) is Crosland Moor's secondary school based on Dryclough Road near Beaumont Park, the secondary school is very big and is probably the most popular school for children and teenagers who live in Crosland Moor Oak Primary School is also on Dryclough Road. Beaumont Primary Academy is a new school based near the same grounds of Moor end. Beaumont Park At the end of Dryclough Road, Beaumont Park, Huddersfield's first park, begins. Opened in 1883, the park mainly consists of woodland and is on a hillside that looks over the Holme Valley and the Lockwood railway viaduct. It is currently being restored to its former glory by the Friends of Beaumont Park. Housing around the park is some of the most expensive in Huddersfield. William Horsfall and the Luddites Along Blackmoorfoot Road beyond the junction with Dryclough Road was the spot where in April 1812 mill owner William Horsfall was shot and killed by the Luddites George Mellor, William Thorpe, Thomas Smith and Benjamin Walker. They objected to the introduction of machinery at Horsfall's mill in Marsden. Walker turned informer, and the other three were hanged. A side street where the incident occurred was named after Horsfall (William Horsfall Street). Airfield Just off Blackmoorfoot Road beyond the Crosland Heath Golf Course is the Crosland Moor airfield which was established by the David Brown Engineering Works based in Lockwood. Even further up the road is Huddersfield's Observatory which is situated high over the town for good views of the sky at night. Before the airfield is the Wellfield quarry where Crosland Hill Sandstone comes from. According to the Building Research Establishment it is a durable stone not affected by acid rain or air pollution. See also Listed buildings in Crosland Moor and Netherton References External links Crosland genealogy at Genealogy.com Crosland Hill Sandstone bre test results Beaumont Park on the Creative Portal website Picture of Huddersfield Observatory from a triangulationpost - Geograph.org Murder of William Horsfall newspaper report of 1812 - RootsWeb Areas of Huddersfield Colne Valley
Leslie Russell Thoms (March 7, 1938 - December 5, 1999) was a Canadian politician, who represented the electoral district of Grand Bank in the Newfoundland House of Assembly from 1979 to 1982. He was a member of the Liberal Party. Prior to his election to the legislature, Thoms had been a supporter of Bill Rowe's 1977 campaign for the Liberal leadership, although Rowe stepped aside in favour of Don Jamieson by the time of the 1979 Newfoundland general election. Thoms was elected to the legislature in that election. Due to the Liberal Party's loss, Jamieson stepped down as leader following the election and Thoms ran as a candidate in the resulting leadership convention, but ultimately lost to Len Stirling. Thoms was defeated in the 1982 Newfoundland and Labrador general election by Bill Matthews of the Progressive Conservatives. He subsequently worked as a staff lawyer in the provincial Ministry of Justice. He died on December 5, 1999, in St. John's. Electoral record |NDP |Harvey Tulk, Jr. |align="right"|198 |align="right"|3.8 |align="right"| |- |} |NDP |Eric Miller |align="right"|234 |align="right"|4.23 |align="right"| |- |} References 1938 births 1999 deaths Liberal Party of Newfoundland and Labrador MHAs 20th-century Canadian politicians
Stephen William Pitt (born 1 August 1948) is an English former professional footballer who played for Tottenham Hotspur, Colchester United, Corinthian Casuals and Stevenage Borough . Playing career Pitt joined Tottenham Hotspur as an apprentice in August 1965. The winger featured in one match for the Spurs in a home fixture versus Blackpool on 26 August 1965. Pitt was aged 17 years and 26 days making him one of the youngest Tottenham debutants. He transferred to Colchester United in June 1969 where he played in six senior matches. After leaving Layer Road, Pitt had spells at Corinthian Casuals and Stevenage Borough. References External links Steve Pitt at Colchester United Archive Database Spurs team photo 1966-67 1948 births Footballers from Willesden English men's footballers English Football League players Tottenham Hotspur F.C. players Colchester United F.C. players Stevenage F.C. players Living people Men's association football wingers Corinthian-Casuals F.C. players
Edgar Roberto Crespo Echeverría (born 11 May 1989 in Panama City, Panama) is a Panamanian swimmer, who has been representing Panama in swimming competitions around the world. Studies at Texas Christian University Edgar Crespo was a top swimmer at the college level. He received a scholarship as student/athlete to Texas Christian University. While he was in college he competed in events for both the university and his country. He graduated with a Bachelor of Business Administration (International Marketing and Entrepreneurship Management). Season 2008–2009 During this season he stopped competing in college level swim meets in order to focus on his studies but did represent his county in meets from August 2008 to July 2009. Season 2009–2010 This season was his first year as an official swimmer at Texas Christian University (TCU). During the season, Crespo did not lose any of his individual races (14 - 0) in the 100 and 200 yards breaststroke. He went undefeated against the universities of Utah, BYU, Air Force, UCSD, and UNLV. He won two (2) TCU Weekly Award (Prix Week TCU) on 23 October 2009 and 12 January 2010 for his performances during competitions with the team. Also on 10 November 2009 and 9 February 2010, Crespo was recognized as Best Swimmer of the Week of the Mountain West Conference (MWC) for his performance. On 6 February 2010, Crespo broke the 100 yards breaststroke record of the All-American, Jason Flint (who set a time of 55.24 in 1996) at the TCU vs. UNLV swim meet, held at the TCU Recreation Center. Crespo's new record time was 55.01. On 26 February 2010, Crespo became Champion of the Mountain West Conference (MWC Championship) in the 100 yards breaststroke (53.32), setting a record for TCU. This gold medal represented the seventh (7th) medal won by an athlete in swimming since TCU joined the Mountain West Conference (MWC) in the 2005–2006 season. He competed in the 4 x 50 yards and 4 × 100 yards medleys, TCU finished second in both races. He also competed in the 200 yards breaststroke finishing seventh in the finals of that event, and sixth in the 100 yards butterfly. On 1 March 2010, he received a mentioned as an All-MWC from the Mountain West Conference (MWC) in the 100 butterfly and 100 yards breaststroke. With his time of 53.32 in the 100-yard breaststroke, Crespo was selected to participate and represent Texas Christian University at the 2010 NCAA National Championships (2010 NCAA Championship) in Columbus, Ohio. He became only the second TCU athlete since 1997 to participate in the National Championships. In this championship, Crespo placed 27th in the United States in the 100 yards breaststroke. Season 2010–2011 During this season, he focused more on the 100 and 200 yards breaststroke. Crespo had a record of nine won and one lost. He led the swim team of Texas Christian University (TCU) in won races (9 individually). On 11 January 2011, Crespo was named TCU Athlete of the Week for his performance (he won the 100 and 200 yards breaststroke) in a competition against UNLV in Las Vegas. On 25 February 2011, he placed second in the Mountain West Conference Championship with a time of 53.35 in the 100 yards breaststroke. He helped TCU finish second in the 4 x 50 yards and 4×100 yards medleys. He also competed in the 200 yards breaststroke, finishing fourth place with a time of 1:58.60, breaking the record of Jason Flint (1:59.45) which was set in 1996. On 1 March 2011, he was recognized by the Mountain West Conference as an All-MWC in the 100 yards and 200 yards breaststroke as well as in the 4×50 yards and 4×100 yards medleys. On 10 March 2011, Crespo was selected, for the second time, to participate and represent Texas Christian University at the 2011 NCAA National Swimming Championships in Minnesota, Minneapolis. At this championship, Crespo placed 20th in the 100-yard breaststroke (with a time of 53.50) and 30th in the 200 yards breaststroke (with a time of 1:57.91 - breaking his own record set during Mountain West Conference Championship) in the United States. Season 2011–2012 This season was his last one as swimmer for Texas Christian University. During this season, Crespo did not lose any of his individual races in 100 and 200 yards breaststroke. He went undefeated against universities such as Notre Dame, Michigan, Wyoming, SMU, and UCSD. He achieved two TCU Athlete of the Week awards on 19 October 2011 and 25 January 2012 for his performances during competitions with the team. Also on 1 February 2012, Crespo was recognized by TCU as Scholar-Athlete (student-athlete) of January at Texas Christian University. This award was given for his performance in school and in his sport. 15 February 2012, was Crespo's last meet as an athlete of Texas Christian University in the Conference USA Championship. He achieved first place in the 100 yards breaststroke, breaking his record of 53.26 that was established in 2010. He also won the 200 yards breaststroke, beating his own record of 1:56.30 that was established in 2011. Crespo also achieved silver medals in the 4 x 50 and 4×100 yards medleys (both in new TCU record). He also won a bronze medal in the 200-yard individual medley with a time of 1:50.06. Edgar Crespo was selected as Swimmer of the Meet at C-USA (Swimmer Conference USA Championship) for his performance during the event. Competitions World Swimming Championships 2006 FINA Youth World Swimming Championships Aged 16, Crespo took part in the 2006 FINA Youth World Swimming Championships held in Rio de Janeiro, Brazil. He won a bronze medal, the first medal every won by Panama at the Youth World Swimming Championships. Bronze medal: 50 m breaststroke Regional Games Crespo has participated in different regional games, such as: Bolivarian Games, Central American Games, Central American and Caribbean Games, South American Games and Pan American Games. Bolivarian Games Crespo represented Panama in four (4) consecutive Bolivarian Games, winning two gold, three silver medals and one bronze medal. He broke the Bolivarian record in the 50 m breaststroke at two different Bolivarian Games. 2005 Bolivarian Games He place 6th in the 100 m breaststroke and 7th in the 100 m butterfly during the 2005 Bolivarian Games which were held in Pereira, Colombia. 2009 Bolivarian Games At the 2009 Bolivarian Games, Crespo was the bearer of the delegation that represented Panama. During these Bolivarian Games held in Sucre, Bolivia, Crespo won 2 medals: 1 gold medal in the 50 m breaststroke and 1 silver medal in the 100 m breaststroke . Also, he placed 6th in the 200 m breaststroke. During the competition, he broke a record in the 50 m breaststroke. Gold Medal: 50 m breaststroke (Bolivarian Games Record) Silver Medal: 100 m breaststroke 2013 Bolivarian Games Again, Crespo was bearer of the delegation that represented Panama during the 2013 Bolivarian Games held in Trujillo, Peru. Crespo won 3 medals: 1 gold medal in the 50 m breaststroke and 2 silver medals in the 100 m and 200 m breaststroke. During the competition, he broke his own record in the 50 m breaststroke which he set in the last Bolivarian Games. Gold medal: 50 m breaststroke (Bolivarian Games Record) Silver medal : 100 m breaststroke Silver medal : 200 m breaststroke 2017 Bolivarian Games For the fourth time in a row, Crespo represented Panama in the Bolivarian Games. In this event held in Santa Marta, Colombia, he earned 1 bronze medal in the 100m Breaststroke and a 5th place in the 200m Breaststroke. Bronze Medal: 100 m breaststroke Central American Games Crespo has participated in four (4) different editions of the Central American Games. He has won multiple medals in different events: 14 gold medals and 5 silver medals, a total of 19 medals in 3 different Central American Games. Since his first appearance at the age of 16 years, he has been undefeated in the 50 m, 100 m and 200 m breaststroke. 2006 Central American Games Panama 2006 2006 was the first time he participated in the Central American Games held in Panama City, Panama. Crespo won 5 medals: 1 gold and 4 silver medals. Gold Medal: 100 m breaststroke Silver Medal: 100 m butterfly Silver Medal: 100 m freestyle Silver Medal: 4 × 100 m freestyle relay Silver Medal: 4 × 100 m medley relay 2010 Central American Games Panama 2010 In 2010, Crespo participated in his second Central American Games held in Panama City, Panama. Crespo took part in 8 different events, winning 7 gold medals and 1 silver medal. He broke multiple records during this competition, including the 50 m and 100 m breaststroke, the 50 m and 100 m butterfly, and the 4 × 100 m medley relay. Gold Medal: 50 m breaststroke (Central American Games Record) Gold Medal: 100 m breaststroke (Central American Games Record) Gold Medal: 200 m breaststroke Gold Medal: 50 m butterfly (Central American Games Record) Gold Medal: 100 m butterfly Gold Medal: 4 × 100 m freestyle relay Gold Medal: 4 × 100 m medley relay (Central American Games Record) Silver Medal: 4 × 200 m freestyle relay 2013 Central American Sports Games San Jose 2013 In his third appearance at the Central American Games held in San Jose, Costa Rica, Crespo won 6 gold medals. He broke several Central American records: 50 m, 100 m and 200 m breaststroke, and 200 m individual medley. He was appointed as the King of the 2013 Central American Games because he was the athlete with most medals won individually among all participants. Gold Medal: 50 m breaststroke (Central American Games Record) Gold Medal: 100 m breaststroke (Central American Games Record) Gold Medal: 200 m breaststroke (Central American Games Record) Gold Medal 200 m individual medley (Central American Games Record) Gold Medal: 4 × 100 m freestyle relay Gold Medal: 4 × 100 m medley relay 2017 Central American Sports Games Managua 2017 In his fourth appearance at the Central American Games held in Managua, Nicaragua, Crespo won 6 medals: 4 gold medals and 2 bronze medals. Also, he could broke two records of the event. Gold Medal: 50 m breaststroke (Central American Games Record) Gold Medal: 100 m breaststroke Gold Medal: 200 m breaststroke Gold Medal 4 × 100 m medley relay (Central American Games Record) Bronze medal: 50 m butterfly Bronze medal: 100 m butterfly Central American and Caribbean Games Crespo participated in four (4) editions of the Central American and Caribbean Games and won three gold medals, two silver medal and two bronze medal. Central American and Caribbean Games Cartagena de Indias 2006 In 2006, Crespo participated in his first Central American and Caribbean Games held in Cartagena, Colombia. He won a 1 bronze medal in the 50 m breaststroke and placed 4th in the 100 m breaststroke. Crespo achieved a great accomplishment during this Games, winning Panama's first medal since 1990. Bronze Medal: 50 m breaststroke Central American and Caribbean Games Mayagüez 2010 During the edition of the Central American and Caribbean Games held in Mayagüez, Puerto Rico, Crespo achieved three medals: 2 gold medals, and 1 silver medal. He broke records in the 50 m and 100 m breaststroke. Crespo was also the athlete with the most medals for Panama at the Central American and Caribbean Games Mayagüez 2010. His performance in the twenty-first edition of Central American and Caribbean Games lead him to be identified as the seventy-second athlete with the most medals among all participants of the event, with a total of 3 medals. Gold Medal: 50 m breaststroke (Record Central American and Caribbean Games) Gold Medal: 100 m breaststroke (Record Central American and Caribbean Games) Silver Medal: 200 m breaststroke Central American and Caribbean Games Veracruz 2014 During the edition of the Central American and Caribbean Games held in Veracruz, Mexico, Crespo achieved two medals: 1 silver medal, and 1 bronze medal. During the first day of competition, Crespo won the bronze medal in the 100m breaststroke. Crespo then swam the 50m breaststroke, breaking his own record from the 2010 Games in the preliminary round. During the final of the 50m breaststroke, he made a mistake, putting him into second place. Silver Medal: 50 m breaststroke (Record Central American and Caribbean Games in preliminary round) Bronze Medal: 100 m breaststroke Central American and Caribbean Games Barranquilla 2018 During the edition of the Central American and Caribbean Games held in Barranquilla, Colombia, Crespo achieved one gold medals and the Central American and Caribbean Games Record in the 50m breaststroke. Also, Crespo placed sixth in the 100 m breaststroke. Gold Medal: 50 m breaststroke (Record Central American and Caribbean Games) South American Games Crespo participated in three (3) editions of the South American Games (ODESUR). He won two medals: one silver in 2006 edition, and one bronze in the 2014 edition South American Games Buenos Aires, 2006 At just 16 years, Crespo participated in his first South American Games (ODESUR) held in Buenos Aires, Argentina winning a silver medal in the 50 m breaststroke. Silver Medal: 50 m breaststroke South American Games Santiago 2014 Crespo returned to the South American Games after 8 years. He won the bronze medal in the 100 m breaststroke Bronze Medal: 100 m breaststroke South American Games Cochabamba 2018 Crespo returned to the South American Games in Cochabamba 2018. He placed fourth in the 100 m breaststroke and fifth in the 200 m breaststroke. Pan American Games Crespo has represented Panama in (4) four consecutives Pan American Games. Pan American Games Rio de Janeiro 2007 Crespo participated in his first Pan American Games held in Rio de Janeiro, Brazil at the age of 18. He placed 13th in the 100 m breaststroke and 12th in the 200 m breaststroke. Pan American Games Guadalajara 2011 Crespo returned to compete in the 2011 Pan American Games, which this time was held in Guadalajara, Mexico. Again, he competed in the 100 m breaststroke and 200 m breaststroke. In the 100 m breaststroke, Crespo placed 5th place in the Americas. In the 200 m breaststroke, he placed 9th. Pan American Games Toronto 2015 Edgar Crespo returned to compete in the 2015 Pan American Games, held in Toronto, Canada. He was chosen as the flag barrier of the delegation by the Panama Olympic Committee. This edition of the PanAm Games, he just competed in the 100m breaststroke. Crespo placed 8th in the final of this event. After this competition, many newspapers in Panama criticized his performance. However, the Panamanian singer, Rubén Blades, praised him on his official Facebook page and criticized the negative responses of different newspapers in Panama. Hours later, Crespo replied to Rubén Blades, via his social media accounts. Pan American Games Lima 2019 Crespo returned to compete in the 2019 Pan American Games, which this time was held in Lima, Peru. Again, he competed in the 100 m breaststroke and 200 m breaststroke. In the 100 m breaststroke, Crespo placed 11th place (3rd in the final B - final do not receive medal) in the Americas for the 100 m breaststroke and 13th (5th in the final B - final do not receive medal) in the 200m breaststroke. Summer Olympic Games Crespo has competed and represented Panama in three (3) consecutive Summer Olympic Games: 2008 Summer Olympics Edgar Crespo participated in his first 2008 Summer Olympics, held in Beijing, China. He qualified at 19 years old as a wild card and competed in the 100 m breaststroke. He participated in the 3rd heat, which he won, becoming the second Panamanian to accomplish this. However he did not qualify for the semi-finals and placed 53rd overall. 2012 Summer Olympics At 24 years old, Crespo represented Panama in his second Summer Olympic Games, held in London, England. Just like in the last Olympics, Crespo experienced qualifying problems. During the World Swimming Championships 2011 held in Shanghai, China, Crespo achieved the B standard time in the 100 m breaststroke. Also during the Indy Grand Prix swimming competition held in Indianapolis, United States, Crespo got the B standard time in the 200 m breaststroke. Approaching the starting date of the 2012 Summer Olympics, the International Swimming Federation (FINA) did not send the invitations to Panama since the Panamanian Federation Swimming (FPN) decided not to use the wild card that allowed the two athletes per country: male and female, to compete regardless if they achieved or did not achieve the A standard times. The Panamanian Federation preferred to go by B standard invitation. This news became sport controversy in Panama because other countries had athletes with B standard times and those countries secured their participation in the games with the wild card. After several weeks of waiting and 2 weeks before the start of the games in London, the Panama Olympic Committee (COP) received the wild card for Crespo to compete in the 100 m breaststroke. He competed in London 2012 in the 4th heat of the 100 m breaststroke and placed 35th in the overall ranking. 2016 Summer Olympics For the third time in a row, at 27, Edgar Crespo represented Panama in the Summer Olympic Games, this time in Rio de Janeiro, Brazil. Crespo achieved the B time in the 100 meters breaststroke at the Stockholm Swim Open, a competition held in Sweden in March 2016. This B time kept Crespo in the World Ranking to be invited by the International Swimming Federation (FINA) and qualify for Rio 2016. On 6 August, Edgar Crespo competed the 100 meters breaststroke in the 2nd heat finishing in 41st place overall. References External links Teamedgarcrespo.com Copanama.com 1989 births Living people Panamanian male swimmers Male breaststroke swimmers Olympic swimmers for Panama Swimmers at the 2008 Summer Olympics Swimmers at the 2012 Summer Olympics Swimmers at the 2016 Summer Olympics Pan American Games competitors for Panama Central American and Caribbean Games competitors for Panama Central American Games competitors for Panama Swimmers at the 2015 Pan American Games Swimmers at the 2011 Pan American Games Swimmers at the 2007 Pan American Games Central American and Caribbean Games gold medalists for Panama Central American and Caribbean Games silver medalists for Panama Central American and Caribbean Games bronze medalists for Panama Central American Games gold medalists for Panama Central American Games silver medalists for Panama Central American Games bronze medalists for Panama South American Games bronze medalists for Panama South American Games silver medalists for Panama South American Games medalists in swimming Competitors at the 2006 South American Games Competitors at the 2014 South American Games Competitors at the 2006 Central American and Caribbean Games Competitors at the 2010 Central American and Caribbean Games Competitors at the 2014 Central American and Caribbean Games Competitors at the 2018 Central American and Caribbean Games Swimmers at the 2019 Pan American Games Central American and Caribbean Games medalists in swimming
Perpetua Sappa Konman (born 29 September 1972) is a Micronesian physician and politician. In 2021 she became the first woman elected to Congress. Biography Born in 1972 and from Fefan island in Chuuk State, Konman became a physician. She married Derensio S. Konman, a politician and member of Congress, and had six children. Following her husband's death in 2021, she contested the subsequent special election for Chuuk Election District 3 (a Senate seat). Receiving 2,532 votes, she defeated Myron I. Hashiguchi (1,962 votes) and Inson I. Namper (1,292) votes, becoming the first woman elected to Congress. She was sworn into office on 13 December. References 1972 births Living people People from Chuuk State Federated States of Micronesia physicians Federated States of Micronesia women in politics Members of the Congress of the Federated States of Micronesia 21st-century women physicians 21st-century women politicians
Makar Sergeyevich Shevtsov (; born 9 January 1980 in Maykop) is a former Russian football player. References 1980 births People from Maykop Living people Russian men's footballers FC Elista players Russian Premier League players Men's association football forwards Sportspeople from Adygea FC Druzhba Maykop players
```javascript function initMap() { var mapword = document.getElementById('mappos').value; var maparray = mapword.split(','); var latitude = parseFloat(maparray[0]); var longitude = parseFloat(maparray[1]); var myLatLng = {lat: latitude, lng:longitude}; var map = new google.maps.Map(document.getElementById('map'), { zoom: 16, center: myLatLng }); var marker = new google.maps.Marker({ position: myLatLng, map: map }); } ```
Jasen Lee Fisher (born May 8, 1980) is an American former child actor. Career Fisher made his first film appearance in Parenthood (1989) as Kevin Buckman alongside Steve Martin and Rick Moranis, receiving a nomination for a Young Artist Award as a supporting actor. He portrayed the main character of Luke in The Witches (1990) alongside Rowan Atkinson and Anjelica Huston, for which he was nominated for the Saturn Award for Best Performance by a Younger Actor. At the age of 11, he portrayed Ace (one of the Lost Boys) in the film Hook (1991) alongside Robin Williams and Julia Roberts, for which the cast received the 'Outstanding young ensemble cast in a motion picture' award at the 1991–92 Youth in Film Awards. He has had no further screen credits since. Personal life Fisher attended William Fremd High School in Palatine, Illinois, graduating in the Class of 1998. Filmography References External links American male child actors American male film actors Living people 1980 births
```php <?php /** * Server-side rendering of the `core/post-featured-image` block. * * @package WordPress */ /** * Renders the `core/post-featured-image` block on the server. * * @since 5.8.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * @return string Returns the featured image for the current post. */ function render_block_core_post_featured_image( $attributes, $content, $block ) { if ( ! isset( $block->context['postId'] ) ) { return ''; } $post_ID = $block->context['postId']; $is_link = isset( $attributes['isLink'] ) && $attributes['isLink']; $size_slug = isset( $attributes['sizeSlug'] ) ? $attributes['sizeSlug'] : 'post-thumbnail'; $attr = get_block_core_post_featured_image_border_attributes( $attributes ); $overlay_markup = get_block_core_post_featured_image_overlay_element_markup( $attributes ); if ( $is_link ) { if ( get_the_title( $post_ID ) ) { $attr['alt'] = trim( strip_tags( get_the_title( $post_ID ) ) ); } else { $attr['alt'] = sprintf( // translators: %d is the post ID. __( 'Untitled post %d' ), $post_ID ); } } $extra_styles = ''; // Aspect ratio with a height set needs to override the default width/height. if ( ! empty( $attributes['aspectRatio'] ) ) { $extra_styles .= 'width:100%;height:100%;'; } elseif ( ! empty( $attributes['height'] ) ) { $extra_styles .= "height:{$attributes['height']};"; } if ( ! empty( $attributes['scale'] ) ) { $extra_styles .= "object-fit:{$attributes['scale']};"; } if ( ! empty( $attributes['style']['shadow'] ) ) { $shadow_styles = wp_style_engine_get_styles( array( 'shadow' => $attributes['style']['shadow'] ) ); if ( ! empty( $shadow_styles['css'] ) ) { $extra_styles .= $shadow_styles['css']; } } if ( ! empty( $extra_styles ) ) { $attr['style'] = empty( $attr['style'] ) ? $extra_styles : $attr['style'] . $extra_styles; } $featured_image = get_the_post_thumbnail( $post_ID, $size_slug, $attr ); // Get the first image from the post. if ( $attributes['useFirstImageFromPost'] && ! $featured_image ) { $content_post = get_post( $post_ID ); $content = $content_post->post_content; $processor = new WP_HTML_Tag_Processor( $content ); /* * Transfer the image tag from the post into a new text snippet. * Because the HTML API doesn't currently expose a way to extract * HTML substrings this is necessary as a workaround. Of note, this * is different than directly extracting the IMG tag: * - If there are duplicate attributes in the source there will only be one in the output. * - If there are single-quoted or unquoted attributes they will be double-quoted in the output. * - If there are named character references in the attribute values they may be replaced with their direct code points. E.g. `&hellip;` becomes ``. * In the future there will likely be a mechanism to copy snippets of HTML from * one document into another, via the HTML Processor's `get_outer_html()` or * equivalent. When that happens it would be appropriate to replace this custom * code with that canonical code. */ if ( $processor->next_tag( 'img' ) ) { $tag_html = new WP_HTML_Tag_Processor( '<img>' ); $tag_html->next_tag(); foreach ( $processor->get_attribute_names_with_prefix( '' ) as $name ) { $tag_html->set_attribute( $name, $processor->get_attribute( $name ) ); } $featured_image = $tag_html->get_updated_html(); } } if ( ! $featured_image ) { return ''; } if ( $is_link ) { $link_target = $attributes['linkTarget']; $rel = ! empty( $attributes['rel'] ) ? 'rel="' . esc_attr( $attributes['rel'] ) . '"' : ''; $height = ! empty( $attributes['height'] ) ? 'style="' . esc_attr( safecss_filter_attr( 'height:' . $attributes['height'] ) ) . '"' : ''; $featured_image = sprintf( '<a href="%1$s" target="%2$s" %3$s %4$s>%5$s%6$s</a>', get_the_permalink( $post_ID ), esc_attr( $link_target ), $rel, $height, $featured_image, $overlay_markup ); } else { $featured_image = $featured_image . $overlay_markup; } $aspect_ratio = ! empty( $attributes['aspectRatio'] ) ? esc_attr( safecss_filter_attr( 'aspect-ratio:' . $attributes['aspectRatio'] ) ) . ';' : ''; $width = ! empty( $attributes['width'] ) ? esc_attr( safecss_filter_attr( 'width:' . $attributes['width'] ) ) . ';' : ''; $height = ! empty( $attributes['height'] ) ? esc_attr( safecss_filter_attr( 'height:' . $attributes['height'] ) ) . ';' : ''; if ( ! $height && ! $width && ! $aspect_ratio ) { $wrapper_attributes = get_block_wrapper_attributes(); } else { $wrapper_attributes = get_block_wrapper_attributes( array( 'style' => $aspect_ratio . $width . $height ) ); } return "<figure {$wrapper_attributes}>{$featured_image}</figure>"; } /** * Generate markup for the HTML element that will be used for the overlay. * * @since 6.1.0 * * @param array $attributes Block attributes. * * @return string HTML markup in string format. */ function get_block_core_post_featured_image_overlay_element_markup( $attributes ) { $has_dim_background = isset( $attributes['dimRatio'] ) && $attributes['dimRatio']; $has_gradient = isset( $attributes['gradient'] ) && $attributes['gradient']; $has_custom_gradient = isset( $attributes['customGradient'] ) && $attributes['customGradient']; $has_solid_overlay = isset( $attributes['overlayColor'] ) && $attributes['overlayColor']; $has_custom_overlay = isset( $attributes['customOverlayColor'] ) && $attributes['customOverlayColor']; $class_names = array( 'wp-block-post-featured-image__overlay' ); $styles = array(); if ( ! $has_dim_background ) { return ''; } // Apply border classes and styles. $border_attributes = get_block_core_post_featured_image_border_attributes( $attributes ); if ( ! empty( $border_attributes['class'] ) ) { $class_names[] = $border_attributes['class']; } if ( ! empty( $border_attributes['style'] ) ) { $styles[] = $border_attributes['style']; } // Apply overlay and gradient classes. if ( $has_dim_background ) { $class_names[] = 'has-background-dim'; $class_names[] = "has-background-dim-{$attributes['dimRatio']}"; } if ( $has_solid_overlay ) { $class_names[] = "has-{$attributes['overlayColor']}-background-color"; } if ( $has_gradient || $has_custom_gradient ) { $class_names[] = 'has-background-gradient'; } if ( $has_gradient ) { $class_names[] = "has-{$attributes['gradient']}-gradient-background"; } // Apply background styles. if ( $has_custom_gradient ) { $styles[] = sprintf( 'background-image: %s;', $attributes['customGradient'] ); } if ( $has_custom_overlay ) { $styles[] = sprintf( 'background-color: %s;', $attributes['customOverlayColor'] ); } return sprintf( '<span class="%s" style="%s" aria-hidden="true"></span>', esc_attr( implode( ' ', $class_names ) ), esc_attr( safecss_filter_attr( implode( ' ', $styles ) ) ) ); } /** * Generates class names and styles to apply the border support styles for * the Post Featured Image block. * * @since 6.1.0 * * @param array $attributes The block attributes. * @return array The border-related classnames and styles for the block. */ function get_block_core_post_featured_image_border_attributes( $attributes ) { $border_styles = array(); $sides = array( 'top', 'right', 'bottom', 'left' ); // Border radius. if ( isset( $attributes['style']['border']['radius'] ) ) { $border_styles['radius'] = $attributes['style']['border']['radius']; } // Border style. if ( isset( $attributes['style']['border']['style'] ) ) { $border_styles['style'] = $attributes['style']['border']['style']; } // Border width. if ( isset( $attributes['style']['border']['width'] ) ) { $border_styles['width'] = $attributes['style']['border']['width']; } // Border color. $preset_color = array_key_exists( 'borderColor', $attributes ) ? "var:preset|color|{$attributes['borderColor']}" : null; $custom_color = $attributes['style']['border']['color'] ?? null; $border_styles['color'] = $preset_color ? $preset_color : $custom_color; // Individual border styles e.g. top, left etc. foreach ( $sides as $side ) { $border = $attributes['style']['border'][ $side ] ?? null; $border_styles[ $side ] = array( 'color' => isset( $border['color'] ) ? $border['color'] : null, 'style' => isset( $border['style'] ) ? $border['style'] : null, 'width' => isset( $border['width'] ) ? $border['width'] : null, ); } $styles = wp_style_engine_get_styles( array( 'border' => $border_styles ) ); $attributes = array(); if ( ! empty( $styles['classnames'] ) ) { $attributes['class'] = $styles['classnames']; } if ( ! empty( $styles['css'] ) ) { $attributes['style'] = $styles['css']; } return $attributes; } /** * Registers the `core/post-featured-image` block on the server. * * @since 5.8.0 */ function register_block_core_post_featured_image() { register_block_type_from_metadata( __DIR__ . '/post-featured-image', array( 'render_callback' => 'render_block_core_post_featured_image', ) ); } add_action( 'init', 'register_block_core_post_featured_image' ); ```
```javascript /** * @license Apache-2.0 * * * * 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. */ 'use strict'; var bernoulli = require( '@stdlib/random/array/bernoulli' ); var cuany = require( './../lib' ); // Create an array of random values: var x = bernoulli( 10, 0.1 ); console.log( x ); // Cumulatively determine whether values are truthy: var out = cuany( x ); console.log( out ); ```
is a 2022 Japanese documentary film directed by Tetsurō Inagaki, featuring Japanese boy band JO1. It was released on March 11, 2022, and documented the first two years of the group's career. The film list eighth on the national box office ranking in its opening weekend. Synopsis The documentary covers the first two years of JO1, an 11-member Japanese boy band formed from the audition television program Produce 101 Japan. The group was promised a spectacular career, but they were not confident they could make it. Selected based on votes by viewers, each member of JO1 has different experience in performing, including members who had never taken any vocal or dance lessons before. Moreover, the COVID-19 pandemic hit the world not long after the release of their debut single, Protostar, on March 4, 2020, and forced them to restrict their activities. Despite these difficulties, JO1 grew through daily vocal and dance lessons, promotional activities, and program recording. The film closely follows the group from the early stages of their debut to their long-awaited first live concert with an audience, titled 2021 JO1 Live "Open the Door", in November 2021. Cast Ohira Shosei Ren Kawashiri Kawanishi Takumi Syoya Kimata Sukai Kinjo Junki Kono Keigo Sato Ruki Shiroiwa Shion Tsurubo Issei Mamehara Sho Yonashiro Background and production The documentary was announced on during the second anniversary of JO1's formation on December 12, 2021. It was directed by Tetsurō Inagaki who had previously worked on a documentary film for Mr. Children. The main title Unfinished was chosen by the members to indicate their "unfinished" selves. Tetsurō revealed that he had been following the group with his camera for almost a year by the time the film was announced, amassing a total of 50 terabytes of footage. Release and promotion On December 20, 2021, a 30-second teaser video and the official poster of the film were released. The poster image was taken from the 2021 JO1 Live "Open the Door" and only features 10 members of JO1, due to Sukai Kinjo whose activities had been suspended after diagnosed with adjustment disorder in October that year. On February 11, 2022, the official trailer for the film was released, featuring the theme song . The film was premiered in 101 theaters nationwide on March 11, 2022, with a new theatrical poster featuring all 11 members of JO1. To promote the film, a stage greeting was held at Toho Cinemas Shinjuku, Tokyo on March 12, 2022, with JO1 and director Tetsurō Inagaki in attendance. The event was live-screened at 101 theaters and watched by around 40,000 fans nationwide. To celebrate the third anniversary of JO1 on December 11, 2022, JO1 the Movie: Unfinished - Go to the Top was re-screened at 99 movie theaters in Japan. The movie was also screened under the English title JO1 the Movie - Go to the Top with multilingual subtitles in four countries: the United States, France, Indonesia, and Thailand. After the screening, JO1 members appeared at Toho Cinemas Roppongi to greet the audience, live-screened to all theaters mentioned previously except the United States and France. The film will be released on Amazon Prime Video starting October 20, 2023. Music Theme song "Toberu Kara" was released on March 4, 2022, with its music video featuring scenes from the film was released the next day. The song peaked at number 42 on the Billboard Japan Hot 100. Home release JO1 the Movie: Unfinished - Go to the Top was released for digital download on Amazon Prime Video, iTunes, Google Play, YouTube and Hikari TV on November 12, 2022. A Blu-ray and DVD physical release was scheduled for January 12, 2023, with 12-minute bonus content and English subtitle for the group's official fan club members only. Reception Box office The documentary entered the box office at number eight on its opening weekend. It eventually ranked ninth on the weekly ranking. Critical response Entertainment writer Akiko Shin of stated that JO1 the Movie: Unfinished - Go to the Top was easy to understand for those who were not existing fans of JO1, and wrote "The film could have been portrayed as a tearful coming-of-age story of dreaming youths. However, the director, Tetsurō Inagaki, has created a positive story with no lies, and we can feel his love for this film." She further stated that "The film looks back on JO1's history without omission, showing changes in their performance and facial expressions, and also reveling the high quality of their musicality. The sound, realism, and intensity of this film are also part of its charm." In addition, the movie ranked second on the review aggregator Mid-Year Satisfaction Ranking for movies distributed in Japan with reviews ranging from 500 to 9,999. References External links (in Japanese) 2022 films 2022 documentary films Documentary films about boy bands Documentary films about pop music and musicians Films set in 2019 Films set in 2020 Films set in 2021 2020s Japanese-language films Toho films Japanese documentary films JO1
The 2nd Cuirassier Regiment (French: 2e régiment de cuirassiers or 2e RC) was an armoured unit of the French Army, which originated as a cavalry and then a cuirassier regiment. It was descended from the régiment Cardinal-Duc, which is at the top of the list of twelve cavalry regiments created by the same royal ordnance of 16 May 1635 - this made the 2nd Cuirassier Regiment the oldest surviving cavalry regiment in the French Army, until its disbandment in 1991. External links 2emecuirassiers.com French Cuirassier Regiments and the Colonels who Led Them: 1792 to 1815 at http://www.napoleon-series.org/ Cuirassier regiments of France
Mitchell Benson (born May 30, 1967) is a former American football defensive tackle. He played for the Indianapolis Colts from 1989 to 1990 and for the San Diego Chargers in 1991. He was selected by the Colts in the third round of the 1989 NFL Draft. References 1967 births Living people Players of American football from Fort Worth, Texas American football defensive tackles TCU Horned Frogs football players Indianapolis Colts players San Diego Chargers players
```go /* See path_to_url */ package binlog import ( "fmt" "github.com/github/gh-ost/go/mysql" ) // BinlogEntry describes an entry in the binary log type BinlogEntry struct { Coordinates mysql.BinlogCoordinates EndLogPos uint64 DmlEvent *BinlogDMLEvent } // NewBinlogEntry creates an empty, ready to go BinlogEntry object func NewBinlogEntry(logFile string, logPos uint64) *BinlogEntry { binlogEntry := &BinlogEntry{ Coordinates: mysql.BinlogCoordinates{LogFile: logFile, LogPos: int64(logPos)}, } return binlogEntry } // NewBinlogEntryAt creates an empty, ready to go BinlogEntry object func NewBinlogEntryAt(coordinates mysql.BinlogCoordinates) *BinlogEntry { binlogEntry := &BinlogEntry{ Coordinates: coordinates, } return binlogEntry } // Duplicate creates and returns a new binlog entry, with some of the attributes pre-assigned func (this *BinlogEntry) Duplicate() *BinlogEntry { binlogEntry := NewBinlogEntry(this.Coordinates.LogFile, uint64(this.Coordinates.LogPos)) binlogEntry.EndLogPos = this.EndLogPos return binlogEntry } // String() returns a string representation of this binlog entry func (this *BinlogEntry) String() string { return fmt.Sprintf("[BinlogEntry at %+v; dml:%+v]", this.Coordinates, this.DmlEvent) } ```
The Abbot's Kitchen is a mediaeval octagonal building that served as the kitchen at Glastonbury Abbey in Glastonbury, Somerset, England. It is a Grade I listed building. The abbot's kitchen has been described as "one of the best preserved medieval kitchens in Europe". The stone-built construction dates from the 14th century and is one of a very few surviving mediaeval kitchens in the world. Historically, the Abbot of Glastonbury lived well, as demonstrated by the abbot's kitchen, with four large fireplaces at its corners. The kitchen was part of the opulent abbot's house, begun under Abbot John de Breynton (1334–1342). It is one of the best preserved medieval kitchens in Europe and the only substantial monastic building surviving at Glastonbury Abbey. The abbot's kitchen has been the only building at Glastonbury Abbey to survive intact. Later it was used as a Quaker meeting house. The building is supported by curved buttresses on each side leading up to a cornice with grotesque gargoyles. Inside are four large arched fireplaces with smoke outlets above them, with another outlet in the centre of the pyramidal roof. The building is designed so that hot air from the cooking fires would have risen up to the top of the building and escaped, whilst cooler air came from openings lower down and sunk into the kitchen, cooling it. The kitchen was attached to the high abbot's hall, although only one small section of its wall remains. The architect Augustus Pugin surveyed and recorded the building in the 1830s. The Abbot's Kitchen was again surveyed and conserved in 2013, reopening in 2014. See also Abbot's Kitchen, Oxford, based on the one at Glastonbury List of octagonal buildings and structures References External links Buildings and structures completed in the 14th century Buildings and structures in Mendip District Grade I listed buildings in Mendip District Christian buildings and structures in the United Kingdom Octagonal buildings in the United Kingdom Stone buildings Glastonbury Kitchen
All Sail Set: A Romance of the Flying Cloud is a children's novel written and illustrated by Armstrong Sperry. It was first published in 1935 and was a Newbery Honor recipient in 1936. Plot The novel tells the story of Enoch Thatcher, a boy who sails on the maiden voyage of the legendary Flying Cloud, when the clipper set the record for sailing from New York to San Francisco around Cape Horn. It is notable for its accurate depiction of sailing ships, complemented by the detailed drawings. Reception All Sail Set was a Newbery Honor recipient in 1936. The Fort Worth Star Telegram called it "a magical book" with an "irresistible" romance. References 1935 American novels American children's novels Children's historical novels Newbery Honor-winning works Novels set in the 1850s 1935 children's books Children's books set in San Francisco Children's books set in New York City Children's books set on ships Children's books set in the 1850s
Palpita dispersalis is a moth in the family Crambidae. It was described by Hiroshi Inoue in 1996. It is found in Papua New Guinea (Normanby Island). References Moths described in 1996 Palpita Moths of New Guinea
Jimmy Lin Chih-ying (, born 15 October 1974) is a Taiwanese singer, actor, and race car driver. Early life Lin was born in Taipei on 15 October 1974. He was the second child in a family of five children. Lin graduated from Zhong Xiao Primary School and Huai Sheng Secondary School. At the age of 16, while he was studying Drama and Photography in Hua Gang, Lin was discovered during a performance in school. During this time, he was the star of the campus. At first, Lin declined his first manager's offer to enter the entertainment industry but later took up the offer. In 1992, at the age of 17, he became a superstar overnight following the release of his debut album, Not Every Love Song Has Fond Memories (不是每個戀曲都有美好回憶). Lin's sweeping fame across Asia gained him the nickname "Little Whirlwind". He was also known as one of the "Little Four Heavenly Kings" (四小天王) in Taiwan. Lin became the youngest singer ever to hold a concert at the Hong Kong Coliseum (香港紅館), being only 18 years old at the time. Lin went on to record and release thirteen more albums, including special editions and compilations, and has since filmed many movies and series, as well as endorsed many products. Throughout his singing career, he also received many awards for his hit songs and albums. Lin enjoyed great popularity until 1994, when he had to serve compulsory military service. Despite knowing it would affect his career tremendously, Lin did not seek special treatment from the government. In October that year, he entered the military like any other ordinary male of his age. Despite his fame, Lin did not have an easy life in the military. In a 2005 talk show, he revealed that in addition to the arduous training, Lin was bullied by seniors, and was expected to perform better than other soldiers. Although he did not expect star treatment, Lin was shocked to be treated badly for being a celebrity. In spite of all these, Lin performed well as a soldier, and received awards for excellent performance. He served primarily in the entertainment section of the military. After 2 years in the military, Lin returned to acting and singing in 1996. Career Lin's career as an actor and singer was momentarily postponed by his compulsory military service and upon his return, he was overshadowed by many newcomers. Despite the difficulties Lin faced in re-entering showbiz, he worked hard and even set up his own company, Jimmy Creative, which produced his recent 5 albums under the music label "Forward". The most noteworthy album was "Scarecrow" (稻草人)(1999), which contained a song of the same title. In 1997, Lin decided to realize his dream of car racing. In one of the races that year, he encountered a crash which nearly cost him his life. Seconds after limping out of the wreck, the car exploded. The only reminder of the accident now is a few metal plates in the foot that was crushed. Despite the accident, Lin did not give up on racing, and constantly strove to better himself. With regard to this, he often says, "When I race, I am not racing against others, but against myself." Today, Lin is one of the top 10 rally racers in Mainland China. In 2005, he signed a contract with Hong He, the top team in China, as a racer. He trained under top racing coach Ma Jun Kun. Lin hopes to become a Formula 3 racer someday, and become a full-time professional racer. In 2005 he and two friends founded the Ping Tzuo Racing Advisory Company at the ZhuHai International Circuit. On 23 October 2005, Lin hosted the first "Jimmy Cup", a racing event where mainly male celebrities race. The event's aim was to increase the awareness of traffic safety to the masses and to promote the love of car racing. In 2006 he formed the Jimmy Lin Rally Team to compete in the China Rally Championship. His team won Overall 3rd place in the 2006 China Rally Championship. On 26 October 2008 he was formally inducted into the China F1 TianRong Powerboat Racing team in Shenzhen, China. He will train with the team in 2009/2010 in order to get his F1 powerboat racing license. In 1999, Lin performed within the Suntec City Fountain of Wealth in Singapore, becoming the first singer to ever hold a concert there. While being a racer, Lin has not neglected his showbiz career. Lin concentrated on filming after his last album "Going for a Walk" in 2000. The grandest production in recent years was Demi-Gods and Semi-Devils (天龙八部), where he took the role of the Dali crown-prince Duan Yu. Despite having not released an album since 2006, which his last album was titled "擋不住我", Lin continues to sing theme songs for television series and films, and give regular live performances for various events including mini concerts, fund-raising events, festivals and even state events. He was one of the celebrity performers at the Third "Beijing 2008" Olympic Cultural Festival (2005), where the theme motto "One World, One Dream" was officially announced. In 2007, he starred in his first Taiwanese idol series, My Lucky Star, which got the #1 rating for 13 weeks in a row. In 2010, he starred in his first Chinese modern series, Hunan TV's "Single Princess and Blind Dates". On 17 October 2008, Lin held his first concert in Shanghai, China after 14 years. It was a stunning success in front of 25,000 screaming fans who sang Happy Birthday to celebrate his 34th birthday. On 21 November 2009, he held his 2nd concert in Shanghai in front of 10,000 fans. It was a family event where his parents and siblings attended, and he sang a duet with his younger brother Jason Lin. In addition to his entertainment and racing career, Lin is also a very successful businessman. In 2000 he started the IT company Inwellcom, Tech, co. with friends that specialize in writing software for surveillance and banking. He himself became the youngest director in the Taiwan Network Association. His own house in Taipei has the latest hightech surveillance equipment manufactured by his own company. He can remotely control more than 100 home appliances from his PDA. He talked about this in talk shows in 2006. He also set up a business on the internet with his brother, naming his own brand "JR" (Jimmy Racing). The online venture sells goods ranging from sunglasses to bikinis. It has since grown in scale from operating solely on auction sites to selling his goods on shopping sites. In 2004 he opened Roadstar, a car dealership in Taipei that sells high-end sports cars. In 2005 he founded the PingTzuo International Racing Sports Advisory Company in Zhuhai, China with his best friend Chen Wei Liang. Lin is also on the PingTzuo racing team. In 2006 he opened a restaurant, The Dream Family Cafe in the Jing Hua Cheng shopping mall in Taipei, Taiwan. In 2009 he became a part-time wedding photographer for the Shanghai CHUECH studio. He also owns real estates in Taiwan, Shanghai, and Beijing. Lin also contributed to the society by becoming an ambassador for many youth and government campaigns in Taiwan and other places. On 17 October 2003, Jimmy was presented with the "Outstanding Chinese Award" at the 51st San Francisco Chinese Festival. The award was mainly to commend him for starting a series of fund-raisers for schools, for being an anti-drug ambassador, and for participation in public community events. On 16 April 2011, Jimmy Lin interviewed the F1 racing driver Michael Schumacher for the international magazine GQ (May 2011 issue). Jimmy did his homework before he met with Schumacher and did the entire interview in English. He asked more than 20 questions in different areas: life, racing experiences and charity. Jimmy said, "Schumacher is my most admired F1 racer. Besides his remarkable racing records, I also highly respect his charity works. He donated money to help the refugees rebuild their homes after the 2004 tsunami." Schumacher gave Jimmy a pair of limited edition shoes that he designed and invited him to a private dinner the following day. Personal life Lin dated actress Ruby Lin, his co-star in the 1995 film School Days. At that time he was very popular, having already released several albums in Asia, while Ruby was an unknown, acting in her first project. Their relationship lasted for 2–3 years, and Ruby was the only girlfriend Lin had ever taken home to see his father. In a later talk show together, both parties stated that it was due to the distance and fading of feelings that led to their breakup. In October 2009, Lin announced his engagement to model Kelly Chen. Their son, Kimi Lin, was born on 15 September 2009. Kimi became a household name in China after being featured on the popular 2013 television reality show Where Are We Going, Dad? Star. A wedding ceremony was held on 30 July 2013 in Phuket, Thailand. Recently, for celebrating the quantity of his fans on Sina microblog reached 60,000,000, he announced his wife had been pregnant, and he will have two twin boys. On 5 December 2015, he and his wife welcomed their twin sons Jenson and Kyson. On 22 July 2022, Lin and his six-year-old son Jenson were injured in a car accident but were not in critical condition. Both father and son are currently doing well as they received treatment at a hospital. Discography Not Every Love Song Has Fond Memories (1992) Summer of '92 (1992) Why Am I Always Hurt (1992) Thinking of You (1993) Fiery Heart (1994) Goodbye My Friend (1994) Saying Goodbye to Yesterday (1994) Dream Is Ahead (1995) Expect (1996) Men Are Easily Deceived (1997) I Am Still Myself (1997) Before Dawn Breaks (1998) Scarecrow (1999) Go for a Walk (2000) Best of Jimmy Lin (2004) Jimmy F1ght (2006) My Lucky Star (2007) Black (2010 single with Wallace Chung) Celebrate Youth (2010 The 16th Asian Games youth camp theme song with Zhang Li) You Are the One (Sept 2010 Theme songs of Single Princesses)(Oct 2011 Theme songs of Rainbow Sweetheart) Color (Sept 2010 Theme songs of Single Princesses)(Oct 2011 Theme songs of Rainbow Sweetheart) Flying with You, Flying (Aug 2012 Theme songs of the movie Flying With You) Filmography Awards received 2011 6th Huading Awards - Best Actor in Idol Dramas 2011华鼎励志偶像最佳男演员奖 Racing Records Teams raced for: Renault Tire Racing Team, HongHe Rally Team, 香港代纳10方程式车队, Mitsubishi Lancer ManYu Rally Racing Team, Guangxi Speedone Rally Team Team owned: ESSO Jimmy Racing Team, Jimmy Lin Rally Team Team racing for now: PingTzuo Racing Team Team owns now: PingTzuo Racing Team In 2011, he announced that he'll quit rally racing due to the death of one of his racing buddy and will devote more time to showbiz. 1997 September Super Car Challenge, Ferrari 348, 3rd place 1998 February 555 Taiwan Rally Race March Super Car Challenge Cup, BMW M3, 2nd place August Impreza Challenge Cup November World Rally Championship Australia Hyundai Rally Car, got FIA International Class A 1999 February went to Japan to study racing under a famous Japanese racer June Super Car Challenge, BMW M3, 3rd place August Super Car Challenge, BMW M3, 3rd place 2000 17 May Super Car Challenge, BMW using new M3 race car, 2nd place, broke Taiwan LungTam BMW M3 single lap record July Super Car Challenge, BMW M3, 2nd place, broke Taiwan LungTam BMW M3 single lap record 7 August formed ESSO Jimmy Racing Team and Racing Company, became spokesman for ESSO 28 August ZhuHai International Circuit Renault Spider Challenge, 4th round 1st place, 6th round, 2nd place 4 December Super Car Challenge, broke Taiwan's single lap record in Taiwan LungTam Super Car 2001 11 March Impreza race, group A, first round, 3rd place 1 April Super Car, 1st round, used M3 race car, 1st place 3 June Super Car, 2nd round, used M3 race car, 1st place August China Formula International Race, 1st place August Super Car, 3rd round, used M3 race car, 1st place September China Formula International Race, 1st place October Super Car, 4th round, used M3 race car, 1st place. October China Renault Formula, 5th round, Group A, 1st place. October China Renault Formula, 6th round, Group A, 1st place. 31 December Taiwan Oil year end Challenge, competing with the best 36 races in Taiwan, 4th overall. This established Jimmy's status in Taiwan's racing circle won 9 winner cups: seven 1st place, one 2nd place, one 3rd place. Became Champion of the Year for winning all 4 rounds of the Taiwan Super Car Race. He still holds this record. 2002 10 March China Renault Formula 2 March China Rally Championship, Shanghai representing Radial Tire Rally Racing Team 7 April Taiwan Super Car Race, used BMW M3, 2nd place 4–5 May Asian Formula 16 June China Renault Formula, 7th place 2 June Taiwan Super Car Race, used BMW M3, 1st place 2 July China Renault Formula, 3rd place 4 August Taiwan Super Car Race, used BMW M3 1 October Taiwan Super Car Race, used BMW M3, 2nd place 2003 Contracted to race for Radial Tire Racing Team for 2 years. 20 March Shanghai Rally Race 12 April China Renault Formula Race, Zhuhai, 2nd place 8 June Malaysia PORSCHE GT3 CUP 17 July ChangChun Rally Race, 8th place 19 August China Rally Championship, Beijing 13 September China Rally Championship, Beijing 25 October Porsche Carrera Cup Asia, PORSCHE 911 GT3 CUP, Beijing 12 November Macau Grand Prix, Renault Formula Race, 17th place out of 25 2004 March Shanghai Rally Race, 9th place 30 May Beijing Rally Race, dropped out at 10th place 6 June Shanghai Renault Formula Race, dropped out after collision at 7th place 27 June Asia Renault Formula Race, Shanghai, 6th place out of 30 26 September Asia Renault Formula Race, Shanghai, 10th place out of 30 2005 Contracted to race for Honghe Rally Team, the largest racing team in China, for the reported sum of TW$10 mil March China Rally Championship, Shanghai 9th place April China Rally Championship, Zhejiang 9th place 8 May Asia Renault Formula F2000, Zhuhai 5th place out of 31 August China Rally Championship, Guizhou September China Rally Championship, Yunan, 8th place September Coach for Jackie Chan Charity Race October Held the 1st Jimmy Lin Charity Stars Race at Zhuhai International Circuit November China Rally Championship, Shaoguan, Guangdong, eighth place. December ranked 8th overall in China Rally Championship 2005 2006 3/22/06 Formed Jimmy Racing Team and became his own boss. He signed British racer, Alister McRae, who ranked 3rd in 2003 and 26th in 2006 in the world. The other 2 racers in his team are Jimmy himself and the 7th ranked Chinese racer. Jimmy ranked 8th in China in 2005. McRae was paid US$50,000 per race, 5 races a year. 3/24/2006 Jimmy Lin Racing Team won both team 1st place and racer 1st place in Shanghai Rally Race. June Became Zhuhai Super Car Club Honorary President July China Rally Championship, Guizhou July Jimmy Lin Racing Team 3rd place at China Rally Championship, Guizhou August Celebrity Charity Race, team 1st place, men 1st place September China Rally Championship, Kaiyang, Guizhou, Jimmy Lin Racing Team, 1st place October Ford Celebrity Race, professional group 1st place November China Rally Championship, Longyou, Zhejiang 27 November Jimmy Racing Team won Overall 3rd place in 2006 China Rally Championship. 2007 May Formed WSCC PingTzuo Racing Team with International Supercar Club at Zhuhai International Circuit. Jimmy will represent PingTzuo in the 2007 China Open Formula. May China Open Formula Renault Formula, Zhuhai 15th place 6/15/07 to 6/17/07 Raced for Mitsubishi Lancer Wan Yu Rally Team in the China Rally Championship in Beijing. His team won the race and Mitsubishi won the Sponsor's Cup. Jimmy placed 10th overall among 71 international and 5th among Chinese racers. July Jet Li Celebrity Charity Race, 2nd place 11/12/07 The Mitsubishi Lancer Rally Team won the grand championship of the 2007 China Rally Championship. Jimmy only participated in the Beijing Rally Race in June. He is not ranked this yr because he missed most of the races due to filming and showbiz conflicts but did contribute points to the team for completing the race in Beijing. November World Drifting Championship, Hangzhou, guest of honor 2008 1/27/08 Test drove the new British Radical Race car. 3/15/08 to 3/16/08 Drove a Radical SR3 at the Frestech Pan Delta Super Racing Festival - Spring Race at ZhuHai International Circuit. Round 1: 1st place Round 2: 2nd place 6/21/08 to 6/22/08 Tian Si Light Weight Sports Car Challenge Race - Summer Race at ZhuHai International Circuit. Drove a Radical SR3 and achieved double win. Round 1: 1st place, Time 1:44.978 Round 2: 1st place, Time 17:41.700 On 26 October 2008 he was formally inducted into the China F1 TianRong Powerboat Racing team in Shenzhen, China. He will train in 2009 in order to get his F1 racing license before he can race for the team. 2009 On 1 March 2009 he signed with the Guangxi Speedone Rally Racing Team and will race in 3 rally races in 2009. His 1M yuan Mitsubishi EVO-10 race car was unveiled at the signing ceremony. 13–14 June 2009 China Rally Championship at Naning, Nanking. 12th place in Group N4 (International) out of 87 international racers, 7th place out of all Chinese racers. Earned 1 point for Speedone. 9–10 July 2009 China Rally Championship at Shanghai. 6th place out of all Chinese racers in group N4 (International). Won 6th place cup for Speedone, its first cup. 28–30 August 2009 China Rally Championship at Fugang, Guangzhou. Withdrew from the race after his EVO-9 race car had mechanical problems during the 1st day of the race. 2 November 2009 Race of Champions at The Bird's Nest in Beijing. 2nd place in the Celebrity Race. 15 November 2009 His PingTzuo Racing Team won the championship in the Asian category of the 2009 Asian AFR Championship. 2010 22 April 2010 PingTzuo racer Zhang Shanqi won 3rd place in the 2010 Asian Renault Formula Race at Zhuhai 23 May 2010 PingTzuo racers Zhang Shan Qi & Li Zhi Cong Respectively won Champion in Race 1 & 2 in the AFR Championship! 14 August 2010 AFR International Formula Renault at Shanghai F1 International Circuit. Got 1st place IFC trophy. 5–7 October 2010 PingTzuo won 1st place in the International Le Mans Cup (ILMC) 1000 km Zhuhai FLM division 2011 13 November 2011 PingTzuo won 1st place in the International Le Mans Cup (ILMC) 1000 km Zhuhai FLM division Notes External links 林志颖台北吉米工作室 Jimmy Creatives Studio 林志颖 新浪微博 Jimmy Lin Weibo PingTzuo International Racing Sports Advisory Company Jimmy Lin Profile, Pictures, and Filmography - www.spcnet.tv 1974 births Living people 20th-century Taiwanese male singers 21st-century Taiwanese male singers Male actors from Taipei Taiwanese Buddhists Taiwanese male film actors Taiwanese Mandopop singers Taiwanese male television actors Musicians from Taipei Businesspeople from Taipei Sportspeople from Taipei Taiwanese idols
```objective-c /* packet-tns.h * * $Id: packet-tns.h 24034 2008-01-08 22:54:51Z stig $ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * * * This program is free software; you can redistribute it and/or * as published by the Free Software Foundation; either version 2 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef PACKET_TNS_H #define PACKET_TNS_H /* Packet Types */ #define TNS_TYPE_CONNECT 1 #define TNS_TYPE_ACCEPT 2 #define TNS_TYPE_ACK 3 #define TNS_TYPE_REFUSE 4 #define TNS_TYPE_REDIRECT 5 #define TNS_TYPE_DATA 6 #define TNS_TYPE_NULL 7 #define TNS_TYPE_ABORT 9 #define TNS_TYPE_RESEND 11 #define TNS_TYPE_MARKER 12 #define TNS_TYPE_ATTENTION 13 #define TNS_TYPE_CONTROL 14 #define TNS_TYPE_MAX 19 #endif ```
Sylvester Murley Sturgeon (12 August 1886 — 1 May 1930) was an English first-class cricketer of Scottish-descent. Sturgeon was born at Stoke Newington in August 1886. A club cricketer for Carlton, he made two appearances in first-class cricket for Scotland against Surrey at The Oval on Scotland's 1922 tour of England, and against Wales at Perth in 1923. Playing as a wicket-keeper in the Scottish side, the took five catches and made a single stumping. Sturgeon later became commercial traveller based in Redland, Bristol. He was summoned before Nailsworth Police Court in October 1929, having been found drunk while in charge of a motor vehicle, having reversed his car through a shop window; he was subsequently fined £3 plus £2 costs, and banned from driving for 12 months. Sturgeon died the following year, in May 1930 at the Boston Hotel in Chester. References External links 1886 births 1930 deaths English people of Scottish descent People from Stoke Newington Sportspeople from the London Borough of Hackney English cricketers Scotland cricketers
G1/S-specific cyclin-E1 is a protein that in humans is encoded by the CCNE1 gene. Function The protein encoded by this gene belongs to the highly conserved cyclin family, whose members are characterized by a dramatic periodicity in protein abundance through the cell cycle. Cyclins function as regulators of CDK. Different cyclins exhibit distinct expression and degradation patterns which contribute to the temporal coordination of each mitotic event. This cyclin forms a complex with and functions as a regulatory subunit of CDK2, whose activity is required for cell cycle G1/S transition. This protein accumulates at the G1-S phase boundary and is degraded as cells progress through S phase. Overexpression of this gene has been observed in many tumors, which results in chromosome instability, and thus may contribute to tumorigenesis. This protein was found to associate with, and be involved in, the phosphorylation of NPAT protein (nuclear protein mapped to the ATM locus), which participates in cell-cycle regulated histone gene expression and plays a critical role in promoting cell-cycle progression in the absence of pRB. Two alternatively spliced transcript variants of this gene, which encode distinct isoforms, have been described. Two additional splice variants were reported but detailed nucleotide sequence information is not yet available. Interactions Cyclin E1 has been shown to interact with: CDC25A, CDKN1B, CUL3 Cdk1, Cyclin-dependent kinase 2, HERC5, P21, Retinoblastoma-like protein 2, and SMARCA4. See also Cyclin E References Further reading Cell cycle regulators
Made in Italy is a 2020 comedy-drama film written and directed by James D'Arcy (in his feature directorial debut). It stars Liam Neeson, his son, Micheál Richardson, Valeria Bilello, and Lindsay Duncan, and follows an artist who must restore a villa with his estranged son after his wife dies in a car crash. The film was released in the United States in theatres and through video on demand platforms on 7 August 2020 by IFC Films. Plot Jack Foster is getting divorced from his wife Ruth. Her family is selling the art gallery where he works as a manager, which devastates him. He decides to buy the gallery by selling the old Italian home he owns with his estranged father Robert, a famous artist. The house belonged to Jack's mother and Robert's wife, an Italian woman who died in a car accident when he was small. Jack takes Robert with him to Italy and tells him he needs the money to buy the gallery from Ruth's parents. When they arrive, they find it is completely rundown. Kate, an estate agent, comes to survey the home. She tells them the house is in a bad condition, but if they fix the house, it could be worth more. Jack tries to clean but then decides to sell the house as is. Jack meets Natalia at her restaurant. Robert looks at photos of his deceased wife and the whole house reminds him of her. He decides to help Jack restore the home. They hire locals to help renovate it. Robert and Jack befriend some of the locals including Natalia and invite them to a party at the house. She tells Jack that she has an eight-year-old daughter and is divorced. As her husband lied about her, she only gets partial custody. A buyer comes to look at the house but is not satisfied. Kate tells Robert that the house needs more work, so he asks Natalia to help. After Natalia and her daughter help with the renovations. Robert tells her that after his wife died, he sent Jack away to boarding school to keep him away from all the reminders of his mother. Ever since she died, he could not drive or paint. Kate comes over and sees the house almost fully done. A couple arrives to look at the house, and decide they want to buy it. Meanwhile, Jack tells Natalia about his impending divorce and how Ruth has taken everything from him, which she can relate to. He tells her how he could not paint like his father but thought he could make the gallery a success, but his father never supported him. Later, he enters his father's workspace and sees painting after painting of his mother, and of himself. When Robert finds him, Jack wants to know why he locked away all his memories and his childhood. Robert says he thought it was the fastest way to get him out of pain, and Jack screams at him that he never let him in and never talked to him. He begins wrecking the space, and Robert holds him as they collapse onto the floor. Later, they talk about her for the first time, sharing memories of her, and Robert begins crying, recounting what happened the day she died. He was so wrapped up in painting that he let a young Jack walk to school. He blames himself for her death as he kept on painting. Jack hugs and comforts him, and tells him about his divorce from Ruth. The next day, at the house, the couple who decide to buy the house disrespect it and in response Robert tells them that he will not sell the house to them, which angers Jack. Robert admits he cannot give the house up and Jack accuses him of never having any intention to sell, and returns to England. Robert comes to see Jack, telling him he sold his London home and has enough to buy Jack out of his share of the Tuscany villa. He urges him to buy the gallery back. Jack asks him why he never came, and Robert says Ruth told him Jack did not want him to, that it was too much pressure. Robert is going to live at the Italy home and host painting holidays. Jack goes to the gallery, and when Ruth says she will not accept any offer for the gallery, he instead presents her with the signed divorce papers. In Italy, Robert leads a painting class where Kate is a student. Jack arrives and tells Robert it was never about the money, and all he wants is his father. He then meets with Natalia, who wants to know why he did not say goodbye. He tells her that he saw her with Marzio, and she explains as he is the father of her child she has to maintain some relationship with him. They make up and decide to start over. Cast Liam Neeson as Robert Foster Micheál Richardson as Jack Foster Valeria Bilello as Natalia Lindsay Duncan as Kate Marco Quaglia as Luigi Gian Marco Tavani as Marzio Helena Antonio as Raffaella Yolanda Kettle as Ruth Julian Ovenden as Gordon Chelsea Fitzgerald as Amy Flaminia Cinque as Deli Owner Production In October 2018, it was announced Liam Neeson and Micheál Richardson had joined the cast of the film, with James D'Arcy directing from a screenplay he wrote. Pippa Cross, Sam Tipper-Hale, and Nicola Serra will serve as producers on the film under their CrossDay Productions and Indiana Productions banners, respectively. HanWay Films and Ingenious Media will also produce the film. In May 2019, Lindsay Duncan and Valeria Bilello joined the cast of the film. Principal photography began in April 2019. The house in the film was Villa Fontanelle, a private villa near Montalcino, Italy. Parts of the interior were "deconstructed" (made to appear old and shabby). Some other scenes were filmed in the village of Monticchiello; the scenes in a restaurant were filmed there, at Ristorante Il Bronzino. The filming in Italy was completed on 19 June 2019. Release In February 2020, IFC Films acquired US distribution rights to the film. It was released on video on demand as well as in limited theaters in the United States on 7 August 2020. Reception Box office and VOD In its debut weekend, Made in Italy grossed $34,400 from 111 theatres, and was also the second-most rented film on Apple TV and the iTunes Store. In its second weekend the film finished third on Apple TV's chart and fourth on Spectrum's. Critical response On Rotten Tomatoes the film holds an approval rating of based on reviews, with an average rating of . The website's critics consensus reads, "Strong performances and a lovely setting are half the battle for Made in Italy -- unfortunately, the other half is lost by a disappointingly slight story." On Metacritic, the film has a weighted average score of 44 out of 100, based on 12 critics, indicating "mixed or average reviews". Most critics' gripes centered around the story and screenplay; Ryan Lattanzio of IndieWire wrote that the "treacly slog" of the script betrayed the "storied talent" of Neeson and the "promising gifts" of Richardson, and Peter Travers of Rolling Stone referred to it as a "mawkish tale" of grief and healing. References External links 2020 films 2020 comedy-drama films 2020s British films 2020s English-language films 2020s Italian films British comedy-drama films English-language Italian films Films about divorce Films about father–son relationships Films about fictional painters Films set in London Films set in Tuscany Films shot in Tuscany Italian comedy-drama films
Music from the Motion Picture The Dictator is the soundtrack to Larry Charles's 2012 film The Dictator. It was released on May 8, 2012 via (the fictional) Aladeen Records. The majority of the songs are sung in Wadiyan despite it being a fictional language; however, it is closely associated with the German, Hungarian, and Arabic languages. Primarily produced by Erran Baron Cohen, Peter Amato, George Drakoulias and Robert Berry, the album features contributions from film star Admiral General Aladeen, along with Jalal el Hamdaoui, Ali Hassan Kuban, Khaled, Omar Fadel and Souad Massi among others. Track listing Charts References 2012 soundtrack albums Comedy film soundtracks Albums produced by George Drakoulias
Timothy is a masculine name. It comes from the Greek name (Timόtheos) meaning "honouring God", "in God's honour", or "honoured by God". Timothy (and its variations) is a common name in several countries. People Given name Timothy (given name), including a list of people with the name Tim (given name) Timmy Timo Timotheus Timothée Timoteo Surname Bankole Timothy (1923–1994), Sierra Leonean journalist Christopher Timothy (born 1940), Welsh actor Miriam Timothy (1879–1950), British harpist Nick Timothy (born 1980), British political adviser Mononym Saint Timothy, a companion and co-worker of Paul the Apostle Timothy I (Nestorian patriarch) Education Timothy Christian School (Illinois), a school system in Elmhurst, Illinois Timothy Christian School (New Jersey), a school in Piscataway, New Jersey Arts and entertainment "Timothy" (song), a 1970 song by The Buoys Timothy Goes to School, a Canadian-Chinese children's animated series Timothy (TV film), a 2014 Australian television comedy Timothy Turtle, a 1946 picture book by Al Graham The Adventures of Timothy Pilgrim, a 1975 Canadian children's television program Places Timothy, Tennessee, an unincorporated town in Overton County, Tennessee Chief Timothy State Park, a former state park in Asotin County, Washington Other uses Timothy-grass, a type of grass Timothy (tortoise), a tortoise in the UK First Timothy and Second Timothy, Pauline epistles from the New Testament of the Christian Bible. See also Murder of Timothy Brenton, an anti-police crime in Seattle perpetrated by Christopher Monfort Tim (disambiguation) Timoti (disambiguation) Timati (born 1983), a Russian recording artist and entrepreneur Tymoshenko, a Ukrainian surname derived from the name Timothy Acts of Timothy, an Apocryphal work regarding Saint Timothy
Richard Fort may refer to: Richard Fort (Liberal politician, born 1822) (1822–1868), English politician, MP for Clitheroe, 1865–1868 Richard Fort (Liberal politician, born 1856) (1856–1918), English politician, MP for Clitheroe, 1880–1885 Richard Fort (Conservative politician) (1907–1959), English politician, MP for Clitheroe,1950–1959
Wargame: European Escalation is a real-time tactics video game developed by Eugen Systems and published by Focus Home Interactive, released on February 23, 2012. It is set in Europe during the Cold War, most specifically in the years 1975–85 with alternate history scenarios portraying open war between NATO and the Warsaw Pact. Gameplay Wargames playable factions are the Warsaw Pact, which is subdivided into the Soviet Union, Communist Poland, East Germany, and Czechoslovakia; and NATO, which is subdivided into the United States of America, United Kingdom, France, and West Germany. Players can choose various units from the four subfactions of the side they are playing on, unlocking new units or improved variants as they progress. In all, there are 361 historical units recreated in Wargame. Each country has its own arsenal of units, reflecting their military doctrine. Solo mode is divided into four individual campaigns called "Operations", two for each faction. Each are unrelated and chronicle scenarios based on actual events that came close to triggering open war between the two NATO and Warsaw Pact forces. Reception Wargame: European Escalation, has received generally positive reviews upon release, with a Metacritic score of 81/100. Sequels On August 10, 2012, a sequel, Wargame: AirLand Battle, was announced with a release scheduled in the spring of 2013. Like its predecessor, it is set in the Cold War period of 1975–85 but focus the NATO–Warsaw Pact war in Northern Europe, notably in Scandinavia, along with the addition of the player's own air force. Wargame: Red Dragon was announced in 2013 and released in April 2014. Set in the Asian theater of war, it includes units from the 1990s and introduces naval forces. See also List of PC exclusive titles Wargame: AirLand Battle Wargame: Red Dragon Victory! The Battle for Europe References External links 2012 video games Alternate history video games Cold War video games Eugen Systems games Focus Entertainment games Linux games MacOS games Multiplayer and single-player video games Real-time strategy video games Video games developed in France Video games set in Germany Windows games World War III video games
```c /* * * 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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. * */ #include <drm/drm_fourcc.h> #include <drm/drm_modeset_helper.h> #include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_vblank.h> #include "amdgpu.h" #include "amdgpu_pm.h" #include "amdgpu_i2c.h" #include "vid.h" #include "atom.h" #include "amdgpu_atombios.h" #include "atombios_crtc.h" #include "atombios_encoders.h" #include "amdgpu_pll.h" #include "amdgpu_connectors.h" #include "amdgpu_display.h" #include "dce_v11_0.h" #include "dce/dce_11_0_d.h" #include "dce/dce_11_0_sh_mask.h" #include "dce/dce_11_0_enum.h" #include "oss/oss_3_0_d.h" #include "oss/oss_3_0_sh_mask.h" #include "gmc/gmc_8_1_d.h" #include "gmc/gmc_8_1_sh_mask.h" #include "ivsrcid/ivsrcid_vislands30.h" static void dce_v11_0_set_display_funcs(struct amdgpu_device *adev); static void dce_v11_0_set_irq_funcs(struct amdgpu_device *adev); static const u32 crtc_offsets[] = { CRTC0_REGISTER_OFFSET, CRTC1_REGISTER_OFFSET, CRTC2_REGISTER_OFFSET, CRTC3_REGISTER_OFFSET, CRTC4_REGISTER_OFFSET, CRTC5_REGISTER_OFFSET, CRTC6_REGISTER_OFFSET }; static const u32 hpd_offsets[] = { HPD0_REGISTER_OFFSET, HPD1_REGISTER_OFFSET, HPD2_REGISTER_OFFSET, HPD3_REGISTER_OFFSET, HPD4_REGISTER_OFFSET, HPD5_REGISTER_OFFSET }; static const uint32_t dig_offsets[] = { DIG0_REGISTER_OFFSET, DIG1_REGISTER_OFFSET, DIG2_REGISTER_OFFSET, DIG3_REGISTER_OFFSET, DIG4_REGISTER_OFFSET, DIG5_REGISTER_OFFSET, DIG6_REGISTER_OFFSET, DIG7_REGISTER_OFFSET, DIG8_REGISTER_OFFSET }; static const struct { uint32_t reg; uint32_t vblank; uint32_t vline; uint32_t hpd; } interrupt_status_offsets[] = { { .reg = mmDISP_INTERRUPT_STATUS, .vblank = DISP_INTERRUPT_STATUS__LB_D1_VBLANK_INTERRUPT_MASK, .vline = DISP_INTERRUPT_STATUS__LB_D1_VLINE_INTERRUPT_MASK, .hpd = DISP_INTERRUPT_STATUS__DC_HPD1_INTERRUPT_MASK }, { .reg = mmDISP_INTERRUPT_STATUS_CONTINUE, .vblank = DISP_INTERRUPT_STATUS_CONTINUE__LB_D2_VBLANK_INTERRUPT_MASK, .vline = DISP_INTERRUPT_STATUS_CONTINUE__LB_D2_VLINE_INTERRUPT_MASK, .hpd = DISP_INTERRUPT_STATUS_CONTINUE__DC_HPD2_INTERRUPT_MASK }, { .reg = mmDISP_INTERRUPT_STATUS_CONTINUE2, .vblank = DISP_INTERRUPT_STATUS_CONTINUE2__LB_D3_VBLANK_INTERRUPT_MASK, .vline = DISP_INTERRUPT_STATUS_CONTINUE2__LB_D3_VLINE_INTERRUPT_MASK, .hpd = DISP_INTERRUPT_STATUS_CONTINUE2__DC_HPD3_INTERRUPT_MASK }, { .reg = mmDISP_INTERRUPT_STATUS_CONTINUE3, .vblank = DISP_INTERRUPT_STATUS_CONTINUE3__LB_D4_VBLANK_INTERRUPT_MASK, .vline = DISP_INTERRUPT_STATUS_CONTINUE3__LB_D4_VLINE_INTERRUPT_MASK, .hpd = DISP_INTERRUPT_STATUS_CONTINUE3__DC_HPD4_INTERRUPT_MASK }, { .reg = mmDISP_INTERRUPT_STATUS_CONTINUE4, .vblank = DISP_INTERRUPT_STATUS_CONTINUE4__LB_D5_VBLANK_INTERRUPT_MASK, .vline = DISP_INTERRUPT_STATUS_CONTINUE4__LB_D5_VLINE_INTERRUPT_MASK, .hpd = DISP_INTERRUPT_STATUS_CONTINUE4__DC_HPD5_INTERRUPT_MASK }, { .reg = mmDISP_INTERRUPT_STATUS_CONTINUE5, .vblank = DISP_INTERRUPT_STATUS_CONTINUE5__LB_D6_VBLANK_INTERRUPT_MASK, .vline = DISP_INTERRUPT_STATUS_CONTINUE5__LB_D6_VLINE_INTERRUPT_MASK, .hpd = DISP_INTERRUPT_STATUS_CONTINUE5__DC_HPD6_INTERRUPT_MASK } }; static const u32 cz_golden_settings_a11[] = { mmCRTC_DOUBLE_BUFFER_CONTROL, 0x00010101, 0x00010000, mmFBC_MISC, 0x1f311fff, 0x14300000, }; static const u32 cz_mgcg_cgcg_init[] = { mmXDMA_CLOCK_GATING_CNTL, 0xffffffff, 0x00000100, mmXDMA_MEM_POWER_CNTL, 0x00000101, 0x00000000, }; static const u32 stoney_golden_settings_a11[] = { mmCRTC_DOUBLE_BUFFER_CONTROL, 0x00010101, 0x00010000, mmFBC_MISC, 0x1f311fff, 0x14302000, }; static const u32 polaris11_golden_settings_a11[] = { mmDCI_CLK_CNTL, 0x00000080, 0x00000000, mmFBC_DEBUG_COMP, 0x000000f0, 0x00000070, mmFBC_DEBUG1, 0xffffffff, 0x00000008, mmFBC_MISC, 0x9f313fff, 0x14302008, mmHDMI_CONTROL, 0x313f031f, 0x00000011, }; static const u32 polaris10_golden_settings_a11[] = { mmDCI_CLK_CNTL, 0x00000080, 0x00000000, mmFBC_DEBUG_COMP, 0x000000f0, 0x00000070, mmFBC_MISC, 0x9f313fff, 0x14302008, mmHDMI_CONTROL, 0x313f031f, 0x00000011, }; static void dce_v11_0_init_golden_registers(struct amdgpu_device *adev) { switch (adev->asic_type) { case CHIP_CARRIZO: amdgpu_device_program_register_sequence(adev, cz_mgcg_cgcg_init, ARRAY_SIZE(cz_mgcg_cgcg_init)); amdgpu_device_program_register_sequence(adev, cz_golden_settings_a11, ARRAY_SIZE(cz_golden_settings_a11)); break; case CHIP_STONEY: amdgpu_device_program_register_sequence(adev, stoney_golden_settings_a11, ARRAY_SIZE(stoney_golden_settings_a11)); break; case CHIP_POLARIS11: case CHIP_POLARIS12: amdgpu_device_program_register_sequence(adev, polaris11_golden_settings_a11, ARRAY_SIZE(polaris11_golden_settings_a11)); break; case CHIP_POLARIS10: case CHIP_VEGAM: amdgpu_device_program_register_sequence(adev, polaris10_golden_settings_a11, ARRAY_SIZE(polaris10_golden_settings_a11)); break; default: break; } } static u32 dce_v11_0_audio_endpt_rreg(struct amdgpu_device *adev, u32 block_offset, u32 reg) { unsigned long flags; u32 r; spin_lock_irqsave(&adev->audio_endpt_idx_lock, flags); WREG32(mmAZALIA_F0_CODEC_ENDPOINT_INDEX + block_offset, reg); r = RREG32(mmAZALIA_F0_CODEC_ENDPOINT_DATA + block_offset); spin_unlock_irqrestore(&adev->audio_endpt_idx_lock, flags); return r; } static void dce_v11_0_audio_endpt_wreg(struct amdgpu_device *adev, u32 block_offset, u32 reg, u32 v) { unsigned long flags; spin_lock_irqsave(&adev->audio_endpt_idx_lock, flags); WREG32(mmAZALIA_F0_CODEC_ENDPOINT_INDEX + block_offset, reg); WREG32(mmAZALIA_F0_CODEC_ENDPOINT_DATA + block_offset, v); spin_unlock_irqrestore(&adev->audio_endpt_idx_lock, flags); } static u32 dce_v11_0_vblank_get_counter(struct amdgpu_device *adev, int crtc) { if (crtc < 0 || crtc >= adev->mode_info.num_crtc) return 0; else return RREG32(mmCRTC_STATUS_FRAME_COUNT + crtc_offsets[crtc]); } static void dce_v11_0_pageflip_interrupt_init(struct amdgpu_device *adev) { unsigned i; /* Enable pflip interrupts */ for (i = 0; i < adev->mode_info.num_crtc; i++) amdgpu_irq_get(adev, &adev->pageflip_irq, i); } static void dce_v11_0_pageflip_interrupt_fini(struct amdgpu_device *adev) { unsigned i; /* Disable pflip interrupts */ for (i = 0; i < adev->mode_info.num_crtc; i++) amdgpu_irq_put(adev, &adev->pageflip_irq, i); } /** * dce_v11_0_page_flip - pageflip callback. * * @adev: amdgpu_device pointer * @crtc_id: crtc to cleanup pageflip on * @crtc_base: new address of the crtc (GPU MC address) * @async: asynchronous flip * * Triggers the actual pageflip by updating the primary * surface base address. */ static void dce_v11_0_page_flip(struct amdgpu_device *adev, int crtc_id, u64 crtc_base, bool async) { struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; u32 tmp; /* flip immediate for async, default is vsync */ tmp = RREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, GRPH_FLIP_CONTROL, GRPH_SURFACE_UPDATE_IMMEDIATE_EN, async ? 1 : 0); WREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset, tmp); /* update pitch */ WREG32(mmGRPH_PITCH + amdgpu_crtc->crtc_offset, fb->pitches[0] / fb->format->cpp[0]); /* update the scanout addresses */ WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, upper_32_bits(crtc_base)); /* writing to the low address triggers the update */ WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, lower_32_bits(crtc_base)); /* post the write */ RREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset); } static int dce_v11_0_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc, u32 *vbl, u32 *position) { if ((crtc < 0) || (crtc >= adev->mode_info.num_crtc)) return -EINVAL; *vbl = RREG32(mmCRTC_V_BLANK_START_END + crtc_offsets[crtc]); *position = RREG32(mmCRTC_STATUS_POSITION + crtc_offsets[crtc]); return 0; } /** * dce_v11_0_hpd_sense - hpd sense callback. * * @adev: amdgpu_device pointer * @hpd: hpd (hotplug detect) pin * * Checks if a digital monitor is connected (evergreen+). * Returns true if connected, false if not connected. */ static bool dce_v11_0_hpd_sense(struct amdgpu_device *adev, enum amdgpu_hpd_id hpd) { bool connected = false; if (hpd >= adev->mode_info.num_hpd) return connected; if (RREG32(mmDC_HPD_INT_STATUS + hpd_offsets[hpd]) & DC_HPD_INT_STATUS__DC_HPD_SENSE_MASK) connected = true; return connected; } /** * dce_v11_0_hpd_set_polarity - hpd set polarity callback. * * @adev: amdgpu_device pointer * @hpd: hpd (hotplug detect) pin * * Set the polarity of the hpd pin (evergreen+). */ static void dce_v11_0_hpd_set_polarity(struct amdgpu_device *adev, enum amdgpu_hpd_id hpd) { u32 tmp; bool connected = dce_v11_0_hpd_sense(adev, hpd); if (hpd >= adev->mode_info.num_hpd) return; tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[hpd]); if (connected) tmp = REG_SET_FIELD(tmp, DC_HPD_INT_CONTROL, DC_HPD_INT_POLARITY, 0); else tmp = REG_SET_FIELD(tmp, DC_HPD_INT_CONTROL, DC_HPD_INT_POLARITY, 1); WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[hpd], tmp); } /** * dce_v11_0_hpd_init - hpd setup callback. * * @adev: amdgpu_device pointer * * Setup the hpd pins used by the card (evergreen+). * Enable the pin, set the polarity, and enable the hpd interrupts. */ static void dce_v11_0_hpd_init(struct amdgpu_device *adev) { struct drm_device *dev = adev_to_drm(adev); struct drm_connector *connector; struct drm_connector_list_iter iter; u32 tmp; drm_connector_list_iter_begin(dev, &iter); drm_for_each_connector_iter(connector, &iter) { struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) continue; if (connector->connector_type == DRM_MODE_CONNECTOR_eDP || connector->connector_type == DRM_MODE_CONNECTOR_LVDS) { /* don't try to enable hpd on eDP or LVDS avoid breaking the * aux dp channel on imac and help (but not completely fix) * path_to_url * also avoid interrupt storms during dpms. */ tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); tmp = REG_SET_FIELD(tmp, DC_HPD_INT_CONTROL, DC_HPD_INT_EN, 0); WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); continue; } tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); tmp = REG_SET_FIELD(tmp, DC_HPD_CONTROL, DC_HPD_EN, 1); WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); tmp = RREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd]); tmp = REG_SET_FIELD(tmp, DC_HPD_TOGGLE_FILT_CNTL, DC_HPD_CONNECT_INT_DELAY, AMDGPU_HPD_CONNECT_INT_DELAY_IN_MS); tmp = REG_SET_FIELD(tmp, DC_HPD_TOGGLE_FILT_CNTL, DC_HPD_DISCONNECT_INT_DELAY, AMDGPU_HPD_DISCONNECT_INT_DELAY_IN_MS); WREG32(mmDC_HPD_TOGGLE_FILT_CNTL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); dce_v11_0_hpd_set_polarity(adev, amdgpu_connector->hpd.hpd); amdgpu_irq_get(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); } drm_connector_list_iter_end(&iter); } /** * dce_v11_0_hpd_fini - hpd tear down callback. * * @adev: amdgpu_device pointer * * Tear down the hpd pins used by the card (evergreen+). * Disable the hpd interrupts. */ static void dce_v11_0_hpd_fini(struct amdgpu_device *adev) { struct drm_device *dev = adev_to_drm(adev); struct drm_connector *connector; struct drm_connector_list_iter iter; u32 tmp; drm_connector_list_iter_begin(dev, &iter); drm_for_each_connector_iter(connector, &iter) { struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); if (amdgpu_connector->hpd.hpd >= adev->mode_info.num_hpd) continue; tmp = RREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd]); tmp = REG_SET_FIELD(tmp, DC_HPD_CONTROL, DC_HPD_EN, 0); WREG32(mmDC_HPD_CONTROL + hpd_offsets[amdgpu_connector->hpd.hpd], tmp); amdgpu_irq_put(adev, &adev->hpd_irq, amdgpu_connector->hpd.hpd); } drm_connector_list_iter_end(&iter); } static u32 dce_v11_0_hpd_get_gpio_reg(struct amdgpu_device *adev) { return mmDC_GPIO_HPD_A; } static bool dce_v11_0_is_display_hung(struct amdgpu_device *adev) { u32 crtc_hung = 0; u32 crtc_status[6]; u32 i, j, tmp; for (i = 0; i < adev->mode_info.num_crtc; i++) { tmp = RREG32(mmCRTC_CONTROL + crtc_offsets[i]); if (REG_GET_FIELD(tmp, CRTC_CONTROL, CRTC_MASTER_EN)) { crtc_status[i] = RREG32(mmCRTC_STATUS_HV_COUNT + crtc_offsets[i]); crtc_hung |= (1 << i); } } for (j = 0; j < 10; j++) { for (i = 0; i < adev->mode_info.num_crtc; i++) { if (crtc_hung & (1 << i)) { tmp = RREG32(mmCRTC_STATUS_HV_COUNT + crtc_offsets[i]); if (tmp != crtc_status[i]) crtc_hung &= ~(1 << i); } } if (crtc_hung == 0) return false; udelay(100); } return true; } static void dce_v11_0_set_vga_render_state(struct amdgpu_device *adev, bool render) { u32 tmp; /* Lockout access through VGA aperture*/ tmp = RREG32(mmVGA_HDP_CONTROL); if (render) tmp = REG_SET_FIELD(tmp, VGA_HDP_CONTROL, VGA_MEMORY_DISABLE, 0); else tmp = REG_SET_FIELD(tmp, VGA_HDP_CONTROL, VGA_MEMORY_DISABLE, 1); WREG32(mmVGA_HDP_CONTROL, tmp); /* disable VGA render */ tmp = RREG32(mmVGA_RENDER_CONTROL); if (render) tmp = REG_SET_FIELD(tmp, VGA_RENDER_CONTROL, VGA_VSTATUS_CNTL, 1); else tmp = REG_SET_FIELD(tmp, VGA_RENDER_CONTROL, VGA_VSTATUS_CNTL, 0); WREG32(mmVGA_RENDER_CONTROL, tmp); } static int dce_v11_0_get_num_crtc (struct amdgpu_device *adev) { int num_crtc = 0; switch (adev->asic_type) { case CHIP_CARRIZO: num_crtc = 3; break; case CHIP_STONEY: num_crtc = 2; break; case CHIP_POLARIS10: case CHIP_VEGAM: num_crtc = 6; break; case CHIP_POLARIS11: case CHIP_POLARIS12: num_crtc = 5; break; default: num_crtc = 0; } return num_crtc; } void dce_v11_0_disable_dce(struct amdgpu_device *adev) { /*Disable VGA render and enabled crtc, if has DCE engine*/ if (amdgpu_atombios_has_dce_engine_info(adev)) { u32 tmp; int crtc_enabled, i; dce_v11_0_set_vga_render_state(adev, false); /*Disable crtc*/ for (i = 0; i < dce_v11_0_get_num_crtc(adev); i++) { crtc_enabled = REG_GET_FIELD(RREG32(mmCRTC_CONTROL + crtc_offsets[i]), CRTC_CONTROL, CRTC_MASTER_EN); if (crtc_enabled) { WREG32(mmCRTC_UPDATE_LOCK + crtc_offsets[i], 1); tmp = RREG32(mmCRTC_CONTROL + crtc_offsets[i]); tmp = REG_SET_FIELD(tmp, CRTC_CONTROL, CRTC_MASTER_EN, 0); WREG32(mmCRTC_CONTROL + crtc_offsets[i], tmp); WREG32(mmCRTC_UPDATE_LOCK + crtc_offsets[i], 0); } } } } static void dce_v11_0_program_fmt(struct drm_encoder *encoder) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); int bpc = 0; u32 tmp = 0; enum amdgpu_connector_dither dither = AMDGPU_FMT_DITHER_DISABLE; if (connector) { struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); bpc = amdgpu_connector_get_monitor_bpc(connector); dither = amdgpu_connector->dither; } /* LVDS/eDP FMT is set up by atom */ if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) return; /* not needed for analog */ if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) return; if (bpc == 0) return; switch (bpc) { case 6: if (dither == AMDGPU_FMT_DITHER_ENABLE) { /* XXX sort out optimal dither settings */ tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_FRAME_RANDOM_ENABLE, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_HIGHPASS_RANDOM_ENABLE, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_SPATIAL_DITHER_EN, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_SPATIAL_DITHER_DEPTH, 0); } else { tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_TRUNCATE_EN, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_TRUNCATE_DEPTH, 0); } break; case 8: if (dither == AMDGPU_FMT_DITHER_ENABLE) { /* XXX sort out optimal dither settings */ tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_FRAME_RANDOM_ENABLE, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_HIGHPASS_RANDOM_ENABLE, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_RGB_RANDOM_ENABLE, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_SPATIAL_DITHER_EN, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_SPATIAL_DITHER_DEPTH, 1); } else { tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_TRUNCATE_EN, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_TRUNCATE_DEPTH, 1); } break; case 10: if (dither == AMDGPU_FMT_DITHER_ENABLE) { /* XXX sort out optimal dither settings */ tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_FRAME_RANDOM_ENABLE, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_HIGHPASS_RANDOM_ENABLE, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_RGB_RANDOM_ENABLE, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_SPATIAL_DITHER_EN, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_SPATIAL_DITHER_DEPTH, 2); } else { tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_TRUNCATE_EN, 1); tmp = REG_SET_FIELD(tmp, FMT_BIT_DEPTH_CONTROL, FMT_TRUNCATE_DEPTH, 2); } break; default: /* not needed */ break; } WREG32(mmFMT_BIT_DEPTH_CONTROL + amdgpu_crtc->crtc_offset, tmp); } /* display watermark setup */ /** * dce_v11_0_line_buffer_adjust - Set up the line buffer * * @adev: amdgpu_device pointer * @amdgpu_crtc: the selected display controller * @mode: the current display mode on the selected display * controller * * Setup up the line buffer allocation for * the selected display controller (CIK). * Returns the line buffer size in pixels. */ static u32 dce_v11_0_line_buffer_adjust(struct amdgpu_device *adev, struct amdgpu_crtc *amdgpu_crtc, struct drm_display_mode *mode) { u32 tmp, buffer_alloc, i, mem_cfg; u32 pipe_offset = amdgpu_crtc->crtc_id; /* * Line Buffer Setup * There are 6 line buffers, one for each display controllers. * There are 3 partitions per LB. Select the number of partitions * to enable based on the display width. For display widths larger * than 4096, you need use to use 2 display controllers and combine * them using the stereo blender. */ if (amdgpu_crtc->base.enabled && mode) { if (mode->crtc_hdisplay < 1920) { mem_cfg = 1; buffer_alloc = 2; } else if (mode->crtc_hdisplay < 2560) { mem_cfg = 2; buffer_alloc = 2; } else if (mode->crtc_hdisplay < 4096) { mem_cfg = 0; buffer_alloc = (adev->flags & AMD_IS_APU) ? 2 : 4; } else { DRM_DEBUG_KMS("Mode too big for LB!\n"); mem_cfg = 0; buffer_alloc = (adev->flags & AMD_IS_APU) ? 2 : 4; } } else { mem_cfg = 1; buffer_alloc = 0; } tmp = RREG32(mmLB_MEMORY_CTRL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, LB_MEMORY_CTRL, LB_MEMORY_CONFIG, mem_cfg); WREG32(mmLB_MEMORY_CTRL + amdgpu_crtc->crtc_offset, tmp); tmp = RREG32(mmPIPE0_DMIF_BUFFER_CONTROL + pipe_offset); tmp = REG_SET_FIELD(tmp, PIPE0_DMIF_BUFFER_CONTROL, DMIF_BUFFERS_ALLOCATED, buffer_alloc); WREG32(mmPIPE0_DMIF_BUFFER_CONTROL + pipe_offset, tmp); for (i = 0; i < adev->usec_timeout; i++) { tmp = RREG32(mmPIPE0_DMIF_BUFFER_CONTROL + pipe_offset); if (REG_GET_FIELD(tmp, PIPE0_DMIF_BUFFER_CONTROL, DMIF_BUFFERS_ALLOCATION_COMPLETED)) break; udelay(1); } if (amdgpu_crtc->base.enabled && mode) { switch (mem_cfg) { case 0: default: return 4096 * 2; case 1: return 1920 * 2; case 2: return 2560 * 2; } } /* controller not enabled, so no lb used */ return 0; } /** * cik_get_number_of_dram_channels - get the number of dram channels * * @adev: amdgpu_device pointer * * Look up the number of video ram channels (CIK). * Used for display watermark bandwidth calculations * Returns the number of dram channels */ static u32 cik_get_number_of_dram_channels(struct amdgpu_device *adev) { u32 tmp = RREG32(mmMC_SHARED_CHMAP); switch (REG_GET_FIELD(tmp, MC_SHARED_CHMAP, NOOFCHAN)) { case 0: default: return 1; case 1: return 2; case 2: return 4; case 3: return 8; case 4: return 3; case 5: return 6; case 6: return 10; case 7: return 12; case 8: return 16; } } struct dce10_wm_params { u32 dram_channels; /* number of dram channels */ u32 yclk; /* bandwidth per dram data pin in kHz */ u32 sclk; /* engine clock in kHz */ u32 disp_clk; /* display clock in kHz */ u32 src_width; /* viewport width */ u32 active_time; /* active display time in ns */ u32 blank_time; /* blank time in ns */ bool interlaced; /* mode is interlaced */ fixed20_12 vsc; /* vertical scale ratio */ u32 num_heads; /* number of active crtcs */ u32 bytes_per_pixel; /* bytes per pixel display + overlay */ u32 lb_size; /* line buffer allocated to pipe */ u32 vtaps; /* vertical scaler taps */ }; /** * dce_v11_0_dram_bandwidth - get the dram bandwidth * * @wm: watermark calculation data * * Calculate the raw dram bandwidth (CIK). * Used for display watermark bandwidth calculations * Returns the dram bandwidth in MBytes/s */ static u32 dce_v11_0_dram_bandwidth(struct dce10_wm_params *wm) { /* Calculate raw DRAM Bandwidth */ fixed20_12 dram_efficiency; /* 0.7 */ fixed20_12 yclk, dram_channels, bandwidth; fixed20_12 a; a.full = dfixed_const(1000); yclk.full = dfixed_const(wm->yclk); yclk.full = dfixed_div(yclk, a); dram_channels.full = dfixed_const(wm->dram_channels * 4); a.full = dfixed_const(10); dram_efficiency.full = dfixed_const(7); dram_efficiency.full = dfixed_div(dram_efficiency, a); bandwidth.full = dfixed_mul(dram_channels, yclk); bandwidth.full = dfixed_mul(bandwidth, dram_efficiency); return dfixed_trunc(bandwidth); } /** * dce_v11_0_dram_bandwidth_for_display - get the dram bandwidth for display * * @wm: watermark calculation data * * Calculate the dram bandwidth used for display (CIK). * Used for display watermark bandwidth calculations * Returns the dram bandwidth for display in MBytes/s */ static u32 dce_v11_0_dram_bandwidth_for_display(struct dce10_wm_params *wm) { /* Calculate DRAM Bandwidth and the part allocated to display. */ fixed20_12 disp_dram_allocation; /* 0.3 to 0.7 */ fixed20_12 yclk, dram_channels, bandwidth; fixed20_12 a; a.full = dfixed_const(1000); yclk.full = dfixed_const(wm->yclk); yclk.full = dfixed_div(yclk, a); dram_channels.full = dfixed_const(wm->dram_channels * 4); a.full = dfixed_const(10); disp_dram_allocation.full = dfixed_const(3); /* XXX worse case value 0.3 */ disp_dram_allocation.full = dfixed_div(disp_dram_allocation, a); bandwidth.full = dfixed_mul(dram_channels, yclk); bandwidth.full = dfixed_mul(bandwidth, disp_dram_allocation); return dfixed_trunc(bandwidth); } /** * dce_v11_0_data_return_bandwidth - get the data return bandwidth * * @wm: watermark calculation data * * Calculate the data return bandwidth used for display (CIK). * Used for display watermark bandwidth calculations * Returns the data return bandwidth in MBytes/s */ static u32 dce_v11_0_data_return_bandwidth(struct dce10_wm_params *wm) { /* Calculate the display Data return Bandwidth */ fixed20_12 return_efficiency; /* 0.8 */ fixed20_12 sclk, bandwidth; fixed20_12 a; a.full = dfixed_const(1000); sclk.full = dfixed_const(wm->sclk); sclk.full = dfixed_div(sclk, a); a.full = dfixed_const(10); return_efficiency.full = dfixed_const(8); return_efficiency.full = dfixed_div(return_efficiency, a); a.full = dfixed_const(32); bandwidth.full = dfixed_mul(a, sclk); bandwidth.full = dfixed_mul(bandwidth, return_efficiency); return dfixed_trunc(bandwidth); } /** * dce_v11_0_dmif_request_bandwidth - get the dmif bandwidth * * @wm: watermark calculation data * * Calculate the dmif bandwidth used for display (CIK). * Used for display watermark bandwidth calculations * Returns the dmif bandwidth in MBytes/s */ static u32 dce_v11_0_dmif_request_bandwidth(struct dce10_wm_params *wm) { /* Calculate the DMIF Request Bandwidth */ fixed20_12 disp_clk_request_efficiency; /* 0.8 */ fixed20_12 disp_clk, bandwidth; fixed20_12 a, b; a.full = dfixed_const(1000); disp_clk.full = dfixed_const(wm->disp_clk); disp_clk.full = dfixed_div(disp_clk, a); a.full = dfixed_const(32); b.full = dfixed_mul(a, disp_clk); a.full = dfixed_const(10); disp_clk_request_efficiency.full = dfixed_const(8); disp_clk_request_efficiency.full = dfixed_div(disp_clk_request_efficiency, a); bandwidth.full = dfixed_mul(b, disp_clk_request_efficiency); return dfixed_trunc(bandwidth); } /** * dce_v11_0_available_bandwidth - get the min available bandwidth * * @wm: watermark calculation data * * Calculate the min available bandwidth used for display (CIK). * Used for display watermark bandwidth calculations * Returns the min available bandwidth in MBytes/s */ static u32 dce_v11_0_available_bandwidth(struct dce10_wm_params *wm) { /* Calculate the Available bandwidth. Display can use this temporarily but not in average. */ u32 dram_bandwidth = dce_v11_0_dram_bandwidth(wm); u32 data_return_bandwidth = dce_v11_0_data_return_bandwidth(wm); u32 dmif_req_bandwidth = dce_v11_0_dmif_request_bandwidth(wm); return min(dram_bandwidth, min(data_return_bandwidth, dmif_req_bandwidth)); } /** * dce_v11_0_average_bandwidth - get the average available bandwidth * * @wm: watermark calculation data * * Calculate the average available bandwidth used for display (CIK). * Used for display watermark bandwidth calculations * Returns the average available bandwidth in MBytes/s */ static u32 dce_v11_0_average_bandwidth(struct dce10_wm_params *wm) { /* Calculate the display mode Average Bandwidth * DisplayMode should contain the source and destination dimensions, * timing, etc. */ fixed20_12 bpp; fixed20_12 line_time; fixed20_12 src_width; fixed20_12 bandwidth; fixed20_12 a; a.full = dfixed_const(1000); line_time.full = dfixed_const(wm->active_time + wm->blank_time); line_time.full = dfixed_div(line_time, a); bpp.full = dfixed_const(wm->bytes_per_pixel); src_width.full = dfixed_const(wm->src_width); bandwidth.full = dfixed_mul(src_width, bpp); bandwidth.full = dfixed_mul(bandwidth, wm->vsc); bandwidth.full = dfixed_div(bandwidth, line_time); return dfixed_trunc(bandwidth); } /** * dce_v11_0_latency_watermark - get the latency watermark * * @wm: watermark calculation data * * Calculate the latency watermark (CIK). * Used for display watermark bandwidth calculations * Returns the latency watermark in ns */ static u32 dce_v11_0_latency_watermark(struct dce10_wm_params *wm) { /* First calculate the latency in ns */ u32 mc_latency = 2000; /* 2000 ns. */ u32 available_bandwidth = dce_v11_0_available_bandwidth(wm); u32 worst_chunk_return_time = (512 * 8 * 1000) / available_bandwidth; u32 cursor_line_pair_return_time = (128 * 4 * 1000) / available_bandwidth; u32 dc_latency = 40000000 / wm->disp_clk; /* dc pipe latency */ u32 other_heads_data_return_time = ((wm->num_heads + 1) * worst_chunk_return_time) + (wm->num_heads * cursor_line_pair_return_time); u32 latency = mc_latency + other_heads_data_return_time + dc_latency; u32 max_src_lines_per_dst_line, lb_fill_bw, line_fill_time; u32 tmp, dmif_size = 12288; fixed20_12 a, b, c; if (wm->num_heads == 0) return 0; a.full = dfixed_const(2); b.full = dfixed_const(1); if ((wm->vsc.full > a.full) || ((wm->vsc.full > b.full) && (wm->vtaps >= 3)) || (wm->vtaps >= 5) || ((wm->vsc.full >= a.full) && wm->interlaced)) max_src_lines_per_dst_line = 4; else max_src_lines_per_dst_line = 2; a.full = dfixed_const(available_bandwidth); b.full = dfixed_const(wm->num_heads); a.full = dfixed_div(a, b); tmp = div_u64((u64) dmif_size * (u64) wm->disp_clk, mc_latency + 512); tmp = min(dfixed_trunc(a), tmp); lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); b.full = dfixed_const(1000); c.full = dfixed_const(lb_fill_bw); b.full = dfixed_div(c, b); a.full = dfixed_div(a, b); line_fill_time = dfixed_trunc(a); if (line_fill_time < wm->active_time) return latency; else return latency + (line_fill_time - wm->active_time); } /** * dce_v11_0_average_bandwidth_vs_dram_bandwidth_for_display - check * average and available dram bandwidth * * @wm: watermark calculation data * * Check if the display average bandwidth fits in the display * dram bandwidth (CIK). * Used for display watermark bandwidth calculations * Returns true if the display fits, false if not. */ static bool dce_v11_0_average_bandwidth_vs_dram_bandwidth_for_display(struct dce10_wm_params *wm) { if (dce_v11_0_average_bandwidth(wm) <= (dce_v11_0_dram_bandwidth_for_display(wm) / wm->num_heads)) return true; else return false; } /** * dce_v11_0_average_bandwidth_vs_available_bandwidth - check * average and available bandwidth * * @wm: watermark calculation data * * Check if the display average bandwidth fits in the display * available bandwidth (CIK). * Used for display watermark bandwidth calculations * Returns true if the display fits, false if not. */ static bool dce_v11_0_average_bandwidth_vs_available_bandwidth(struct dce10_wm_params *wm) { if (dce_v11_0_average_bandwidth(wm) <= (dce_v11_0_available_bandwidth(wm) / wm->num_heads)) return true; else return false; } /** * dce_v11_0_check_latency_hiding - check latency hiding * * @wm: watermark calculation data * * Check latency hiding (CIK). * Used for display watermark bandwidth calculations * Returns true if the display fits, false if not. */ static bool dce_v11_0_check_latency_hiding(struct dce10_wm_params *wm) { u32 lb_partitions = wm->lb_size / wm->src_width; u32 line_time = wm->active_time + wm->blank_time; u32 latency_tolerant_lines; u32 latency_hiding; fixed20_12 a; a.full = dfixed_const(1); if (wm->vsc.full > a.full) latency_tolerant_lines = 1; else { if (lb_partitions <= (wm->vtaps + 1)) latency_tolerant_lines = 1; else latency_tolerant_lines = 2; } latency_hiding = (latency_tolerant_lines * line_time + wm->blank_time); if (dce_v11_0_latency_watermark(wm) <= latency_hiding) return true; else return false; } /** * dce_v11_0_program_watermarks - program display watermarks * * @adev: amdgpu_device pointer * @amdgpu_crtc: the selected display controller * @lb_size: line buffer size * @num_heads: number of display controllers in use * * Calculate and program the display watermarks for the * selected display controller (CIK). */ static void dce_v11_0_program_watermarks(struct amdgpu_device *adev, struct amdgpu_crtc *amdgpu_crtc, u32 lb_size, u32 num_heads) { struct drm_display_mode *mode = &amdgpu_crtc->base.mode; struct dce10_wm_params wm_low, wm_high; u32 active_time; u32 line_time = 0; u32 latency_watermark_a = 0, latency_watermark_b = 0; u32 tmp, wm_mask, lb_vblank_lead_lines = 0; if (amdgpu_crtc->base.enabled && num_heads && mode) { active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, (u32)mode->clock); line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, (u32)mode->clock); line_time = min(line_time, (u32)65535); /* watermark for high clocks */ if (adev->pm.dpm_enabled) { wm_high.yclk = amdgpu_dpm_get_mclk(adev, false) * 10; wm_high.sclk = amdgpu_dpm_get_sclk(adev, false) * 10; } else { wm_high.yclk = adev->pm.current_mclk * 10; wm_high.sclk = adev->pm.current_sclk * 10; } wm_high.disp_clk = mode->clock; wm_high.src_width = mode->crtc_hdisplay; wm_high.active_time = active_time; wm_high.blank_time = line_time - wm_high.active_time; wm_high.interlaced = false; if (mode->flags & DRM_MODE_FLAG_INTERLACE) wm_high.interlaced = true; wm_high.vsc = amdgpu_crtc->vsc; wm_high.vtaps = 1; if (amdgpu_crtc->rmx_type != RMX_OFF) wm_high.vtaps = 2; wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ wm_high.lb_size = lb_size; wm_high.dram_channels = cik_get_number_of_dram_channels(adev); wm_high.num_heads = num_heads; /* set for high clocks */ latency_watermark_a = min(dce_v11_0_latency_watermark(&wm_high), (u32)65535); /* possibly force display priority to high */ /* should really do this at mode validation time... */ if (!dce_v11_0_average_bandwidth_vs_dram_bandwidth_for_display(&wm_high) || !dce_v11_0_average_bandwidth_vs_available_bandwidth(&wm_high) || !dce_v11_0_check_latency_hiding(&wm_high) || (adev->mode_info.disp_priority == 2)) { DRM_DEBUG_KMS("force priority to high\n"); } /* watermark for low clocks */ if (adev->pm.dpm_enabled) { wm_low.yclk = amdgpu_dpm_get_mclk(adev, true) * 10; wm_low.sclk = amdgpu_dpm_get_sclk(adev, true) * 10; } else { wm_low.yclk = adev->pm.current_mclk * 10; wm_low.sclk = adev->pm.current_sclk * 10; } wm_low.disp_clk = mode->clock; wm_low.src_width = mode->crtc_hdisplay; wm_low.active_time = active_time; wm_low.blank_time = line_time - wm_low.active_time; wm_low.interlaced = false; if (mode->flags & DRM_MODE_FLAG_INTERLACE) wm_low.interlaced = true; wm_low.vsc = amdgpu_crtc->vsc; wm_low.vtaps = 1; if (amdgpu_crtc->rmx_type != RMX_OFF) wm_low.vtaps = 2; wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ wm_low.lb_size = lb_size; wm_low.dram_channels = cik_get_number_of_dram_channels(adev); wm_low.num_heads = num_heads; /* set for low clocks */ latency_watermark_b = min(dce_v11_0_latency_watermark(&wm_low), (u32)65535); /* possibly force display priority to high */ /* should really do this at mode validation time... */ if (!dce_v11_0_average_bandwidth_vs_dram_bandwidth_for_display(&wm_low) || !dce_v11_0_average_bandwidth_vs_available_bandwidth(&wm_low) || !dce_v11_0_check_latency_hiding(&wm_low) || (adev->mode_info.disp_priority == 2)) { DRM_DEBUG_KMS("force priority to high\n"); } lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); } /* select wm A */ wm_mask = RREG32(mmDPG_WATERMARK_MASK_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(wm_mask, DPG_WATERMARK_MASK_CONTROL, URGENCY_WATERMARK_MASK, 1); WREG32(mmDPG_WATERMARK_MASK_CONTROL + amdgpu_crtc->crtc_offset, tmp); tmp = RREG32(mmDPG_PIPE_URGENCY_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, DPG_PIPE_URGENCY_CONTROL, URGENCY_LOW_WATERMARK, latency_watermark_a); tmp = REG_SET_FIELD(tmp, DPG_PIPE_URGENCY_CONTROL, URGENCY_HIGH_WATERMARK, line_time); WREG32(mmDPG_PIPE_URGENCY_CONTROL + amdgpu_crtc->crtc_offset, tmp); /* select wm B */ tmp = REG_SET_FIELD(wm_mask, DPG_WATERMARK_MASK_CONTROL, URGENCY_WATERMARK_MASK, 2); WREG32(mmDPG_WATERMARK_MASK_CONTROL + amdgpu_crtc->crtc_offset, tmp); tmp = RREG32(mmDPG_PIPE_URGENCY_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, DPG_PIPE_URGENCY_CONTROL, URGENCY_LOW_WATERMARK, latency_watermark_b); tmp = REG_SET_FIELD(tmp, DPG_PIPE_URGENCY_CONTROL, URGENCY_HIGH_WATERMARK, line_time); WREG32(mmDPG_PIPE_URGENCY_CONTROL + amdgpu_crtc->crtc_offset, tmp); /* restore original selection */ WREG32(mmDPG_WATERMARK_MASK_CONTROL + amdgpu_crtc->crtc_offset, wm_mask); /* save values for DPM */ amdgpu_crtc->line_time = line_time; amdgpu_crtc->wm_high = latency_watermark_a; amdgpu_crtc->wm_low = latency_watermark_b; /* Save number of lines the linebuffer leads before the scanout */ amdgpu_crtc->lb_vblank_lead_lines = lb_vblank_lead_lines; } /** * dce_v11_0_bandwidth_update - program display watermarks * * @adev: amdgpu_device pointer * * Calculate and program the display watermarks and line * buffer allocation (CIK). */ static void dce_v11_0_bandwidth_update(struct amdgpu_device *adev) { struct drm_display_mode *mode = NULL; u32 num_heads = 0, lb_size; int i; amdgpu_display_update_priority(adev); for (i = 0; i < adev->mode_info.num_crtc; i++) { if (adev->mode_info.crtcs[i]->base.enabled) num_heads++; } for (i = 0; i < adev->mode_info.num_crtc; i++) { mode = &adev->mode_info.crtcs[i]->base.mode; lb_size = dce_v11_0_line_buffer_adjust(adev, adev->mode_info.crtcs[i], mode); dce_v11_0_program_watermarks(adev, adev->mode_info.crtcs[i], lb_size, num_heads); } } static void dce_v11_0_audio_get_connected_pins(struct amdgpu_device *adev) { int i; u32 offset, tmp; for (i = 0; i < adev->mode_info.audio.num_pins; i++) { offset = adev->mode_info.audio.pin[i].offset; tmp = RREG32_AUDIO_ENDPT(offset, ixAZALIA_F0_CODEC_PIN_CONTROL_RESPONSE_CONFIGURATION_DEFAULT); if (((tmp & your_sha256_hash_CONNECTIVITY_MASK) >> your_sha256_hash_CONNECTIVITY__SHIFT) == 1) adev->mode_info.audio.pin[i].connected = false; else adev->mode_info.audio.pin[i].connected = true; } } static struct amdgpu_audio_pin *dce_v11_0_audio_get_pin(struct amdgpu_device *adev) { int i; dce_v11_0_audio_get_connected_pins(adev); for (i = 0; i < adev->mode_info.audio.num_pins; i++) { if (adev->mode_info.audio.pin[i].connected) return &adev->mode_info.audio.pin[i]; } DRM_ERROR("No connected audio pins found!\n"); return NULL; } static void dce_v11_0_afmt_audio_select_pin(struct drm_encoder *encoder) { struct amdgpu_device *adev = drm_to_adev(encoder->dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; u32 tmp; if (!dig || !dig->afmt || !dig->afmt->pin) return; tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_SRC_CONTROL, AFMT_AUDIO_SRC_SELECT, dig->afmt->pin->id); WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); } static void dce_v11_0_audio_write_latency_fields(struct drm_encoder *encoder, struct drm_display_mode *mode) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; struct drm_connector *connector; struct drm_connector_list_iter iter; struct amdgpu_connector *amdgpu_connector = NULL; u32 tmp; int interlace = 0; if (!dig || !dig->afmt || !dig->afmt->pin) return; drm_connector_list_iter_begin(dev, &iter); drm_for_each_connector_iter(connector, &iter) { if (connector->encoder == encoder) { amdgpu_connector = to_amdgpu_connector(connector); break; } } drm_connector_list_iter_end(&iter); if (!amdgpu_connector) { DRM_ERROR("Couldn't find encoder's connector\n"); return; } if (mode->flags & DRM_MODE_FLAG_INTERLACE) interlace = 1; if (connector->latency_present[interlace]) { tmp = REG_SET_FIELD(0, AZALIA_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC, VIDEO_LIPSYNC, connector->video_latency[interlace]); tmp = REG_SET_FIELD(0, AZALIA_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC, AUDIO_LIPSYNC, connector->audio_latency[interlace]); } else { tmp = REG_SET_FIELD(0, AZALIA_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC, VIDEO_LIPSYNC, 0); tmp = REG_SET_FIELD(0, AZALIA_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC, AUDIO_LIPSYNC, 0); } WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, ixAZALIA_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC, tmp); } static void dce_v11_0_audio_write_speaker_allocation(struct drm_encoder *encoder) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; struct drm_connector *connector; struct drm_connector_list_iter iter; struct amdgpu_connector *amdgpu_connector = NULL; u32 tmp; u8 *sadb = NULL; int sad_count; if (!dig || !dig->afmt || !dig->afmt->pin) return; drm_connector_list_iter_begin(dev, &iter); drm_for_each_connector_iter(connector, &iter) { if (connector->encoder == encoder) { amdgpu_connector = to_amdgpu_connector(connector); break; } } drm_connector_list_iter_end(&iter); if (!amdgpu_connector) { DRM_ERROR("Couldn't find encoder's connector\n"); return; } sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); if (sad_count < 0) { DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sad_count); sad_count = 0; } /* program the speaker allocation */ tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, ixAZALIA_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER); tmp = REG_SET_FIELD(tmp, AZALIA_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER, DP_CONNECTION, 0); /* set HDMI mode */ tmp = REG_SET_FIELD(tmp, AZALIA_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER, HDMI_CONNECTION, 1); if (sad_count) tmp = REG_SET_FIELD(tmp, AZALIA_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER, SPEAKER_ALLOCATION, sadb[0]); else tmp = REG_SET_FIELD(tmp, AZALIA_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER, SPEAKER_ALLOCATION, 5); /* stereo */ WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, ixAZALIA_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER, tmp); kfree(sadb); } static void dce_v11_0_audio_write_sad_regs(struct drm_encoder *encoder) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; struct drm_connector *connector; struct drm_connector_list_iter iter; struct amdgpu_connector *amdgpu_connector = NULL; struct cea_sad *sads; int i, sad_count; static const u16 eld_reg_to_type[][2] = { { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR0, HDMI_AUDIO_CODING_TYPE_PCM }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR1, HDMI_AUDIO_CODING_TYPE_AC3 }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR2, HDMI_AUDIO_CODING_TYPE_MPEG1 }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR3, HDMI_AUDIO_CODING_TYPE_MP3 }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR4, HDMI_AUDIO_CODING_TYPE_MPEG2 }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR5, HDMI_AUDIO_CODING_TYPE_AAC_LC }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR6, HDMI_AUDIO_CODING_TYPE_DTS }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR7, HDMI_AUDIO_CODING_TYPE_ATRAC }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR9, HDMI_AUDIO_CODING_TYPE_EAC3 }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR10, HDMI_AUDIO_CODING_TYPE_DTS_HD }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR11, HDMI_AUDIO_CODING_TYPE_MLP }, { ixAZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR13, HDMI_AUDIO_CODING_TYPE_WMA_PRO }, }; if (!dig || !dig->afmt || !dig->afmt->pin) return; drm_connector_list_iter_begin(dev, &iter); drm_for_each_connector_iter(connector, &iter) { if (connector->encoder == encoder) { amdgpu_connector = to_amdgpu_connector(connector); break; } } drm_connector_list_iter_end(&iter); if (!amdgpu_connector) { DRM_ERROR("Couldn't find encoder's connector\n"); return; } sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads); if (sad_count < 0) DRM_ERROR("Couldn't read SADs: %d\n", sad_count); if (sad_count <= 0) return; BUG_ON(!sads); for (i = 0; i < ARRAY_SIZE(eld_reg_to_type); i++) { u32 tmp = 0; u8 stereo_freqs = 0; int max_channels = -1; int j; for (j = 0; j < sad_count; j++) { struct cea_sad *sad = &sads[j]; if (sad->format == eld_reg_to_type[i][1]) { if (sad->channels > max_channels) { tmp = REG_SET_FIELD(tmp, AZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR0, MAX_CHANNELS, sad->channels); tmp = REG_SET_FIELD(tmp, AZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR0, DESCRIPTOR_BYTE_2, sad->byte2); tmp = REG_SET_FIELD(tmp, AZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR0, SUPPORTED_FREQUENCIES, sad->freq); max_channels = sad->channels; } if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) stereo_freqs |= sad->freq; else break; } } tmp = REG_SET_FIELD(tmp, AZALIA_F0_CODEC_PIN_CONTROL_AUDIO_DESCRIPTOR0, SUPPORTED_FREQUENCIES_STEREO, stereo_freqs); WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, eld_reg_to_type[i][0], tmp); } kfree(sads); } static void dce_v11_0_audio_enable(struct amdgpu_device *adev, struct amdgpu_audio_pin *pin, bool enable) { if (!pin) return; WREG32_AUDIO_ENDPT(pin->offset, ixAZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL, enable ? your_sha256_hash : 0); } static const u32 pin_offsets[] = { AUD0_REGISTER_OFFSET, AUD1_REGISTER_OFFSET, AUD2_REGISTER_OFFSET, AUD3_REGISTER_OFFSET, AUD4_REGISTER_OFFSET, AUD5_REGISTER_OFFSET, AUD6_REGISTER_OFFSET, AUD7_REGISTER_OFFSET, }; static int dce_v11_0_audio_init(struct amdgpu_device *adev) { int i; if (!amdgpu_audio) return 0; adev->mode_info.audio.enabled = true; switch (adev->asic_type) { case CHIP_CARRIZO: case CHIP_STONEY: adev->mode_info.audio.num_pins = 7; break; case CHIP_POLARIS10: case CHIP_VEGAM: adev->mode_info.audio.num_pins = 8; break; case CHIP_POLARIS11: case CHIP_POLARIS12: adev->mode_info.audio.num_pins = 6; break; default: return -EINVAL; } for (i = 0; i < adev->mode_info.audio.num_pins; i++) { adev->mode_info.audio.pin[i].channels = -1; adev->mode_info.audio.pin[i].rate = -1; adev->mode_info.audio.pin[i].bits_per_sample = -1; adev->mode_info.audio.pin[i].status_bits = 0; adev->mode_info.audio.pin[i].category_code = 0; adev->mode_info.audio.pin[i].connected = false; adev->mode_info.audio.pin[i].offset = pin_offsets[i]; adev->mode_info.audio.pin[i].id = i; /* disable audio. it will be set up later */ /* XXX remove once we switch to ip funcs */ dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); } return 0; } static void dce_v11_0_audio_fini(struct amdgpu_device *adev) { int i; if (!amdgpu_audio) return; if (!adev->mode_info.audio.enabled) return; for (i = 0; i < adev->mode_info.audio.num_pins; i++) dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); adev->mode_info.audio.enabled = false; } /* * update the N and CTS parameters for a given pixel clock rate */ static void dce_v11_0_afmt_update_ACR(struct drm_encoder *encoder, uint32_t clock) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_afmt_acr acr = amdgpu_afmt_acr(clock); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; u32 tmp; tmp = RREG32(mmHDMI_ACR_32_0 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_ACR_32_0, HDMI_ACR_CTS_32, acr.cts_32khz); WREG32(mmHDMI_ACR_32_0 + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_ACR_32_1 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_ACR_32_1, HDMI_ACR_N_32, acr.n_32khz); WREG32(mmHDMI_ACR_32_1 + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_ACR_44_0 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_ACR_44_0, HDMI_ACR_CTS_44, acr.cts_44_1khz); WREG32(mmHDMI_ACR_44_0 + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_ACR_44_1 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_ACR_44_1, HDMI_ACR_N_44, acr.n_44_1khz); WREG32(mmHDMI_ACR_44_1 + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_ACR_48_0 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_ACR_48_0, HDMI_ACR_CTS_48, acr.cts_48khz); WREG32(mmHDMI_ACR_48_0 + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_ACR_48_1 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_ACR_48_1, HDMI_ACR_N_48, acr.n_48khz); WREG32(mmHDMI_ACR_48_1 + dig->afmt->offset, tmp); } /* * build a HDMI Video Info Frame */ static void dce_v11_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, size_t size) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; uint8_t *frame = buffer + 3; uint8_t *header = buffer; WREG32(mmAFMT_AVI_INFO0 + dig->afmt->offset, frame[0x0] | (frame[0x1] << 8) | (frame[0x2] << 16) | (frame[0x3] << 24)); WREG32(mmAFMT_AVI_INFO1 + dig->afmt->offset, frame[0x4] | (frame[0x5] << 8) | (frame[0x6] << 16) | (frame[0x7] << 24)); WREG32(mmAFMT_AVI_INFO2 + dig->afmt->offset, frame[0x8] | (frame[0x9] << 8) | (frame[0xA] << 16) | (frame[0xB] << 24)); WREG32(mmAFMT_AVI_INFO3 + dig->afmt->offset, frame[0xC] | (frame[0xD] << 8) | (header[1] << 24)); } static void dce_v11_0_audio_set_dto(struct drm_encoder *encoder, u32 clock) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); u32 dto_phase = 24 * 1000; u32 dto_modulo = clock; u32 tmp; if (!dig || !dig->afmt) return; /* XXX two dtos; generally use dto0 for hdmi */ /* Express [24MHz / target pixel clock] as an exact rational * number (coefficient of two integer numbers. DCCG_AUDIO_DTOx_PHASE * is the numerator, DCCG_AUDIO_DTOx_MODULE is the denominator */ tmp = RREG32(mmDCCG_AUDIO_DTO_SOURCE); tmp = REG_SET_FIELD(tmp, DCCG_AUDIO_DTO_SOURCE, DCCG_AUDIO_DTO0_SOURCE_SEL, amdgpu_crtc->crtc_id); WREG32(mmDCCG_AUDIO_DTO_SOURCE, tmp); WREG32(mmDCCG_AUDIO_DTO0_PHASE, dto_phase); WREG32(mmDCCG_AUDIO_DTO0_MODULE, dto_modulo); } /* * update the info frames with the data from the current display mode */ static void dce_v11_0_afmt_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); u8 buffer[HDMI_INFOFRAME_HEADER_SIZE + HDMI_AVI_INFOFRAME_SIZE]; struct hdmi_avi_infoframe frame; ssize_t err; u32 tmp; int bpc = 8; if (!dig || !dig->afmt) return; /* Silent, r600_hdmi_enable will raise WARN for us */ if (!dig->afmt->enabled) return; /* hdmi deep color mode general control packets setup, if bpc > 8 */ if (encoder->crtc) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); bpc = amdgpu_crtc->bpc; } /* disable audio prior to setting up hw */ dig->afmt->pin = dce_v11_0_audio_get_pin(adev); dce_v11_0_audio_enable(adev, dig->afmt->pin, false); dce_v11_0_audio_set_dto(encoder, mode->clock); tmp = RREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_VBI_PACKET_CONTROL, HDMI_NULL_SEND, 1); WREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset, tmp); /* send null packets when required */ WREG32(mmAFMT_AUDIO_CRC_CONTROL + dig->afmt->offset, 0x1000); tmp = RREG32(mmHDMI_CONTROL + dig->afmt->offset); switch (bpc) { case 0: case 6: case 8: case 16: default: tmp = REG_SET_FIELD(tmp, HDMI_CONTROL, HDMI_DEEP_COLOR_ENABLE, 0); tmp = REG_SET_FIELD(tmp, HDMI_CONTROL, HDMI_DEEP_COLOR_DEPTH, 0); DRM_DEBUG("%s: Disabling hdmi deep color for %d bpc.\n", connector->name, bpc); break; case 10: tmp = REG_SET_FIELD(tmp, HDMI_CONTROL, HDMI_DEEP_COLOR_ENABLE, 1); tmp = REG_SET_FIELD(tmp, HDMI_CONTROL, HDMI_DEEP_COLOR_DEPTH, 1); DRM_DEBUG("%s: Enabling hdmi deep color 30 for 10 bpc.\n", connector->name); break; case 12: tmp = REG_SET_FIELD(tmp, HDMI_CONTROL, HDMI_DEEP_COLOR_ENABLE, 1); tmp = REG_SET_FIELD(tmp, HDMI_CONTROL, HDMI_DEEP_COLOR_DEPTH, 2); DRM_DEBUG("%s: Enabling hdmi deep color 36 for 12 bpc.\n", connector->name); break; } WREG32(mmHDMI_CONTROL + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_VBI_PACKET_CONTROL, HDMI_NULL_SEND, 1); /* send null packets when required */ tmp = REG_SET_FIELD(tmp, HDMI_VBI_PACKET_CONTROL, HDMI_GC_SEND, 1); /* send general control packets */ tmp = REG_SET_FIELD(tmp, HDMI_VBI_PACKET_CONTROL, HDMI_GC_CONT, 1); /* send general control packets every frame */ WREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_INFOFRAME_CONTROL0 + dig->afmt->offset); /* enable audio info frames (frames won't be set until audio is enabled) */ tmp = REG_SET_FIELD(tmp, HDMI_INFOFRAME_CONTROL0, HDMI_AUDIO_INFO_SEND, 1); /* required for audio info values to be updated */ tmp = REG_SET_FIELD(tmp, HDMI_INFOFRAME_CONTROL0, HDMI_AUDIO_INFO_CONT, 1); WREG32(mmHDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, tmp); tmp = RREG32(mmAFMT_INFOFRAME_CONTROL0 + dig->afmt->offset); /* required for audio info values to be updated */ tmp = REG_SET_FIELD(tmp, AFMT_INFOFRAME_CONTROL0, AFMT_AUDIO_INFO_UPDATE, 1); WREG32(mmAFMT_INFOFRAME_CONTROL0 + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_INFOFRAME_CONTROL1 + dig->afmt->offset); /* anything other than 0 */ tmp = REG_SET_FIELD(tmp, HDMI_INFOFRAME_CONTROL1, HDMI_AUDIO_INFO_LINE, 2); WREG32(mmHDMI_INFOFRAME_CONTROL1 + dig->afmt->offset, tmp); WREG32(mmHDMI_GC + dig->afmt->offset, 0); /* unset HDMI_GC_AVMUTE */ tmp = RREG32(mmHDMI_AUDIO_PACKET_CONTROL + dig->afmt->offset); /* set the default audio delay */ tmp = REG_SET_FIELD(tmp, HDMI_AUDIO_PACKET_CONTROL, HDMI_AUDIO_DELAY_EN, 1); /* should be suffient for all audio modes and small enough for all hblanks */ tmp = REG_SET_FIELD(tmp, HDMI_AUDIO_PACKET_CONTROL, HDMI_AUDIO_PACKETS_PER_LINE, 3); WREG32(mmHDMI_AUDIO_PACKET_CONTROL + dig->afmt->offset, tmp); tmp = RREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset); /* allow 60958 channel status fields to be updated */ tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_PACKET_CONTROL, AFMT_60958_CS_UPDATE, 1); WREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_ACR_PACKET_CONTROL + dig->afmt->offset); if (bpc > 8) /* clear SW CTS value */ tmp = REG_SET_FIELD(tmp, HDMI_ACR_PACKET_CONTROL, HDMI_ACR_SOURCE, 0); else /* select SW CTS value */ tmp = REG_SET_FIELD(tmp, HDMI_ACR_PACKET_CONTROL, HDMI_ACR_SOURCE, 1); /* allow hw to sent ACR packets when required */ tmp = REG_SET_FIELD(tmp, HDMI_ACR_PACKET_CONTROL, HDMI_ACR_AUTO_SEND, 1); WREG32(mmHDMI_ACR_PACKET_CONTROL + dig->afmt->offset, tmp); dce_v11_0_afmt_update_ACR(encoder, mode->clock); tmp = RREG32(mmAFMT_60958_0 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, AFMT_60958_0, AFMT_60958_CS_CHANNEL_NUMBER_L, 1); WREG32(mmAFMT_60958_0 + dig->afmt->offset, tmp); tmp = RREG32(mmAFMT_60958_1 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, AFMT_60958_1, AFMT_60958_CS_CHANNEL_NUMBER_R, 2); WREG32(mmAFMT_60958_1 + dig->afmt->offset, tmp); tmp = RREG32(mmAFMT_60958_2 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, AFMT_60958_2, AFMT_60958_CS_CHANNEL_NUMBER_2, 3); tmp = REG_SET_FIELD(tmp, AFMT_60958_2, AFMT_60958_CS_CHANNEL_NUMBER_3, 4); tmp = REG_SET_FIELD(tmp, AFMT_60958_2, AFMT_60958_CS_CHANNEL_NUMBER_4, 5); tmp = REG_SET_FIELD(tmp, AFMT_60958_2, AFMT_60958_CS_CHANNEL_NUMBER_5, 6); tmp = REG_SET_FIELD(tmp, AFMT_60958_2, AFMT_60958_CS_CHANNEL_NUMBER_6, 7); tmp = REG_SET_FIELD(tmp, AFMT_60958_2, AFMT_60958_CS_CHANNEL_NUMBER_7, 8); WREG32(mmAFMT_60958_2 + dig->afmt->offset, tmp); dce_v11_0_audio_write_speaker_allocation(encoder); WREG32(mmAFMT_AUDIO_PACKET_CONTROL2 + dig->afmt->offset, (0xff << AFMT_AUDIO_PACKET_CONTROL2__AFMT_AUDIO_CHANNEL_ENABLE__SHIFT)); dce_v11_0_afmt_audio_select_pin(encoder); dce_v11_0_audio_write_sad_regs(encoder); dce_v11_0_audio_write_latency_fields(encoder, mode); err = drm_hdmi_avi_infoframe_from_display_mode(&frame, connector, mode); if (err < 0) { DRM_ERROR("failed to setup AVI infoframe: %zd\n", err); return; } err = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer)); if (err < 0) { DRM_ERROR("failed to pack AVI infoframe: %zd\n", err); return; } dce_v11_0_afmt_update_avi_infoframe(encoder, buffer, sizeof(buffer)); tmp = RREG32(mmHDMI_INFOFRAME_CONTROL0 + dig->afmt->offset); /* enable AVI info frames */ tmp = REG_SET_FIELD(tmp, HDMI_INFOFRAME_CONTROL0, HDMI_AVI_INFO_SEND, 1); /* required for audio info values to be updated */ tmp = REG_SET_FIELD(tmp, HDMI_INFOFRAME_CONTROL0, HDMI_AVI_INFO_CONT, 1); WREG32(mmHDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, tmp); tmp = RREG32(mmHDMI_INFOFRAME_CONTROL1 + dig->afmt->offset); tmp = REG_SET_FIELD(tmp, HDMI_INFOFRAME_CONTROL1, HDMI_AVI_INFO_LINE, 2); WREG32(mmHDMI_INFOFRAME_CONTROL1 + dig->afmt->offset, tmp); tmp = RREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset); /* send audio packets */ tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_PACKET_CONTROL, AFMT_AUDIO_SAMPLE_SEND, 1); WREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, tmp); WREG32(mmAFMT_RAMP_CONTROL0 + dig->afmt->offset, 0x00FFFFFF); WREG32(mmAFMT_RAMP_CONTROL1 + dig->afmt->offset, 0x007FFFFF); WREG32(mmAFMT_RAMP_CONTROL2 + dig->afmt->offset, 0x00000001); WREG32(mmAFMT_RAMP_CONTROL3 + dig->afmt->offset, 0x00000001); /* enable audio after to setting up hw */ dce_v11_0_audio_enable(adev, dig->afmt->pin, true); } static void dce_v11_0_afmt_enable(struct drm_encoder *encoder, bool enable) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; if (!dig || !dig->afmt) return; /* Silent, r600_hdmi_enable will raise WARN for us */ if (enable && dig->afmt->enabled) return; if (!enable && !dig->afmt->enabled) return; if (!enable && dig->afmt->pin) { dce_v11_0_audio_enable(adev, dig->afmt->pin, false); dig->afmt->pin = NULL; } dig->afmt->enabled = enable; DRM_DEBUG("%sabling AFMT interface @ 0x%04X for encoder 0x%x\n", enable ? "En" : "Dis", dig->afmt->offset, amdgpu_encoder->encoder_id); } static int dce_v11_0_afmt_init(struct amdgpu_device *adev) { int i; for (i = 0; i < adev->mode_info.num_dig; i++) adev->mode_info.afmt[i] = NULL; /* DCE11 has audio blocks tied to DIG encoders */ for (i = 0; i < adev->mode_info.num_dig; i++) { adev->mode_info.afmt[i] = kzalloc(sizeof(struct amdgpu_afmt), GFP_KERNEL); if (adev->mode_info.afmt[i]) { adev->mode_info.afmt[i]->offset = dig_offsets[i]; adev->mode_info.afmt[i]->id = i; } else { int j; for (j = 0; j < i; j++) { kfree(adev->mode_info.afmt[j]); adev->mode_info.afmt[j] = NULL; } return -ENOMEM; } } return 0; } static void dce_v11_0_afmt_fini(struct amdgpu_device *adev) { int i; for (i = 0; i < adev->mode_info.num_dig; i++) { kfree(adev->mode_info.afmt[i]); adev->mode_info.afmt[i] = NULL; } } static const u32 vga_control_regs[6] = { mmD1VGA_CONTROL, mmD2VGA_CONTROL, mmD3VGA_CONTROL, mmD4VGA_CONTROL, mmD5VGA_CONTROL, mmD6VGA_CONTROL, }; static void dce_v11_0_vga_enable(struct drm_crtc *crtc, bool enable) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); u32 vga_control; vga_control = RREG32(vga_control_regs[amdgpu_crtc->crtc_id]) & ~1; if (enable) WREG32(vga_control_regs[amdgpu_crtc->crtc_id], vga_control | 1); else WREG32(vga_control_regs[amdgpu_crtc->crtc_id], vga_control); } static void dce_v11_0_grph_enable(struct drm_crtc *crtc, bool enable) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); if (enable) WREG32(mmGRPH_ENABLE + amdgpu_crtc->crtc_offset, 1); else WREG32(mmGRPH_ENABLE + amdgpu_crtc->crtc_offset, 0); } static int dce_v11_0_crtc_do_set_base(struct drm_crtc *crtc, struct drm_framebuffer *fb, int x, int y, int atomic) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct drm_framebuffer *target_fb; struct drm_gem_object *obj; struct amdgpu_bo *abo; uint64_t fb_location, tiling_flags; uint32_t fb_format, fb_pitch_pixels; u32 fb_swap = REG_SET_FIELD(0, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_NONE); u32 pipe_config; u32 tmp, viewport_w, viewport_h; int r; bool bypass_lut = false; /* no fb bound */ if (!atomic && !crtc->primary->fb) { DRM_DEBUG_KMS("No FB bound\n"); return 0; } if (atomic) target_fb = fb; else target_fb = crtc->primary->fb; /* If atomic, assume fb object is pinned & idle & fenced and * just update base pointers */ obj = target_fb->obj[0]; abo = gem_to_amdgpu_bo(obj); r = amdgpu_bo_reserve(abo, false); if (unlikely(r != 0)) return r; if (!atomic) { r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM); if (unlikely(r != 0)) { amdgpu_bo_unreserve(abo); return -EINVAL; } } fb_location = amdgpu_bo_gpu_offset(abo); amdgpu_bo_get_tiling_flags(abo, &tiling_flags); amdgpu_bo_unreserve(abo); pipe_config = AMDGPU_TILING_GET(tiling_flags, PIPE_CONFIG); switch (target_fb->format->format) { case DRM_FORMAT_C8: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 0); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 0); break; case DRM_FORMAT_XRGB4444: case DRM_FORMAT_ARGB4444: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 1); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 2); #ifdef __BIG_ENDIAN fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_8IN16); #endif break; case DRM_FORMAT_XRGB1555: case DRM_FORMAT_ARGB1555: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 1); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 0); #ifdef __BIG_ENDIAN fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_8IN16); #endif break; case DRM_FORMAT_BGRX5551: case DRM_FORMAT_BGRA5551: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 1); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 5); #ifdef __BIG_ENDIAN fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_8IN16); #endif break; case DRM_FORMAT_RGB565: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 1); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 1); #ifdef __BIG_ENDIAN fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_8IN16); #endif break; case DRM_FORMAT_XRGB8888: case DRM_FORMAT_ARGB8888: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 2); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 0); #ifdef __BIG_ENDIAN fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_8IN32); #endif break; case DRM_FORMAT_XRGB2101010: case DRM_FORMAT_ARGB2101010: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 2); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 1); #ifdef __BIG_ENDIAN fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_8IN32); #endif /* Greater 8 bpc fb needs to bypass hw-lut to retain precision */ bypass_lut = true; break; case DRM_FORMAT_BGRX1010102: case DRM_FORMAT_BGRA1010102: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 2); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 4); #ifdef __BIG_ENDIAN fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_8IN32); #endif /* Greater 8 bpc fb needs to bypass hw-lut to retain precision */ bypass_lut = true; break; case DRM_FORMAT_XBGR8888: case DRM_FORMAT_ABGR8888: fb_format = REG_SET_FIELD(0, GRPH_CONTROL, GRPH_DEPTH, 2); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_FORMAT, 0); fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_RED_CROSSBAR, 2); fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_BLUE_CROSSBAR, 2); #ifdef __BIG_ENDIAN fb_swap = REG_SET_FIELD(fb_swap, GRPH_SWAP_CNTL, GRPH_ENDIAN_SWAP, ENDIAN_8IN32); #endif break; default: DRM_ERROR("Unsupported screen format %p4cc\n", &target_fb->format->format); return -EINVAL; } if (AMDGPU_TILING_GET(tiling_flags, ARRAY_MODE) == ARRAY_2D_TILED_THIN1) { unsigned bankw, bankh, mtaspect, tile_split, num_banks; bankw = AMDGPU_TILING_GET(tiling_flags, BANK_WIDTH); bankh = AMDGPU_TILING_GET(tiling_flags, BANK_HEIGHT); mtaspect = AMDGPU_TILING_GET(tiling_flags, MACRO_TILE_ASPECT); tile_split = AMDGPU_TILING_GET(tiling_flags, TILE_SPLIT); num_banks = AMDGPU_TILING_GET(tiling_flags, NUM_BANKS); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_NUM_BANKS, num_banks); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_ARRAY_MODE, ARRAY_2D_TILED_THIN1); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_TILE_SPLIT, tile_split); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_BANK_WIDTH, bankw); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_BANK_HEIGHT, bankh); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_MACRO_TILE_ASPECT, mtaspect); fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_MICRO_TILE_MODE, ADDR_SURF_MICRO_TILING_DISPLAY); } else if (AMDGPU_TILING_GET(tiling_flags, ARRAY_MODE) == ARRAY_1D_TILED_THIN1) { fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_ARRAY_MODE, ARRAY_1D_TILED_THIN1); } fb_format = REG_SET_FIELD(fb_format, GRPH_CONTROL, GRPH_PIPE_CONFIG, pipe_config); dce_v11_0_vga_enable(crtc, false); /* Make sure surface address is updated at vertical blank rather than * horizontal blank */ tmp = RREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, GRPH_FLIP_CONTROL, GRPH_SURFACE_UPDATE_H_RETRACE_EN, 0); WREG32(mmGRPH_FLIP_CONTROL + amdgpu_crtc->crtc_offset, tmp); WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, upper_32_bits(fb_location)); WREG32(mmGRPH_SECONDARY_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, upper_32_bits(fb_location)); WREG32(mmGRPH_PRIMARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, (u32)fb_location & GRPH_PRIMARY_SURFACE_ADDRESS__GRPH_PRIMARY_SURFACE_ADDRESS_MASK); WREG32(mmGRPH_SECONDARY_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, (u32) fb_location & your_sha256_hashASK); WREG32(mmGRPH_CONTROL + amdgpu_crtc->crtc_offset, fb_format); WREG32(mmGRPH_SWAP_CNTL + amdgpu_crtc->crtc_offset, fb_swap); /* * The LUT only has 256 slots for indexing by a 8 bpc fb. Bypass the LUT * for > 8 bpc scanout to avoid truncation of fb indices to 8 msb's, to * retain the full precision throughout the pipeline. */ tmp = RREG32(mmGRPH_LUT_10BIT_BYPASS + amdgpu_crtc->crtc_offset); if (bypass_lut) tmp = REG_SET_FIELD(tmp, GRPH_LUT_10BIT_BYPASS, GRPH_LUT_10BIT_BYPASS_EN, 1); else tmp = REG_SET_FIELD(tmp, GRPH_LUT_10BIT_BYPASS, GRPH_LUT_10BIT_BYPASS_EN, 0); WREG32(mmGRPH_LUT_10BIT_BYPASS + amdgpu_crtc->crtc_offset, tmp); if (bypass_lut) DRM_DEBUG_KMS("Bypassing hardware LUT due to 10 bit fb scanout.\n"); WREG32(mmGRPH_SURFACE_OFFSET_X + amdgpu_crtc->crtc_offset, 0); WREG32(mmGRPH_SURFACE_OFFSET_Y + amdgpu_crtc->crtc_offset, 0); WREG32(mmGRPH_X_START + amdgpu_crtc->crtc_offset, 0); WREG32(mmGRPH_Y_START + amdgpu_crtc->crtc_offset, 0); WREG32(mmGRPH_X_END + amdgpu_crtc->crtc_offset, target_fb->width); WREG32(mmGRPH_Y_END + amdgpu_crtc->crtc_offset, target_fb->height); fb_pitch_pixels = target_fb->pitches[0] / target_fb->format->cpp[0]; WREG32(mmGRPH_PITCH + amdgpu_crtc->crtc_offset, fb_pitch_pixels); dce_v11_0_grph_enable(crtc, true); WREG32(mmLB_DESKTOP_HEIGHT + amdgpu_crtc->crtc_offset, target_fb->height); x &= ~3; y &= ~1; WREG32(mmVIEWPORT_START + amdgpu_crtc->crtc_offset, (x << 16) | y); viewport_w = crtc->mode.hdisplay; viewport_h = (crtc->mode.vdisplay + 1) & ~1; WREG32(mmVIEWPORT_SIZE + amdgpu_crtc->crtc_offset, (viewport_w << 16) | viewport_h); /* set pageflip to happen anywhere in vblank interval */ WREG32(mmCRTC_MASTER_UPDATE_MODE + amdgpu_crtc->crtc_offset, 0); if (!atomic && fb && fb != crtc->primary->fb) { abo = gem_to_amdgpu_bo(fb->obj[0]); r = amdgpu_bo_reserve(abo, true); if (unlikely(r != 0)) return r; amdgpu_bo_unpin(abo); amdgpu_bo_unreserve(abo); } /* Bytes per pixel may have changed */ dce_v11_0_bandwidth_update(adev); return 0; } static void dce_v11_0_set_interleave(struct drm_crtc *crtc, struct drm_display_mode *mode) { struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); u32 tmp; tmp = RREG32(mmLB_DATA_FORMAT + amdgpu_crtc->crtc_offset); if (mode->flags & DRM_MODE_FLAG_INTERLACE) tmp = REG_SET_FIELD(tmp, LB_DATA_FORMAT, INTERLEAVE_EN, 1); else tmp = REG_SET_FIELD(tmp, LB_DATA_FORMAT, INTERLEAVE_EN, 0); WREG32(mmLB_DATA_FORMAT + amdgpu_crtc->crtc_offset, tmp); } static void dce_v11_0_crtc_load_lut(struct drm_crtc *crtc) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); u16 *r, *g, *b; int i; u32 tmp; DRM_DEBUG_KMS("%d\n", amdgpu_crtc->crtc_id); tmp = RREG32(mmINPUT_CSC_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, INPUT_CSC_CONTROL, INPUT_CSC_GRPH_MODE, 0); WREG32(mmINPUT_CSC_CONTROL + amdgpu_crtc->crtc_offset, tmp); tmp = RREG32(mmPRESCALE_GRPH_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, PRESCALE_GRPH_CONTROL, GRPH_PRESCALE_BYPASS, 1); WREG32(mmPRESCALE_GRPH_CONTROL + amdgpu_crtc->crtc_offset, tmp); tmp = RREG32(mmINPUT_GAMMA_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, INPUT_GAMMA_CONTROL, GRPH_INPUT_GAMMA_MODE, 0); WREG32(mmINPUT_GAMMA_CONTROL + amdgpu_crtc->crtc_offset, tmp); WREG32(mmDC_LUT_CONTROL + amdgpu_crtc->crtc_offset, 0); WREG32(mmDC_LUT_BLACK_OFFSET_BLUE + amdgpu_crtc->crtc_offset, 0); WREG32(mmDC_LUT_BLACK_OFFSET_GREEN + amdgpu_crtc->crtc_offset, 0); WREG32(mmDC_LUT_BLACK_OFFSET_RED + amdgpu_crtc->crtc_offset, 0); WREG32(mmDC_LUT_WHITE_OFFSET_BLUE + amdgpu_crtc->crtc_offset, 0xffff); WREG32(mmDC_LUT_WHITE_OFFSET_GREEN + amdgpu_crtc->crtc_offset, 0xffff); WREG32(mmDC_LUT_WHITE_OFFSET_RED + amdgpu_crtc->crtc_offset, 0xffff); WREG32(mmDC_LUT_RW_MODE + amdgpu_crtc->crtc_offset, 0); WREG32(mmDC_LUT_WRITE_EN_MASK + amdgpu_crtc->crtc_offset, 0x00000007); WREG32(mmDC_LUT_RW_INDEX + amdgpu_crtc->crtc_offset, 0); r = crtc->gamma_store; g = r + crtc->gamma_size; b = g + crtc->gamma_size; for (i = 0; i < 256; i++) { WREG32(mmDC_LUT_30_COLOR + amdgpu_crtc->crtc_offset, ((*r++ & 0xffc0) << 14) | ((*g++ & 0xffc0) << 4) | (*b++ >> 6)); } tmp = RREG32(mmDEGAMMA_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, DEGAMMA_CONTROL, GRPH_DEGAMMA_MODE, 0); tmp = REG_SET_FIELD(tmp, DEGAMMA_CONTROL, CURSOR_DEGAMMA_MODE, 0); tmp = REG_SET_FIELD(tmp, DEGAMMA_CONTROL, CURSOR2_DEGAMMA_MODE, 0); WREG32(mmDEGAMMA_CONTROL + amdgpu_crtc->crtc_offset, tmp); tmp = RREG32(mmGAMUT_REMAP_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, GAMUT_REMAP_CONTROL, GRPH_GAMUT_REMAP_MODE, 0); WREG32(mmGAMUT_REMAP_CONTROL + amdgpu_crtc->crtc_offset, tmp); tmp = RREG32(mmREGAMMA_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, REGAMMA_CONTROL, GRPH_REGAMMA_MODE, 0); WREG32(mmREGAMMA_CONTROL + amdgpu_crtc->crtc_offset, tmp); tmp = RREG32(mmOUTPUT_CSC_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, OUTPUT_CSC_CONTROL, OUTPUT_CSC_GRPH_MODE, 0); WREG32(mmOUTPUT_CSC_CONTROL + amdgpu_crtc->crtc_offset, tmp); /* XXX match this to the depth of the crtc fmt block, move to modeset? */ WREG32(mmDENORM_CONTROL + amdgpu_crtc->crtc_offset, 0); /* XXX this only needs to be programmed once per crtc at startup, * not sure where the best place for it is */ tmp = RREG32(mmALPHA_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, ALPHA_CONTROL, CURSOR_ALPHA_BLND_ENA, 1); WREG32(mmALPHA_CONTROL + amdgpu_crtc->crtc_offset, tmp); } static int dce_v11_0_pick_dig_encoder(struct drm_encoder *encoder) { struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; switch (amdgpu_encoder->encoder_id) { case ENCODER_OBJECT_ID_INTERNAL_UNIPHY: if (dig->linkb) return 1; else return 0; case ENCODER_OBJECT_ID_INTERNAL_UNIPHY1: if (dig->linkb) return 3; else return 2; case ENCODER_OBJECT_ID_INTERNAL_UNIPHY2: if (dig->linkb) return 5; else return 4; case ENCODER_OBJECT_ID_INTERNAL_UNIPHY3: return 6; default: DRM_ERROR("invalid encoder_id: 0x%x\n", amdgpu_encoder->encoder_id); return 0; } } /** * dce_v11_0_pick_pll - Allocate a PPLL for use by the crtc. * * @crtc: drm crtc * * Returns the PPLL (Pixel PLL) to be used by the crtc. For DP monitors * a single PPLL can be used for all DP crtcs/encoders. For non-DP * monitors a dedicated PPLL must be used. If a particular board has * an external DP PLL, return ATOM_PPLL_INVALID to skip PLL programming * as there is no need to program the PLL itself. If we are not able to * allocate a PLL, return ATOM_PPLL_INVALID to skip PLL programming to * avoid messing up an existing monitor. * * Asic specific PLL information * * DCE 10.x * Tonga * - PPLL1, PPLL2 are available for all UNIPHY (both DP and non-DP) * CI * - PPLL0, PPLL1, PPLL2 are available for all UNIPHY (both DP and non-DP) and DAC * */ static u32 dce_v11_0_pick_pll(struct drm_crtc *crtc) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); u32 pll_in_use; int pll; if ((adev->asic_type == CHIP_POLARIS10) || (adev->asic_type == CHIP_POLARIS11) || (adev->asic_type == CHIP_POLARIS12) || (adev->asic_type == CHIP_VEGAM)) { struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(amdgpu_crtc->encoder); struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) return ATOM_DP_DTO; switch (amdgpu_encoder->encoder_id) { case ENCODER_OBJECT_ID_INTERNAL_UNIPHY: if (dig->linkb) return ATOM_COMBOPHY_PLL1; else return ATOM_COMBOPHY_PLL0; case ENCODER_OBJECT_ID_INTERNAL_UNIPHY1: if (dig->linkb) return ATOM_COMBOPHY_PLL3; else return ATOM_COMBOPHY_PLL2; case ENCODER_OBJECT_ID_INTERNAL_UNIPHY2: if (dig->linkb) return ATOM_COMBOPHY_PLL5; else return ATOM_COMBOPHY_PLL4; default: DRM_ERROR("invalid encoder_id: 0x%x\n", amdgpu_encoder->encoder_id); return ATOM_PPLL_INVALID; } } if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) { if (adev->clock.dp_extclk) /* skip PPLL programming if using ext clock */ return ATOM_PPLL_INVALID; else { /* use the same PPLL for all DP monitors */ pll = amdgpu_pll_get_shared_dp_ppll(crtc); if (pll != ATOM_PPLL_INVALID) return pll; } } else { /* use the same PPLL for all monitors with the same clock */ pll = amdgpu_pll_get_shared_nondp_ppll(crtc); if (pll != ATOM_PPLL_INVALID) return pll; } /* XXX need to determine what plls are available on each DCE11 part */ pll_in_use = amdgpu_pll_get_use_mask(crtc); if (adev->flags & AMD_IS_APU) { if (!(pll_in_use & (1 << ATOM_PPLL1))) return ATOM_PPLL1; if (!(pll_in_use & (1 << ATOM_PPLL0))) return ATOM_PPLL0; DRM_ERROR("unable to allocate a PPLL\n"); return ATOM_PPLL_INVALID; } else { if (!(pll_in_use & (1 << ATOM_PPLL2))) return ATOM_PPLL2; if (!(pll_in_use & (1 << ATOM_PPLL1))) return ATOM_PPLL1; if (!(pll_in_use & (1 << ATOM_PPLL0))) return ATOM_PPLL0; DRM_ERROR("unable to allocate a PPLL\n"); return ATOM_PPLL_INVALID; } return ATOM_PPLL_INVALID; } static void dce_v11_0_lock_cursor(struct drm_crtc *crtc, bool lock) { struct amdgpu_device *adev = drm_to_adev(crtc->dev); struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); uint32_t cur_lock; cur_lock = RREG32(mmCUR_UPDATE + amdgpu_crtc->crtc_offset); if (lock) cur_lock = REG_SET_FIELD(cur_lock, CUR_UPDATE, CURSOR_UPDATE_LOCK, 1); else cur_lock = REG_SET_FIELD(cur_lock, CUR_UPDATE, CURSOR_UPDATE_LOCK, 0); WREG32(mmCUR_UPDATE + amdgpu_crtc->crtc_offset, cur_lock); } static void dce_v11_0_hide_cursor(struct drm_crtc *crtc) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct amdgpu_device *adev = drm_to_adev(crtc->dev); u32 tmp; tmp = RREG32(mmCUR_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, CUR_CONTROL, CURSOR_EN, 0); WREG32(mmCUR_CONTROL + amdgpu_crtc->crtc_offset, tmp); } static void dce_v11_0_show_cursor(struct drm_crtc *crtc) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct amdgpu_device *adev = drm_to_adev(crtc->dev); u32 tmp; WREG32(mmCUR_SURFACE_ADDRESS_HIGH + amdgpu_crtc->crtc_offset, upper_32_bits(amdgpu_crtc->cursor_addr)); WREG32(mmCUR_SURFACE_ADDRESS + amdgpu_crtc->crtc_offset, lower_32_bits(amdgpu_crtc->cursor_addr)); tmp = RREG32(mmCUR_CONTROL + amdgpu_crtc->crtc_offset); tmp = REG_SET_FIELD(tmp, CUR_CONTROL, CURSOR_EN, 1); tmp = REG_SET_FIELD(tmp, CUR_CONTROL, CURSOR_MODE, 2); WREG32(mmCUR_CONTROL + amdgpu_crtc->crtc_offset, tmp); } static int dce_v11_0_cursor_move_locked(struct drm_crtc *crtc, int x, int y) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct amdgpu_device *adev = drm_to_adev(crtc->dev); int xorigin = 0, yorigin = 0; amdgpu_crtc->cursor_x = x; amdgpu_crtc->cursor_y = y; /* avivo cursor are offset into the total surface */ x += crtc->x; y += crtc->y; DRM_DEBUG("x %d y %d c->x %d c->y %d\n", x, y, crtc->x, crtc->y); if (x < 0) { xorigin = min(-x, amdgpu_crtc->max_cursor_width - 1); x = 0; } if (y < 0) { yorigin = min(-y, amdgpu_crtc->max_cursor_height - 1); y = 0; } WREG32(mmCUR_POSITION + amdgpu_crtc->crtc_offset, (x << 16) | y); WREG32(mmCUR_HOT_SPOT + amdgpu_crtc->crtc_offset, (xorigin << 16) | yorigin); WREG32(mmCUR_SIZE + amdgpu_crtc->crtc_offset, ((amdgpu_crtc->cursor_width - 1) << 16) | (amdgpu_crtc->cursor_height - 1)); return 0; } static int dce_v11_0_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) { int ret; dce_v11_0_lock_cursor(crtc, true); ret = dce_v11_0_cursor_move_locked(crtc, x, y); dce_v11_0_lock_cursor(crtc, false); return ret; } static int dce_v11_0_crtc_cursor_set2(struct drm_crtc *crtc, struct drm_file *file_priv, uint32_t handle, uint32_t width, uint32_t height, int32_t hot_x, int32_t hot_y) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_gem_object *obj; struct amdgpu_bo *aobj; int ret; if (!handle) { /* turn off cursor */ dce_v11_0_hide_cursor(crtc); obj = NULL; goto unpin; } if ((width > amdgpu_crtc->max_cursor_width) || (height > amdgpu_crtc->max_cursor_height)) { DRM_ERROR("bad cursor width or height %d x %d\n", width, height); return -EINVAL; } obj = drm_gem_object_lookup(file_priv, handle); if (!obj) { DRM_ERROR("Cannot find cursor object %x for crtc %d\n", handle, amdgpu_crtc->crtc_id); return -ENOENT; } aobj = gem_to_amdgpu_bo(obj); ret = amdgpu_bo_reserve(aobj, false); if (ret != 0) { drm_gem_object_put(obj); return ret; } ret = amdgpu_bo_pin(aobj, AMDGPU_GEM_DOMAIN_VRAM); amdgpu_bo_unreserve(aobj); if (ret) { DRM_ERROR("Failed to pin new cursor BO (%d)\n", ret); drm_gem_object_put(obj); return ret; } amdgpu_crtc->cursor_addr = amdgpu_bo_gpu_offset(aobj); dce_v11_0_lock_cursor(crtc, true); if (width != amdgpu_crtc->cursor_width || height != amdgpu_crtc->cursor_height || hot_x != amdgpu_crtc->cursor_hot_x || hot_y != amdgpu_crtc->cursor_hot_y) { int x, y; x = amdgpu_crtc->cursor_x + amdgpu_crtc->cursor_hot_x - hot_x; y = amdgpu_crtc->cursor_y + amdgpu_crtc->cursor_hot_y - hot_y; dce_v11_0_cursor_move_locked(crtc, x, y); amdgpu_crtc->cursor_width = width; amdgpu_crtc->cursor_height = height; amdgpu_crtc->cursor_hot_x = hot_x; amdgpu_crtc->cursor_hot_y = hot_y; } dce_v11_0_show_cursor(crtc); dce_v11_0_lock_cursor(crtc, false); unpin: if (amdgpu_crtc->cursor_bo) { struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo); ret = amdgpu_bo_reserve(aobj, true); if (likely(ret == 0)) { amdgpu_bo_unpin(aobj); amdgpu_bo_unreserve(aobj); } drm_gem_object_put(amdgpu_crtc->cursor_bo); } amdgpu_crtc->cursor_bo = obj; return 0; } static void dce_v11_0_cursor_reset(struct drm_crtc *crtc) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); if (amdgpu_crtc->cursor_bo) { dce_v11_0_lock_cursor(crtc, true); dce_v11_0_cursor_move_locked(crtc, amdgpu_crtc->cursor_x, amdgpu_crtc->cursor_y); dce_v11_0_show_cursor(crtc); dce_v11_0_lock_cursor(crtc, false); } } static int dce_v11_0_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, uint32_t size, struct drm_modeset_acquire_ctx *ctx) { dce_v11_0_crtc_load_lut(crtc); return 0; } static void dce_v11_0_crtc_destroy(struct drm_crtc *crtc) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); drm_crtc_cleanup(crtc); kfree(amdgpu_crtc); } static const struct drm_crtc_funcs dce_v11_0_crtc_funcs = { .cursor_set2 = dce_v11_0_crtc_cursor_set2, .cursor_move = dce_v11_0_crtc_cursor_move, .gamma_set = dce_v11_0_crtc_gamma_set, .set_config = amdgpu_display_crtc_set_config, .destroy = dce_v11_0_crtc_destroy, .page_flip_target = amdgpu_display_crtc_page_flip_target, .get_vblank_counter = amdgpu_get_vblank_counter_kms, .enable_vblank = amdgpu_enable_vblank_kms, .disable_vblank = amdgpu_disable_vblank_kms, .get_vblank_timestamp = drm_crtc_vblank_helper_get_vblank_timestamp, }; static void dce_v11_0_crtc_dpms(struct drm_crtc *crtc, int mode) { struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); unsigned type; switch (mode) { case DRM_MODE_DPMS_ON: amdgpu_crtc->enabled = true; amdgpu_atombios_crtc_enable(crtc, ATOM_ENABLE); dce_v11_0_vga_enable(crtc, true); amdgpu_atombios_crtc_blank(crtc, ATOM_DISABLE); dce_v11_0_vga_enable(crtc, false); /* Make sure VBLANK and PFLIP interrupts are still enabled */ type = amdgpu_display_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id); amdgpu_irq_update(adev, &adev->crtc_irq, type); amdgpu_irq_update(adev, &adev->pageflip_irq, type); drm_crtc_vblank_on(crtc); dce_v11_0_crtc_load_lut(crtc); break; case DRM_MODE_DPMS_STANDBY: case DRM_MODE_DPMS_SUSPEND: case DRM_MODE_DPMS_OFF: drm_crtc_vblank_off(crtc); if (amdgpu_crtc->enabled) { dce_v11_0_vga_enable(crtc, true); amdgpu_atombios_crtc_blank(crtc, ATOM_ENABLE); dce_v11_0_vga_enable(crtc, false); } amdgpu_atombios_crtc_enable(crtc, ATOM_DISABLE); amdgpu_crtc->enabled = false; break; } /* adjust pm to dpms */ amdgpu_dpm_compute_clocks(adev); } static void dce_v11_0_crtc_prepare(struct drm_crtc *crtc) { /* disable crtc pair power gating before programming */ amdgpu_atombios_crtc_powergate(crtc, ATOM_DISABLE); amdgpu_atombios_crtc_lock(crtc, ATOM_ENABLE); dce_v11_0_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); } static void dce_v11_0_crtc_commit(struct drm_crtc *crtc) { dce_v11_0_crtc_dpms(crtc, DRM_MODE_DPMS_ON); amdgpu_atombios_crtc_lock(crtc, ATOM_DISABLE); } static void dce_v11_0_crtc_disable(struct drm_crtc *crtc) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); struct amdgpu_atom_ss ss; int i; dce_v11_0_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); if (crtc->primary->fb) { int r; struct amdgpu_bo *abo; abo = gem_to_amdgpu_bo(crtc->primary->fb->obj[0]); r = amdgpu_bo_reserve(abo, true); if (unlikely(r)) DRM_ERROR("failed to reserve abo before unpin\n"); else { amdgpu_bo_unpin(abo); amdgpu_bo_unreserve(abo); } } /* disable the GRPH */ dce_v11_0_grph_enable(crtc, false); amdgpu_atombios_crtc_powergate(crtc, ATOM_ENABLE); for (i = 0; i < adev->mode_info.num_crtc; i++) { if (adev->mode_info.crtcs[i] && adev->mode_info.crtcs[i]->enabled && i != amdgpu_crtc->crtc_id && amdgpu_crtc->pll_id == adev->mode_info.crtcs[i]->pll_id) { /* one other crtc is using this pll don't turn * off the pll */ goto done; } } switch (amdgpu_crtc->pll_id) { case ATOM_PPLL0: case ATOM_PPLL1: case ATOM_PPLL2: /* disable the ppll */ amdgpu_atombios_crtc_program_pll(crtc, amdgpu_crtc->crtc_id, amdgpu_crtc->pll_id, 0, 0, ATOM_DISABLE, 0, 0, 0, 0, 0, false, &ss); break; case ATOM_COMBOPHY_PLL0: case ATOM_COMBOPHY_PLL1: case ATOM_COMBOPHY_PLL2: case ATOM_COMBOPHY_PLL3: case ATOM_COMBOPHY_PLL4: case ATOM_COMBOPHY_PLL5: /* disable the ppll */ amdgpu_atombios_crtc_program_pll(crtc, ATOM_CRTC_INVALID, amdgpu_crtc->pll_id, 0, 0, ATOM_DISABLE, 0, 0, 0, 0, 0, false, &ss); break; default: break; } done: amdgpu_crtc->pll_id = ATOM_PPLL_INVALID; amdgpu_crtc->adjusted_clock = 0; amdgpu_crtc->encoder = NULL; amdgpu_crtc->connector = NULL; } static int dce_v11_0_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode, int x, int y, struct drm_framebuffer *old_fb) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct amdgpu_device *adev = drm_to_adev(dev); if (!amdgpu_crtc->adjusted_clock) return -EINVAL; if ((adev->asic_type == CHIP_POLARIS10) || (adev->asic_type == CHIP_POLARIS11) || (adev->asic_type == CHIP_POLARIS12) || (adev->asic_type == CHIP_VEGAM)) { struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(amdgpu_crtc->encoder); int encoder_mode = amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder); /* SetPixelClock calculates the plls and ss values now */ amdgpu_atombios_crtc_program_pll(crtc, amdgpu_crtc->crtc_id, amdgpu_crtc->pll_id, encoder_mode, amdgpu_encoder->encoder_id, adjusted_mode->clock, 0, 0, 0, 0, amdgpu_crtc->bpc, amdgpu_crtc->ss_enabled, &amdgpu_crtc->ss); } else { amdgpu_atombios_crtc_set_pll(crtc, adjusted_mode); } amdgpu_atombios_crtc_set_dtd_timing(crtc, adjusted_mode); dce_v11_0_crtc_do_set_base(crtc, old_fb, x, y, 0); amdgpu_atombios_crtc_overscan_setup(crtc, mode, adjusted_mode); amdgpu_atombios_crtc_scaler_setup(crtc); dce_v11_0_cursor_reset(crtc); /* update the hw version fpr dpm */ amdgpu_crtc->hw_mode = *adjusted_mode; return 0; } static bool dce_v11_0_crtc_mode_fixup(struct drm_crtc *crtc, const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) { struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct drm_device *dev = crtc->dev; struct drm_encoder *encoder; /* assign the encoder to the amdgpu crtc to avoid repeated lookups later */ list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { if (encoder->crtc == crtc) { amdgpu_crtc->encoder = encoder; amdgpu_crtc->connector = amdgpu_get_connector_for_encoder(encoder); break; } } if ((amdgpu_crtc->encoder == NULL) || (amdgpu_crtc->connector == NULL)) { amdgpu_crtc->encoder = NULL; amdgpu_crtc->connector = NULL; return false; } if (!amdgpu_display_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) return false; if (amdgpu_atombios_crtc_prepare_pll(crtc, adjusted_mode)) return false; /* pick pll */ amdgpu_crtc->pll_id = dce_v11_0_pick_pll(crtc); /* if we can't get a PPLL for a non-DP encoder, fail */ if ((amdgpu_crtc->pll_id == ATOM_PPLL_INVALID) && !ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) return false; return true; } static int dce_v11_0_crtc_set_base(struct drm_crtc *crtc, int x, int y, struct drm_framebuffer *old_fb) { return dce_v11_0_crtc_do_set_base(crtc, old_fb, x, y, 0); } static int dce_v11_0_crtc_set_base_atomic(struct drm_crtc *crtc, struct drm_framebuffer *fb, int x, int y, enum mode_set_atomic state) { return dce_v11_0_crtc_do_set_base(crtc, fb, x, y, 1); } static const struct drm_crtc_helper_funcs dce_v11_0_crtc_helper_funcs = { .dpms = dce_v11_0_crtc_dpms, .mode_fixup = dce_v11_0_crtc_mode_fixup, .mode_set = dce_v11_0_crtc_mode_set, .mode_set_base = dce_v11_0_crtc_set_base, .mode_set_base_atomic = dce_v11_0_crtc_set_base_atomic, .prepare = dce_v11_0_crtc_prepare, .commit = dce_v11_0_crtc_commit, .disable = dce_v11_0_crtc_disable, .get_scanout_position = amdgpu_crtc_get_scanout_position, }; static int dce_v11_0_crtc_init(struct amdgpu_device *adev, int index) { struct amdgpu_crtc *amdgpu_crtc; amdgpu_crtc = kzalloc(sizeof(struct amdgpu_crtc) + (AMDGPUFB_CONN_LIMIT * sizeof(struct drm_connector *)), GFP_KERNEL); if (amdgpu_crtc == NULL) return -ENOMEM; drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, &dce_v11_0_crtc_funcs); drm_mode_crtc_set_gamma_size(&amdgpu_crtc->base, 256); amdgpu_crtc->crtc_id = index; adev->mode_info.crtcs[index] = amdgpu_crtc; amdgpu_crtc->max_cursor_width = 128; amdgpu_crtc->max_cursor_height = 128; adev_to_drm(adev)->mode_config.cursor_width = amdgpu_crtc->max_cursor_width; adev_to_drm(adev)->mode_config.cursor_height = amdgpu_crtc->max_cursor_height; switch (amdgpu_crtc->crtc_id) { case 0: default: amdgpu_crtc->crtc_offset = CRTC0_REGISTER_OFFSET; break; case 1: amdgpu_crtc->crtc_offset = CRTC1_REGISTER_OFFSET; break; case 2: amdgpu_crtc->crtc_offset = CRTC2_REGISTER_OFFSET; break; case 3: amdgpu_crtc->crtc_offset = CRTC3_REGISTER_OFFSET; break; case 4: amdgpu_crtc->crtc_offset = CRTC4_REGISTER_OFFSET; break; case 5: amdgpu_crtc->crtc_offset = CRTC5_REGISTER_OFFSET; break; } amdgpu_crtc->pll_id = ATOM_PPLL_INVALID; amdgpu_crtc->adjusted_clock = 0; amdgpu_crtc->encoder = NULL; amdgpu_crtc->connector = NULL; drm_crtc_helper_add(&amdgpu_crtc->base, &dce_v11_0_crtc_helper_funcs); return 0; } static int dce_v11_0_early_init(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; adev->audio_endpt_rreg = &dce_v11_0_audio_endpt_rreg; adev->audio_endpt_wreg = &dce_v11_0_audio_endpt_wreg; dce_v11_0_set_display_funcs(adev); adev->mode_info.num_crtc = dce_v11_0_get_num_crtc(adev); switch (adev->asic_type) { case CHIP_CARRIZO: adev->mode_info.num_hpd = 6; adev->mode_info.num_dig = 9; break; case CHIP_STONEY: adev->mode_info.num_hpd = 6; adev->mode_info.num_dig = 9; break; case CHIP_POLARIS10: case CHIP_VEGAM: adev->mode_info.num_hpd = 6; adev->mode_info.num_dig = 6; break; case CHIP_POLARIS11: case CHIP_POLARIS12: adev->mode_info.num_hpd = 5; adev->mode_info.num_dig = 5; break; default: /* FIXME: not supported yet */ return -EINVAL; } dce_v11_0_set_irq_funcs(adev); return 0; } static int dce_v11_0_sw_init(void *handle) { int r, i; struct amdgpu_device *adev = (struct amdgpu_device *)handle; for (i = 0; i < adev->mode_info.num_crtc; i++) { r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + 1, &adev->crtc_irq); if (r) return r; } for (i = VISLANDS30_IV_SRCID_D1_GRPH_PFLIP; i < 20; i += 2) { r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i, &adev->pageflip_irq); if (r) return r; } /* HPD hotplug */ r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_HOTPLUG_DETECT_A, &adev->hpd_irq); if (r) return r; adev_to_drm(adev)->mode_config.funcs = &amdgpu_mode_funcs; adev_to_drm(adev)->mode_config.async_page_flip = true; adev_to_drm(adev)->mode_config.max_width = 16384; adev_to_drm(adev)->mode_config.max_height = 16384; adev_to_drm(adev)->mode_config.preferred_depth = 24; adev_to_drm(adev)->mode_config.prefer_shadow = 1; adev_to_drm(adev)->mode_config.fb_modifiers_not_supported = true; r = amdgpu_display_modeset_create_props(adev); if (r) return r; adev_to_drm(adev)->mode_config.max_width = 16384; adev_to_drm(adev)->mode_config.max_height = 16384; /* allocate crtcs */ for (i = 0; i < adev->mode_info.num_crtc; i++) { r = dce_v11_0_crtc_init(adev, i); if (r) return r; } if (amdgpu_atombios_get_connector_info_from_object_table(adev)) amdgpu_display_print_display_setup(adev_to_drm(adev)); else return -EINVAL; /* setup afmt */ r = dce_v11_0_afmt_init(adev); if (r) return r; r = dce_v11_0_audio_init(adev); if (r) return r; /* Disable vblank IRQs aggressively for power-saving */ /* XXX: can this be enabled for DC? */ adev_to_drm(adev)->vblank_disable_immediate = true; r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc); if (r) return r; INIT_DELAYED_WORK(&adev->hotplug_work, amdgpu_display_hotplug_work_func); drm_kms_helper_poll_init(adev_to_drm(adev)); adev->mode_info.mode_config_initialized = true; return 0; } static int dce_v11_0_sw_fini(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; kfree(adev->mode_info.bios_hardcoded_edid); drm_kms_helper_poll_fini(adev_to_drm(adev)); dce_v11_0_audio_fini(adev); dce_v11_0_afmt_fini(adev); drm_mode_config_cleanup(adev_to_drm(adev)); adev->mode_info.mode_config_initialized = false; return 0; } static int dce_v11_0_hw_init(void *handle) { int i; struct amdgpu_device *adev = (struct amdgpu_device *)handle; dce_v11_0_init_golden_registers(adev); /* disable vga render */ dce_v11_0_set_vga_render_state(adev, false); /* init dig PHYs, disp eng pll */ amdgpu_atombios_crtc_powergate_init(adev); amdgpu_atombios_encoder_init_dig(adev); if ((adev->asic_type == CHIP_POLARIS10) || (adev->asic_type == CHIP_POLARIS11) || (adev->asic_type == CHIP_POLARIS12) || (adev->asic_type == CHIP_VEGAM)) { amdgpu_atombios_crtc_set_dce_clock(adev, adev->clock.default_dispclk, DCE_CLOCK_TYPE_DISPCLK, ATOM_GCK_DFS); amdgpu_atombios_crtc_set_dce_clock(adev, 0, DCE_CLOCK_TYPE_DPREFCLK, ATOM_GCK_DFS); } else { amdgpu_atombios_crtc_set_disp_eng_pll(adev, adev->clock.default_dispclk); } /* initialize hpd */ dce_v11_0_hpd_init(adev); for (i = 0; i < adev->mode_info.audio.num_pins; i++) { dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); } dce_v11_0_pageflip_interrupt_init(adev); return 0; } static int dce_v11_0_hw_fini(void *handle) { int i; struct amdgpu_device *adev = (struct amdgpu_device *)handle; dce_v11_0_hpd_fini(adev); for (i = 0; i < adev->mode_info.audio.num_pins; i++) { dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); } dce_v11_0_pageflip_interrupt_fini(adev); flush_delayed_work(&adev->hotplug_work); return 0; } static int dce_v11_0_suspend(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; int r; r = amdgpu_display_suspend_helper(adev); if (r) return r; adev->mode_info.bl_level = amdgpu_atombios_encoder_get_backlight_level_from_reg(adev); return dce_v11_0_hw_fini(handle); } static int dce_v11_0_resume(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; int ret; amdgpu_atombios_encoder_set_backlight_level_to_reg(adev, adev->mode_info.bl_level); ret = dce_v11_0_hw_init(handle); /* turn on the BL */ if (adev->mode_info.bl_encoder) { u8 bl_level = amdgpu_display_backlight_get_level(adev, adev->mode_info.bl_encoder); amdgpu_display_backlight_set_level(adev, adev->mode_info.bl_encoder, bl_level); } if (ret) return ret; return amdgpu_display_resume_helper(adev); } static bool dce_v11_0_is_idle(void *handle) { return true; } static int dce_v11_0_wait_for_idle(void *handle) { return 0; } static int dce_v11_0_soft_reset(void *handle) { u32 srbm_soft_reset = 0, tmp; struct amdgpu_device *adev = (struct amdgpu_device *)handle; if (dce_v11_0_is_display_hung(adev)) srbm_soft_reset |= SRBM_SOFT_RESET__SOFT_RESET_DC_MASK; if (srbm_soft_reset) { tmp = RREG32(mmSRBM_SOFT_RESET); tmp |= srbm_soft_reset; dev_info(adev->dev, "SRBM_SOFT_RESET=0x%08X\n", tmp); WREG32(mmSRBM_SOFT_RESET, tmp); tmp = RREG32(mmSRBM_SOFT_RESET); udelay(50); tmp &= ~srbm_soft_reset; WREG32(mmSRBM_SOFT_RESET, tmp); tmp = RREG32(mmSRBM_SOFT_RESET); /* Wait a little for things to settle down */ udelay(50); } return 0; } static void dce_v11_0_set_crtc_vblank_interrupt_state(struct amdgpu_device *adev, int crtc, enum amdgpu_interrupt_state state) { u32 lb_interrupt_mask; if (crtc >= adev->mode_info.num_crtc) { DRM_DEBUG("invalid crtc %d\n", crtc); return; } switch (state) { case AMDGPU_IRQ_STATE_DISABLE: lb_interrupt_mask = RREG32(mmLB_INTERRUPT_MASK + crtc_offsets[crtc]); lb_interrupt_mask = REG_SET_FIELD(lb_interrupt_mask, LB_INTERRUPT_MASK, VBLANK_INTERRUPT_MASK, 0); WREG32(mmLB_INTERRUPT_MASK + crtc_offsets[crtc], lb_interrupt_mask); break; case AMDGPU_IRQ_STATE_ENABLE: lb_interrupt_mask = RREG32(mmLB_INTERRUPT_MASK + crtc_offsets[crtc]); lb_interrupt_mask = REG_SET_FIELD(lb_interrupt_mask, LB_INTERRUPT_MASK, VBLANK_INTERRUPT_MASK, 1); WREG32(mmLB_INTERRUPT_MASK + crtc_offsets[crtc], lb_interrupt_mask); break; default: break; } } static void dce_v11_0_set_crtc_vline_interrupt_state(struct amdgpu_device *adev, int crtc, enum amdgpu_interrupt_state state) { u32 lb_interrupt_mask; if (crtc >= adev->mode_info.num_crtc) { DRM_DEBUG("invalid crtc %d\n", crtc); return; } switch (state) { case AMDGPU_IRQ_STATE_DISABLE: lb_interrupt_mask = RREG32(mmLB_INTERRUPT_MASK + crtc_offsets[crtc]); lb_interrupt_mask = REG_SET_FIELD(lb_interrupt_mask, LB_INTERRUPT_MASK, VLINE_INTERRUPT_MASK, 0); WREG32(mmLB_INTERRUPT_MASK + crtc_offsets[crtc], lb_interrupt_mask); break; case AMDGPU_IRQ_STATE_ENABLE: lb_interrupt_mask = RREG32(mmLB_INTERRUPT_MASK + crtc_offsets[crtc]); lb_interrupt_mask = REG_SET_FIELD(lb_interrupt_mask, LB_INTERRUPT_MASK, VLINE_INTERRUPT_MASK, 1); WREG32(mmLB_INTERRUPT_MASK + crtc_offsets[crtc], lb_interrupt_mask); break; default: break; } } static int dce_v11_0_set_hpd_irq_state(struct amdgpu_device *adev, struct amdgpu_irq_src *source, unsigned hpd, enum amdgpu_interrupt_state state) { u32 tmp; if (hpd >= adev->mode_info.num_hpd) { DRM_DEBUG("invalid hdp %d\n", hpd); return 0; } switch (state) { case AMDGPU_IRQ_STATE_DISABLE: tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[hpd]); tmp = REG_SET_FIELD(tmp, DC_HPD_INT_CONTROL, DC_HPD_INT_EN, 0); WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[hpd], tmp); break; case AMDGPU_IRQ_STATE_ENABLE: tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[hpd]); tmp = REG_SET_FIELD(tmp, DC_HPD_INT_CONTROL, DC_HPD_INT_EN, 1); WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[hpd], tmp); break; default: break; } return 0; } static int dce_v11_0_set_crtc_irq_state(struct amdgpu_device *adev, struct amdgpu_irq_src *source, unsigned type, enum amdgpu_interrupt_state state) { switch (type) { case AMDGPU_CRTC_IRQ_VBLANK1: dce_v11_0_set_crtc_vblank_interrupt_state(adev, 0, state); break; case AMDGPU_CRTC_IRQ_VBLANK2: dce_v11_0_set_crtc_vblank_interrupt_state(adev, 1, state); break; case AMDGPU_CRTC_IRQ_VBLANK3: dce_v11_0_set_crtc_vblank_interrupt_state(adev, 2, state); break; case AMDGPU_CRTC_IRQ_VBLANK4: dce_v11_0_set_crtc_vblank_interrupt_state(adev, 3, state); break; case AMDGPU_CRTC_IRQ_VBLANK5: dce_v11_0_set_crtc_vblank_interrupt_state(adev, 4, state); break; case AMDGPU_CRTC_IRQ_VBLANK6: dce_v11_0_set_crtc_vblank_interrupt_state(adev, 5, state); break; case AMDGPU_CRTC_IRQ_VLINE1: dce_v11_0_set_crtc_vline_interrupt_state(adev, 0, state); break; case AMDGPU_CRTC_IRQ_VLINE2: dce_v11_0_set_crtc_vline_interrupt_state(adev, 1, state); break; case AMDGPU_CRTC_IRQ_VLINE3: dce_v11_0_set_crtc_vline_interrupt_state(adev, 2, state); break; case AMDGPU_CRTC_IRQ_VLINE4: dce_v11_0_set_crtc_vline_interrupt_state(adev, 3, state); break; case AMDGPU_CRTC_IRQ_VLINE5: dce_v11_0_set_crtc_vline_interrupt_state(adev, 4, state); break; case AMDGPU_CRTC_IRQ_VLINE6: dce_v11_0_set_crtc_vline_interrupt_state(adev, 5, state); break; default: break; } return 0; } static int dce_v11_0_set_pageflip_irq_state(struct amdgpu_device *adev, struct amdgpu_irq_src *src, unsigned type, enum amdgpu_interrupt_state state) { u32 reg; if (type >= adev->mode_info.num_crtc) { DRM_ERROR("invalid pageflip crtc %d\n", type); return -EINVAL; } reg = RREG32(mmGRPH_INTERRUPT_CONTROL + crtc_offsets[type]); if (state == AMDGPU_IRQ_STATE_DISABLE) WREG32(mmGRPH_INTERRUPT_CONTROL + crtc_offsets[type], reg & ~GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK); else WREG32(mmGRPH_INTERRUPT_CONTROL + crtc_offsets[type], reg | GRPH_INTERRUPT_CONTROL__GRPH_PFLIP_INT_MASK_MASK); return 0; } static int dce_v11_0_pageflip_irq(struct amdgpu_device *adev, struct amdgpu_irq_src *source, struct amdgpu_iv_entry *entry) { unsigned long flags; unsigned crtc_id; struct amdgpu_crtc *amdgpu_crtc; struct amdgpu_flip_work *works; crtc_id = (entry->src_id - 8) >> 1; amdgpu_crtc = adev->mode_info.crtcs[crtc_id]; if (crtc_id >= adev->mode_info.num_crtc) { DRM_ERROR("invalid pageflip crtc %d\n", crtc_id); return -EINVAL; } if (RREG32(mmGRPH_INTERRUPT_STATUS + crtc_offsets[crtc_id]) & GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_OCCURRED_MASK) WREG32(mmGRPH_INTERRUPT_STATUS + crtc_offsets[crtc_id], GRPH_INTERRUPT_STATUS__GRPH_PFLIP_INT_CLEAR_MASK); /* IRQ could occur when in initial stage */ if(amdgpu_crtc == NULL) return 0; spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); works = amdgpu_crtc->pflip_works; if (amdgpu_crtc->pflip_status != AMDGPU_FLIP_SUBMITTED){ DRM_DEBUG_DRIVER("amdgpu_crtc->pflip_status = %d != " "AMDGPU_FLIP_SUBMITTED(%d)\n", amdgpu_crtc->pflip_status, AMDGPU_FLIP_SUBMITTED); spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); return 0; } /* page flip completed. clean up */ amdgpu_crtc->pflip_status = AMDGPU_FLIP_NONE; amdgpu_crtc->pflip_works = NULL; /* wakeup usersapce */ if(works->event) drm_crtc_send_vblank_event(&amdgpu_crtc->base, works->event); spin_unlock_irqrestore(&adev_to_drm(adev)->event_lock, flags); drm_crtc_vblank_put(&amdgpu_crtc->base); schedule_work(&works->unpin_work); return 0; } static void dce_v11_0_hpd_int_ack(struct amdgpu_device *adev, int hpd) { u32 tmp; if (hpd >= adev->mode_info.num_hpd) { DRM_DEBUG("invalid hdp %d\n", hpd); return; } tmp = RREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[hpd]); tmp = REG_SET_FIELD(tmp, DC_HPD_INT_CONTROL, DC_HPD_INT_ACK, 1); WREG32(mmDC_HPD_INT_CONTROL + hpd_offsets[hpd], tmp); } static void dce_v11_0_crtc_vblank_int_ack(struct amdgpu_device *adev, int crtc) { u32 tmp; if (crtc < 0 || crtc >= adev->mode_info.num_crtc) { DRM_DEBUG("invalid crtc %d\n", crtc); return; } tmp = RREG32(mmLB_VBLANK_STATUS + crtc_offsets[crtc]); tmp = REG_SET_FIELD(tmp, LB_VBLANK_STATUS, VBLANK_ACK, 1); WREG32(mmLB_VBLANK_STATUS + crtc_offsets[crtc], tmp); } static void dce_v11_0_crtc_vline_int_ack(struct amdgpu_device *adev, int crtc) { u32 tmp; if (crtc < 0 || crtc >= adev->mode_info.num_crtc) { DRM_DEBUG("invalid crtc %d\n", crtc); return; } tmp = RREG32(mmLB_VLINE_STATUS + crtc_offsets[crtc]); tmp = REG_SET_FIELD(tmp, LB_VLINE_STATUS, VLINE_ACK, 1); WREG32(mmLB_VLINE_STATUS + crtc_offsets[crtc], tmp); } static int dce_v11_0_crtc_irq(struct amdgpu_device *adev, struct amdgpu_irq_src *source, struct amdgpu_iv_entry *entry) { unsigned crtc = entry->src_id - 1; uint32_t disp_int = RREG32(interrupt_status_offsets[crtc].reg); unsigned int irq_type = amdgpu_display_crtc_idx_to_irq_type(adev, crtc); switch (entry->src_data[0]) { case 0: /* vblank */ if (disp_int & interrupt_status_offsets[crtc].vblank) dce_v11_0_crtc_vblank_int_ack(adev, crtc); else DRM_DEBUG("IH: IH event w/o asserted irq bit?\n"); if (amdgpu_irq_enabled(adev, source, irq_type)) { drm_handle_vblank(adev_to_drm(adev), crtc); } DRM_DEBUG("IH: D%d vblank\n", crtc + 1); break; case 1: /* vline */ if (disp_int & interrupt_status_offsets[crtc].vline) dce_v11_0_crtc_vline_int_ack(adev, crtc); else DRM_DEBUG("IH: IH event w/o asserted irq bit?\n"); DRM_DEBUG("IH: D%d vline\n", crtc + 1); break; default: DRM_DEBUG("Unhandled interrupt: %d %d\n", entry->src_id, entry->src_data[0]); break; } return 0; } static int dce_v11_0_hpd_irq(struct amdgpu_device *adev, struct amdgpu_irq_src *source, struct amdgpu_iv_entry *entry) { uint32_t disp_int, mask; unsigned hpd; if (entry->src_data[0] >= adev->mode_info.num_hpd) { DRM_DEBUG("Unhandled interrupt: %d %d\n", entry->src_id, entry->src_data[0]); return 0; } hpd = entry->src_data[0]; disp_int = RREG32(interrupt_status_offsets[hpd].reg); mask = interrupt_status_offsets[hpd].hpd; if (disp_int & mask) { dce_v11_0_hpd_int_ack(adev, hpd); schedule_delayed_work(&adev->hotplug_work, 0); DRM_DEBUG("IH: HPD%d\n", hpd + 1); } return 0; } static int dce_v11_0_set_clockgating_state(void *handle, enum amd_clockgating_state state) { return 0; } static int dce_v11_0_set_powergating_state(void *handle, enum amd_powergating_state state) { return 0; } static const struct amd_ip_funcs dce_v11_0_ip_funcs = { .name = "dce_v11_0", .early_init = dce_v11_0_early_init, .late_init = NULL, .sw_init = dce_v11_0_sw_init, .sw_fini = dce_v11_0_sw_fini, .hw_init = dce_v11_0_hw_init, .hw_fini = dce_v11_0_hw_fini, .suspend = dce_v11_0_suspend, .resume = dce_v11_0_resume, .is_idle = dce_v11_0_is_idle, .wait_for_idle = dce_v11_0_wait_for_idle, .soft_reset = dce_v11_0_soft_reset, .set_clockgating_state = dce_v11_0_set_clockgating_state, .set_powergating_state = dce_v11_0_set_powergating_state, }; static void dce_v11_0_encoder_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) { struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); amdgpu_encoder->pixel_clock = adjusted_mode->clock; /* need to call this here rather than in prepare() since we need some crtc info */ amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); /* set scaler clears this on some chips */ dce_v11_0_set_interleave(encoder->crtc, mode); if (amdgpu_atombios_encoder_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) { dce_v11_0_afmt_enable(encoder, true); dce_v11_0_afmt_setmode(encoder, adjusted_mode); } } static void dce_v11_0_encoder_prepare(struct drm_encoder *encoder) { struct amdgpu_device *adev = drm_to_adev(encoder->dev); struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); if ((amdgpu_encoder->active_device & (ATOM_DEVICE_DFP_SUPPORT | ATOM_DEVICE_LCD_SUPPORT)) || (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE)) { struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; if (dig) { dig->dig_encoder = dce_v11_0_pick_dig_encoder(encoder); if (amdgpu_encoder->active_device & ATOM_DEVICE_DFP_SUPPORT) dig->afmt = adev->mode_info.afmt[dig->dig_encoder]; } } amdgpu_atombios_scratch_regs_lock(adev, true); if (connector) { struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); /* select the clock/data port if it uses a router */ if (amdgpu_connector->router.cd_valid) amdgpu_i2c_router_select_cd_port(amdgpu_connector); /* turn eDP panel on for mode set */ if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) amdgpu_atombios_encoder_set_edp_panel_power(connector, ATOM_TRANSMITTER_ACTION_POWER_ON); } /* this is needed for the pll/ss setup to work correctly in some cases */ amdgpu_atombios_encoder_set_crtc_source(encoder); /* set up the FMT blocks */ dce_v11_0_program_fmt(encoder); } static void dce_v11_0_encoder_commit(struct drm_encoder *encoder) { struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = drm_to_adev(dev); /* need to call this here as we need the crtc set up */ amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_ON); amdgpu_atombios_scratch_regs_lock(adev, false); } static void dce_v11_0_encoder_disable(struct drm_encoder *encoder) { struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); struct amdgpu_encoder_atom_dig *dig; amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); if (amdgpu_atombios_encoder_is_digital(encoder)) { if (amdgpu_atombios_encoder_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) dce_v11_0_afmt_enable(encoder, false); dig = amdgpu_encoder->enc_priv; dig->dig_encoder = -1; } amdgpu_encoder->active_device = 0; } /* these are handled by the primary encoders */ static void dce_v11_0_ext_prepare(struct drm_encoder *encoder) { } static void dce_v11_0_ext_commit(struct drm_encoder *encoder) { } static void dce_v11_0_ext_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) { } static void dce_v11_0_ext_disable(struct drm_encoder *encoder) { } static void dce_v11_0_ext_dpms(struct drm_encoder *encoder, int mode) { } static const struct drm_encoder_helper_funcs dce_v11_0_ext_helper_funcs = { .dpms = dce_v11_0_ext_dpms, .prepare = dce_v11_0_ext_prepare, .mode_set = dce_v11_0_ext_mode_set, .commit = dce_v11_0_ext_commit, .disable = dce_v11_0_ext_disable, /* no detect for TMDS/LVDS yet */ }; static const struct drm_encoder_helper_funcs dce_v11_0_dig_helper_funcs = { .dpms = amdgpu_atombios_encoder_dpms, .mode_fixup = amdgpu_atombios_encoder_mode_fixup, .prepare = dce_v11_0_encoder_prepare, .mode_set = dce_v11_0_encoder_mode_set, .commit = dce_v11_0_encoder_commit, .disable = dce_v11_0_encoder_disable, .detect = amdgpu_atombios_encoder_dig_detect, }; static const struct drm_encoder_helper_funcs dce_v11_0_dac_helper_funcs = { .dpms = amdgpu_atombios_encoder_dpms, .mode_fixup = amdgpu_atombios_encoder_mode_fixup, .prepare = dce_v11_0_encoder_prepare, .mode_set = dce_v11_0_encoder_mode_set, .commit = dce_v11_0_encoder_commit, .detect = amdgpu_atombios_encoder_dac_detect, }; static void dce_v11_0_encoder_destroy(struct drm_encoder *encoder) { struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) amdgpu_atombios_encoder_fini_backlight(amdgpu_encoder); kfree(amdgpu_encoder->enc_priv); drm_encoder_cleanup(encoder); kfree(amdgpu_encoder); } static const struct drm_encoder_funcs dce_v11_0_encoder_funcs = { .destroy = dce_v11_0_encoder_destroy, }; static void dce_v11_0_encoder_add(struct amdgpu_device *adev, uint32_t encoder_enum, uint32_t supported_device, u16 caps) { struct drm_device *dev = adev_to_drm(adev); struct drm_encoder *encoder; struct amdgpu_encoder *amdgpu_encoder; /* see if we already added it */ list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { amdgpu_encoder = to_amdgpu_encoder(encoder); if (amdgpu_encoder->encoder_enum == encoder_enum) { amdgpu_encoder->devices |= supported_device; return; } } /* add a new one */ amdgpu_encoder = kzalloc(sizeof(struct amdgpu_encoder), GFP_KERNEL); if (!amdgpu_encoder) return; encoder = &amdgpu_encoder->base; switch (adev->mode_info.num_crtc) { case 1: encoder->possible_crtcs = 0x1; break; case 2: default: encoder->possible_crtcs = 0x3; break; case 3: encoder->possible_crtcs = 0x7; break; case 4: encoder->possible_crtcs = 0xf; break; case 5: encoder->possible_crtcs = 0x1f; break; case 6: encoder->possible_crtcs = 0x3f; break; } amdgpu_encoder->enc_priv = NULL; amdgpu_encoder->encoder_enum = encoder_enum; amdgpu_encoder->encoder_id = (encoder_enum & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; amdgpu_encoder->devices = supported_device; amdgpu_encoder->rmx_type = RMX_OFF; amdgpu_encoder->underscan_type = UNDERSCAN_OFF; amdgpu_encoder->is_ext_encoder = false; amdgpu_encoder->caps = caps; switch (amdgpu_encoder->encoder_id) { case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1: case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2: drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, DRM_MODE_ENCODER_DAC, NULL); drm_encoder_helper_add(encoder, &dce_v11_0_dac_helper_funcs); break; case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1: case ENCODER_OBJECT_ID_INTERNAL_UNIPHY: case ENCODER_OBJECT_ID_INTERNAL_UNIPHY1: case ENCODER_OBJECT_ID_INTERNAL_UNIPHY2: case ENCODER_OBJECT_ID_INTERNAL_UNIPHY3: if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { amdgpu_encoder->rmx_type = RMX_FULL; drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, DRM_MODE_ENCODER_LVDS, NULL); amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_lcd_info(amdgpu_encoder); } else if (amdgpu_encoder->devices & (ATOM_DEVICE_CRT_SUPPORT)) { drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, DRM_MODE_ENCODER_DAC, NULL); amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_dig_info(amdgpu_encoder); } else { drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, DRM_MODE_ENCODER_TMDS, NULL); amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_dig_info(amdgpu_encoder); } drm_encoder_helper_add(encoder, &dce_v11_0_dig_helper_funcs); break; case ENCODER_OBJECT_ID_SI170B: case ENCODER_OBJECT_ID_CH7303: case ENCODER_OBJECT_ID_EXTERNAL_SDVOA: case ENCODER_OBJECT_ID_EXTERNAL_SDVOB: case ENCODER_OBJECT_ID_TITFP513: case ENCODER_OBJECT_ID_VT1623: case ENCODER_OBJECT_ID_HDMI_SI1930: case ENCODER_OBJECT_ID_TRAVIS: case ENCODER_OBJECT_ID_NUTMEG: /* these are handled by the primary encoders */ amdgpu_encoder->is_ext_encoder = true; if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, DRM_MODE_ENCODER_LVDS, NULL); else if (amdgpu_encoder->devices & (ATOM_DEVICE_CRT_SUPPORT)) drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, DRM_MODE_ENCODER_DAC, NULL); else drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, DRM_MODE_ENCODER_TMDS, NULL); drm_encoder_helper_add(encoder, &dce_v11_0_ext_helper_funcs); break; } } static const struct amdgpu_display_funcs dce_v11_0_display_funcs = { .bandwidth_update = &dce_v11_0_bandwidth_update, .vblank_get_counter = &dce_v11_0_vblank_get_counter, .backlight_set_level = &amdgpu_atombios_encoder_set_backlight_level, .backlight_get_level = &amdgpu_atombios_encoder_get_backlight_level, .hpd_sense = &dce_v11_0_hpd_sense, .hpd_set_polarity = &dce_v11_0_hpd_set_polarity, .hpd_get_gpio_reg = &dce_v11_0_hpd_get_gpio_reg, .page_flip = &dce_v11_0_page_flip, .page_flip_get_scanoutpos = &dce_v11_0_crtc_get_scanoutpos, .add_encoder = &dce_v11_0_encoder_add, .add_connector = &amdgpu_connector_add, }; static void dce_v11_0_set_display_funcs(struct amdgpu_device *adev) { adev->mode_info.funcs = &dce_v11_0_display_funcs; } static const struct amdgpu_irq_src_funcs dce_v11_0_crtc_irq_funcs = { .set = dce_v11_0_set_crtc_irq_state, .process = dce_v11_0_crtc_irq, }; static const struct amdgpu_irq_src_funcs dce_v11_0_pageflip_irq_funcs = { .set = dce_v11_0_set_pageflip_irq_state, .process = dce_v11_0_pageflip_irq, }; static const struct amdgpu_irq_src_funcs dce_v11_0_hpd_irq_funcs = { .set = dce_v11_0_set_hpd_irq_state, .process = dce_v11_0_hpd_irq, }; static void dce_v11_0_set_irq_funcs(struct amdgpu_device *adev) { if (adev->mode_info.num_crtc > 0) adev->crtc_irq.num_types = AMDGPU_CRTC_IRQ_VLINE1 + adev->mode_info.num_crtc; else adev->crtc_irq.num_types = 0; adev->crtc_irq.funcs = &dce_v11_0_crtc_irq_funcs; adev->pageflip_irq.num_types = adev->mode_info.num_crtc; adev->pageflip_irq.funcs = &dce_v11_0_pageflip_irq_funcs; adev->hpd_irq.num_types = adev->mode_info.num_hpd; adev->hpd_irq.funcs = &dce_v11_0_hpd_irq_funcs; } const struct amdgpu_ip_block_version dce_v11_0_ip_block = { .type = AMD_IP_BLOCK_TYPE_DCE, .major = 11, .minor = 0, .rev = 0, .funcs = &dce_v11_0_ip_funcs, }; const struct amdgpu_ip_block_version dce_v11_2_ip_block = { .type = AMD_IP_BLOCK_TYPE_DCE, .major = 11, .minor = 2, .rev = 0, .funcs = &dce_v11_0_ip_funcs, }; ```
The Maldivian rufiyaa (; sign: Rf or ; code: MVR) is the currency of the Maldives. The issuance of the currency is controlled by the Maldives Monetary Authority (MMA). The most commonly used symbols for the rufiyaa are MVR and Rf. The ISO 4217 code for Maldivian rufiyaa is MVR. The rufiyaa is subdivided into 100 laari. The name "rufiyaa" is derived from the Sanskrit रूप्य (rūpya, wrought silver). The midpoint of exchange rate is Rf. 12/85 per US dollar and the rate is permitted to fluctuate within a ±20% band, i.e. between Rf. 10/28 and Rf. 15/42 as of 10 April 2017. History The earliest form of currency used in the Maldives was cowrie shells (Cypraea moneta) and historical accounts of travellers indicate that they were traded in this manner even during the 13th century. As late as 1344, Ibn Batuta observed that more than 40 ships loaded with cowry shells were exported each year. A single gold dinar was worth 400,000 shells. During the 17th and 18th centuries, lārin (parallel straps of silver wire folded in half with dyed Persian and Arabic inscriptions) were imported and traded as currency. This form of currency was used in the Persian Gulf, India, Ceylon and the Far East during this time. Historians agree that this new form of currency was most probably exchanged for cowry shells and indicates Maldives' lucrative trade with these countries. The first Sultan to imprint his own seal onto this currency was Ghaazee Muhammad Thakurufaanu al-Auzam. The seal was much broader than the wires hence it was barely legible. The first known of coins were introduced by Sultan Ibrahim Iskandar (1648–1687). Compared to the previous forms of money, these coins were much neater and minted in pure silver. The coins were minted in the capital city of Malé, a fact which it acknowledged on the reverse. The legend "King of Land and Sea, Iskandhar the Great" () is found on the edge. After this period, gold coins replaced the existing silver ones during the reign of Sultan Hassan Nooruddin in 1787. He used two different qualities of gold in his coins; one was called Mohoree and the other Baimohoree, of which the former is of higher value. How this gold was obtained is uncertain. Throughout the nineteenth and early twentieth centuries, bronze coins were issued denominated in laari. Sultan Mohamed Imaadhudheen IV (1900–1904) introduced what historians believe to be the first machine struck coins, judging the superior quality of the engravements. His successor Sultan Mohamed Shamshudeen III (1904–1935) made the last of these coins, 1 and 4 laari denominations, which were struck in the United Kingdom by Heaton's Mint, Birmingham, England in 1913. Following the end of coin production specifically for the Maldives, the Sultanate came to use the Ceylonese rupee. This was supplemented in 1947 by issues of banknotes denominated in rufiyaa, equal in value to the rupee. In 1960, coins denominated in laari, now worth one hundredth of the rufiyaa, were introduced. In 1990, the formal ISO 4217 code was changed from (Maldive rupee) into (rufiyaa). Currency Sign The currency symbol for Maldivian Rufiyaa was introduced to the public by MMA on 03 July 2022. The symbol represents letter “Ra” of Thaana script which also is the first letter in spelling “Rufiyaa” in Dhivehi. A parallel line is added to letter “Ra” to represent the arithmetic “equal” sign as used in various other currency symbols. The symbol was designed by Mr. Hassan Shujau. It was chosen among 70 concept proposals received by MMA through a nationwide competition. The proposals were evaluated by an evaluation committee comprising members from MMA, Dhivehi Bahuge Academy and other areas of expertise. Coins In early 1960, Sultan Mohamed Fareed I ordered coins from the Royal Mint in England. The new issue consisted of denominations of 1, 2, 5, 10, 25 and 50 laari. Unlike his predecessors, Sultan Fareed did not embellish his title on the coins; instead he used the National Emblem on the reverse side with the traditional title of the state (, State of Maldives) and the denomination value on the obverse side. The currency was put into circulation in February 1961 and all the previously traded coins, with the exception of Shamshudeen III's 1 and 4 laari, were withdrawn from circulation on 17 June 1966. The newly established central bank, the Maldives Monetary Authority (MMA), introduced the Rf. 1/- coin on 22 January 1983. The coin was made from steel clad copper nickel and was minted in West Germany. In 1984, a new series of coins was introduced which did not include the 2 laari denomination. In 1995, Rf. 2/- coins were introduced. Coins currently in circulation are 1 laari, 2 laari, 5 laari, 10 laari, 25 laari, 50 laari, Rf. 1/-, Rf. 2/-. Banknotes In 1945, the Majlis of the Maldives (Parliament) passed bill number 2/66 on the "Maldivian Bank Note". Under this law, banknotes for Rf. , Rf. 1/-, Rf. 2/-, Rf. 5/- and Rf. 10/- were printed and put into circulation on 5 September 1948. In 1951, Rf. 50/- and Rf. 100/- banknotes were introduced. The current series of banknotes was issued in 1983 in denominations of Rf. 2/-, Rf. 5/-, Rf. 10/-, Rf. 20/-, Rf. 50/- and Rf. 100/-. Rf. 500/- banknotes were added in 1990, with the Rf. 2/- replaced by a coin in 1995. In October 2015, the Maldives Monetary Authority issued a Rf. 5,000/- banknote in polymer to commemorate the 50th anniversary of independence, and issued a new family of banknotes in polymer that included a new denomination of Rf. 1,000/-. A Rf. 5/- banknote printed in polymer was revealed in May 2017 and was issued in July 2017. It was originally planned that this denomination was to be replaced by a coin of the same denomination, but public input convinced the Maldives Monetary Authority to go for the banknote. Illustrations on the banknotes were done by Maizan Hassan Manik and Abbaas (Bamboo). See also Currency of Maldives Economy of Maldives Maldives Banknote Collection (1947-2018) References MMA (Dhivehi) Publication, 1983. (Maldivian Currency) External links Currency in Circulation, Maldives Monetary Authority Maldives Rufiyaa Collection (1947–2018) Official Exchange Rates Banknotes of the Maldives Currencies of the British Empire Currencies of the Commonwealth of Nations Currencies of the Maldives Economy of the Maldives Fixed exchange rate Currencies introduced in 1947
The 1920 Victorian state election was held in the Australian state of Victoria on Thursday 21 October 1920 to elect the 65 members of the state's Legislative Assembly. Background The Nationalist party had reunited after the 1917 election in which the Nationalist members supporting John Bowser defeated those supporting the former Premier Alexander Peacock over his decision to increase country rail fares, and formed a majority government with 40 members. Bowser resigned as premier in March 1918, having little taste for the office, and was replaced by Peacock supporter Harry Lawson. Meanwhile, in rural Victoria, the Victorian Farmers' Union had been gathering support and was looking to gain more seats from the Nationalists in these regions. This election would be their debut as a major force in Victorian politics where neither the Nationalists and their successors or Labor could form government without their support (or that of their successors, the Country Party) until 1952. Results Legislative Assembly |} Notes: Eleven seats were uncontested at this election, and were retained by the incumbent parties: Nationalist (3): Allandale, Gippsland West, Ovens Labor (7): Abbotsford, Carlton, Flemington, Port Fairy, Richmond, Warrenheip, Williamstown VFU (1): Wangaratta See also Candidates of the 1920 Victorian state election Members of the Victorian Legislative Assembly, 1920–1921 1919 Victorian Legislative Council election References 1920 elections in Australia Elections in Victoria (state) 1920s in Victoria (state) October 1920 events
Chrysotus picticornis is a species of long-legged fly in the family Dolichopodidae. References Diaphorinae Articles created by Qbugbot Insects described in 1862 Taxa named by Hermann Loew
The 1996–97 Edmonton Oilers season was the Oilers' 18th season in the NHL. They were coming off a 30–44–8 record, earning 68 points in the 1995–96 season, which led them to failing to qualify for the post-season for the 4th time in a row. The Oilers had their best season since 1991–92 as they won 36 games and earn 81 points, finishing third place in the Pacific Division and seventh in the Western Conference, earning their first playoff berth in five years. The main reason for the Oilers' turn-around was their solid goaltending and defensive hockey, only allowing 247 goals, 57 fewer than the previous season. Regular season On November 26, 1996, the Oilers defeated their provincial rival Calgary Flames on the road by a score of 10-1. Ten different Oilers scored in the game. It was the first time that the Oilers had scored 10 goals in a regular-season game since December 4, 1988, when they defeated the New York Rangers at home by a score of 10-6. Offensively, Doug Weight led the club once again this season in points, earning 82, and achieved a club high 61 assists. Ryan Smyth had a breakout season, scoring a team high 39 goals and led the team in power play goals with 20. Andrei Kovalenko, acquired in the off-season, scored 32 goals and 59 points, while Jason Arnott earned 57 points in 67 games. Rookie Mike Grier had 32 points in 79 games, and Mariusz Czerkawski finished third on the team in goals with 26. Boris Mironov anchored the defense, earning 32 points in only 55 games. Todd Marchant led the team in short-handed goals with 4. Team captain Kelly Buchberger provided the team toughness, earning a club high 159 penalty minutes. In goal, Curtis Joseph got the majority of playing time, winning 32 games while posting a 2.93 GAA and a .907 save percentage. He set a team record with 6 shutouts. Bob Essensa, despite a strong GAA of 2.83, won only 4 games. The Oilers had the most power-play opportunities during the regular season, with 406 opportunities in total. Season standings Playoffs The Oilers faced the Central Division winning Dallas Stars in the opening round of the playoffs. After splitting the first 2 games in Dallas, the Oilers returned home for game 3 for their first home playoff game since 1992 and found themselves losing 3–0 with about 4 minutes left in the 3rd period. Edmonton then struck for 3 goals to tie the game, and Kelly Buchberger provided the overtime heroics, as the Oilers won the game 4–3 and take a 2–1 series lead. Dallas tied the series up again in game 4, however, the Oilers shocked the Stars, winning 1–0 in double overtime in the 5th game in Dallas, and returning to Edmonton in a position to clinch the series. The Stars spoiled the Oilers' party, winning the 6th game 3–2, setting up a game 7 at Reunion Arena in Dallas. The game was a memorable one, as the score was tied up at 3 as the teams headed into overtime. Todd Marchant turned out to be the hero, scoring for the Oilers in the 1st overtime, as Edmonton completed the upset, defeating the Stars in 7 games. In the 2nd round, Edmonton faced the defending Stanley Cup champions, the Colorado Avalanche, who won the Pacific Division and had 26 more points than the Oilers during the season. The Avalanche won the opening 2 games easily in Denver, and while the Oilers rebounded to win the 3rd game, the Avs proved to be too much for Edmonton to handle, as they won the series in 5 games, ending the Oilers' season. Schedule and results Regular season |- style="text-align:center; background:#cfc;" | 1 || October 4 || Buffalo Sabres || 3 – 4 || Edmonton Oilers || || Joseph || 15,236 || 1–0–0 || 2 || |- style="text-align:center; background:#cfc;" | 2 || October 6 || Vancouver Canucks || 0 – 2 || Edmonton Oilers || || Joseph || 15,144 || 2–0–0 || 4 || |- style="text-align:center; background:#cfc;" | 3 || October 8 || Edmonton Oilers || 4 – 2 || Toronto Maple Leafs || || Joseph || 15,424 || 3–0–0 || 6 || |- style="text-align:center; background:#fbb;" | 4 || October 9 || Edmonton Oilers || 0 – 2 || Detroit Red Wings || || Essensa || 19,983 || 3–1–0 || 6 || |- style="text-align:center; background:#fbb;" | 5 || October 11 || St. Louis Blues || 3 – 1 || Edmonton Oilers || || Joseph || 16,145 || 3–2–0 || 6 || |- style="text-align:center; background:#cfc;" | 6 || October 14 || Edmonton Oilers || 6 – 3 || Phoenix Coyotes || || Joseph || 13,916 || 4–2–0 || 8 || |- style="text-align:center; background:#fbb;" | 7 || October 15 || Edmonton Oilers || 2 – 7 || Colorado Avalanche || || Joseph || 16,061 || 4–3–0 || 8 || |- style="text-align:center; background:#fbb;" | 8 || October 20 || Edmonton Oilers || 3 – 6 || Calgary Flames || || Joseph || 16,295 || 4–4–0 || 8 || |- style="text-align:center; background:#cfc;" | 9 || October 22 || Pittsburgh Penguins || 2 – 5 || Edmonton Oilers || || Joseph || 16,536 || 5–4–0 || 10 || |- style="text-align:center; background:#cfc;" | 10 || October 24 || Edmonton Oilers || 8 – 2 || Los Angeles Kings || || Essensa || 10,195 || 6–4–0 || 12 || |- style="text-align:center; background:#fbb;" | 11 || October 26 || Colorado Avalanche || 4 – 2 || Edmonton Oilers || || Joseph || 17,099 || 6–5–0 || 12 || |- style="text-align:center; background:#cfc;" | 12 || October 30 || Phoenix Coyotes || 1 – 4 || Edmonton Oilers || || Joseph || 14,678 || 7–5–0 || 14 || |- |- style="text-align:center; background:#fbb;" | 13 || November 1 || Vancouver Canucks || 5 – 4 || Edmonton Oilers || OT || Joseph || 16,177 || 7–6–0 || 14 || |- style="text-align:center; background:#fbb;" | 14 || November 3 || Edmonton Oilers || 2 – 4 || Chicago Blackhawks || || Joseph || 16,875 || 7–7–0 || 14 || |- style="text-align:center; background:#fbb;" | 15 || November 6 || Edmonton Oilers || 2 – 5 || Pittsburgh Penguins || || Essensa || 15,159 || 7–8–0 || 14 || |- style="text-align:center; background:#cfc;" | 16 || November 7 || Edmonton Oilers || 6 – 0 || Boston Bruins || || Joseph || 13,643 || 8–8–0 || 16 || |- style="text-align:center; background:#fbb;" | 17 || November 9 || Edmonton Oilers || 3 – 7 || Toronto Maple Leafs || || Joseph || 15,726 || 8–9–0 || 16 || |- style="text-align:center; background:#fbb;" | 18 || November 11 || Edmonton Oilers || 2 – 3 || Montreal Canadiens || OT || Joseph || 20,452 || 8–10–0 || 16 || |- style="text-align:center; background:#cfc;" | 19 || November 13 || Edmonton Oilers || 4 – 0 || Ottawa Senators || || Joseph || 15,312 || 9–10–0 || 18 || |- style="text-align:center; background:#fbb;" | 20 || November 17 || Dallas Stars || 7 – 3 || Edmonton Oilers || || Joseph || 14,574 || 9–11–0 || 18 || |- style="text-align:center; background:white;" | 21 || November 19 || Chicago Blackhawks || 4 – 4 || Edmonton Oilers || OT || Joseph || 14,792 || 9–11–1 || 19 || |- style="text-align:center; background:#cfc;" | 22 || November 21 || New York Rangers || 2 – 3 || Edmonton Oilers || || Joseph || 17,099 || 10–11–1 || 21 || |- style="text-align:center; background:#cfc;" | 23 || November 23 || Calgary Flames || 2 – 3 || Edmonton Oilers || || Joseph || 16,829 || 11–11–1 || 23 || |- style="text-align:center; background:#cfc;" | 24 || November 26 || Edmonton Oilers || 10 – 1 || Calgary Flames || || Joseph || 17,146 || 12–11–1 || 25 || |- style="text-align:center; background:#fbb;" | 25 || November 27 || Los Angeles Kings || 5 – 1 || Edmonton Oilers || || Essensa || 14,039 || 12–12–1 || 25 || |- style="text-align:center; background:#cfc;" | 26 || November 29 || Edmonton Oilers || 4 – 2 || San Jose Sharks || || Joseph || 17,442 || 13–12–1 || 27 || |- |- style="text-align:center; background:#fbb;" | 27 || December 1 || Edmonton Oilers || 2 – 4 || Mighty Ducks of Anaheim || || Joseph || 16,735 || 13–13–1 || 27 || |- style="text-align:center; background:#fbb;" | 28 || December 4 || Edmonton Oilers || 0 – 2 || Colorado Avalanche || || Joseph || 16,061 || 13–14–1 || 27 || |- style="text-align:center; background:#cfc;" | 29 || December 6 || Ottawa Senators || 2 – 5 || Edmonton Oilers || || Joseph || 15,060 || 14–14–1 || 29 || |- style="text-align:center; background:#fbb;" | 30 || December 8 || St. Louis Blues || 3 – 2 || Edmonton Oilers || || Joseph || 14,922 || 14–15–1 || 29 || |- style="text-align:center; background:white;" | 31 || December 10 || Edmonton Oilers || 0 – 0 || Detroit Red Wings || OT || Joseph || 19,983 || 14–15–2 || 30 || |- style="text-align:center; background:white;" | 32 || December 12 || Edmonton Oilers || 2 – 2 || Tampa Bay Lightning || OT || Joseph || 13,925 || 14–15–3 || 31 || |- style="text-align:center; background:#fbb;" | 33 || December 15 || Edmonton Oilers || 3 – 6 || Florida Panthers || || Essensa || 14,703 || 14–16–3 || 31 || |- style="text-align:center; background:white;" | 34 || December 18 || Colorado Avalanche || 4 – 4 || Edmonton Oilers || OT || Joseph || 16,053 || 14–16–4 || 32 || |- style="text-align:center; background:#fbb;" | 35 || December 20 || New Jersey Devils || 3 – 2 || Edmonton Oilers || || Joseph || 14,692 || 14–17–4 || 32 || |- style="text-align:center; background:#fbb;" | 36 || December 22 || Detroit Red Wings || 6 – 2 || Edmonton Oilers || || Joseph || 16,724 || 14–18–4 || 32 || |- style="text-align:center; background:#cfc;" | 37 || December 23 || Edmonton Oilers || 7 – 0 || Vancouver Canucks || || Essensa || 17,854 || 15–18–4 || 34 || |- style="text-align:center; background:#fbb;" | 38 || December 27 || Philadelphia Flyers || 6 – 4 || Edmonton Oilers || || Joseph || 17,099 || 15–19–4 || 34 || |- style="text-align:center; background:#cfc;" | 39 || December 28 || San Jose Sharks || 3 – 5 || Edmonton Oilers || || Essensa || 16,670 || 16–19–4 || 36 || |- style="text-align:center; background:#cfc;" | 40 || December 30 || Los Angeles Kings || 1 – 2 || Edmonton Oilers || || Joseph || 15,954 || 17–19–4 || 38 || |- |- style="text-align:center; background:#cfc;" | 41 || January 3 || Toronto Maple Leafs || 3 – 4 || Edmonton Oilers || || Joseph || 17,099 || 18–19–4 || 40 || |- style="text-align:center; background:#cfc;" | 42 || January 7 || Edmonton Oilers || 5 – 2 || St. Louis Blues || || Joseph || 15,760 || 19–19–4 || 42 || |- style="text-align:center; background:#fbb;" | 43 || January 8 || Edmonton Oilers || 1 – 4 || Chicago Blackhawks || || Essensa || 17,500 || 19–20–4 || 42 || |- style="text-align:center; background:#fbb;" | 44 || January 11 || San Jose Sharks || 2 – 1 || Edmonton Oilers || || Joseph || 15,451 || 19–21–4 || 42 || |- style="text-align:center; background:#cfc;" | 45 || January 12 || Hartford Whalers || 1 – 2 || Edmonton Oilers || OT || Joseph || 14,301 || 20–21–4 || 44 || |- style="text-align:center; background:#cfc;" | 46 || January 15 || Florida Panthers || 0 – 4 || Edmonton Oilers || || Joseph || 15,673 || 21–21–4 || 46 || |- style="text-align:center; background:white;" | 47 || January 21 || Edmonton Oilers || 4 – 4 || New York Rangers || OT || Joseph || 18,200 || 21–21–5 || 47 || |- style="text-align:center; background:#fbb;" | 48 || January 22 || Edmonton Oilers || 1 – 8 || New York Islanders || || Joseph || 10,438 || 21–22–5 || 47 || |- style="text-align:center; background:#cfc;" | 49 || January 24 || Edmonton Oilers || 3 – 1 || Buffalo Sabres || || Joseph || 16,775 || 22–22–5 || 49 || |- style="text-align:center; background:#cfc;" | 50 || January 26 || Edmonton Oilers || 3 – 1 || Washington Capitals || || Joseph || 14,623 || 23–22–5 || 51 || |- style="text-align:center; background:#cfc;" | 51 || January 29 || San Jose Sharks || 1 – 3 || Edmonton Oilers || || Joseph || 14,378 || 24–22–5 || 53 || |- style="text-align:center; background:#cfc;" | 52 || January 31 || New York Islanders || 0 – 1 || Edmonton Oilers || || Joseph || 16,211 || 25–22–5 || 55 || |- |- style="text-align:center; background:#cfc;" | 53 || February 5 || Calgary Flames || 2 – 5 || Edmonton Oilers || || Joseph || 16,770 || 26–22–5 || 57 || |- style="text-align:center; background:#fbb;" | 54 || February 8 || Mighty Ducks of Anaheim || 2 – 1 || Edmonton Oilers || OT || Joseph || 16,743 || 26–23–5 || 57 || |- style="text-align:center; background:#cfc;" | 55 || February 9 || Washington Capitals || 1 – 4 || Edmonton Oilers || || Essensa || 15,361 || 27–23–5 || 59 || |- style="text-align:center; background:#cfc;" | 56 || February 12 || Boston Bruins || 3 – 4 || Edmonton Oilers || || Joseph || 16,238 || 28–23–5 || 61 || |- style="text-align:center; background:#fbb;" | 57 || February 13 || Edmonton Oilers || 2 – 3 || Calgary Flames || OT || Essensa || 18,882 || 28–24–5 || 61 || |- style="text-align:center; background:white;" | 58 || February 15 || Edmonton Oilers || 2 – 2 || Los Angeles Kings || OT || Joseph || 12,027 || 28–24–6 || 62 || |- style="text-align:center; background:#fbb;" | 59 || February 17 || Edmonton Oilers || 1 – 5 || Mighty Ducks of Anaheim || || Joseph || 17,174 || 28–25–6 || 62 || |- style="text-align:center; background:#cfc;" | 60 || February 19 || Toronto Maple Leafs || 5 – 6 || Edmonton Oilers || || Joseph || 16,487 || 29–25–6 || 64 || |- style="text-align:center; background:#fbb;" | 61 || February 21 || Colorado Avalanche || 4 – 3 || Edmonton Oilers || OT || Joseph || 17,099 || 29–26–6 || 64 || |- style="text-align:center; background:#fbb;" | 62 || February 23 || Edmonton Oilers || 1 – 6 || Dallas Stars || || Joseph || 15,786 || 29–27–6 || 64 || |- style="text-align:center; background:white;" | 63 || February 26 || Edmonton Oilers || 3 – 3 || Mighty Ducks of Anaheim || OT || Joseph || 17,174 || 29–27–7 || 65 || |- style="text-align:center; background:#fbb;" | 64 || February 27 || Edmonton Oilers || 3 – 6 || Los Angeles Kings || || Essensa || 12,115 || 29–28–7 || 65 || |- |- style="text-align:center; background:#fbb;" | 65 || March 1 || Montreal Canadiens || 5 – 4 || Edmonton Oilers || || Joseph || 17,099 || 29–29–7 || 65 || |- style="text-align:center; background:#cfc;" | 66 || March 4 || Los Angeles Kings || 1 – 4 || Edmonton Oilers || || Joseph || 14,671 || 30–29–7 || 67 || |- style="text-align:center; background:#fbb;" | 67 || March 7 || Edmonton Oilers || 1 – 2 || Dallas Stars || || Joseph || 16,723 || 30–30–7 || 67 || |- style="text-align:center; background:#cfc;" | 68 || March 9 || Edmonton Oilers || 4 – 1 || St. Louis Blues || || Joseph || 17,982 || 31–30–7 || 69 || |- style="text-align:center; background:#fbb;" | 69 || March 11 || Edmonton Oilers || 1 – 6 || New Jersey Devils || || Joseph || 14,671 || 31–31–7 || 69 || |- style="text-align:center; background:#fbb;" | 70 || March 13 || Edmonton Oilers || 4 – 5 || Philadelphia Flyers || OT || Joseph || 19,635 || 31–32–7 || 69 || |- style="text-align:center; background:#cfc;" | 71 || March 15 || Edmonton Oilers || 4 – 2 || Hartford Whalers || || Joseph || 14,437 || 32–32–7 || 71 || |- style="text-align:center; background:#cfc;" | 72 || March 19 || Tampa Bay Lightning || 1 – 3 || Edmonton Oilers || || Joseph || 16,089 || 33–32–7 || 73 || |- style="text-align:center; background:#fbb;" | 73 || March 23 || Mighty Ducks of Anaheim || 4 – 1 || Edmonton Oilers || || Joseph || 17,099 || 33–33–7 || 73 || |- style="text-align:center; background:#cfc;" | 74 || March 24 || Edmonton Oilers || 5 – 1 || San Jose Sharks || || Joseph || 17,159 || 34–33–7 || 75 || |- style="text-align:center; background:#fbb;" | 75 || March 28 || Edmonton Oilers || 3 – 4 || San Jose Sharks || || Joseph || 17,442 || 34–34–7 || 75 || |- style="text-align:center; background:#cfc;" | 76 || March 29 || Edmonton Oilers || 3 – 1 || Phoenix Coyotes || || Joseph || 16,210 || 35–34–7 || 77 || |- style="text-align:center; background:#fbb;" | 77 || March 31 || Dallas Stars || 3 – 1 || Edmonton Oilers || || Joseph || 17,099 || 35–35–7 || 77 || |- |- style="text-align:center; background:#cfc;" | 78 || April 3 || Chicago Blackhawks || 2 – 4 || Edmonton Oilers || || Joseph || 17,099 || 36–35–7 || 79 || |- style="text-align:center; background:white;" | 79 || April 5 || Vancouver Canucks || 2 – 2 || Edmonton Oilers || OT || Joseph || 17,099 || 36–35–8 || 80 || |- style="text-align:center; background:white;" | 80 || April 9 || Detroit Red Wings || 3 – 3 || Edmonton Oilers || OT || Joseph || 17,099 || 36–35–9 || 81 || |- style="text-align:center; background:#fbb;" | 81 || April 11 || Phoenix Coyotes || 6 – 2 || Edmonton Oilers || || Joseph || 17,099 || 36–36–9 || 81 || |- style="text-align:center; background:#fbb;" | 82 || April 12 || Edmonton Oilers || 4 – 5 || Vancouver Canucks || || Essensa || 18,422 || 36–37–9 || 81 || |- |- | Legend: Playoffs |- style="text-align:center; background:#fbb;" | 1 || April 16 || Edmonton Oilers || 3 – 5 || Dallas Stars || || Joseph || 16,418 || 0–1 || |- style="text-align:center; background:#cfc;" | 2 || April 18 || Edmonton Oilers || 4 – 0 || Dallas Stars || || Joseph || 16,924 || 1–1 || |- style="text-align:center; background:#cfc;" | 3 || April 20 || Dallas Stars || 3 – 4 || Edmonton Oilers || OT || Joseph || 17,099 || 2–1 || |- style="text-align:center; background:#fbb;" | 4 || April 22 || Dallas Stars || 4 – 3 || Edmonton Oilers || || Joseph || 17,099 || 2–2 || |- style="text-align:center; background:#cfc;" | 5 || April 25 || Edmonton Oilers || 1 – 0 || Dallas Stars || 2OT || Joseph || 16,924 || 3–2 || |- style="text-align:center; background:#fbb;" | 6 || April 27 || Dallas Stars || 3 – 2 || Edmonton Oilers || || Joseph || 17,099 || 3–3 || |- style="text-align:center; background:#cfc;" | 7 || April 29 || Edmonton Oilers || 4 – 3 || Dallas Stars || OT || Joseph || 16,924 || 4–3 || |- |- style="text-align:center; background:#fbb;" | 1 || May 2 || Edmonton Oilers || 1 – 5 || Colorado Avalanche || || Joseph || 16,061 || 0–1 || |- style="text-align:center; background:#fbb;" | 2 || May 4 || Edmonton Oilers || 1 – 4 || Colorado Avalanche || || Joseph || 16,061 || 0–2 || |- style="text-align:center; background:#cfc;" | 3 || May 7 || Colorado Avalanche || 3 – 4 || Edmonton Oilers || || Joseph || 17,099 || 1–2 || |- style="text-align:center; background:#fbb;" | 4 || May 9 || Colorado Avalanche || 3 – 2 || Edmonton Oilers || OT || Joseph || 17,099 || 1–3 || |- style="text-align:center; background:#fbb;" | 5 || May 11 || Edmonton Oilers || 3 – 4 || Colorado Avalanche || || Joseph || 16,061 || 1–4 || |- |- | Legend: Player statistics Scoring Position abbreviations: C = Centre; D = Defence; G = Goaltender; LW = Left wing; RW = Right wing = Joined team via a transaction (e.g., trade, waivers, signing) during the season. Stats reflect time with the Oilers only. = Left team via a transaction (e.g., trade, waivers, release) during the season. Stats reflect time with the Oilers only. Goaltending Awards and records Awards Records 3: Tied NHL record for most short-handed goals in a playoffs by Todd Marchant on May 11, 1997. Milestones Transactions Trades Free agents Waivers Draft picks Edmonton's draft picks at the 1996 NHL Entry Draft. Notes References National Hockey League Guide & Record Book 2007 Edmonton Oilers season, 1996-97 Edmon Edmonton Oilers seasons
Charles N. Keenja (24 December 1940 - 05 August 2021) was a Tanzanian CCM politician and a cabinet Minister. He was a Member of Parliament in the National Assembly of Tanzania served Ubungo constituency and succeeded by John Mnyika in 2005. He was cabinet Minister of Agriculture and Food Security. From 1996 to 2000 he was the chairman of Dar es Salaam for which work he received the UN-Habitat Scroll of Honour Award. References Living people Members of the National Assembly (Tanzania) Chama Cha Mapinduzi MPs 1940 births Place of birth missing (living people)
The Eltanin Antenna is an object photographed on the sea floor by the Antarctic oceanographic research ship USNS Eltanin in 1964, while photographing the sea bottom west of Cape Horn. Due to its regular antenna-like structure and upright position on the seafloor at a depth of , some proponents of fringe and UFO-related theories including Bruce Cathie have suggested that it might be an extraterrestrial artifact. Other authorities have suggested that the object photographed by the Eltanin was an unusual carnivorous sponge, Chondrocladia concrescens (formerly Cladorhiza concrescens). History The 1,850-ton displacement vessel Eltanin was originally launched in 1957, and served with the United States Navy as a cargo-carrying icebreaker. In 1962, she was reclassified as an Oceanographic Research Ship and became the world's first dedicated Antarctic research vessel, a role she filled until 1975. On 29 August 1964, while taking sample cores and photographing the seabed west of Cape Horn, South America, the Eltanin took the photograph reproduced in this article, at position 59°07'S 105°03'W, at a depth of . The first public mention of the unusual subject of the photograph was a news item which appeared in the New Zealand Herald on 5 December 1964, under the heading "Puzzle Picture From Sea Bed". In 1968, author Brad Steiger wrote an article for Saga Magazine, in which he claimed that the Eltanin had photographed "an astonishing piece of machinery... very much like the cross between a TV antenna and a telemetry antenna". Identification as sponge In 2003, Tom DeMary, a researcher in underwater acoustics, contacted oceanographer A. F. Amos, who had been aboard the USNS Eltanin in the 1960s, and in turn Amos referred DeMary to the 1971 book The Face of the Deep by Bruce C. Heezen and Charles D. Hollister. Hollister had already identified the mysterious object as Cladorhiza concrescens, a species of carnivorous sponge. Heezen and Hollister's book reproduces the photograph taken by the USNS Eltanin as well as a redrawn version of a drawing by Alexander Agassiz which originally appeared in his 1888 Three Cruises of the Blake. Hollister and Heezen describe Cladorhiza concrescens as a sponge which "somewhat resembles a space-age microwave antenna", while Agassiz described the sponges as having "a long stem ending in ramifying roots, sunk deeply into the mud. The stem has nodes with four to six club-like appendages. They evidently cover like bushes extensive tracts of the bottom." References Further reading concrescens Photographs
```c /* * */ #include <esp_types.h> #include <sys/lock.h> #include "sdkconfig.h" #include "esp_log.h" #include "esp_check.h" #include "freertos/FreeRTOS.h" #include "driver/isp_core.h" #include "driver/isp_sharpen.h" #include "soc/isp_periph.h" #include "esp_private/isp_private.h" static const char *TAG = "ISP_SHARPEN"; /*--------------------------------------------------------------- Sharpen ---------------------------------------------------------------*/ esp_err_t esp_isp_sharpen_configure(isp_proc_handle_t proc, const esp_isp_sharpen_config_t *config) { ESP_RETURN_ON_FALSE_ISR(proc, ESP_ERR_INVALID_ARG, TAG, "invalid argument: null pointer"); if (config) { bool valid_padding_setting = (!config->padding_line_tail_valid_end_pixel && !config->padding_line_tail_valid_start_pixel) || (config->padding_line_tail_valid_end_pixel > config->padding_line_tail_valid_start_pixel); ESP_RETURN_ON_FALSE_ISR(valid_padding_setting, ESP_ERR_INVALID_ARG, TAG, "wrong padding line tail valid pixel setting"); isp_hal_sharpen_cfg_t sharpen_hal_cfg = { .h_freq_coeff = config->h_freq_coeff, .m_freq_coeff = config->m_freq_coeff, .h_thresh = config->h_thresh, .l_thresh = config->l_thresh, .padding_mode = config->padding_mode, .padding_data = config->padding_data, .padding_line_tail_valid_start_pixel = config->padding_line_tail_valid_start_pixel, .padding_line_tail_valid_end_pixel = config->padding_line_tail_valid_end_pixel, }; memcpy(sharpen_hal_cfg.sharpen_template, config->sharpen_template, ISP_SHARPEN_TEMPLATE_X_NUMS * ISP_SHARPEN_TEMPLATE_X_NUMS * sizeof(uint8_t)); isp_hal_sharpen_config(&(proc->hal), &sharpen_hal_cfg); } else { isp_hal_sharpen_config(&(proc->hal), NULL); } return ESP_OK; } esp_err_t esp_isp_sharpen_enable(isp_proc_handle_t proc) { ESP_RETURN_ON_FALSE(proc, ESP_ERR_INVALID_ARG, TAG, "invalid argument: null pointer"); ESP_RETURN_ON_FALSE(proc->sharpen_fsm == ISP_FSM_INIT, ESP_ERR_INVALID_STATE, TAG, "sharpen is enabled already"); isp_ll_sharp_clk_enable(proc->hal.hw, true); isp_ll_enable_intr(proc->hal.hw, ISP_LL_EVENT_SHARP_FRAME, true); isp_ll_sharp_enable(proc->hal.hw, true); proc->sharpen_fsm = ISP_FSM_ENABLE; return ESP_OK; } esp_err_t esp_isp_sharpen_disable(isp_proc_handle_t proc) { ESP_RETURN_ON_FALSE(proc, ESP_ERR_INVALID_ARG, TAG, "invalid argument: null pointer"); ESP_RETURN_ON_FALSE(proc->sharpen_fsm == ISP_FSM_ENABLE, ESP_ERR_INVALID_STATE, TAG, "sharpen isn't enabled yet"); isp_ll_sharp_enable(proc->hal.hw, false); isp_ll_enable_intr(proc->hal.hw, ISP_LL_EVENT_SHARP_FRAME, false); isp_ll_sharp_clk_enable(proc->hal.hw, false); proc->sharpen_fsm = ISP_FSM_INIT; return ESP_OK; } /*--------------------------------------------------------------- INTR ---------------------------------------------------------------*/ bool IRAM_ATTR esp_isp_sharpen_isr(isp_proc_handle_t proc, uint32_t sharp_events) { bool need_yield = false; esp_isp_sharpen_evt_data_t edata = {}; if (sharp_events) { edata.high_freq_pixel_max = isp_ll_sharp_get_high_freq_pixel_max(proc->hal.hw); } if (sharp_events & ISP_LL_EVENT_SHARP_FRAME) { if (proc->cbs.on_sharpen_frame_done) { need_yield |= proc->cbs.on_sharpen_frame_done(proc, &edata, proc->user_data); } } return need_yield; } ```
Ng Ka Tsuen () is a village in Pat Heung, Yuen Long District, Hong Kong. Administration Ng Ka Tsuen is a recognized village under the New Territories Small House Policy. References External links Delineation of area of existing village Ng Ka Tsuen (Pat Heung) for election of resident representative (2019 to 2022) Villages in Yuen Long District, Hong Kong Pat Heung
Kirsi Rautava (born 22 June 1978) is a Finnish snowboarder. She competed in the women's halfpipe event at the 2002 Winter Olympics. References External links 1978 births Living people Finnish female snowboarders Olympic snowboarders for Finland Snowboarders at the 2002 Winter Olympics Sportspeople from Kajaani
The C-101 is a Chinese supersonic anti-ship cruise missile. It is manufactured by the China Aerospace Science and Industry Corporation Third Academy. The C-101 was an early Chinese supersonic cruise missile. It has been described as unsuccessful. The People's Liberation Army Navy designation is YJ-1 (). Description The C-101 is launched with solid-fuel rocket boosters to a speed of Mach 1.8. Two ramjets sustain a cruise and impact speed of Mach 2. At three kilometers from the target, the missile descends from a cruise altitude of 50 meters to 5 meters. References Bibliography Anti-ship cruise missiles of the People's Republic of China Guided missiles of the People's Republic of China Weapons of the People's Republic of China Air-to-surface missiles
Roland Winters (born Roland Winternitz; November 22, 1904 – October 22, 1989) was an American actor who played many character parts in films and television but today is best remembered for portraying Charlie Chan in six films in the late 1940s. Early years Winters was born Roland Winternitz on November 22, 1904, in Boston, Massachusetts, the son of Antoinette (Iversen) and Felix Winternitz, a violinist and composer who was teaching at New England Conservatory of Music. His father was born in Austria and his mother in Germany. Charlie Chan films Monogram Pictures selected Winters to replace Sidney Toler in the Charlie Chan film series. Winters was 44 when he made the first of his six Chan films, The Chinese Ring in 1947. His other Chan films were Docks of New Orleans (1948), Shanghai Chest (1948), The Golden Eye (1948), The Feathered Serpent (1948), and Sky Dragon (1949). He also had character roles in three other feature films while he worked on the Chan series. Yunte Huang, in Charlie Chan: The Untold Story of the Honorable Detective and His Rendezvous with American History, noted differences in the actors' appearances, especially that Winters's "tall nose simply could not be made to look Chinese." Huang also cited the actor's age, writing, "at the age of forty-four, he also looked too young to resemble a seasoned Chinese sage." Keye Luke, who played Chan's son opposite Winters, was actually five months older than Winters. Roland Winters is considered by some fans to be the least effective of the Chan impersonators, but other observers are quick to defend Winters's portrayals. Ken Hanke wrote in his book Charlie Chan at the Movies: History, Filmography, and Criticism: "Roland Winters has never received his due ... Winters brought with him a badly needed breath of fresh air to the series." He cited "the richness of the approach and the verve with which the series was being tackled" during the Winters era." Similarly, Howard M. Berlin, in his book, Charlie Chan's Words of Wisdom, commented that "Winters brought a much needed breath of fresh air to the flagging film series with his self-mocking, semi-satirical interpretation of Charlie, which is very close to the Charlie Chan in Biggers' novels." Later films and television After the series finished, Winters continued to work in film and television until 1982. He was in the movies So Big and Abbott and Costello Meet the Killer, Boris Karloff, and played Elvis Presley's father in Blue Hawaii and a judge in the Elvis film Follow That Dream. He made appearances as the boss on the early TV series Meet Millie, guest-starred in a 1965 episode ("Anywhere I Hang My Hat Is Home") of The Cara Williams Show, and made appearances in the courtroom drama Perry Mason. In 1965 he played as murderer Archer Bryant in "The case of the Telltale Tap". In one 1968 episode of the television series Bewitched ("Man of the Year"), he played the normally unseen McMann of McMann and Tate. He also portrayed Mr. Gimbel in Miracle on 34th Street in 1973. Death Winters died at the age of 84 as the result of a stroke at the Actor's Fund Nursing Home in Englewood, New Jersey on October 22, 1989. Selected filmography Citizen Kane (1941) – Newspaperman at Trenton Town Hall (uncredited) 13 Rue Madeleine (1946) – Van Duyval (uncredited) The Chinese Ring (1947) – Charlie Chan Docks of New Orleans (1948) – Charlie Chan Shanghai Chest (1948) – Charlie Chan The Golden Eye (1948) – Charlie Chan Cry of the City (1948) – Ledbetter The Return of October (1948) – Colonel Wood Kidnapped (1948) – Capt. Hoseason The Feathered Serpent (1948) – Charlie Chan Tuna Clipper (1949) – E.J. Ransom Sky Dragon (1949) – Charlie Chan Abbott and Costello Meet the Killer, Boris Karloff (1949) – T. Hanley Brooks Once More, My Darling (1949) – Colonel Head A Dangerous Profession (1949) – Jerry McKay Malaya (1949) – Bruno Gruber Guilty of Treason (1950) – Soviet Comissar Belov Captain Carey, U.S.A. (1950) – Manfredo Acuto Killer Shark (1950) – Jeffrey White Underworld Story (1950) – Stanley Becker Convicted (1950) – Vernon Bradley, Attorney Between Midnight and Dawn (1950) – Leo Cusick To Please a Lady (1950) – Dwight Barrington The West Point Story (1950) – Harry Eberhart Sierra Passage (1950) – Sam Cooper Inside Straight (1951) – Alexander Tomson Raton Pass (1951) – Sheriff Périgord Follow the Sun (1951) – Dr. Graham She's Working Her Way Through College (1952) – Fred Copeland A Lion Is in the Streets (1953) – Prosecutor (uncredited) So Big (1953) – Klaas Pool Bigger Than Life (1956) – Dr. Ruric Top Secret Affair (1957) – Sen. Burdick Jet Pilot (1957) – Col. Sokolov Never Steal Anything Small (1959) – Doctor The Iceman Cometh (1960 - TV) - Jimmy Tomorrow Everything's Ducky (1961) – Capt. Lewis Bollinger Blue Hawaii (1961) – Fred Gates The Alfred Hitchcock Hour (1962) (Season 1 Episode 5: "Captive Audience") -Ivar West Follow That Dream (1962) – Judge Loving (1970) – Plommie Miracle on 34th Street (1973, TV Movie) – Mr. Gimbel The Dain Curse (1978, TV Mini-Series) – Hubert Collinson References External links 1904 births 1989 deaths American male film actors American male radio actors American male television actors American male stage actors Male actors from Boston 20th-century American male actors American people of Austrian descent American people of German descent
The Grant Road Historic District is located in the Tenleytown neighborhood of Washington, D.C. The two-block historic district is what remains of a former settlement in rural Washington County in the District of Columbia. It includes 13 contributing buildings and the road itself, a narrow remnant of a country road that was used by soldiers in the Civil War. Following the war, the road was named after Civil War general and President Ulysses S. Grant. Grant Road developed into a residential street lined with mostly small, two-story homes for working-class people. As the surrounding area developed, Grant Road retained its rural character. Segments of the road were separated for large scale development of middle-class homes. Many of the homes that once lined Grant Road were demolished in the process. After a large, prominent house on the corner of Grant Road and Albemarle Street was demolished in 1999, residents sought historic landmark status for their properties. The historic district was added to the District of Columbia Inventory of Historic Sites in 2002 and listed on the National Register of Historic Places in 2004. The buildings date from the 1860s to 1900s. Residential styles employed include the I-house, Italianate boxes, and side and front gabled folk house forms. A former post office and general store are also located on Wisconsin Avenue. Geography The Grant Road Historic District is located on the 4400 and 4500 blocks of Grant Road NW in the Tenleytown neighborhood of Washington, D.C. The 4400 block begins north of Tenley Circle at the intersection with Wisconsin Avenue, then crosses Fort Drive. Nebraska Avenue divides the two blocks. The 4500 block begins at the junction of 39th Street, Albemarle Street, and Grant Street, then proceeds northeast to the intersection with Brandywine Street. The historic district ends at this intersection, but this portion of Grant Road extends for another half block. Nebraska Avenue separates Grant Street from a one block portion further northeast between Cumberland and Davenport Streets. There are two additional stretches of Grant Road further east: two blocks between 30th and 32nd Streets, and an unnumbered portion between Broad Branch Road and Ridge Road that passes through Rock Creek Park. The historic district includes the road itself and 13 contributing buildings, one of which is a commercial building on Wisconsin Avenue. The remaining buildings are single-family homes on Grant Road: homes on the north side of the 4400 block and south side of the 4500 block. There are several non-contributing houses on the 4500 block that were built in the mid-20th century. The 4500 block of Grant Road is narrow at only 33 feet (10 m) wide, which is around half the standard width of streets in the city, and does not have a sidewalk or street furniture. The buildings on the 4400 block include the commercial building fronting Wisconsin Avenue and three homes on a small ridge. History 18th and 19th centuries Around 1795, blacksmith John Tennally opened a small tavern at the intersection of present-day Wisconsin Avenue and River Road, which were former Native American footpaths. Around a dozen families soon moved to the area, forming a village called Tennallytown, the second oldest settlement in present-day Washington, D.C. The village became a stagecoach stop for people traveling between Georgetown and Maryland. In the 1791 plan for the new federal City of Washington, the village was included in the city's boundary. Due to its distance from the city center, Tenallytown would remain a small rural village in Washington County for many years. The village's name gradually changed to the present spelling, Tenleytown. In 1805 present-day Wisconsin Avenue became a toll road and was later macadamized in the late 1810s and early 1820s. The village continued to grow in the 1800s, with a church, school, houses, and other businesses built near the tavern. By the 1850s the stagecoach service had ended due to the Baltimore and Ohio Railroad and the village was connected to rural communities to its east by a country lane that was called New Cut Road or Road from Turnpike to Broad Branch. During the Civil War farmland in the surrounding area was seized by the federal government after the Union Army was defeated at the First Battle of Bull Run. The government built Fort Reno, one of 68 fortifications built to defend the city, on the city's highest natural point of 409 feet (125 m). New Cut Road was just south of Fort Reno and was used by soldiers to traverse between other forts. During the war Thomas Paxton reportedly constructed three houses on the present-day 4400 block of Grant Road. It is believed to be the same houses that stand there today. One of these homes, 4434 Grant Road NW, also known as the Tenant House, was possibly built as a tenant house for The Rest, an early 18th century house at 39th Street and Windom Place which is the neighborhood's oldest residence. Two schools were also built during the war. A school for white children stood on a hill overlooking the road and a school for black children was farther east, near the road's intersection with present-day Broad Branch Road. After the war New Cut Road was renamed in honor of General Ulysses S. Grant. Due to development that resulted from Fort Reno, the area's population increased and Grant Road became a residential street and important part of the village's growth. The last quarter of the 19th century saw gradual development on Grant Road and the surrounding farmland area. The land where Fort Reno stood became a predominantly black neighborhood called Reno City. German, Irish, and Italian immigrants moved to Tenleytown, building their houses and opening a variety of shops. The area became a working class village, with two-story frame houses lining streets on the east side of Wisconsin Avenue. Most of the buildings in the historic district date from this period. The commercial building at 4425 Wisconsin Avenue NW, the oldest surviving commercial building in the neighborhood, was constructed in 1887 by John J. O'Day. It originally served as the O'Day General Store and Tenleytown Post Office. The house at 3837 Albemarle Street NW was reportedly built near the Old Naval Observatory in the mid 19th century, but relocated in the 1890s. Six surviving homes along the 4500 block of Grant Road were built between 1890 and 1894. During the 1890s a streetcar line was installed along Wisconsin Avenue, linking the village with Georgetown and resulting in further development. The population of Tenleytown increased from 731 to 1,127 between 1892 and 1897 and large amounts of homes and shops were built along Wisconsin Avenue and the surrounding streets. In 1894 there were over 30 buildings on the 4400 and 4500 blocks of Grant Road. The road played such an important role in local development that a 1899 article in the Evening Star said that if Tenleytown was a hand, Grant Road was its thumb "with twisting and turning knuckles, grabbed onto by more than its shares of houses." 20th and 21st centuries By 1900 there were six churches, several schools, and a firehouse in Tenleytown, along with a variety of specialty businesses including a restaurant, grocery shops, pharmacy, butcher shop, and dry goods store. President Theodore Roosevelt would ride his horse through the area as he made his way from the White House to his nearby hunting lodge. He reportedly stopped at the house at 4426 Grant Road NW on at least two occasions to take the children for a horseback ride. The two 20th century houses in the historic district, 4547 and 4555 Grant Road NW, were built during this period in 1908. During the 1910s real estate developers purchased large amounts of land in the area to build middle-class homes for white residents. These projects didn't succeed until after World War I when developers Harry Kite and Samuel Kite Jr. led development east of Wisconsin Avenue, inspired by the success of nearby upper middle class subdivisions such as Chevy Chase, Cleveland Park, and Friendship Heights. These developments changed the demographics of Tenleytown from a working class village to middle-class neighborhood, and Reno City was demolished beginning in 1928. The developments also led to new roads being cut through the area. Wisconsin Avenue was widened in 1919 to accommodate streetcars and automobiles, and Albemarle Street was extended from Reno Road to Wisconsin Avenue. When Albemarle Street was extended in 1931, three houses on Grant Road were demolished and two were moved, including 3837 Albemarle Street NW. The houses on the 4400 block of Grant Road also lost their rear yards when Albemarle Street was extended. In addition to the Albemarle Street extension, there was significant changes to Grant Road during the 1930s. Tenley Circle was paved in 1936, becoming a busy intersection for busses and streetcars, 39th Street was extended to Albemarle Street, and the diagonal Nebraska Avenue was created to link Tenleytown with Connecticut Avenue. Several houses were demolished in the process and in 1937 C. Harold Gray wrote: "Tenleytown was the nucleus of an extensive country road net which has since largely disappeared...In extending Washington's straight streets through the community, many of the buildings were removed and its appearance changed almost beyond recognition." There were also large developments that changed the character of the neighborhood. Woodrow Senior High and Deal Junior High were built, a reservoir and water tower were built on the Fort Reno site, and the National Capital Planning Commission planned a scenic drive that would connect Civil War era forts. To build this scenic road, named Fort Reno Drive, several houses on Grant Road were demolished. The plan was approved by the neighborhood's new middle class residents, who thought the older buildings were unattractive and hurt the value of their own properties, but the project was later cancelled. After Nebraska Avenue was completed, homes were built along the road in the 1940s. The rear of these homes face the north side of the 4500 block of Grant Road. In the 1950s and 1960s some of the lots on the south side of the 4500 block of Grant Road were divided to accommodate construction of new homes. These mid to late 20th century homes on each side of the block are considered noncontributing to the historic district, but due to the deep lots of the Nebraska Avenue properties, Grant Road kept the appearance of a rural country road. After Metro's Tenleytown station opened in the 1980s, there was significant development in the neighborhood. In the 1990s there were calls for higher density housing to be built close to the Metro station. This was welcomed by locals, but they wanted this new housing to be built along major roads like Wisconsin Avenue. In 1999 the large house on the northwest corner of Albemarle Street and Grant Road was demolished and replaced with condominiums. The house had been built in 1890 for Dr. John W. Chappell and included a large garden. It was considered one of the nicest buildings on Grant Road and its demolition was protested by area residents. The people who lived in the remaining houses on Grant Road took notice and sought to protect their properties from demolition. Following a historic landmark designation process, the 4400 and 4500 blocks of Grant Road and its 13 remaining historic buildings were added to the District of Columbia Inventory of Historic Sites on April 21, 2002, and listed on the National Register of Historic Places on March 3, 2004. The Grant Road Historic District was the first historic district in the city to include just a single street. In 2017 a mural depicting some of Tenleytown's history and landmarks was painted on the side of 4425 Wisconsin Avenue NW. Architecture The two-story stucco and stone commercial building at 4425 Wisconsin Avenue NW is one of several buildings in the historic district designed in the Italianate style. The building is two-stories and three bays wide with a sloped roof. It originally included a projecting storefront but that was later replaced with the current show window. The building's main entrance is on Wisconsin Avenue, but the side door facing Grant Road originally served as a second entrance. The Italianate two-story house at 4426 Grant Road NW, also listed as 3926 Albemarle Street NW, is historically known as the Burrows House. This is one of three houses reportedly built by Thomas Paxton in the 1860s and all are set slightly higher than street level. The building is three bays wide and features a gabled roof. The stone chimney, stone retaining wall, and stone columns supporting the one-story porch were reportedly quarried from local stones by W. Tyson Burrow in the 1880s. There is a one-story garage facing Albemarle Street. The house at 4430 Grant Road NW was designed in the vernacular Italianate style and is historically known as the Parks-Conner House. It is a two-story frame building with two bays and a bracketed cornice. The one-story wrap-around porch includes decorative elements. The vernacular Tenant House at 4434 Grant Road NW is believed to be the oldest of the three houses. Stucco covers the two-story, three bay wide frame building. There is a central chimney, gabled roof, and one-story porch. The original decorative porch included gingerbread detailing. The first house on the next block is 3837 Albemarle Street NW, historically known as the Christian-Curran House. It is sited at the intersection of 39th Street, Albemarle Street, and Grant Road. The L-shaped building was designed in the vernacular Italianate style and is two bays wide with a hipped roof and one-story wrap-around porch. The Italianate house at 3831 Albemarle Street NW is historically known as the Poore House. The frame building is three bays wide and features a one-story porch. The Hesterberg House at 4537 Grant Road NW was designed in the vernacular Greek Revival style. The rectangular building is two-and-a-half stories, three bays wide, four bays deep, and is connected to a one-story addition. The house at 4543 Grant Road NW is historically known as the Admiral's House. The house was originally two-story, L-shaped, and two bays wide, but was renovated into a two-and-a half story, four bay wide Colonial Revival building with a small porch. The Folk Victorian house at 4547 Grant Road NW is historically known as the Cottage. The house is a two-story frame building, two bays wide, and its original one-story porch includes decorative elements. The Voight House at 4555 Grant Road NW was designed in the Italianate style. It is two-stories, two bays wide, with a one-story side porch. The house at 4561 Grant Road NW, also known as the Payne House, is another two-story, two bay wide Italianate house. It includes the original porch with decorative elements. The vernacular I-house at 4565 Grant Road NW is two-stories and three bays wide with a small porch. The last house in the historic district, 3812 Brandywine Street NW, is also two-stories and three bays wide. It was designed in the Italianate style and includes a small porch. Table of contributing buildings See also National Register of Historic Places listings in Washington, D.C. References External links Grant Road Historic District, DC Office of Planning District of Columbia Inventory of Historic Sites Historic districts on the National Register of Historic Places in Washington, D.C. Roads on the National Register of Historic Places in Washington, D.C. Tenleytown
```php <?php /** * HTML API: WP_HTML_Processor class * * @package WordPress * @subpackage HTML-API * @since 6.4.0 */ /** * Core class used to safely parse and modify an HTML document. * * The HTML Processor class properly parses and modifies HTML5 documents. * * It supports a subset of the HTML5 specification, and when it encounters * unsupported markup, it aborts early to avoid unintentionally breaking * the document. The HTML Processor should never break an HTML document. * * While the `WP_HTML_Tag_Processor` is a valuable tool for modifying * attributes on individual HTML tags, the HTML Processor is more capable * and useful for the following operations: * * - Querying based on nested HTML structure. * * Eventually the HTML Processor will also support: * - Wrapping a tag in surrounding HTML. * - Unwrapping a tag by removing its parent. * - Inserting and removing nodes. * - Reading and changing inner content. * - Navigating up or around HTML structure. * * ## Usage * * Use of this class requires three steps: * * 1. Call a static creator method with your input HTML document. * 2. Find the location in the document you are looking for. * 3. Request changes to the document at that location. * * Example: * * $processor = WP_HTML_Processor::create_fragment( $html ); * if ( $processor->next_tag( array( 'breadcrumbs' => array( 'DIV', 'FIGURE', 'IMG' ) ) ) ) { * $processor->add_class( 'responsive-image' ); * } * * #### Breadcrumbs * * Breadcrumbs represent the stack of open elements from the root * of the document or fragment down to the currently-matched node, * if one is currently selected. Call WP_HTML_Processor::get_breadcrumbs() * to inspect the breadcrumbs for a matched tag. * * Breadcrumbs can specify nested HTML structure and are equivalent * to a CSS selector comprising tag names separated by the child * combinator, such as "DIV > FIGURE > IMG". * * Since all elements find themselves inside a full HTML document * when parsed, the return value from `get_breadcrumbs()` will always * contain any implicit outermost elements. For example, when parsing * with `create_fragment()` in the `BODY` context (the default), any * tag in the given HTML document will contain `array( 'HTML', 'BODY', )` * in its breadcrumbs. * * Despite containing the implied outermost elements in their breadcrumbs, * tags may be found with the shortest-matching breadcrumb query. That is, * `array( 'IMG' )` matches all IMG elements and `array( 'P', 'IMG' )` * matches all IMG elements directly inside a P element. To ensure that no * partial matches erroneously match it's possible to specify in a query * the full breadcrumb match all the way down from the root HTML element. * * Example: * * $html = '<figure><img><figcaption>A <em>lovely</em> day outside</figcaption></figure>'; * // ----- Matches here. * $processor->next_tag( array( 'breadcrumbs' => array( 'FIGURE', 'IMG' ) ) ); * * $html = '<figure><img><figcaption>A <em>lovely</em> day outside</figcaption></figure>'; * // ---- Matches here. * $processor->next_tag( array( 'breadcrumbs' => array( 'FIGURE', 'FIGCAPTION', 'EM' ) ) ); * * $html = '<div><img></div><img>'; * // ----- Matches here, because IMG must be a direct child of the implicit BODY. * $processor->next_tag( array( 'breadcrumbs' => array( 'BODY', 'IMG' ) ) ); * * ## HTML Support * * This class implements a small part of the HTML5 specification. * It's designed to operate within its support and abort early whenever * encountering circumstances it can't properly handle. This is * the principle way in which this class remains as simple as possible * without cutting corners and breaking compliance. * * ### Supported elements * * If any unsupported element appears in the HTML input the HTML Processor * will abort early and stop all processing. This draconian measure ensures * that the HTML Processor won't break any HTML it doesn't fully understand. * * The HTML Processor supports all elements other than a specific set: * * - Any element inside a TABLE. * - Any element inside foreign content, including SVG and MATH. * - Any element outside the IN BODY insertion mode, e.g. doctype declarations, meta, links. * * ### Supported markup * * Some kinds of non-normative HTML involve reconstruction of formatting elements and * re-parenting of mis-nested elements. For example, a DIV tag found inside a TABLE * may in fact belong _before_ the table in the DOM. If the HTML Processor encounters * such a case it will stop processing. * * The following list illustrates some common examples of unexpected HTML inputs that * the HTML Processor properly parses and represents: * * - HTML with optional tags omitted, e.g. `<p>one<p>two`. * - HTML with unexpected tag closers, e.g. `<p>one </span> more</p>`. * - Non-void tags with self-closing flag, e.g. `<div/>the DIV is still open.</div>`. * - Heading elements which close open heading elements of another level, e.g. `<h1>Closed by </h2>`. * - Elements containing text that looks like other tags but isn't, e.g. `<title>The <img> is plaintext</title>`. * - SCRIPT and STYLE tags containing text that looks like HTML but isn't, e.g. `<script>document.write('<p>Hi</p>');</script>`. * - SCRIPT content which has been escaped, e.g. `<script><!-- document.write('<script>console.log("hi")</script>') --></script>`. * * ### Unsupported Features * * This parser does not report parse errors. * * Normally, when additional HTML or BODY tags are encountered in a document, if there * are any additional attributes on them that aren't found on the previous elements, * the existing HTML and BODY elements adopt those missing attribute values. This * parser does not add those additional attributes. * * In certain situations, elements are moved to a different part of the document in * a process called "adoption" and "fostering." Because the nodes move to a location * in the document that the parser had already processed, this parser does not support * these situations and will bail. * * @since 6.4.0 * * @see WP_HTML_Tag_Processor * @see path_to_url */ class WP_HTML_Processor extends WP_HTML_Tag_Processor { /** * The maximum number of bookmarks allowed to exist at any given time. * * HTML processing requires more bookmarks than basic tag processing, * so this class constant from the Tag Processor is overwritten. * * @since 6.4.0 * * @var int */ const MAX_BOOKMARKS = 100; /** * Holds the working state of the parser, including the stack of * open elements and the stack of active formatting elements. * * Initialized in the constructor. * * @since 6.4.0 * * @var WP_HTML_Processor_State */ private $state; /** * Used to create unique bookmark names. * * This class sets a bookmark for every tag in the HTML document that it encounters. * The bookmark name is auto-generated and increments, starting with `1`. These are * internal bookmarks and are automatically released when the referring WP_HTML_Token * goes out of scope and is garbage-collected. * * @since 6.4.0 * * @see WP_HTML_Processor::$release_internal_bookmark_on_destruct * * @var int */ private $bookmark_counter = 0; /** * Stores an explanation for why something failed, if it did. * * @see self::get_last_error * * @since 6.4.0 * * @var string|null */ private $last_error = null; /** * Stores context for why the parser bailed on unsupported HTML, if it did. * * @see self::get_unsupported_exception * * @since 6.7.0 * * @var WP_HTML_Unsupported_Exception|null */ private $unsupported_exception = null; /** * Releases a bookmark when PHP garbage-collects its wrapping WP_HTML_Token instance. * * This function is created inside the class constructor so that it can be passed to * the stack of open elements and the stack of active formatting elements without * exposing it as a public method on the class. * * @since 6.4.0 * * @var Closure|null */ private $release_internal_bookmark_on_destruct = null; /** * Stores stack events which arise during parsing of the * HTML document, which will then supply the "match" events. * * @since 6.6.0 * * @var WP_HTML_Stack_Event[] */ private $element_queue = array(); /** * Stores the current breadcrumbs. * * @since 6.7.0 * * @var string[] */ private $breadcrumbs = array(); /** * Current stack event, if set, representing a matched token. * * Because the parser may internally point to a place further along in a document * than the nodes which have already been processed (some "virtual" nodes may have * appeared while scanning the HTML document), this will point at the "current" node * being processed. It comes from the front of the element queue. * * @since 6.6.0 * * @var WP_HTML_Stack_Event|null */ private $current_element = null; /** * Context node if created as a fragment parser. * * @var WP_HTML_Token|null */ private $context_node = null; /* * Public Interface Functions */ /** * Creates an HTML processor in the fragment parsing mode. * * Use this for cases where you are processing chunks of HTML that * will be found within a bigger HTML document, such as rendered * block output that exists within a post, `the_content` inside a * rendered site layout. * * Fragment parsing occurs within a context, which is an HTML element * that the document will eventually be placed in. It becomes important * when special elements have different rules than others, such as inside * a TEXTAREA or a TITLE tag where things that look like tags are text, * or inside a SCRIPT tag where things that look like HTML syntax are JS. * * The context value should be a representation of the tag into which the * HTML is found. For most cases this will be the body element. The HTML * form is provided because a context element may have attributes that * impact the parse, such as with a SCRIPT tag and its `type` attribute. * * ## Current HTML Support * * - The only supported context is `<body>`, which is the default value. * - The only supported document encoding is `UTF-8`, which is the default value. * * @since 6.4.0 * @since 6.6.0 Returns `static` instead of `self` so it can create subclass instances. * * @param string $html Input HTML fragment to process. * @param string $context Context element for the fragment, must be default of `<body>`. * @param string $encoding Text encoding of the document; must be default of 'UTF-8'. * @return static|null The created processor if successful, otherwise null. */ public static function create_fragment( $html, $context = '<body>', $encoding = 'UTF-8' ) { if ( '<body>' !== $context || 'UTF-8' !== $encoding ) { return null; } $processor = new static( $html, self::CONSTRUCTOR_UNLOCK_CODE ); $processor->state->context_node = array( 'BODY', array() ); $processor->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; $processor->state->encoding = $encoding; $processor->state->encoding_confidence = 'certain'; // @todo Create "fake" bookmarks for non-existent but implied nodes. $processor->bookmarks['root-node'] = new WP_HTML_Span( 0, 0 ); $processor->bookmarks['context-node'] = new WP_HTML_Span( 0, 0 ); $root_node = new WP_HTML_Token( 'root-node', 'HTML', false ); $processor->state->stack_of_open_elements->push( $root_node ); $context_node = new WP_HTML_Token( 'context-node', $processor->state->context_node[0], false ); $processor->context_node = $context_node; $processor->breadcrumbs = array( 'HTML', $context_node->node_name ); return $processor; } /** * Creates an HTML processor in the full parsing mode. * * It's likely that a fragment parser is more appropriate, unless sending an * entire HTML document from start to finish. Consider a fragment parser with * a context node of `<body>`. * * Since UTF-8 is the only currently-accepted charset, if working with a * document that isn't UTF-8, it's important to convert the document before * creating the processor: pass in the converted HTML. * * @param string $html Input HTML document to process. * @param string|null $known_definite_encoding Optional. If provided, specifies the charset used * in the input byte stream. Currently must be UTF-8. * @return static|null The created processor if successful, otherwise null. */ public static function create_full_parser( $html, $known_definite_encoding = 'UTF-8' ) { if ( 'UTF-8' !== $known_definite_encoding ) { return null; } $processor = new static( $html, self::CONSTRUCTOR_UNLOCK_CODE ); $processor->state->encoding = $known_definite_encoding; $processor->state->encoding_confidence = 'certain'; return $processor; } /** * Constructor. * * Do not use this method. Use the static creator methods instead. * * @access private * * @since 6.4.0 * * @see WP_HTML_Processor::create_fragment() * * @param string $html HTML to process. * @param string|null $use_the_static_create_methods_instead This constructor should not be called manually. */ public function __construct( $html, $use_the_static_create_methods_instead = null ) { parent::__construct( $html ); if ( self::CONSTRUCTOR_UNLOCK_CODE !== $use_the_static_create_methods_instead ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: WP_HTML_Processor::create_fragment(). */ __( 'Call %s to create an HTML Processor instead of calling the constructor directly.' ), '<code>WP_HTML_Processor::create_fragment()</code>' ), '6.4.0' ); } $this->state = new WP_HTML_Processor_State(); $this->state->stack_of_open_elements->set_push_handler( function ( WP_HTML_Token $token ): void { $is_virtual = ! isset( $this->state->current_token ) || $this->is_tag_closer(); $same_node = isset( $this->state->current_token ) && $token->node_name === $this->state->current_token->node_name; $provenance = ( ! $same_node || $is_virtual ) ? 'virtual' : 'real'; $this->element_queue[] = new WP_HTML_Stack_Event( $token, WP_HTML_Stack_Event::PUSH, $provenance ); $this->change_parsing_namespace( $token->namespace ); } ); $this->state->stack_of_open_elements->set_pop_handler( function ( WP_HTML_Token $token ): void { $is_virtual = ! isset( $this->state->current_token ) || ! $this->is_tag_closer(); $same_node = isset( $this->state->current_token ) && $token->node_name === $this->state->current_token->node_name; $provenance = ( ! $same_node || $is_virtual ) ? 'virtual' : 'real'; $this->element_queue[] = new WP_HTML_Stack_Event( $token, WP_HTML_Stack_Event::POP, $provenance ); $adjusted_current_node = $this->get_adjusted_current_node(); $this->change_parsing_namespace( $adjusted_current_node ? $adjusted_current_node->namespace : 'html' ); } ); /* * Create this wrapper so that it's possible to pass * a private method into WP_HTML_Token classes without * exposing it to any public API. */ $this->release_internal_bookmark_on_destruct = function ( string $name ): void { parent::release_bookmark( $name ); }; } /** * Stops the parser and terminates its execution when encountering unsupported markup. * * @throws WP_HTML_Unsupported_Exception Halts execution of the parser. * * @since 6.7.0 * * @param string $message Explains support is missing in order to parse the current node. */ private function bail( string $message ) { $here = $this->bookmarks[ $this->state->current_token->bookmark_name ]; $token = substr( $this->html, $here->start, $here->length ); $open_elements = array(); foreach ( $this->state->stack_of_open_elements->stack as $item ) { $open_elements[] = $item->node_name; } $active_formats = array(); foreach ( $this->state->active_formatting_elements->walk_down() as $item ) { $active_formats[] = $item->node_name; } $this->last_error = self::ERROR_UNSUPPORTED; $this->unsupported_exception = new WP_HTML_Unsupported_Exception( $message, $this->state->current_token->node_name, $here->start, $token, $open_elements, $active_formats ); throw $this->unsupported_exception; } /** * Returns the last error, if any. * * Various situations lead to parsing failure but this class will * return `false` in all those cases. To determine why something * failed it's possible to request the last error. This can be * helpful to know to distinguish whether a given tag couldn't * be found or if content in the document caused the processor * to give up and abort processing. * * Example * * $processor = WP_HTML_Processor::create_fragment( '<template><strong><button><em><p><em>' ); * false === $processor->next_tag(); * WP_HTML_Processor::ERROR_UNSUPPORTED === $processor->get_last_error(); * * @since 6.4.0 * * @see self::ERROR_UNSUPPORTED * @see self::ERROR_EXCEEDED_MAX_BOOKMARKS * * @return string|null The last error, if one exists, otherwise null. */ public function get_last_error(): ?string { return $this->last_error; } /** * Returns context for why the parser aborted due to unsupported HTML, if it did. * * This is meant for debugging purposes, not for production use. * * @since 6.7.0 * * @see self::$unsupported_exception * * @return WP_HTML_Unsupported_Exception|null */ public function get_unsupported_exception() { return $this->unsupported_exception; } /** * Finds the next tag matching the $query. * * @todo Support matching the class name and tag name. * * @since 6.4.0 * @since 6.6.0 Visits all tokens, including virtual ones. * * @throws Exception When unable to allocate a bookmark for the next token in the input HTML document. * * @param array|string|null $query { * Optional. Which tag name to find, having which class, etc. Default is to find any tag. * * @type string|null $tag_name Which tag to find, or `null` for "any tag." * @type string $tag_closers 'visit' to pause at tag closers, 'skip' or unset to only visit openers. * @type int|null $match_offset Find the Nth tag matching all search criteria. * 1 for "first" tag, 3 for "third," etc. * Defaults to first tag. * @type string|null $class_name Tag must contain this whole class name to match. * @type string[] $breadcrumbs DOM sub-path at which element is found, e.g. `array( 'FIGURE', 'IMG' )`. * May also contain the wildcard `*` which matches a single element, e.g. `array( 'SECTION', '*' )`. * } * @return bool Whether a tag was matched. */ public function next_tag( $query = null ): bool { $visit_closers = isset( $query['tag_closers'] ) && 'visit' === $query['tag_closers']; if ( null === $query ) { while ( $this->next_token() ) { if ( '#tag' !== $this->get_token_type() ) { continue; } if ( ! $this->is_tag_closer() || $visit_closers ) { return true; } } return false; } if ( is_string( $query ) ) { $query = array( 'breadcrumbs' => array( $query ) ); } if ( ! is_array( $query ) ) { _doing_it_wrong( __METHOD__, __( 'Please pass a query array to this function.' ), '6.4.0' ); return false; } $needs_class = ( isset( $query['class_name'] ) && is_string( $query['class_name'] ) ) ? $query['class_name'] : null; if ( ! ( array_key_exists( 'breadcrumbs', $query ) && is_array( $query['breadcrumbs'] ) ) ) { while ( $this->next_token() ) { if ( '#tag' !== $this->get_token_type() ) { continue; } if ( isset( $query['tag_name'] ) && $query['tag_name'] !== $this->get_token_name() ) { continue; } if ( isset( $needs_class ) && ! $this->has_class( $needs_class ) ) { continue; } if ( ! $this->is_tag_closer() || $visit_closers ) { return true; } } return false; } $breadcrumbs = $query['breadcrumbs']; $match_offset = isset( $query['match_offset'] ) ? (int) $query['match_offset'] : 1; while ( $match_offset > 0 && $this->next_token() ) { if ( '#tag' !== $this->get_token_type() || $this->is_tag_closer() ) { continue; } if ( isset( $needs_class ) && ! $this->has_class( $needs_class ) ) { continue; } if ( $this->matches_breadcrumbs( $breadcrumbs ) && 0 === --$match_offset ) { return true; } } return false; } /** * Ensures internal accounting is maintained for HTML semantic rules while * the underlying Tag Processor class is seeking to a bookmark. * * This doesn't currently have a way to represent non-tags and doesn't process * semantic rules for text nodes. For access to the raw tokens consider using * WP_HTML_Tag_Processor instead. * * @since 6.5.0 Added for internal support; do not use. * * @access private * * @return bool */ public function next_token(): bool { $this->current_element = null; if ( isset( $this->last_error ) ) { return false; } /* * Prime the events if there are none. * * @todo In some cases, probably related to the adoption agency * algorithm, this call to step() doesn't create any new * events. Calling it again creates them. Figure out why * this is and if it's inherent or if it's a bug. Looping * until there are events or until there are no more * tokens works in the meantime and isn't obviously wrong. */ if ( empty( $this->element_queue ) && $this->step() ) { return $this->next_token(); } // Process the next event on the queue. $this->current_element = array_shift( $this->element_queue ); if ( ! isset( $this->current_element ) ) { // There are no tokens left, so close all remaining open elements. while ( $this->state->stack_of_open_elements->pop() ) { continue; } return empty( $this->element_queue ) ? false : $this->next_token(); } $is_pop = WP_HTML_Stack_Event::POP === $this->current_element->operation; /* * The root node only exists in the fragment parser, and closing it * indicates that the parse is complete. Stop before popping it from * the breadcrumbs. */ if ( 'root-node' === $this->current_element->token->bookmark_name ) { return $this->next_token(); } // Adjust the breadcrumbs for this event. if ( $is_pop ) { array_pop( $this->breadcrumbs ); } else { $this->breadcrumbs[] = $this->current_element->token->node_name; } // Avoid sending close events for elements which don't expect a closing. if ( $is_pop && ! $this->expects_closer( $this->current_element->token ) ) { return $this->next_token(); } return true; } /** * Indicates if the current tag token is a tag closer. * * Example: * * $p = WP_HTML_Processor::create_fragment( '<div></div>' ); * $p->next_tag( array( 'tag_name' => 'div', 'tag_closers' => 'visit' ) ); * $p->is_tag_closer() === false; * * $p->next_tag( array( 'tag_name' => 'div', 'tag_closers' => 'visit' ) ); * $p->is_tag_closer() === true; * * @since 6.6.0 Subclassed for HTML Processor. * * @return bool Whether the current tag is a tag closer. */ public function is_tag_closer(): bool { return $this->is_virtual() ? ( WP_HTML_Stack_Event::POP === $this->current_element->operation && '#tag' === $this->get_token_type() ) : parent::is_tag_closer(); } /** * Indicates if the currently-matched token is virtual, created by a stack operation * while processing HTML, rather than a token found in the HTML text itself. * * @since 6.6.0 * * @return bool Whether the current token is virtual. */ private function is_virtual(): bool { return ( isset( $this->current_element->provenance ) && 'virtual' === $this->current_element->provenance ); } /** * Indicates if the currently-matched tag matches the given breadcrumbs. * * A "*" represents a single tag wildcard, where any tag matches, but not no tags. * * At some point this function _may_ support a `**` syntax for matching any number * of unspecified tags in the breadcrumb stack. This has been intentionally left * out, however, to keep this function simple and to avoid introducing backtracking, * which could open up surprising performance breakdowns. * * Example: * * $processor = WP_HTML_Processor::create_fragment( '<div><span><figure><img></figure></span></div>' ); * $processor->next_tag( 'img' ); * true === $processor->matches_breadcrumbs( array( 'figure', 'img' ) ); * true === $processor->matches_breadcrumbs( array( 'span', 'figure', 'img' ) ); * false === $processor->matches_breadcrumbs( array( 'span', 'img' ) ); * true === $processor->matches_breadcrumbs( array( 'span', '*', 'img' ) ); * * @since 6.4.0 * * @param string[] $breadcrumbs DOM sub-path at which element is found, e.g. `array( 'FIGURE', 'IMG' )`. * May also contain the wildcard `*` which matches a single element, e.g. `array( 'SECTION', '*' )`. * @return bool Whether the currently-matched tag is found at the given nested structure. */ public function matches_breadcrumbs( $breadcrumbs ): bool { // Everything matches when there are zero constraints. if ( 0 === count( $breadcrumbs ) ) { return true; } // Start at the last crumb. $crumb = end( $breadcrumbs ); if ( '*' !== $crumb && $this->get_tag() !== strtoupper( $crumb ) ) { return false; } for ( $i = count( $this->breadcrumbs ) - 1; $i >= 0; $i-- ) { $node = $this->breadcrumbs[ $i ]; $crumb = strtoupper( current( $breadcrumbs ) ); if ( '*' !== $crumb && $node !== $crumb ) { return false; } if ( false === prev( $breadcrumbs ) ) { return true; } } return false; } /** * Indicates if the currently-matched node expects a closing * token, or if it will self-close on the next step. * * Most HTML elements expect a closer, such as a P element or * a DIV element. Others, like an IMG element are void and don't * have a closing tag. Special elements, such as SCRIPT and STYLE, * are treated just like void tags. Text nodes and self-closing * foreign content will also act just like a void tag, immediately * closing as soon as the processor advances to the next token. * * @since 6.6.0 * * @param WP_HTML_Token|null $node Optional. Node to examine, if provided. * Default is to examine current node. * @return bool|null Whether to expect a closer for the currently-matched node, * or `null` if not matched on any token. */ public function expects_closer( WP_HTML_Token $node = null ): ?bool { $token_name = $node->node_name ?? $this->get_token_name(); if ( ! isset( $token_name ) ) { return null; } $token_namespace = $node->namespace ?? $this->get_namespace(); $token_has_self_closing = $node->has_self_closing_flag ?? $this->has_self_closing_flag(); return ! ( // Comments, text nodes, and other atomic tokens. '#' === $token_name[0] || // Doctype declarations. 'html' === $token_name || // Void elements. self::is_void( $token_name ) || // Special atomic elements. ( 'html' === $token_namespace && in_array( $token_name, array( 'IFRAME', 'NOEMBED', 'NOFRAMES', 'SCRIPT', 'STYLE', 'TEXTAREA', 'TITLE', 'XMP' ), true ) ) || // Self-closing elements in foreign content. ( 'html' !== $token_namespace && $token_has_self_closing ) ); } /** * Steps through the HTML document and stop at the next tag, if any. * * @since 6.4.0 * * @throws Exception When unable to allocate a bookmark for the next token in the input HTML document. * * @see self::PROCESS_NEXT_NODE * @see self::REPROCESS_CURRENT_NODE * * @param string $node_to_process Whether to parse the next node or reprocess the current node. * @return bool Whether a tag was matched. */ public function step( $node_to_process = self::PROCESS_NEXT_NODE ): bool { // Refuse to proceed if there was a previous error. if ( null !== $this->last_error ) { return false; } if ( self::REPROCESS_CURRENT_NODE !== $node_to_process ) { /* * Void elements still hop onto the stack of open elements even though * there's no corresponding closing tag. This is important for managing * stack-based operations such as "navigate to parent node" or checking * on an element's breadcrumbs. * * When moving on to the next node, therefore, if the bottom-most element * on the stack is a void element, it must be closed. */ $top_node = $this->state->stack_of_open_elements->current_node(); if ( isset( $top_node ) && ! $this->expects_closer( $top_node ) ) { $this->state->stack_of_open_elements->pop(); } } if ( self::PROCESS_NEXT_NODE === $node_to_process ) { parent::next_token(); } // Finish stepping when there are no more tokens in the document. if ( WP_HTML_Tag_Processor::STATE_INCOMPLETE_INPUT === $this->parser_state || WP_HTML_Tag_Processor::STATE_COMPLETE === $this->parser_state ) { return false; } $adjusted_current_node = $this->get_adjusted_current_node(); $is_closer = $this->is_tag_closer(); $is_start_tag = WP_HTML_Tag_Processor::STATE_MATCHED_TAG === $this->parser_state && ! $is_closer; $token_name = $this->get_token_name(); if ( self::REPROCESS_CURRENT_NODE !== $node_to_process ) { $this->state->current_token = new WP_HTML_Token( $this->bookmark_token(), $token_name, $this->has_self_closing_flag(), $this->release_internal_bookmark_on_destruct ); } $parse_in_current_insertion_mode = ( 0 === $this->state->stack_of_open_elements->count() || 'html' === $adjusted_current_node->namespace || ( 'math' === $adjusted_current_node->integration_node_type && ( ( $is_start_tag && ! in_array( $token_name, array( 'MGLYPH', 'MALIGNMARK' ), true ) ) || '#text' === $token_name ) ) || ( 'math' === $adjusted_current_node->namespace && 'ANNOTATION-XML' === $adjusted_current_node->node_name && $is_start_tag && 'SVG' === $token_name ) || ( 'html' === $adjusted_current_node->integration_node_type && ( $is_start_tag || '#text' === $token_name ) ) ); try { if ( ! $parse_in_current_insertion_mode ) { return $this->step_in_foreign_content(); } switch ( $this->state->insertion_mode ) { case WP_HTML_Processor_State::INSERTION_MODE_INITIAL: return $this->step_initial(); case WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HTML: return $this->step_before_html(); case WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HEAD: return $this->step_before_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD: return $this->step_in_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD_NOSCRIPT: return $this->step_in_head_noscript(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_HEAD: return $this->step_after_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_BODY: return $this->step_in_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE: return $this->step_in_table(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_TEXT: return $this->step_in_table_text(); case WP_HTML_Processor_State::INSERTION_MODE_IN_CAPTION: return $this->step_in_caption(); case WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP: return $this->step_in_column_group(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY: return $this->step_in_table_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_ROW: return $this->step_in_row(); case WP_HTML_Processor_State::INSERTION_MODE_IN_CELL: return $this->step_in_cell(); case WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT: return $this->step_in_select(); case WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT_IN_TABLE: return $this->step_in_select_in_table(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TEMPLATE: return $this->step_in_template(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_BODY: return $this->step_after_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_FRAMESET: return $this->step_in_frameset(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_FRAMESET: return $this->step_after_frameset(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_BODY: return $this->step_after_after_body(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_FRAMESET: return $this->step_after_after_frameset(); // This should be unreachable but PHP doesn't have total type checking on switch. default: $this->bail( "Unaware of the requested parsing mode: '{$this->state->insertion_mode}'." ); } } catch ( WP_HTML_Unsupported_Exception $e ) { /* * Exceptions are used in this class to escape deep call stacks that * otherwise might involve messier calling and return conventions. */ return false; } } /** * Computes the HTML breadcrumbs for the currently-matched node, if matched. * * Breadcrumbs start at the outermost parent and descend toward the matched element. * They always include the entire path from the root HTML node to the matched element. * * @todo It could be more efficient to expose a generator-based version of this function * to avoid creating the array copy on tag iteration. If this is done, it would likely * be more useful to walk up the stack when yielding instead of starting at the top. * * Example * * $processor = WP_HTML_Processor::create_fragment( '<p><strong><em><img></em></strong></p>' ); * $processor->next_tag( 'IMG' ); * $processor->get_breadcrumbs() === array( 'HTML', 'BODY', 'P', 'STRONG', 'EM', 'IMG' ); * * @since 6.4.0 * * @return string[]|null Array of tag names representing path to matched node, if matched, otherwise NULL. */ public function get_breadcrumbs(): ?array { return $this->breadcrumbs; } /** * Returns the nesting depth of the current location in the document. * * Example: * * $processor = WP_HTML_Processor::create_fragment( '<div><p></p></div>' ); * // The processor starts in the BODY context, meaning it has depth from the start: HTML > BODY. * 2 === $processor->get_current_depth(); * * // Opening the DIV element increases the depth. * $processor->next_token(); * 3 === $processor->get_current_depth(); * * // Opening the P element increases the depth. * $processor->next_token(); * 4 === $processor->get_current_depth(); * * // The P element is closed during `next_token()` so the depth is decreased to reflect that. * $processor->next_token(); * 3 === $processor->get_current_depth(); * * @since 6.6.0 * * @return int Nesting-depth of current location in the document. */ public function get_current_depth(): int { return count( $this->breadcrumbs ); } /** * Parses next element in the 'initial' insertion mode. * * This internal function performs the 'initial' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#the-initial-insertion-mode * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_initial(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( parent::is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A character token that is one of U+0009 CHARACTER TABULATION, * > U+000A LINE FEED (LF), U+000C FORM FEED (FF), * > U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * * Parse error: ignore the token. */ case '#text': $text = $this->get_modifiable_text(); if ( strlen( $text ) === strspn( $text, " \t\n\f\r" ) ) { return $this->step(); } goto initial_anything_else; break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': $contents = $this->get_modifiable_text(); if ( ' html' !== $contents ) { /* * @todo When the HTML Tag Processor fully parses the DOCTYPE declaration, * this code should examine the contents to set the compatability mode. */ $this->bail( 'Cannot process any DOCTYPE other than a normative HTML5 doctype.' ); } /* * > Then, switch the insertion mode to "before html". */ $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HTML; return true; } /* * > Anything else */ initial_anything_else: $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HTML; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'before html' insertion mode. * * This internal function performs the 'before html' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#the-before-html-insertion-mode * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_before_html(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $is_closer = parent::is_tag_closer(); $op_sigil = '#tag' === $token_type ? ( $is_closer ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A character token that is one of U+0009 CHARACTER TABULATION, * > U+000A LINE FEED (LF), U+000C FORM FEED (FF), * > U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * * Parse error: ignore the token. */ case '#text': $text = $this->get_modifiable_text(); if ( strlen( $text ) === strspn( $text, " \t\n\f\r" ) ) { return $this->step(); } goto before_html_anything_else; break; /* * > A start tag whose tag name is "html" */ case '+HTML': $this->insert_html_element( $this->state->current_token ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HEAD; return true; /* * > An end tag whose tag name is one of: "head", "body", "html", "br" * * Closing BR tags are always reported by the Tag Processor as opening tags. */ case '-HEAD': case '-BODY': case '-HTML': /* * > Act as described in the "anything else" entry below. */ goto before_html_anything_else; break; } /* * > Any other end tag */ if ( $is_closer ) { // Parse error: ignore the token. return $this->step(); } /* * > Anything else. * * > Create an html element whose node document is the Document object. * > Append it to the Document object. Put this element in the stack of open elements. * > Switch the insertion mode to "before head", then reprocess the token. */ before_html_anything_else: $this->insert_virtual_node( 'HTML' ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HEAD; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'before head' insertion mode. * * This internal function performs the 'before head' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#the-before-head-insertion-mode * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_before_head(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $is_closer = parent::is_tag_closer(); $op_sigil = '#tag' === $token_type ? ( $is_closer ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A character token that is one of U+0009 CHARACTER TABULATION, * > U+000A LINE FEED (LF), U+000C FORM FEED (FF), * > U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * * Parse error: ignore the token. */ case '#text': $text = $this->get_modifiable_text(); if ( strlen( $text ) === strspn( $text, " \t\n\f\r" ) ) { return $this->step(); } goto before_head_anything_else; break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > A start tag whose tag name is "head" */ case '+HEAD': $this->insert_html_element( $this->state->current_token ); $this->state->head_element = $this->state->current_token; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD; return true; /* * > An end tag whose tag name is one of: "head", "body", "html", "br" * > Act as described in the "anything else" entry below. * * Closing BR tags are always reported by the Tag Processor as opening tags. */ case '-HEAD': case '-BODY': case '-HTML': goto before_head_anything_else; break; } if ( $is_closer ) { // Parse error: ignore the token. return $this->step(); } /* * > Anything else * * > Insert an HTML element for a "head" start tag token with no attributes. */ before_head_anything_else: $this->state->head_element = $this->insert_virtual_node( 'HEAD' ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'in head' insertion mode. * * This internal function performs the 'in head' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-inhead * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_head(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $is_closer = parent::is_tag_closer(); $op_sigil = '#tag' === $token_type ? ( $is_closer ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { case '#text': /* * > A character token that is one of U+0009 CHARACTER TABULATION, * > U+000A LINE FEED (LF), U+000C FORM FEED (FF), * > U+000D CARRIAGE RETURN (CR), or U+0020 SPACE */ $text = $this->get_modifiable_text(); if ( '' === $text ) { /* * If the text is empty after processing HTML entities and stripping * U+0000 NULL bytes then ignore the token. */ return $this->step(); } if ( strlen( $text ) === strspn( $text, " \t\n\f\r" ) ) { // Insert the character. $this->insert_html_element( $this->state->current_token ); return true; } goto in_head_anything_else; break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > A start tag whose tag name is one of: "base", "basefont", "bgsound", "link" */ case '+BASE': case '+BASEFONT': case '+BGSOUND': case '+LINK': $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "meta" */ case '+META': $this->insert_html_element( $this->state->current_token ); /* * > If the active speculative HTML parser is null, then: * > - If the element has a charset attribute, and getting an encoding from * > its value results in an encoding, and the confidence is currently * > tentative, then change the encoding to the resulting encoding. */ $charset = $this->get_attribute( 'charset' ); if ( is_string( $charset ) && 'tentative' === $this->state->encoding_confidence ) { $this->bail( 'Cannot yet process META tags with charset to determine encoding.' ); } /* * > - Otherwise, if the element has an http-equiv attribute whose value is * > an ASCII case-insensitive match for the string "Content-Type", and * > the element has a content attribute, and applying the algorithm for * > extracting a character encoding from a meta element to that attribute's * > value returns an encoding, and the confidence is currently tentative, * > then change the encoding to the extracted encoding. */ $http_equiv = $this->get_attribute( 'http-equiv' ); $content = $this->get_attribute( 'content' ); if ( is_string( $http_equiv ) && is_string( $content ) && 0 === strcasecmp( $http_equiv, 'Content-Type' ) && 'tentative' === $this->state->encoding_confidence ) { $this->bail( 'Cannot yet process META tags with http-equiv Content-Type to determine encoding.' ); } return true; /* * > A start tag whose tag name is "title" */ case '+TITLE': $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "noscript", if the scripting flag is enabled * > A start tag whose tag name is one of: "noframes", "style" * * The scripting flag is never enabled in this parser. */ case '+NOFRAMES': case '+STYLE': $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "noscript", if the scripting flag is disabled */ case '+NOSCRIPT': $this->insert_html_element( $this->state->current_token ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD_NOSCRIPT; return true; /* * > A start tag whose tag name is "script" * * @todo Could the adjusted insertion location be anything other than the current location? */ case '+SCRIPT': $this->insert_html_element( $this->state->current_token ); return true; /* * > An end tag whose tag name is "head" */ case '-HEAD': $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_AFTER_HEAD; return true; /* * > An end tag whose tag name is one of: "body", "html", "br" * * BR tags are always reported by the Tag Processor as opening tags. */ case '-BODY': case '-HTML': /* * > Act as described in the "anything else" entry below. */ goto in_head_anything_else; break; /* * > A start tag whose tag name is "template" * * @todo Could the adjusted insertion location be anything other than the current location? */ case '+TEMPLATE': $this->state->active_formatting_elements->insert_marker(); $this->state->frameset_ok = false; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TEMPLATE; $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_TEMPLATE; $this->insert_html_element( $this->state->current_token ); return true; /* * > An end tag whose tag name is "template" */ case '-TEMPLATE': if ( ! $this->state->stack_of_open_elements->contains( 'TEMPLATE' ) ) { // @todo Indicate a parse error once it's possible. return $this->step(); } $this->generate_implied_end_tags_thoroughly(); if ( ! $this->state->stack_of_open_elements->current_node_is( 'TEMPLATE' ) ) { // @todo Indicate a parse error once it's possible. } $this->state->stack_of_open_elements->pop_until( 'TEMPLATE' ); $this->state->active_formatting_elements->clear_up_to_last_marker(); array_pop( $this->state->stack_of_template_insertion_modes ); $this->reset_insertion_mode_appropriately(); return true; } /* * > A start tag whose tag name is "head" * > Any other end tag */ if ( '+HEAD' === $op || $is_closer ) { // Parse error: ignore the token. return $this->step(); } /* * > Anything else */ in_head_anything_else: $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_AFTER_HEAD; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'in head noscript' insertion mode. * * This internal function performs the 'in head noscript' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-inheadnoscript * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_head_noscript(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $is_closer = parent::is_tag_closer(); $op_sigil = '#tag' === $token_type ? ( $is_closer ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A character token that is one of U+0009 CHARACTER TABULATION, * > U+000A LINE FEED (LF), U+000C FORM FEED (FF), * > U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * * Parse error: ignore the token. */ case '#text': $text = $this->get_modifiable_text(); if ( strlen( $text ) === strspn( $text, " \t\n\f\r" ) ) { return $this->step_in_head(); } goto in_head_noscript_anything_else; break; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > An end tag whose tag name is "noscript" */ case '-NOSCRIPT': $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD; return true; /* * > A comment token * > * > A start tag whose tag name is one of: "basefont", "bgsound", * > "link", "meta", "noframes", "style" */ case '#comment': case '#funky-comment': case '#presumptuous-tag': case '+BASEFONT': case '+BGSOUND': case '+LINK': case '+META': case '+NOFRAMES': case '+STYLE': return $this->step_in_head(); /* * > An end tag whose tag name is "br" * * This should never happen, as the Tag Processor prevents showing a BR closing tag. */ } /* * > A start tag whose tag name is one of: "head", "noscript" * > Any other end tag */ if ( '+HEAD' === $op || '+NOSCRIPT' === $op || $is_closer ) { // Parse error: ignore the token. return $this->step(); } /* * > Anything else * * Anything here is a parse error. */ in_head_noscript_anything_else: $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'after head' insertion mode. * * This internal function performs the 'after head' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#the-after-head-insertion-mode * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_head(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $is_closer = parent::is_tag_closer(); $op_sigil = '#tag' === $token_type ? ( $is_closer ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A character token that is one of U+0009 CHARACTER TABULATION, * > U+000A LINE FEED (LF), U+000C FORM FEED (FF), * > U+000D CARRIAGE RETURN (CR), or U+0020 SPACE */ case '#text': $text = $this->get_modifiable_text(); if ( strlen( $text ) === strspn( $text, " \t\n\f\r" ) ) { // Insert the character. $this->insert_html_element( $this->state->current_token ); return true; } goto after_head_anything_else; break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > A start tag whose tag name is "body" */ case '+BODY': $this->insert_html_element( $this->state->current_token ); $this->state->frameset_ok = false; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; return true; /* * > A start tag whose tag name is "frameset" */ case '+FRAMESET': $this->insert_html_element( $this->state->current_token ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_FRAMESET; return true; /* * > A start tag whose tag name is one of: "base", "basefont", "bgsound", * > "link", "meta", "noframes", "script", "style", "template", "title" * * Anything here is a parse error. */ case '+BASE': case '+BASEFONT': case '+BGSOUND': case '+LINK': case '+META': case '+NOFRAMES': case '+SCRIPT': case '+STYLE': case '+TEMPLATE': case '+TITLE': /* * > Push the node pointed to by the head element pointer onto the stack of open elements. * > Process the token using the rules for the "in head" insertion mode. * > Remove the node pointed to by the head element pointer from the stack of open elements. (It might not be the current node at this point.) */ $this->bail( 'Cannot process elements after HEAD which reopen the HEAD element.' ); /* * Do not leave this break in when adding support; it's here to prevent * WPCS from getting confused at the switch structure without a return, * because it doesn't know that `bail()` always throws. */ break; /* * > An end tag whose tag name is "template" */ case '-TEMPLATE': return $this->step_in_head(); /* * > An end tag whose tag name is one of: "body", "html", "br" * * Closing BR tags are always reported by the Tag Processor as opening tags. */ case '-BODY': case '-HTML': /* * > Act as described in the "anything else" entry below. */ goto after_head_anything_else; break; } /* * > A start tag whose tag name is "head" * > Any other end tag */ if ( '+HEAD' === $op || $is_closer ) { // Parse error: ignore the token. return $this->step(); } /* * > Anything else * > Insert an HTML element for a "body" start tag token with no attributes. */ after_head_anything_else: $this->insert_virtual_node( 'BODY' ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'in body' insertion mode. * * This internal function performs the 'in body' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.4.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-inbody * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_body(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( parent::is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { case '#text': $current_token = $this->bookmarks[ $this->state->current_token->bookmark_name ]; /* * > A character token that is U+0000 NULL * * Any successive sequence of NULL bytes is ignored and won't * trigger active format reconstruction. Therefore, if the text * only comprises NULL bytes then the token should be ignored * here, but if there are any other characters in the stream * the active formats should be reconstructed. */ if ( 1 <= $current_token->length && "\x00" === $this->html[ $current_token->start ] && strspn( $this->html, "\x00", $current_token->start, $current_token->length ) === $current_token->length ) { // Parse error: ignore the token. return $this->step(); } $this->reconstruct_active_formatting_elements(); /* * Whitespace-only text does not affect the frameset-ok flag. * It is probably inter-element whitespace, but it may also * contain character references which decode only to whitespace. */ $text = $this->get_modifiable_text(); if ( strlen( $text ) !== strspn( $text, " \t\n\f\r" ) ) { $this->state->frameset_ok = false; } $this->insert_html_element( $this->state->current_token ); return true; case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token * > Parse error. Ignore the token. */ case 'html': return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': if ( ! $this->state->stack_of_open_elements->contains( 'TEMPLATE' ) ) { /* * > Otherwise, for each attribute on the token, check to see if the attribute * > is already present on the top element of the stack of open elements. If * > it is not, add the attribute and its corresponding value to that element. * * This parser does not currently support this behavior: ignore the token. */ } // Ignore the token. return $this->step(); /* * > A start tag whose tag name is one of: "base", "basefont", "bgsound", "link", * > "meta", "noframes", "script", "style", "template", "title" * > * > An end tag whose tag name is "template" */ case '+BASE': case '+BASEFONT': case '+BGSOUND': case '+LINK': case '+META': case '+NOFRAMES': case '+SCRIPT': case '+STYLE': case '+TEMPLATE': case '+TITLE': case '-TEMPLATE': return $this->step_in_head(); /* * > A start tag whose tag name is "body" * * This tag in the IN BODY insertion mode is a parse error. */ case '+BODY': if ( 1 === $this->state->stack_of_open_elements->count() || 'BODY' !== ( $this->state->stack_of_open_elements->at( 2 )->node_name ?? null ) || $this->state->stack_of_open_elements->contains( 'TEMPLATE' ) ) { // Ignore the token. return $this->step(); } /* * > Otherwise, set the frameset-ok flag to "not ok"; then, for each attribute * > on the token, check to see if the attribute is already present on the body * > element (the second element) on the stack of open elements, and if it is * > not, add the attribute and its corresponding value to that element. * * This parser does not currently support this behavior: ignore the token. */ $this->state->frameset_ok = false; return $this->step(); /* * > A start tag whose tag name is "frameset" * * This tag in the IN BODY insertion mode is a parse error. */ case '+FRAMESET': if ( 1 === $this->state->stack_of_open_elements->count() || 'BODY' !== ( $this->state->stack_of_open_elements->at( 2 )->node_name ?? null ) || false === $this->state->frameset_ok ) { // Ignore the token. return $this->step(); } /* * > Otherwise, run the following steps: */ $this->bail( 'Cannot process non-ignored FRAMESET tags.' ); break; /* * > An end tag whose tag name is "body" */ case '-BODY': if ( ! $this->state->stack_of_open_elements->has_element_in_scope( 'BODY' ) ) { // Parse error: ignore the token. return $this->step(); } /* * > Otherwise, if there is a node in the stack of open elements that is not either a * > dd element, a dt element, an li element, an optgroup element, an option element, * > a p element, an rb element, an rp element, an rt element, an rtc element, a tbody * > element, a td element, a tfoot element, a th element, a thread element, a tr * > element, the body element, or the html element, then this is a parse error. * * There is nothing to do for this parse error, so don't check for it. */ $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_AFTER_BODY; return true; /* * > An end tag whose tag name is "html" */ case '-HTML': if ( ! $this->state->stack_of_open_elements->has_element_in_scope( 'BODY' ) ) { // Parse error: ignore the token. return $this->step(); } /* * > Otherwise, if there is a node in the stack of open elements that is not either a * > dd element, a dt element, an li element, an optgroup element, an option element, * > a p element, an rb element, an rp element, an rt element, an rtc element, a tbody * > element, a td element, a tfoot element, a th element, a thread element, a tr * > element, the body element, or the html element, then this is a parse error. * * There is nothing to do for this parse error, so don't check for it. */ $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_AFTER_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is one of: "address", "article", "aside", * > "blockquote", "center", "details", "dialog", "dir", "div", "dl", * > "fieldset", "figcaption", "figure", "footer", "header", "hgroup", * > "main", "menu", "nav", "ol", "p", "search", "section", "summary", "ul" */ 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 '+SEARCH': case '+SECTION': case '+SUMMARY': case '+UL': if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is one of: "h1", "h2", "h3", "h4", "h5", "h6" */ case '+H1': case '+H2': case '+H3': case '+H4': case '+H5': case '+H6': if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } if ( in_array( $this->state->stack_of_open_elements->current_node()->node_name, array( 'H1', 'H2', 'H3', 'H4', 'H5', 'H6' ), true ) ) { // @todo Indicate a parse error once it's possible. $this->state->stack_of_open_elements->pop(); } $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is one of: "pre", "listing" */ case '+PRE': case '+LISTING': if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } /* * > If the next token is a U+000A LINE FEED (LF) character token, * > then ignore that token and move on to the next one. (Newlines * > at the start of pre blocks are ignored as an authoring convenience.) * * This is handled in `get_modifiable_text()`. */ $this->insert_html_element( $this->state->current_token ); $this->state->frameset_ok = false; return true; /* * > A start tag whose tag name is "form" */ case '+FORM': $stack_contains_template = $this->state->stack_of_open_elements->contains( 'TEMPLATE' ); if ( isset( $this->state->form_element ) && ! $stack_contains_template ) { // Parse error: ignore the token. return $this->step(); } if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } $this->insert_html_element( $this->state->current_token ); if ( ! $stack_contains_template ) { $this->state->form_element = $this->state->current_token; } return true; /* * > A start tag whose tag name is "li" * > A start tag whose tag name is one of: "dd", "dt" */ case '+DD': case '+DT': case '+LI': $this->state->frameset_ok = false; $node = $this->state->stack_of_open_elements->current_node(); $is_li = 'LI' === $token_name; in_body_list_loop: /* * The logic for LI and DT/DD is the same except for one point: LI elements _only_ * close other LI elements, but a DT or DD element closes _any_ open DT or DD element. */ if ( $is_li ? 'LI' === $node->node_name : ( 'DD' === $node->node_name || 'DT' === $node->node_name ) ) { $node_name = $is_li ? 'LI' : $node->node_name; $this->generate_implied_end_tags( $node_name ); if ( ! $this->state->stack_of_open_elements->current_node_is( $node_name ) ) { // @todo Indicate a parse error once it's possible. This error does not impact the logic here. } $this->state->stack_of_open_elements->pop_until( $node_name ); goto in_body_list_done; } if ( 'ADDRESS' !== $node->node_name && 'DIV' !== $node->node_name && 'P' !== $node->node_name && self::is_special( $node ) ) { /* * > If node is in the special category, but is not an address, div, * > or p element, then jump to the step labeled done below. */ goto in_body_list_done; } else { /* * > Otherwise, set node to the previous entry in the stack of open elements * > and return to the step labeled loop. */ foreach ( $this->state->stack_of_open_elements->walk_up( $node ) as $item ) { $node = $item; break; } goto in_body_list_loop; } in_body_list_done: if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } $this->insert_html_element( $this->state->current_token ); return true; case '+PLAINTEXT': if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } /* * @todo This may need to be handled in the Tag Processor and turn into * a single self-contained tag like TEXTAREA, whose modifiable text * is the rest of the input document as plaintext. */ $this->bail( 'Cannot process PLAINTEXT elements.' ); break; /* * > A start tag whose tag name is "button" */ case '+BUTTON': if ( $this->state->stack_of_open_elements->has_element_in_scope( 'BUTTON' ) ) { // @todo Indicate a parse error once it's possible. This error does not impact the logic here. $this->generate_implied_end_tags(); $this->state->stack_of_open_elements->pop_until( 'BUTTON' ); } $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); $this->state->frameset_ok = false; return true; /* * > An end tag whose tag name is one of: "address", "article", "aside", "blockquote", * > "button", "center", "details", "dialog", "dir", "div", "dl", "fieldset", * > "figcaption", "figure", "footer", "header", "hgroup", "listing", "main", * > "menu", "nav", "ol", "pre", "search", "section", "summary", "ul" */ case '-ADDRESS': case '-ARTICLE': case '-ASIDE': case '-BLOCKQUOTE': case '-BUTTON': 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 '-LISTING': case '-MAIN': case '-MENU': case '-NAV': case '-OL': case '-PRE': case '-SEARCH': case '-SECTION': case '-SUMMARY': case '-UL': if ( ! $this->state->stack_of_open_elements->has_element_in_scope( $token_name ) ) { // @todo Report parse error. // Ignore the token. return $this->step(); } $this->generate_implied_end_tags(); if ( ! $this->state->stack_of_open_elements->current_node_is( $token_name ) ) { // @todo Record parse error: this error doesn't impact parsing. } $this->state->stack_of_open_elements->pop_until( $token_name ); return true; /* * > An end tag whose tag name is "form" */ case '-FORM': if ( ! $this->state->stack_of_open_elements->contains( 'TEMPLATE' ) ) { $node = $this->state->form_element; $this->state->form_element = null; /* * > If node is null or if the stack of open elements does not have node * > in scope, then this is a parse error; return and ignore the token. * * @todo It's necessary to check if the form token itself is in scope, not * simply whether any FORM is in scope. */ if ( null === $node || ! $this->state->stack_of_open_elements->has_element_in_scope( 'FORM' ) ) { // Parse error: ignore the token. return $this->step(); } $this->generate_implied_end_tags(); if ( $node !== $this->state->stack_of_open_elements->current_node() ) { // @todo Indicate a parse error once it's possible. This error does not impact the logic here. $this->bail( 'Cannot close a FORM when other elements remain open as this would throw off the breadcrumbs for the following tokens.' ); } $this->state->stack_of_open_elements->remove_node( $node ); } else { /* * > If the stack of open elements does not have a form element in scope, * > then this is a parse error; return and ignore the token. * * Note that unlike in the clause above, this is checking for any FORM in scope. */ if ( ! $this->state->stack_of_open_elements->has_element_in_scope( 'FORM' ) ) { // Parse error: ignore the token. return $this->step(); } $this->generate_implied_end_tags(); if ( ! $this->state->stack_of_open_elements->current_node_is( 'FORM' ) ) { // @todo Indicate a parse error once it's possible. This error does not impact the logic here. } $this->state->stack_of_open_elements->pop_until( 'FORM' ); return true; } break; /* * > An end tag whose tag name is "p" */ case '-P': if ( ! $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->insert_html_element( $this->state->current_token ); } $this->close_a_p_element(); return true; /* * > An end tag whose tag name is "li" * > An end tag whose tag name is one of: "dd", "dt" */ case '-DD': case '-DT': case '-LI': if ( /* * An end tag whose tag name is "li": * If the stack of open elements does not have an li element in list item scope, * then this is a parse error; ignore the token. */ ( 'LI' === $token_name && ! $this->state->stack_of_open_elements->has_element_in_list_item_scope( 'LI' ) ) || /* * An end tag whose tag name is one of: "dd", "dt": * If the stack of open elements does not have an element in scope that is an * HTML element with the same tag name as that of the token, then this is a * parse error; ignore the token. */ ( 'LI' !== $token_name && ! $this->state->stack_of_open_elements->has_element_in_scope( $token_name ) ) ) { /* * This is a parse error, ignore the token. * * @todo Indicate a parse error once it's possible. */ return $this->step(); } $this->generate_implied_end_tags( $token_name ); if ( ! $this->state->stack_of_open_elements->current_node_is( $token_name ) ) { // @todo Indicate a parse error once it's possible. This error does not impact the logic here. } $this->state->stack_of_open_elements->pop_until( $token_name ); return true; /* * > An end tag whose tag name is one of: "h1", "h2", "h3", "h4", "h5", "h6" */ case '-H1': case '-H2': case '-H3': case '-H4': case '-H5': case '-H6': if ( ! $this->state->stack_of_open_elements->has_element_in_scope( '(internal: H1 through H6 - do not use)' ) ) { /* * This is a parse error; ignore the token. * * @todo Indicate a parse error once it's possible. */ return $this->step(); } $this->generate_implied_end_tags(); if ( ! $this->state->stack_of_open_elements->current_node_is( $token_name ) ) { // @todo Record parse error: this error doesn't impact parsing. } $this->state->stack_of_open_elements->pop_until( '(internal: H1 through H6 - do not use)' ); return true; /* * > A start tag whose tag name is "a" */ case '+A': foreach ( $this->state->active_formatting_elements->walk_up() as $item ) { switch ( $item->node_name ) { case 'marker': break; case 'A': $this->run_adoption_agency_algorithm(); $this->state->active_formatting_elements->remove_node( $item ); $this->state->stack_of_open_elements->remove_node( $item ); break; } } $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); $this->state->active_formatting_elements->push( $this->state->current_token ); return true; /* * > A start tag whose tag name is one of: "b", "big", "code", "em", "font", "i", * > "s", "small", "strike", "strong", "tt", "u" */ case '+B': case '+BIG': case '+CODE': case '+EM': case '+FONT': case '+I': case '+S': case '+SMALL': case '+STRIKE': case '+STRONG': case '+TT': case '+U': $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); $this->state->active_formatting_elements->push( $this->state->current_token ); return true; /* * > A start tag whose tag name is "nobr" */ case '+NOBR': $this->reconstruct_active_formatting_elements(); if ( $this->state->stack_of_open_elements->has_element_in_scope( 'NOBR' ) ) { // Parse error. $this->run_adoption_agency_algorithm(); $this->reconstruct_active_formatting_elements(); } $this->insert_html_element( $this->state->current_token ); $this->state->active_formatting_elements->push( $this->state->current_token ); return true; /* * > An end tag whose tag name is one of: "a", "b", "big", "code", "em", "font", "i", * > "nobr", "s", "small", "strike", "strong", "tt", "u" */ case '-A': case '-B': case '-BIG': case '-CODE': case '-EM': case '-FONT': case '-I': case '-S': case '-SMALL': case '-STRIKE': case '-STRONG': case '-TT': case '-U': $this->run_adoption_agency_algorithm(); return true; /* * > A start tag whose tag name is one of: "applet", "marquee", "object" */ case '+APPLET': case '+MARQUEE': case '+OBJECT': $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); $this->state->active_formatting_elements->insert_marker(); $this->state->frameset_ok = false; return true; /* * > A end tag token whose tag name is one of: "applet", "marquee", "object" */ case '-APPLET': case '-MARQUEE': case '-OBJECT': if ( ! $this->state->stack_of_open_elements->has_element_in_scope( $token_name ) ) { // Parse error: ignore the token. return $this->step(); } $this->generate_implied_end_tags(); if ( ! $this->state->stack_of_open_elements->current_node_is( $token_name ) ) { // This is a parse error. } $this->state->stack_of_open_elements->pop_until( $token_name ); $this->state->active_formatting_elements->clear_up_to_last_marker(); return true; /* * > A start tag whose tag name is "table" */ case '+TABLE': /* * > If the Document is not set to quirks mode, and the stack of open elements * > has a p element in button scope, then close a p element. */ if ( WP_HTML_Processor_State::QUIRKS_MODE !== $this->state->document_mode && $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } $this->insert_html_element( $this->state->current_token ); $this->state->frameset_ok = false; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return true; /* * > An end tag whose tag name is "br" * * This is prevented from happening because the Tag Processor * reports all closing BR tags as if they were opening tags. */ /* * > A start tag whose tag name is one of: "area", "br", "embed", "img", "keygen", "wbr" */ case '+AREA': case '+BR': case '+EMBED': case '+IMG': case '+KEYGEN': case '+WBR': $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); $this->state->frameset_ok = false; return true; /* * > A start tag whose tag name is "input" */ case '+INPUT': $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); /* * > If the token does not have an attribute with the name "type", or if it does, * > but that attribute's value is not an ASCII case-insensitive match for the * > string "hidden", then: set the frameset-ok flag to "not ok". */ $type_attribute = $this->get_attribute( 'type' ); if ( ! is_string( $type_attribute ) || 'hidden' !== strtolower( $type_attribute ) ) { $this->state->frameset_ok = false; } return true; /* * > A start tag whose tag name is one of: "param", "source", "track" */ case '+PARAM': case '+SOURCE': case '+TRACK': $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "hr" */ case '+HR': if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } $this->insert_html_element( $this->state->current_token ); $this->state->frameset_ok = false; return true; /* * > A start tag whose tag name is "image" */ case '+IMAGE': /* * > Parse error. Change the token's tag name to "img" and reprocess it. (Don't ask.) * * Note that this is handled elsewhere, so it should not be possible to reach this code. */ $this->bail( "Cannot process an IMAGE tag. (Don't ask.)" ); break; /* * > A start tag whose tag name is "textarea" */ case '+TEXTAREA': $this->insert_html_element( $this->state->current_token ); /* * > If the next token is a U+000A LINE FEED (LF) character token, then ignore * > that token and move on to the next one. (Newlines at the start of * > textarea elements are ignored as an authoring convenience.) * * This is handled in `get_modifiable_text()`. */ $this->state->frameset_ok = false; /* * > Switch the insertion mode to "text". * * As a self-contained node, this behavior is handled in the Tag Processor. */ return true; /* * > A start tag whose tag name is "xmp" */ case '+XMP': if ( $this->state->stack_of_open_elements->has_p_in_button_scope() ) { $this->close_a_p_element(); } $this->reconstruct_active_formatting_elements(); $this->state->frameset_ok = false; /* * > Follow the generic raw text element parsing algorithm. * * As a self-contained node, this behavior is handled in the Tag Processor. */ $this->insert_html_element( $this->state->current_token ); return true; /* * A start tag whose tag name is "iframe" */ case '+IFRAME': $this->state->frameset_ok = false; /* * > Follow the generic raw text element parsing algorithm. * * As a self-contained node, this behavior is handled in the Tag Processor. */ $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "noembed" * > A start tag whose tag name is "noscript", if the scripting flag is enabled * * The scripting flag is never enabled in this parser. */ case '+NOEMBED': $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "select" */ case '+SELECT': $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); $this->state->frameset_ok = false; switch ( $this->state->insertion_mode ) { /* * > If the insertion mode is one of "in table", "in caption", "in table body", "in row", * > or "in cell", then switch the insertion mode to "in select in table". */ case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE: case WP_HTML_Processor_State::INSERTION_MODE_IN_CAPTION: case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY: case WP_HTML_Processor_State::INSERTION_MODE_IN_ROW: case WP_HTML_Processor_State::INSERTION_MODE_IN_CELL: $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT_IN_TABLE; break; /* * > Otherwise, switch the insertion mode to "in select". */ default: $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT; break; } return true; /* * > A start tag whose tag name is one of: "optgroup", "option" */ case '+OPTGROUP': case '+OPTION': if ( $this->state->stack_of_open_elements->current_node_is( 'OPTION' ) ) { $this->state->stack_of_open_elements->pop(); } $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is one of: "rb", "rtc" */ case '+RB': case '+RTC': if ( $this->state->stack_of_open_elements->has_element_in_scope( 'RUBY' ) ) { $this->generate_implied_end_tags(); if ( $this->state->stack_of_open_elements->current_node_is( 'RUBY' ) ) { // @todo Indicate a parse error once it's possible. } } $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is one of: "rp", "rt" */ case '+RP': case '+RT': if ( $this->state->stack_of_open_elements->has_element_in_scope( 'RUBY' ) ) { $this->generate_implied_end_tags( 'RTC' ); $current_node_name = $this->state->stack_of_open_elements->current_node()->node_name; if ( 'RTC' === $current_node_name || 'RUBY' === $current_node_name ) { // @todo Indicate a parse error once it's possible. } } $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "math" */ case '+MATH': $this->reconstruct_active_formatting_elements(); /* * @todo Adjust MathML attributes for the token. (This fixes the case of MathML attributes that are not all lowercase.) * @todo Adjust foreign attributes for the token. (This fixes the use of namespaced attributes, in particular XLink.) * * These ought to be handled in the attribute methods. */ $this->state->current_token->namespace = 'math'; $this->insert_html_element( $this->state->current_token ); if ( $this->state->current_token->has_self_closing_flag ) { $this->state->stack_of_open_elements->pop(); } return true; /* * > A start tag whose tag name is "svg" */ case '+SVG': $this->reconstruct_active_formatting_elements(); /* * @todo Adjust SVG attributes for the token. (This fixes the case of SVG attributes that are not all lowercase.) * @todo Adjust foreign attributes for the token. (This fixes the use of namespaced attributes, in particular XLink in SVG.) * * These ought to be handled in the attribute methods. */ $this->state->current_token->namespace = 'svg'; $this->insert_html_element( $this->state->current_token ); if ( $this->state->current_token->has_self_closing_flag ) { $this->state->stack_of_open_elements->pop(); } return true; /* * > A start tag whose tag name is one of: "caption", "col", "colgroup", * > "frame", "head", "tbody", "td", "tfoot", "th", "thead", "tr" */ case '+CAPTION': case '+COL': case '+COLGROUP': case '+FRAME': case '+HEAD': case '+TBODY': case '+TD': case '+TFOOT': case '+TH': case '+THEAD': case '+TR': // Parse error. Ignore the token. return $this->step(); } if ( ! parent::is_tag_closer() ) { /* * > Any other start tag */ $this->reconstruct_active_formatting_elements(); $this->insert_html_element( $this->state->current_token ); return true; } else { /* * > Any other end tag */ /* * Find the corresponding tag opener in the stack of open elements, if * it exists before reaching a special element, which provides a kind * of boundary in the stack. For example, a `</custom-tag>` should not * close anything beyond its containing `P` or `DIV` element. */ foreach ( $this->state->stack_of_open_elements->walk_up() as $node ) { if ( 'html' === $node->namespace && $token_name === $node->node_name ) { break; } if ( self::is_special( $node ) ) { // This is a parse error, ignore the token. return $this->step(); } } $this->generate_implied_end_tags( $token_name ); if ( $node !== $this->state->stack_of_open_elements->current_node() ) { // @todo Record parse error: this error doesn't impact parsing. } foreach ( $this->state->stack_of_open_elements->walk_up() as $item ) { $this->state->stack_of_open_elements->pop(); if ( $node === $item ) { return true; } } } } /** * Parses next element in the 'in table' insertion mode. * * This internal function performs the 'in table' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-intable * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_table(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( parent::is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A character token, if the current node is table, * > tbody, template, tfoot, thead, or tr element */ case '#text': $current_node = $this->state->stack_of_open_elements->current_node(); $current_node_name = $current_node ? $current_node->node_name : null; if ( $current_node_name && ( 'TABLE' === $current_node_name || 'TBODY' === $current_node_name || 'TEMPLATE' === $current_node_name || 'TFOOT' === $current_node_name || 'THEAD' === $current_node_name || 'TR' === $current_node_name ) ) { $text = $this->get_modifiable_text(); /* * If the text is empty after processing HTML entities and stripping * U+0000 NULL bytes then ignore the token. */ if ( '' === $text ) { return $this->step(); } /* * This follows the rules for "in table text" insertion mode. * * Whitespace-only text nodes are inserted in-place. Otherwise * foster parenting is enabled and the nodes would be * inserted out-of-place. * * > If any of the tokens in the pending table character tokens * > list are character tokens that are not ASCII whitespace, * > then this is a parse error: reprocess the character tokens * > in the pending table character tokens list using the rules * > given in the "anything else" entry in the "in table" * > insertion mode. * > * > Otherwise, insert the characters given by the pending table * > character tokens list. * * @see path_to_url#parsing-main-intabletext */ if ( strlen( $text ) === strspn( $text, " \t\f\r\n" ) ) { $this->insert_html_element( $this->state->current_token ); return true; } // Non-whitespace would trigger fostering, unsupported at this time. $this->bail( 'Foster parenting is not supported.' ); break; } break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "caption" */ case '+CAPTION': $this->state->stack_of_open_elements->clear_to_table_context(); $this->state->active_formatting_elements->insert_marker(); $this->insert_html_element( $this->state->current_token ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_CAPTION; return true; /* * > A start tag whose tag name is "colgroup" */ case '+COLGROUP': $this->state->stack_of_open_elements->clear_to_table_context(); $this->insert_html_element( $this->state->current_token ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP; return true; /* * > A start tag whose tag name is "col" */ case '+COL': $this->state->stack_of_open_elements->clear_to_table_context(); /* * > Insert an HTML element for a "colgroup" start tag token with no attributes, * > then switch the insertion mode to "in column group". */ $this->insert_virtual_node( 'COLGROUP' ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is one of: "tbody", "tfoot", "thead" */ case '+TBODY': case '+TFOOT': case '+THEAD': $this->state->stack_of_open_elements->clear_to_table_context(); $this->insert_html_element( $this->state->current_token ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return true; /* * > A start tag whose tag name is one of: "td", "th", "tr" */ case '+TD': case '+TH': case '+TR': $this->state->stack_of_open_elements->clear_to_table_context(); /* * > Insert an HTML element for a "tbody" start tag token with no attributes, * > then switch the insertion mode to "in table body". */ $this->insert_virtual_node( 'TBODY' ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is "table" * * This tag in the IN TABLE insertion mode is a parse error. */ case '+TABLE': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'TABLE' ) ) { return $this->step(); } $this->state->stack_of_open_elements->pop_until( 'TABLE' ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > An end tag whose tag name is "table" */ case '-TABLE': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'TABLE' ) ) { // @todo Indicate a parse error once it's possible. return $this->step(); } $this->state->stack_of_open_elements->pop_until( 'TABLE' ); $this->reset_insertion_mode_appropriately(); return true; /* * > An end tag whose tag name is one of: "body", "caption", "col", "colgroup", "html", "tbody", "td", "tfoot", "th", "thead", "tr" */ case '-BODY': case '-CAPTION': case '-COL': case '-COLGROUP': case '-HTML': case '-TBODY': case '-TD': case '-TFOOT': case '-TH': case '-THEAD': case '-TR': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is one of: "style", "script", "template" * > An end tag whose tag name is "template" */ case '+STYLE': case '+SCRIPT': case '+TEMPLATE': case '-TEMPLATE': /* * > Process the token using the rules for the "in head" insertion mode. */ return $this->step_in_head(); /* * > A start tag whose tag name is "input" * * > If the token does not have an attribute with the name "type", or if it does, but * > that attribute's value is not an ASCII case-insensitive match for the string * > "hidden", then: act as described in the "anything else" entry below. */ case '+INPUT': $type_attribute = $this->get_attribute( 'type' ); if ( ! is_string( $type_attribute ) || 'hidden' !== strtolower( $type_attribute ) ) { goto anything_else; } // @todo Indicate a parse error once it's possible. $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "form" * * This tag in the IN TABLE insertion mode is a parse error. */ case '+FORM': if ( $this->state->stack_of_open_elements->has_element_in_scope( 'TEMPLATE' ) || isset( $this->state->form_element ) ) { return $this->step(); } // This FORM is special because it immediately closes and cannot have other children. $this->insert_html_element( $this->state->current_token ); $this->state->form_element = $this->state->current_token; $this->state->stack_of_open_elements->pop(); return true; } /* * > Anything else * > Parse error. Enable foster parenting, process the token using the rules for the * > "in body" insertion mode, and then disable foster parenting. * * @todo Indicate a parse error once it's possible. */ anything_else: $this->bail( 'Foster parenting is not supported.' ); } /** * Parses next element in the 'in table text' insertion mode. * * This internal function performs the 'in table text' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-intabletext * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_table_text(): bool { $this->bail( 'No support for parsing in the ' . WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_TEXT . ' state.' ); } /** * Parses next element in the 'in caption' insertion mode. * * This internal function performs the 'in caption' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-incaption * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_caption(): bool { $tag_name = $this->get_tag(); $op_sigil = $this->is_tag_closer() ? '-' : '+'; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > An end tag whose tag name is "caption" * > A start tag whose tag name is one of: "caption", "col", "colgroup", "tbody", "td", "tfoot", "th", "thead", "tr" * > An end tag whose tag name is "table" * * These tag handling rules are identical except for the final instruction. * Handle them in a single block. */ case '-CAPTION': case '+CAPTION': case '+COL': case '+COLGROUP': case '+TBODY': case '+TD': case '+TFOOT': case '+TH': case '+THEAD': case '+TR': case '-TABLE': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'CAPTION' ) ) { // Parse error: ignore the token. return $this->step(); } $this->generate_implied_end_tags(); if ( ! $this->state->stack_of_open_elements->current_node_is( 'CAPTION' ) ) { // @todo Indicate a parse error once it's possible. } $this->state->stack_of_open_elements->pop_until( 'CAPTION' ); $this->state->active_formatting_elements->clear_up_to_last_marker(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; // If this is not a CAPTION end tag, the token should be reprocessed. if ( '-CAPTION' === $op ) { return true; } return $this->step( self::REPROCESS_CURRENT_NODE ); /** * > An end tag whose tag name is one of: "body", "col", "colgroup", "html", "tbody", "td", "tfoot", "th", "thead", "tr" */ case '-BODY': case '-COL': case '-COLGROUP': case '-HTML': case '-TBODY': case '-TD': case '-TFOOT': case '-TH': case '-THEAD': case '-TR': // Parse error: ignore the token. return $this->step(); } /** * > Anything else * > Process the token using the rules for the "in body" insertion mode. */ return $this->step_in_body(); } /** * Parses next element in the 'in column group' insertion mode. * * This internal function performs the 'in column group' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-incolgroup * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_column_group(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( parent::is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A character token that is one of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), * > U+000C FORM FEED (FF), U+000D CARRIAGE RETURN (CR), or U+0020 SPACE */ case '#text': $text = $this->get_modifiable_text(); if ( '' === $text ) { /* * If the text is empty after processing HTML entities and stripping * U+0000 NULL bytes then ignore the token. */ return $this->step(); } if ( strlen( $text ) === strspn( $text, " \t\n\f\r" ) ) { // Insert the character. $this->insert_html_element( $this->state->current_token ); return true; } goto in_column_group_anything_else; break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': // @todo Indicate a parse error once it's possible. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > A start tag whose tag name is "col" */ case '+COL': $this->insert_html_element( $this->state->current_token ); $this->state->stack_of_open_elements->pop(); return true; /* * > An end tag whose tag name is "colgroup" */ case '-COLGROUP': if ( ! $this->state->stack_of_open_elements->current_node_is( 'COLGROUP' ) ) { // @todo Indicate a parse error once it's possible. return $this->step(); } $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return true; /* * > An end tag whose tag name is "col" */ case '-COL': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "template" * > An end tag whose tag name is "template" */ case '+TEMPLATE': case '-TEMPLATE': return $this->step_in_head(); } in_column_group_anything_else: /* * > Anything else */ if ( ! $this->state->stack_of_open_elements->current_node_is( 'COLGROUP' ) ) { // @todo Indicate a parse error once it's possible. return $this->step(); } $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'in table body' insertion mode. * * This internal function performs the 'in table body' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-intbody * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_table_body(): bool { $tag_name = $this->get_tag(); $op_sigil = $this->is_tag_closer() ? '-' : '+'; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > A start tag whose tag name is "tr" */ case '+TR': $this->state->stack_of_open_elements->clear_to_table_body_context(); $this->insert_html_element( $this->state->current_token ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; return true; /* * > A start tag whose tag name is one of: "th", "td" */ case '+TH': case '+TD': // @todo Indicate a parse error once it's possible. $this->state->stack_of_open_elements->clear_to_table_body_context(); $this->insert_virtual_node( 'TR' ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > An end tag whose tag name is one of: "tbody", "tfoot", "thead" */ case '-TBODY': case '-TFOOT': case '-THEAD': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $tag_name ) ) { // Parse error: ignore the token. return $this->step(); } $this->state->stack_of_open_elements->clear_to_table_body_context(); $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return true; /* * > A start tag whose tag name is one of: "caption", "col", "colgroup", "tbody", "tfoot", "thead" * > An end tag whose tag name is "table" */ case '+CAPTION': case '+COL': case '+COLGROUP': case '+TBODY': case '+TFOOT': case '+THEAD': case '-TABLE': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'TBODY' ) && ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'THEAD' ) && ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'TFOOT' ) ) { // Parse error: ignore the token. return $this->step(); } $this->state->stack_of_open_elements->clear_to_table_body_context(); $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > An end tag whose tag name is one of: "body", "caption", "col", "colgroup", "html", "td", "th", "tr" */ case '-BODY': case '-CAPTION': case '-COL': case '-COLGROUP': case '-HTML': case '-TD': case '-TH': case '-TR': // Parse error: ignore the token. return $this->step(); } /* * > Anything else * > Process the token using the rules for the "in table" insertion mode. */ return $this->step_in_table(); } /** * Parses next element in the 'in row' insertion mode. * * This internal function performs the 'in row' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-intr * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_row(): bool { $tag_name = $this->get_tag(); $op_sigil = $this->is_tag_closer() ? '-' : '+'; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > A start tag whose tag name is one of: "th", "td" */ case '+TH': case '+TD': $this->state->stack_of_open_elements->clear_to_table_row_context(); $this->insert_html_element( $this->state->current_token ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_CELL; $this->state->active_formatting_elements->insert_marker(); return true; /* * > An end tag whose tag name is "tr" */ case '-TR': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'TR' ) ) { // Parse error: ignore the token. return $this->step(); } $this->state->stack_of_open_elements->clear_to_table_row_context(); $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return true; /* * > A start tag whose tag name is one of: "caption", "col", "colgroup", "tbody", "tfoot", "thead", "tr" * > An end tag whose tag name is "table" */ case '+CAPTION': case '+COL': case '+COLGROUP': case '+TBODY': case '+TFOOT': case '+THEAD': case '+TR': case '-TABLE': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'TR' ) ) { // Parse error: ignore the token. return $this->step(); } $this->state->stack_of_open_elements->clear_to_table_row_context(); $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > An end tag whose tag name is one of: "tbody", "tfoot", "thead" */ case '-TBODY': case '-TFOOT': case '-THEAD': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $tag_name ) ) { // Parse error: ignore the token. return $this->step(); } if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( 'TR' ) ) { // Ignore the token. return $this->step(); } $this->state->stack_of_open_elements->clear_to_table_row_context(); $this->state->stack_of_open_elements->pop(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > An end tag whose tag name is one of: "body", "caption", "col", "colgroup", "html", "td", "th" */ case '-BODY': case '-CAPTION': case '-COL': case '-COLGROUP': case '-HTML': case '-TD': case '-TH': // Parse error: ignore the token. return $this->step(); } /* * > Anything else * > Process the token using the rules for the "in table" insertion mode. */ return $this->step_in_table(); } /** * Parses next element in the 'in cell' insertion mode. * * This internal function performs the 'in cell' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-intd * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_cell(): bool { $tag_name = $this->get_tag(); $op_sigil = $this->is_tag_closer() ? '-' : '+'; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > An end tag whose tag name is one of: "td", "th" */ case '-TD': case '-TH': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $tag_name ) ) { // Parse error: ignore the token. return $this->step(); } $this->generate_implied_end_tags(); /* * @todo This needs to check if the current node is an HTML element, meaning that * when SVG and MathML support is added, this needs to differentiate between an * HTML element of the given name, such as `<center>`, and a foreign element of * the same given name. */ if ( ! $this->state->stack_of_open_elements->current_node_is( $tag_name ) ) { // @todo Indicate a parse error once it's possible. } $this->state->stack_of_open_elements->pop_until( $tag_name ); $this->state->active_formatting_elements->clear_up_to_last_marker(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; return true; /* * > A start tag whose tag name is one of: "caption", "col", "colgroup", "tbody", "td", * > "tfoot", "th", "thead", "tr" */ case '+CAPTION': case '+COL': case '+COLGROUP': case '+TBODY': case '+TD': case '+TFOOT': case '+TH': case '+THEAD': case '+TR': /* * > Assert: The stack of open elements has a td or th element in table scope. * * Nothing to do here, except to verify in tests that this never appears. */ $this->close_cell(); return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > An end tag whose tag name is one of: "body", "caption", "col", "colgroup", "html" */ case '-BODY': case '-CAPTION': case '-COL': case '-COLGROUP': case '-HTML': // Parse error: ignore the token. return $this->step(); /* * > An end tag whose tag name is one of: "table", "tbody", "tfoot", "thead", "tr" */ case '-TABLE': case '-TBODY': case '-TFOOT': case '-THEAD': case '-TR': if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $tag_name ) ) { // Parse error: ignore the token. return $this->step(); } $this->close_cell(); return $this->step( self::REPROCESS_CURRENT_NODE ); } /* * > Anything else * > Process the token using the rules for the "in body" insertion mode. */ return $this->step_in_body(); } /** * Parses next element in the 'in select' insertion mode. * * This internal function performs the 'in select' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-inselect * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_select(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( parent::is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > Any other character token */ case '#text': $current_token = $this->bookmarks[ $this->state->current_token->bookmark_name ]; /* * > A character token that is U+0000 NULL * * If a text node only comprises null bytes then it should be * entirely ignored and should not return to calling code. */ if ( 1 <= $current_token->length && "\x00" === $this->html[ $current_token->start ] && strspn( $this->html, "\x00", $current_token->start, $current_token->length ) === $current_token->length ) { // Parse error: ignore the token. return $this->step(); } $this->insert_html_element( $this->state->current_token ); return true; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > A start tag whose tag name is "option" */ case '+OPTION': if ( $this->state->stack_of_open_elements->current_node_is( 'OPTION' ) ) { $this->state->stack_of_open_elements->pop(); } $this->insert_html_element( $this->state->current_token ); return true; /* * > A start tag whose tag name is "optgroup" * > A start tag whose tag name is "hr" * * These rules are identical except for the treatment of the self-closing flag and * the subsequent pop of the HR void element, all of which is handled elsewhere in the processor. */ case '+OPTGROUP': case '+HR': if ( $this->state->stack_of_open_elements->current_node_is( 'OPTION' ) ) { $this->state->stack_of_open_elements->pop(); } if ( $this->state->stack_of_open_elements->current_node_is( 'OPTGROUP' ) ) { $this->state->stack_of_open_elements->pop(); } $this->insert_html_element( $this->state->current_token ); return true; /* * > An end tag whose tag name is "optgroup" */ case '-OPTGROUP': $current_node = $this->state->stack_of_open_elements->current_node(); if ( $current_node && 'OPTION' === $current_node->node_name ) { foreach ( $this->state->stack_of_open_elements->walk_up( $current_node ) as $parent ) { break; } if ( $parent && 'OPTGROUP' === $parent->node_name ) { $this->state->stack_of_open_elements->pop(); } } if ( $this->state->stack_of_open_elements->current_node_is( 'OPTGROUP' ) ) { $this->state->stack_of_open_elements->pop(); return true; } // Parse error: ignore the token. return $this->step(); /* * > An end tag whose tag name is "option" */ case '-OPTION': if ( $this->state->stack_of_open_elements->current_node_is( 'OPTION' ) ) { $this->state->stack_of_open_elements->pop(); return true; } // Parse error: ignore the token. return $this->step(); /* * > An end tag whose tag name is "select" * > A start tag whose tag name is "select" * * > It just gets treated like an end tag. */ case '-SELECT': case '+SELECT': if ( ! $this->state->stack_of_open_elements->has_element_in_select_scope( 'SELECT' ) ) { // Parse error: ignore the token. return $this->step(); } $this->state->stack_of_open_elements->pop_until( 'SELECT' ); $this->reset_insertion_mode_appropriately(); return true; /* * > A start tag whose tag name is one of: "input", "keygen", "textarea" * * All three of these tags are considered a parse error when found in this insertion mode. */ case '+INPUT': case '+KEYGEN': case '+TEXTAREA': if ( ! $this->state->stack_of_open_elements->has_element_in_select_scope( 'SELECT' ) ) { // Ignore the token. return $this->step(); } $this->state->stack_of_open_elements->pop_until( 'SELECT' ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is one of: "script", "template" * > An end tag whose tag name is "template" */ case '+SCRIPT': case '+TEMPLATE': case '-TEMPLATE': return $this->step_in_head(); } /* * > Anything else * > Parse error: ignore the token. */ return $this->step(); } /** * Parses next element in the 'in select in table' insertion mode. * * This internal function performs the 'in select in table' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-inselectintable * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_select_in_table(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( parent::is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A start tag whose tag name is one of: "caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th" */ case '+CAPTION': case '+TABLE': case '+TBODY': case '+TFOOT': case '+THEAD': case '+TR': case '+TD': case '+TH': // @todo Indicate a parse error once it's possible. $this->state->stack_of_open_elements->pop_until( 'SELECT' ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > An end tag whose tag name is one of: "caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th" */ case '-CAPTION': case '-TABLE': case '-TBODY': case '-TFOOT': case '-THEAD': case '-TR': case '-TD': case '-TH': // @todo Indicate a parse error once it's possible. if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $token_name ) ) { return $this->step(); } $this->state->stack_of_open_elements->pop_until( 'SELECT' ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); } /* * > Anything else */ return $this->step_in_select(); } /** * Parses next element in the 'in template' insertion mode. * * This internal function performs the 'in template' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-intemplate * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_template(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $is_closer = $this->is_tag_closer(); $op_sigil = '#tag' === $token_type ? ( $is_closer ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A character token * > A comment token * > A DOCTYPE token */ case '#text': case '#comment': case '#funky-comment': case '#presumptuous-tag': case 'html': return $this->step_in_body(); /* * > A start tag whose tag name is one of: "base", "basefont", "bgsound", "link", * > "meta", "noframes", "script", "style", "template", "title" * > An end tag whose tag name is "template" */ case '+BASE': case '+BASEFONT': case '+BGSOUND': case '+LINK': case '+META': case '+NOFRAMES': case '+SCRIPT': case '+STYLE': case '+TEMPLATE': case '+TITLE': case '-TEMPLATE': return $this->step_in_head(); /* * > A start tag whose tag name is one of: "caption", "colgroup", "tbody", "tfoot", "thead" */ case '+CAPTION': case '+COLGROUP': case '+TBODY': case '+TFOOT': case '+THEAD': array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is "col" */ case '+COL': array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is "tr" */ case '+TR': array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is one of: "td", "th" */ case '+TD': case '+TH': array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; return $this->step( self::REPROCESS_CURRENT_NODE ); } /* * > Any other start tag */ if ( ! $is_closer ) { array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); } /* * > Any other end tag */ if ( $is_closer ) { // Parse error: ignore the token. return $this->step(); } /* * > An end-of-file token */ if ( ! $this->state->stack_of_open_elements->contains( 'TEMPLATE' ) ) { // Stop parsing. return false; } // @todo Indicate a parse error once it's possible. $this->state->stack_of_open_elements->pop_until( 'TEMPLATE' ); $this->state->active_formatting_elements->clear_up_to_last_marker(); array_pop( $this->state->stack_of_template_insertion_modes ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'after body' insertion mode. * * This internal function performs the 'after body' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-afterbody * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_body(): bool { $this->bail( 'No support for parsing in the ' . WP_HTML_Processor_State::INSERTION_MODE_AFTER_BODY . ' state.' ); } /** * Parses next element in the 'in frameset' insertion mode. * * This internal function performs the 'in frameset' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-inframeset * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_frameset(): bool { $this->bail( 'No support for parsing in the ' . WP_HTML_Processor_State::INSERTION_MODE_IN_FRAMESET . ' state.' ); } /** * Parses next element in the 'after frameset' insertion mode. * * This internal function performs the 'after frameset' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-afterframeset * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_frameset(): bool { $this->bail( 'No support for parsing in the ' . WP_HTML_Processor_State::INSERTION_MODE_AFTER_FRAMESET . ' state.' ); } /** * Parses next element in the 'after after body' insertion mode. * * This internal function performs the 'after after body' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#the-after-after-body-insertion-mode * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_after_body(): bool { $this->bail( 'No support for parsing in the ' . WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_BODY . ' state.' ); } /** * Parses next element in the 'after after frameset' insertion mode. * * This internal function performs the 'after after frameset' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#the-after-after-frameset-insertion-mode * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_after_frameset(): bool { $this->bail( 'No support for parsing in the ' . WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_FRAMESET . ' state.' ); } /** * Parses next element in the 'in foreign content' insertion mode. * * This internal function performs the 'in foreign content' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#parsing-main-inforeign * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_foreign_content(): bool { $tag_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( $this->is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$tag_name}"; /* * > A start tag whose name is "font", if the token has any attributes named "color", "face", or "size" * * This section drawn out above the switch to more easily incorporate * the additional rules based on the presence of the attributes. */ if ( '+FONT' === $op && ( null !== $this->get_attribute( 'color' ) || null !== $this->get_attribute( 'face' ) || null !== $this->get_attribute( 'size' ) ) ) { $op = '+FONT with attributes'; } switch ( $op ) { case '#text': /* * > A character token that is U+0000 NULL * * This is handled by `get_modifiable_text()`. */ /* * Whitespace-only text does not affect the frameset-ok flag. * It is probably inter-element whitespace, but it may also * contain character references which decode only to whitespace. */ $text = $this->get_modifiable_text(); if ( strlen( $text ) !== strspn( $text, " \t\n\f\r" ) ) { $this->state->frameset_ok = false; } $this->insert_foreign_element( $this->state->current_token, false ); return true; /* * > A comment token */ case '#cdata-section': case '#comment': case '#funky_comment': $this->insert_foreign_element( $this->state->current_token, false ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "b", "big", "blockquote", "body", "br", "center", * > "code", "dd", "div", "dl", "dt", "em", "embed", "h1", "h2", "h3", "h4", "h5", * > "h6", "head", "hr", "i", "img", "li", "listing", "menu", "meta", "nobr", "ol", * > "p", "pre", "ruby", "s", "small", "span", "strong", "strike", "sub", "sup", * > "table", "tt", "u", "ul", "var" * * > A start tag whose name is "font", if the token has any attributes named "color", "face", or "size" * * > An end tag whose tag name is "br", "p" * * Closing BR tags are always reported by the Tag Processor as opening tags. */ case '+B': case '+BIG': case '+BLOCKQUOTE': case '+BODY': case '+BR': case '+CENTER': case '+CODE': case '+DD': case '+DIV': case '+DL': case '+DT': case '+EM': case '+EMBED': case '+H1': case '+H2': case '+H3': case '+H4': case '+H5': case '+H6': case '+HEAD': case '+HR': case '+I': case '+IMG': case '+LI': case '+LISTING': case '+MENU': case '+META': case '+NOBR': case '+OL': case '+P': case '+PRE': case '+RUBY': case '+S': case '+SMALL': case '+SPAN': case '+STRONG': case '+STRIKE': case '+SUB': case '+SUP': case '+TABLE': case '+TT': case '+U': case '+UL': case '+VAR': case '+FONT with attributes': case '-BR': case '-P': // @todo Indicate a parse error once it's possible. foreach ( $this->state->stack_of_open_elements->walk_up() as $current_node ) { if ( 'math' === $current_node->integration_node_type || 'html' === $current_node->integration_node_type || 'html' === $current_node->namespace ) { break; } $this->state->stack_of_open_elements->pop(); } return $this->step( self::REPROCESS_CURRENT_NODE ); } /* * > Any other start tag */ if ( ! $this->is_tag_closer() ) { $this->insert_foreign_element( $this->state->current_token, false ); /* * > If the token has its self-closing flag set, then run * > the appropriate steps from the following list: * > * > the token's tag name is "script", and the new current node is in the SVG namespace * > Acknowledge the token's self-closing flag, and then act as * > described in the steps for a "script" end tag below. * > * > Otherwise * > Pop the current node off the stack of open elements and * > acknowledge the token's self-closing flag. * * Since the rules for SCRIPT below indicate to pop the element off of the stack of * open elements, which is the same for the Otherwise condition, there's no need to * separate these checks. The difference comes when a parser operates with the scripting * flag enabled, and executes the script, which this parser does not support. */ if ( $this->state->current_token->has_self_closing_flag ) { $this->state->stack_of_open_elements->pop(); } return true; } /* * > An end tag whose name is "script", if the current node is an SVG script element. */ if ( $this->is_tag_closer() && 'SCRIPT' === $this->state->current_token->node_name && 'svg' === $this->state->current_token->namespace ) { $this->state->stack_of_open_elements->pop(); return true; } /* * > Any other end tag */ if ( $this->is_tag_closer() ) { $node = $this->state->stack_of_open_elements->current_node(); if ( $tag_name !== $node->node_name ) { // @todo Indicate a parse error once it's possible. } in_foreign_content_end_tag_loop: if ( $node === $this->state->stack_of_open_elements->at( 1 ) ) { return true; } /* * > If node's tag name, converted to ASCII lowercase, is the same as the tag name * > of the token, pop elements from the stack of open elements until node has * > been popped from the stack, and then return. */ if ( 0 === strcasecmp( $node->node_name, $tag_name ) ) { foreach ( $this->state->stack_of_open_elements->walk_up() as $item ) { $this->state->stack_of_open_elements->pop(); if ( $node === $item ) { return true; } } } foreach ( $this->state->stack_of_open_elements->walk_up( $node ) as $item ) { $node = $item; break; } if ( 'html' !== $node->namespace ) { goto in_foreign_content_end_tag_loop; } switch ( $this->state->insertion_mode ) { case WP_HTML_Processor_State::INSERTION_MODE_INITIAL: return $this->step_initial(); case WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HTML: return $this->step_before_html(); case WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HEAD: return $this->step_before_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD: return $this->step_in_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD_NOSCRIPT: return $this->step_in_head_noscript(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_HEAD: return $this->step_after_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_BODY: return $this->step_in_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE: return $this->step_in_table(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_TEXT: return $this->step_in_table_text(); case WP_HTML_Processor_State::INSERTION_MODE_IN_CAPTION: return $this->step_in_caption(); case WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP: return $this->step_in_column_group(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY: return $this->step_in_table_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_ROW: return $this->step_in_row(); case WP_HTML_Processor_State::INSERTION_MODE_IN_CELL: return $this->step_in_cell(); case WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT: return $this->step_in_select(); case WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT_IN_TABLE: return $this->step_in_select_in_table(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TEMPLATE: return $this->step_in_template(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_BODY: return $this->step_after_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_FRAMESET: return $this->step_in_frameset(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_FRAMESET: return $this->step_after_frameset(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_BODY: return $this->step_after_after_body(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_FRAMESET: return $this->step_after_after_frameset(); // This should be unreachable but PHP doesn't have total type checking on switch. default: $this->bail( "Unaware of the requested parsing mode: '{$this->state->insertion_mode}'." ); } } } /* * Internal helpers */ /** * Creates a new bookmark for the currently-matched token and returns the generated name. * * @since 6.4.0 * @since 6.5.0 Renamed from bookmark_tag() to bookmark_token(). * * @throws Exception When unable to allocate requested bookmark. * * @return string|false Name of created bookmark, or false if unable to create. */ private function bookmark_token() { if ( ! parent::set_bookmark( ++$this->bookmark_counter ) ) { $this->last_error = self::ERROR_EXCEEDED_MAX_BOOKMARKS; throw new Exception( 'could not allocate bookmark' ); } return "{$this->bookmark_counter}"; } /* * HTML semantic overrides for Tag Processor */ /** * Indicates the namespace of the current token, or "html" if there is none. * * @return string One of "html", "math", or "svg". */ public function get_namespace(): string { if ( ! isset( $this->current_element ) ) { return 'html'; } return $this->current_element->token->namespace; } /** * Returns the uppercase name of the matched tag. * * The semantic rules for HTML specify that certain tags be reprocessed * with a different tag name. Because of this, the tag name presented * by the HTML Processor may differ from the one reported by the HTML * Tag Processor, which doesn't apply these semantic rules. * * Example: * * $processor = new WP_HTML_Tag_Processor( '<div class="test">Test</div>' ); * $processor->next_tag() === true; * $processor->get_tag() === 'DIV'; * * $processor->next_tag() === false; * $processor->get_tag() === null; * * @since 6.4.0 * * @return string|null Name of currently matched tag in input HTML, or `null` if none found. */ public function get_tag(): ?string { if ( null !== $this->last_error ) { return null; } if ( $this->is_virtual() ) { return $this->current_element->token->node_name; } $tag_name = parent::get_tag(); switch ( $tag_name ) { case 'IMAGE': /* * > A start tag whose tag name is "image" * > Change the token's tag name to "img" and reprocess it. (Don't ask.) */ return 'IMG'; default: return $tag_name; } } /** * Indicates if the currently matched tag contains the self-closing flag. * * No HTML elements ought to have the self-closing flag and for those, the self-closing * flag will be ignored. For void elements this is benign because they "self close" * automatically. For non-void HTML elements though problems will appear if someone * intends to use a self-closing element in place of that element with an empty body. * For HTML foreign elements and custom elements the self-closing flag determines if * they self-close or not. * * This function does not determine if a tag is self-closing, * but only if the self-closing flag is present in the syntax. * * @since 6.6.0 Subclassed for the HTML Processor. * * @return bool Whether the currently matched tag contains the self-closing flag. */ public function has_self_closing_flag(): bool { return $this->is_virtual() ? false : parent::has_self_closing_flag(); } /** * Returns the node name represented by the token. * * This matches the DOM API value `nodeName`. Some values * are static, such as `#text` for a text node, while others * are dynamically generated from the token itself. * * Dynamic names: * - Uppercase tag name for tag matches. * - `html` for DOCTYPE declarations. * * Note that if the Tag Processor is not matched on a token * then this function will return `null`, either because it * hasn't yet found a token or because it reached the end * of the document without matching a token. * * @since 6.6.0 Subclassed for the HTML Processor. * * @return string|null Name of the matched token. */ public function get_token_name(): ?string { return $this->is_virtual() ? $this->current_element->token->node_name : parent::get_token_name(); } /** * Indicates the kind of matched token, if any. * * This differs from `get_token_name()` in that it always * returns a static string indicating the type, whereas * `get_token_name()` may return values derived from the * token itself, such as a tag name or processing * instruction tag. * * Possible values: * - `#tag` when matched on a tag. * - `#text` when matched on a text node. * - `#cdata-section` when matched on a CDATA node. * - `#comment` when matched on a comment. * - `#doctype` when matched on a DOCTYPE declaration. * - `#presumptuous-tag` when matched on an empty tag closer. * - `#funky-comment` when matched on a funky comment. * * @since 6.6.0 Subclassed for the HTML Processor. * * @return string|null What kind of token is matched, or null. */ public function get_token_type(): ?string { if ( $this->is_virtual() ) { /* * This logic comes from the Tag Processor. * * @todo It would be ideal not to repeat this here, but it's not clearly * better to allow passing a token name to `get_token_type()`. */ $node_name = $this->current_element->token->node_name; $starting_char = $node_name[0]; if ( 'A' <= $starting_char && 'Z' >= $starting_char ) { return '#tag'; } if ( 'html' === $node_name ) { return '#doctype'; } return $node_name; } return parent::get_token_type(); } /** * Returns the value of a requested attribute from a matched tag opener if that attribute exists. * * Example: * * $p = WP_HTML_Processor::create_fragment( '<div enabled class="test" data-test-id="14">Test</div>' ); * $p->next_token() === true; * $p->get_attribute( 'data-test-id' ) === '14'; * $p->get_attribute( 'enabled' ) === true; * $p->get_attribute( 'aria-label' ) === null; * * $p->next_tag() === false; * $p->get_attribute( 'class' ) === null; * * @since 6.6.0 Subclassed for HTML Processor. * * @param string $name Name of attribute whose value is requested. * @return string|true|null Value of attribute or `null` if not available. Boolean attributes return `true`. */ public function get_attribute( $name ) { return $this->is_virtual() ? null : parent::get_attribute( $name ); } /** * Updates or creates a new attribute on the currently matched tag with the passed value. * * For boolean attributes special handling is provided: * - When `true` is passed as the value, then only the attribute name is added to the tag. * - When `false` is passed, the attribute gets removed if it existed before. * * For string attributes, the value is escaped using the `esc_attr` function. * * @since 6.6.0 Subclassed for the HTML Processor. * * @param string $name The attribute name to target. * @param string|bool $value The new attribute value. * @return bool Whether an attribute value was set. */ public function set_attribute( $name, $value ): bool { return $this->is_virtual() ? false : parent::set_attribute( $name, $value ); } /** * Remove an attribute from the currently-matched tag. * * @since 6.6.0 Subclassed for HTML Processor. * * @param string $name The attribute name to remove. * @return bool Whether an attribute was removed. */ public function remove_attribute( $name ): bool { return $this->is_virtual() ? false : parent::remove_attribute( $name ); } /** * Gets lowercase names of all attributes matching a given prefix in the current tag. * * Note that matching is case-insensitive. This is in accordance with the spec: * * > There must never be two or more attributes on * > the same start tag whose names are an ASCII * > case-insensitive match for each other. * - HTML 5 spec * * Example: * * $p = new WP_HTML_Tag_Processor( '<div data-ENABLED class="test" DATA-test-id="14">Test</div>' ); * $p->next_tag( array( 'class_name' => 'test' ) ) === true; * $p->get_attribute_names_with_prefix( 'data-' ) === array( 'data-enabled', 'data-test-id' ); * * $p->next_tag() === false; * $p->get_attribute_names_with_prefix( 'data-' ) === null; * * @since 6.6.0 Subclassed for the HTML Processor. * * @see path_to_url#attributes-2:ascii-case-insensitive * * @param string $prefix Prefix of requested attribute names. * @return array|null List of attribute names, or `null` when no tag opener is matched. */ public function get_attribute_names_with_prefix( $prefix ): ?array { return $this->is_virtual() ? null : parent::get_attribute_names_with_prefix( $prefix ); } /** * Adds a new class name to the currently matched tag. * * @since 6.6.0 Subclassed for the HTML Processor. * * @param string $class_name The class name to add. * @return bool Whether the class was set to be added. */ public function add_class( $class_name ): bool { return $this->is_virtual() ? false : parent::add_class( $class_name ); } /** * Removes a class name from the currently matched tag. * * @since 6.6.0 Subclassed for the HTML Processor. * * @param string $class_name The class name to remove. * @return bool Whether the class was set to be removed. */ public function remove_class( $class_name ): bool { return $this->is_virtual() ? false : parent::remove_class( $class_name ); } /** * Returns if a matched tag contains the given ASCII case-insensitive class name. * * @since 6.6.0 Subclassed for the HTML Processor. * * @param string $wanted_class Look for this CSS class name, ASCII case-insensitive. * @return bool|null Whether the matched tag contains the given class name, or null if not matched. */ public function has_class( $wanted_class ): ?bool { return $this->is_virtual() ? null : parent::has_class( $wanted_class ); } /** * Generator for a foreach loop to step through each class name for the matched tag. * * This generator function is designed to be used inside a "foreach" loop. * * Example: * * $p = WP_HTML_Processor::create_fragment( "<div class='free &lt;egg&lt;\tlang-en'>" ); * $p->next_tag(); * foreach ( $p->class_list() as $class_name ) { * echo "{$class_name} "; * } * // Outputs: "free <egg> lang-en " * * @since 6.6.0 Subclassed for the HTML Processor. */ public function class_list() { return $this->is_virtual() ? null : parent::class_list(); } /** * Returns the modifiable text for a matched token, or an empty string. * * Modifiable text is text content that may be read and changed without * changing the HTML structure of the document around it. This includes * the contents of `#text` nodes in the HTML as well as the inner * contents of HTML comments, Processing Instructions, and others, even * though these nodes aren't part of a parsed DOM tree. They also contain * the contents of SCRIPT and STYLE tags, of TEXTAREA tags, and of any * other section in an HTML document which cannot contain HTML markup (DATA). * * If a token has no modifiable text then an empty string is returned to * avoid needless crashing or type errors. An empty string does not mean * that a token has modifiable text, and a token with modifiable text may * have an empty string (e.g. a comment with no contents). * * @since 6.6.0 Subclassed for the HTML Processor. * * @return string */ public function get_modifiable_text(): string { return $this->is_virtual() ? '' : parent::get_modifiable_text(); } /** * Indicates what kind of comment produced the comment node. * * Because there are different kinds of HTML syntax which produce * comments, the Tag Processor tracks and exposes this as a type * for the comment. Nominally only regular HTML comments exist as * they are commonly known, but a number of unrelated syntax errors * also produce comments. * * @see self::COMMENT_AS_ABRUPTLY_CLOSED_COMMENT * @see self::COMMENT_AS_CDATA_LOOKALIKE * @see self::COMMENT_AS_INVALID_HTML * @see self::COMMENT_AS_HTML_COMMENT * @see self::COMMENT_AS_PI_NODE_LOOKALIKE * * @since 6.6.0 Subclassed for the HTML Processor. * * @return string|null */ public function get_comment_type(): ?string { return $this->is_virtual() ? null : parent::get_comment_type(); } /** * Removes a bookmark that is no longer needed. * * Releasing a bookmark frees up the small * performance overhead it requires. * * @since 6.4.0 * * @param string $bookmark_name Name of the bookmark to remove. * @return bool Whether the bookmark already existed before removal. */ public function release_bookmark( $bookmark_name ): bool { return parent::release_bookmark( "_{$bookmark_name}" ); } /** * Moves the internal cursor in the HTML Processor to a given bookmark's location. * * Be careful! Seeking backwards to a previous location resets the parser to the * start of the document and reparses the entire contents up until it finds the * sought-after bookmarked location. * * In order to prevent accidental infinite loops, there's a * maximum limit on the number of times seek() can be called. * * @throws Exception When unable to allocate a bookmark for the next token in the input HTML document. * * @since 6.4.0 * * @param string $bookmark_name Jump to the place in the document identified by this bookmark name. * @return bool Whether the internal cursor was successfully moved to the bookmark's location. */ public function seek( $bookmark_name ): bool { // Flush any pending updates to the document before beginning. $this->get_updated_html(); $actual_bookmark_name = "_{$bookmark_name}"; $processor_started_at = $this->state->current_token ? $this->bookmarks[ $this->state->current_token->bookmark_name ]->start : 0; $bookmark_starts_at = $this->bookmarks[ $actual_bookmark_name ]->start; $direction = $bookmark_starts_at > $processor_started_at ? 'forward' : 'backward'; /* * If seeking backwards, it's possible that the sought-after bookmark exists within an element * which has been closed before the current cursor; in other words, it has already been removed * from the stack of open elements. This means that it's insufficient to simply pop off elements * from the stack of open elements which appear after the bookmarked location and then jump to * that location, as the elements which were open before won't be re-opened. * * In order to maintain consistency, the HTML Processor rewinds to the start of the document * and reparses everything until it finds the sought-after bookmark. * * There are potentially better ways to do this: cache the parser state for each bookmark and * restore it when seeking; store an immutable and idempotent register of where elements open * and close. * * If caching the parser state it will be essential to properly maintain the cached stack of * open elements and active formatting elements when modifying the document. This could be a * tedious and time-consuming process as well, and so for now will not be performed. * * It may be possible to track bookmarks for where elements open and close, and in doing so * be able to quickly recalculate breadcrumbs for any element in the document. It may even * be possible to remove the stack of open elements and compute it on the fly this way. * If doing this, the parser would need to track the opening and closing locations for all * tokens in the breadcrumb path for any and all bookmarks. By utilizing bookmarks themselves * this list could be automatically maintained while modifying the document. Finding the * breadcrumbs would then amount to traversing that list from the start until the token * being inspected. Once an element closes, if there are no bookmarks pointing to locations * within that element, then all of these locations may be forgotten to save on memory use * and computation time. */ if ( 'backward' === $direction ) { /* * Instead of clearing the parser state and starting fresh, calling the stack methods * maintains the proper flags in the parser. */ foreach ( $this->state->stack_of_open_elements->walk_up() as $item ) { if ( 'context-node' === $item->bookmark_name ) { break; } $this->state->stack_of_open_elements->remove_node( $item ); } foreach ( $this->state->active_formatting_elements->walk_up() as $item ) { if ( 'context-node' === $item->bookmark_name ) { break; } $this->state->active_formatting_elements->remove_node( $item ); } parent::seek( 'context-node' ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; $this->state->frameset_ok = true; $this->element_queue = array(); $this->current_element = null; if ( isset( $this->context_node ) ) { $this->breadcrumbs = array_slice( $this->breadcrumbs, 0, 2 ); } else { $this->breadcrumbs = array(); } } // When moving forwards, reparse the document until reaching the same location as the original bookmark. if ( $bookmark_starts_at === $this->bookmarks[ $this->state->current_token->bookmark_name ]->start ) { return true; } while ( $this->next_token() ) { if ( $bookmark_starts_at === $this->bookmarks[ $this->state->current_token->bookmark_name ]->start ) { while ( isset( $this->current_element ) && WP_HTML_Stack_Event::POP === $this->current_element->operation ) { $this->current_element = array_shift( $this->element_queue ); } return true; } } return false; } /** * Sets a bookmark in the HTML document. * * Bookmarks represent specific places or tokens in the HTML * document, such as a tag opener or closer. When applying * edits to a document, such as setting an attribute, the * text offsets of that token may shift; the bookmark is * kept updated with those shifts and remains stable unless * the entire span of text in which the token sits is removed. * * Release bookmarks when they are no longer needed. * * Example: * * <main><h2>Surprising fact you may not know!</h2></main> * ^ ^ * \-|-- this `H2` opener bookmark tracks the token * * <main class="clickbait"><h2>Surprising fact you may no * ^ ^ * \-|-- it shifts with edits * * Bookmarks provide the ability to seek to a previously-scanned * place in the HTML document. This avoids the need to re-scan * the entire document. * * Example: * * <ul><li>One</li><li>Two</li><li>Three</li></ul> * ^^^^ * want to note this last item * * $p = new WP_HTML_Tag_Processor( $html ); * $in_list = false; * while ( $p->next_tag( array( 'tag_closers' => $in_list ? 'visit' : 'skip' ) ) ) { * if ( 'UL' === $p->get_tag() ) { * if ( $p->is_tag_closer() ) { * $in_list = false; * $p->set_bookmark( 'resume' ); * if ( $p->seek( 'last-li' ) ) { * $p->add_class( 'last-li' ); * } * $p->seek( 'resume' ); * $p->release_bookmark( 'last-li' ); * $p->release_bookmark( 'resume' ); * } else { * $in_list = true; * } * } * * if ( 'LI' === $p->get_tag() ) { * $p->set_bookmark( 'last-li' ); * } * } * * Bookmarks intentionally hide the internal string offsets * to which they refer. They are maintained internally as * updates are applied to the HTML document and therefore * retain their "position" - the location to which they * originally pointed. The inability to use bookmarks with * functions like `substr` is therefore intentional to guard * against accidentally breaking the HTML. * * Because bookmarks allocate memory and require processing * for every applied update, they are limited and require * a name. They should not be created with programmatically-made * names, such as "li_{$index}" with some loop. As a general * rule they should only be created with string-literal names * like "start-of-section" or "last-paragraph". * * Bookmarks are a powerful tool to enable complicated behavior. * Consider double-checking that you need this tool if you are * reaching for it, as inappropriate use could lead to broken * HTML structure or unwanted processing overhead. * * @since 6.4.0 * * @param string $bookmark_name Identifies this particular bookmark. * @return bool Whether the bookmark was successfully created. */ public function set_bookmark( $bookmark_name ): bool { return parent::set_bookmark( "_{$bookmark_name}" ); } /** * Checks whether a bookmark with the given name exists. * * @since 6.5.0 * * @param string $bookmark_name Name to identify a bookmark that potentially exists. * @return bool Whether that bookmark exists. */ public function has_bookmark( $bookmark_name ): bool { return parent::has_bookmark( "_{$bookmark_name}" ); } /* * HTML Parsing Algorithms */ /** * Closes a P element. * * @since 6.4.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#close-a-p-element */ private function close_a_p_element(): void { $this->generate_implied_end_tags( 'P' ); $this->state->stack_of_open_elements->pop_until( 'P' ); } /** * Closes elements that have implied end tags. * * @since 6.4.0 * @since 6.7.0 Full spec support. * * @see path_to_url#generate-implied-end-tags * * @param string|null $except_for_this_element Perform as if this element doesn't exist in the stack of open elements. */ private function generate_implied_end_tags( ?string $except_for_this_element = null ): void { $elements_with_implied_end_tags = array( 'DD', 'DT', 'LI', 'OPTGROUP', 'OPTION', 'P', 'RB', 'RP', 'RT', 'RTC', ); $no_exclusions = ! isset( $except_for_this_element ); while ( ( $no_exclusions || ! $this->state->stack_of_open_elements->current_node_is( $except_for_this_element ) ) && in_array( $this->state->stack_of_open_elements->current_node()->node_name, $elements_with_implied_end_tags, true ) ) { $this->state->stack_of_open_elements->pop(); } } /** * Closes elements that have implied end tags, thoroughly. * * See the HTML specification for an explanation why this is * different from generating end tags in the normal sense. * * @since 6.4.0 * @since 6.7.0 Full spec support. * * @see WP_HTML_Processor::generate_implied_end_tags * @see path_to_url#generate-implied-end-tags */ private function generate_implied_end_tags_thoroughly(): void { $elements_with_implied_end_tags = array( 'CAPTION', 'COLGROUP', 'DD', 'DT', 'LI', 'OPTGROUP', 'OPTION', 'P', 'RB', 'RP', 'RT', 'RTC', 'TBODY', 'TD', 'TFOOT', 'TH', 'THEAD', 'TR', ); while ( in_array( $this->state->stack_of_open_elements->current_node()->node_name, $elements_with_implied_end_tags, true ) ) { $this->state->stack_of_open_elements->pop(); } } /** * Returns the adjusted current node. * * > The adjusted current node is the context element if the parser was created as * > part of the HTML fragment parsing algorithm and the stack of open elements * > has only one element in it (fragment case); otherwise, the adjusted current * > node is the current node. * * @see path_to_url#adjusted-current-node * * @since 6.7.0 * * @return WP_HTML_Token|null The adjusted current node. */ private function get_adjusted_current_node(): ?WP_HTML_Token { if ( isset( $this->context_node ) && 1 === $this->state->stack_of_open_elements->count() ) { return $this->context_node; } return $this->state->stack_of_open_elements->current_node(); } /** * Reconstructs the active formatting elements. * * > This has the effect of reopening all the formatting elements that were opened * > in the current body, cell, or caption (whichever is youngest) that haven't * > been explicitly closed. * * @since 6.4.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#reconstruct-the-active-formatting-elements * * @return bool Whether any formatting elements needed to be reconstructed. */ private function reconstruct_active_formatting_elements(): bool { /* * > If there are no entries in the list of active formatting elements, then there is nothing * > to reconstruct; stop this algorithm. */ if ( 0 === $this->state->active_formatting_elements->count() ) { return false; } $last_entry = $this->state->active_formatting_elements->current_node(); if ( /* * > If the last (most recently added) entry in the list of active formatting elements is a marker; * > stop this algorithm. */ 'marker' === $last_entry->node_name || /* * > If the last (most recently added) entry in the list of active formatting elements is an * > element that is in the stack of open elements, then there is nothing to reconstruct; * > stop this algorithm. */ $this->state->stack_of_open_elements->contains_node( $last_entry ) ) { return false; } $this->bail( 'Cannot reconstruct active formatting elements when advancing and rewinding is required.' ); } /** * Runs the reset the insertion mode appropriately algorithm. * * @since 6.7.0 * * @see path_to_url#reset-the-insertion-mode-appropriately */ private function reset_insertion_mode_appropriately(): void { // Set the first node. $first_node = null; foreach ( $this->state->stack_of_open_elements->walk_down() as $first_node ) { break; } /* * > 1. Let _last_ be false. */ $last = false; foreach ( $this->state->stack_of_open_elements->walk_up() as $node ) { /* * > 2. Let _node_ be the last node in the stack of open elements. * > 3. _Loop_: If _node_ is the first node in the stack of open elements, then set _last_ * > to true, and, if the parser was created as part of the HTML fragment parsing * > algorithm (fragment case), set node to the context element passed to * > that algorithm. * > */ if ( $node === $first_node ) { $last = true; if ( isset( $this->context_node ) ) { $node = $this->context_node; } } switch ( $node->node_name ) { /* * > 4. If node is a `select` element, run these substeps: * > 1. If _last_ is true, jump to the step below labeled done. * > 2. Let _ancestor_ be _node_. * > 3. _Loop_: If _ancestor_ is the first node in the stack of open elements, * > jump to the step below labeled done. * > 4. Let ancestor be the node before ancestor in the stack of open elements. * > * > 7. Jump back to the step labeled _loop_. * > 8. _Done_: Switch the insertion mode to "in select" and return. */ case 'SELECT': if ( ! $last ) { foreach ( $this->state->stack_of_open_elements->walk_up( $node ) as $ancestor ) { switch ( $ancestor->node_name ) { /* * > 5. If _ancestor_ is a `template` node, jump to the step below * > labeled _done_. */ case 'TEMPLATE': break 2; /* * > 6. If _ancestor_ is a `table` node, switch the insertion mode to * > "in select in table" and return. */ case 'TABLE': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT_IN_TABLE; return; } } } $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT; return; /* * > 5. If _node_ is a `td` or `th` element and _last_ is false, then switch the * > insertion mode to "in cell" and return. */ case 'TD': case 'TH': if ( ! $last ) { $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_CELL; return; } break; /* * > 6. If _node_ is a `tr` element, then switch the insertion mode to "in row" * > and return. */ case 'TR': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; return; /* * > 7. If _node_ is a `tbody`, `thead`, or `tfoot` element, then switch the * > insertion mode to "in table body" and return. */ case 'TBODY': case 'THEAD': case 'TFOOT': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return; /* * > 8. If _node_ is a `caption` element, then switch the insertion mode to * > "in caption" and return. */ case 'CAPTION': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_CAPTION; return; /* * > 9. If _node_ is a `colgroup` element, then switch the insertion mode to * > "in column group" and return. */ case 'COLGROUP': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP; return; /* * > 10. If _node_ is a `table` element, then switch the insertion mode to * > "in table" and return. */ case 'TABLE': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return; /* * > 11. If _node_ is a `template` element, then switch the insertion mode to the * > current template insertion mode and return. */ case 'TEMPLATE': $this->state->insertion_mode = end( $this->state->stack_of_template_insertion_modes ); return; /* * > 12. If _node_ is a `head` element and _last_ is false, then switch the * > insertion mode to "in head" and return. */ case 'HEAD': if ( ! $last ) { $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD; return; } break; /* * > 13. If _node_ is a `body` element, then switch the insertion mode to "in body" * > and return. */ case 'BODY': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; return; /* * > 14. If _node_ is a `frameset` element, then switch the insertion mode to * > "in frameset" and return. (fragment case) */ case 'FRAMESET': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_FRAMESET; return; /* * > 15. If _node_ is an `html` element, run these substeps: * > 1. If the head element pointer is null, switch the insertion mode to * > "before head" and return. (fragment case) * > 2. Otherwise, the head element pointer is not null, switch the insertion * > mode to "after head" and return. */ case 'HTML': $this->state->insertion_mode = isset( $this->state->head_element ) ? WP_HTML_Processor_State::INSERTION_MODE_AFTER_HEAD : WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HEAD; return; } } /* * > 16. If _last_ is true, then switch the insertion mode to "in body" * > and return. (fragment case) * * This is only reachable if `$last` is true, as per the fragment parsing case. */ $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; } /** * Runs the adoption agency algorithm. * * @since 6.4.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see path_to_url#adoption-agency-algorithm */ private function run_adoption_agency_algorithm(): void { $budget = 1000; $subject = $this->get_tag(); $current_node = $this->state->stack_of_open_elements->current_node(); if ( // > If the current node is an HTML element whose tag name is subject $current_node && $subject === $current_node->node_name && // > the current node is not in the list of active formatting elements ! $this->state->active_formatting_elements->contains_node( $current_node ) ) { $this->state->stack_of_open_elements->pop(); return; } $outer_loop_counter = 0; while ( $budget-- > 0 ) { if ( $outer_loop_counter++ >= 8 ) { return; } /* * > Let formatting element be the last element in the list of active formatting elements that: * > - is between the end of the list and the last marker in the list, * > if any, or the start of the list otherwise, * > - and has the tag name subject. */ $formatting_element = null; foreach ( $this->state->active_formatting_elements->walk_up() as $item ) { if ( 'marker' === $item->node_name ) { break; } if ( $subject === $item->node_name ) { $formatting_element = $item; break; } } // > If there is no such element, then return and instead act as described in the "any other end tag" entry above. if ( null === $formatting_element ) { $this->bail( 'Cannot run adoption agency when "any other end tag" is required.' ); } // > If formatting element is not in the stack of open elements, then this is a parse error; remove the element from the list, and return. if ( ! $this->state->stack_of_open_elements->contains_node( $formatting_element ) ) { $this->state->active_formatting_elements->remove_node( $formatting_element ); return; } // > If formatting element is in the stack of open elements, but the element is not in scope, then this is a parse error; return. if ( ! $this->state->stack_of_open_elements->has_element_in_scope( $formatting_element->node_name ) ) { return; } /* * > Let furthest block be the topmost node in the stack of open elements that is lower in the stack * > than formatting element, and is an element in the special category. There might not be one. */ $is_above_formatting_element = true; $furthest_block = null; foreach ( $this->state->stack_of_open_elements->walk_down() as $item ) { if ( $is_above_formatting_element && $formatting_element->bookmark_name !== $item->bookmark_name ) { continue; } if ( $is_above_formatting_element ) { $is_above_formatting_element = false; continue; } if ( self::is_special( $item ) ) { $furthest_block = $item; break; } } /* * > If there is no furthest block, then the UA must first pop all the nodes from the bottom of the * > stack of open elements, from the current node up to and including formatting element, then * > remove formatting element from the list of active formatting elements, and finally return. */ if ( null === $furthest_block ) { foreach ( $this->state->stack_of_open_elements->walk_up() as $item ) { $this->state->stack_of_open_elements->pop(); if ( $formatting_element->bookmark_name === $item->bookmark_name ) { $this->state->active_formatting_elements->remove_node( $formatting_element ); return; } } } $this->bail( 'Cannot extract common ancestor in adoption agency algorithm.' ); } $this->bail( 'Cannot run adoption agency when looping required.' ); } /** * Runs the "close the cell" algorithm. * * > Where the steps above say to close the cell, they mean to run the following algorithm: * > 1. Generate implied end tags. * > 2. If the current node is not now a td element or a th element, then this is a parse error. * > 3. Pop elements from the stack of open elements stack until a td element or a th element has been popped from the stack. * > 4. Clear the list of active formatting elements up to the last marker. * > 5. Switch the insertion mode to "in row". * * @see path_to_url#close-the-cell * * @since 6.7.0 */ private function close_cell(): void { $this->generate_implied_end_tags(); // @todo Parse error if the current node is a "td" or "th" element. foreach ( $this->state->stack_of_open_elements->walk_up() as $element ) { $this->state->stack_of_open_elements->pop(); if ( 'TD' === $element->node_name || 'TH' === $element->node_name ) { break; } } $this->state->active_formatting_elements->clear_up_to_last_marker(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; } /** * Inserts an HTML element on the stack of open elements. * * @since 6.4.0 * * @see path_to_url#insert-a-foreign-element * * @param WP_HTML_Token $token Name of bookmark pointing to element in original input HTML. */ private function insert_html_element( WP_HTML_Token $token ): void { $this->state->stack_of_open_elements->push( $token ); } /** * Inserts a foreign element on to the stack of open elements. * * @since 6.7.0 * * @see path_to_url#insert-a-foreign-element * * @param WP_HTML_Token $token Insert this token. The token's namespace and * insertion point will be updated correctly. * @param bool $only_add_to_element_stack Whether to skip the "insert an element at the adjusted * insertion location" algorithm when adding this element. */ private function insert_foreign_element( WP_HTML_Token $token, bool $only_add_to_element_stack ): void { $adjusted_current_node = $this->get_adjusted_current_node(); $token->namespace = $adjusted_current_node ? $adjusted_current_node->namespace : 'html'; if ( $this->is_mathml_integration_point() ) { $token->integration_node_type = 'math'; } elseif ( $this->is_html_integration_point() ) { $token->integration_node_type = 'html'; } if ( false === $only_add_to_element_stack ) { /* * @todo Implement the "appropriate place for inserting a node" and the * "insert an element at the adjusted insertion location" algorithms. * * These algorithms mostly impacts DOM tree construction and not the HTML API. * Here, there's no DOM node onto which the element will be appended, so the * parser will skip this step. * * @see path_to_url#insert-an-element-at-the-adjusted-insertion-location */ } $this->insert_html_element( $token ); } /** * Inserts a virtual element on the stack of open elements. * * @since 6.7.0 * * @param string $token_name Name of token to create and insert into the stack of open elements. * @param string|null $bookmark_name Optional. Name to give bookmark for created virtual node. * Defaults to auto-creating a bookmark name. * @return WP_HTML_Token Newly-created virtual token. */ private function insert_virtual_node( $token_name, $bookmark_name = null ): WP_HTML_Token { $here = $this->bookmarks[ $this->state->current_token->bookmark_name ]; $name = $bookmark_name ?? $this->bookmark_token(); $this->bookmarks[ $name ] = new WP_HTML_Span( $here->start, 0 ); $token = new WP_HTML_Token( $name, $token_name, false ); $this->insert_html_element( $token ); return $token; } /* * HTML Specification Helpers */ /** * Indicates if the current token is a MathML integration point. * * @since 6.7.0 * * @see path_to_url#mathml-text-integration-point * * @return bool Whether the current token is a MathML integration point. */ private function is_mathml_integration_point(): bool { $current_token = $this->state->current_token; if ( ! isset( $current_token ) ) { return false; } if ( 'math' !== $current_token->namespace || 'M' !== $current_token->node_name[0] ) { return false; } $tag_name = $current_token->node_name; return ( 'MI' === $tag_name || 'MO' === $tag_name || 'MN' === $tag_name || 'MS' === $tag_name || 'MTEXT' === $tag_name ); } /** * Indicates if the current token is an HTML integration point. * * Note that this method must be an instance method with access * to the current token, since it needs to examine the attributes * of the currently-matched tag, if it's in the MathML namespace. * Otherwise it would be required to scan the HTML and ensure that * no other accounting is overlooked. * * @since 6.7.0 * * @see path_to_url#html-integration-point * * @return bool Whether the current token is an HTML integration point. */ private function is_html_integration_point(): bool { $current_token = $this->state->current_token; if ( ! isset( $current_token ) ) { return false; } if ( 'html' === $current_token->namespace ) { return false; } $tag_name = $current_token->node_name; if ( 'svg' === $current_token->namespace ) { return ( 'DESC' === $tag_name || 'FOREIGNOBJECT' === $tag_name || 'TITLE' === $tag_name ); } if ( 'math' === $current_token->namespace ) { if ( 'ANNOTATION-XML' !== $tag_name ) { return false; } $encoding = $this->get_attribute( 'encoding' ); return ( is_string( $encoding ) && ( 0 === strcasecmp( $encoding, 'application/xhtml+xml' ) || 0 === strcasecmp( $encoding, 'text/html' ) ) ); } } /** * Returns whether an element of a given name is in the HTML special category. * * @since 6.4.0 * * @see path_to_url#special * * @param WP_HTML_Token|string $tag_name Node to check, or only its name if in the HTML namespace. * @return bool Whether the element of the given name is in the special category. */ public static function is_special( $tag_name ): bool { if ( is_string( $tag_name ) ) { $tag_name = strtoupper( $tag_name ); } else { $tag_name = 'html' === $tag_name->namespace ? strtoupper( $tag_name->node_name ) : "{$tag_name->namespace} {$tag_name->node_name}"; } return ( 'ADDRESS' === $tag_name || 'APPLET' === $tag_name || 'AREA' === $tag_name || 'ARTICLE' === $tag_name || 'ASIDE' === $tag_name || 'BASE' === $tag_name || 'BASEFONT' === $tag_name || 'BGSOUND' === $tag_name || 'BLOCKQUOTE' === $tag_name || 'BODY' === $tag_name || 'BR' === $tag_name || 'BUTTON' === $tag_name || 'CAPTION' === $tag_name || 'CENTER' === $tag_name || 'COL' === $tag_name || 'COLGROUP' === $tag_name || 'DD' === $tag_name || 'DETAILS' === $tag_name || 'DIR' === $tag_name || 'DIV' === $tag_name || 'DL' === $tag_name || 'DT' === $tag_name || 'EMBED' === $tag_name || 'FIELDSET' === $tag_name || 'FIGCAPTION' === $tag_name || 'FIGURE' === $tag_name || 'FOOTER' === $tag_name || 'FORM' === $tag_name || 'FRAME' === $tag_name || 'FRAMESET' === $tag_name || 'H1' === $tag_name || 'H2' === $tag_name || 'H3' === $tag_name || 'H4' === $tag_name || 'H5' === $tag_name || 'H6' === $tag_name || 'HEAD' === $tag_name || 'HEADER' === $tag_name || 'HGROUP' === $tag_name || 'HR' === $tag_name || 'HTML' === $tag_name || 'IFRAME' === $tag_name || 'IMG' === $tag_name || 'INPUT' === $tag_name || 'KEYGEN' === $tag_name || 'LI' === $tag_name || 'LINK' === $tag_name || 'LISTING' === $tag_name || 'MAIN' === $tag_name || 'MARQUEE' === $tag_name || 'MENU' === $tag_name || 'META' === $tag_name || 'NAV' === $tag_name || 'NOEMBED' === $tag_name || 'NOFRAMES' === $tag_name || 'NOSCRIPT' === $tag_name || 'OBJECT' === $tag_name || 'OL' === $tag_name || 'P' === $tag_name || 'PARAM' === $tag_name || 'PLAINTEXT' === $tag_name || 'PRE' === $tag_name || 'SCRIPT' === $tag_name || 'SEARCH' === $tag_name || 'SECTION' === $tag_name || 'SELECT' === $tag_name || 'SOURCE' === $tag_name || 'STYLE' === $tag_name || 'SUMMARY' === $tag_name || 'TABLE' === $tag_name || 'TBODY' === $tag_name || 'TD' === $tag_name || 'TEMPLATE' === $tag_name || 'TEXTAREA' === $tag_name || 'TFOOT' === $tag_name || 'TH' === $tag_name || 'THEAD' === $tag_name || 'TITLE' === $tag_name || 'TR' === $tag_name || 'TRACK' === $tag_name || 'UL' === $tag_name || 'WBR' === $tag_name || 'XMP' === $tag_name || // MathML. 'math MI' === $tag_name || 'math MO' === $tag_name || 'math MN' === $tag_name || 'math MS' === $tag_name || 'math MTEXT' === $tag_name || 'math ANNOTATION-XML' === $tag_name || // SVG. 'svg DESC' === $tag_name || 'svg FOREIGNOBJECT' === $tag_name || 'svg TITLE' === $tag_name ); } /** * Returns whether a given element is an HTML Void Element * * > area, base, br, col, embed, hr, img, input, link, meta, source, track, wbr * * @since 6.4.0 * * @see path_to_url#void-elements * * @param string $tag_name Name of HTML tag to check. * @return bool Whether the given tag is an HTML Void Element. */ public static function is_void( $tag_name ): bool { $tag_name = strtoupper( $tag_name ); return ( 'AREA' === $tag_name || 'BASE' === $tag_name || 'BASEFONT' === $tag_name || // Obsolete but still treated as void. 'BGSOUND' === $tag_name || // Obsolete but still treated as void. 'BR' === $tag_name || 'COL' === $tag_name || 'EMBED' === $tag_name || 'FRAME' === $tag_name || 'HR' === $tag_name || 'IMG' === $tag_name || 'INPUT' === $tag_name || 'KEYGEN' === $tag_name || // Obsolete but still treated as void. 'LINK' === $tag_name || 'META' === $tag_name || 'PARAM' === $tag_name || // Obsolete but still treated as void. 'SOURCE' === $tag_name || 'TRACK' === $tag_name || 'WBR' === $tag_name ); } /** * Gets an encoding from a given string. * * This is an algorithm defined in the WHAT-WG specification. * * Example: * * 'UTF-8' === self::get_encoding( 'utf8' ); * 'UTF-8' === self::get_encoding( " \tUTF-8 " ); * null === self::get_encoding( 'UTF-7' ); * null === self::get_encoding( 'utf8; charset=' ); * * @see path_to_url#concept-encoding-get * * @todo As this parser only supports UTF-8, only the UTF-8 * encodings are detected. Add more as desired, but the * parser will bail on non-UTF-8 encodings. * * @since 6.7.0 * * @param string $label A string which may specify a known encoding. * @return string|null Known encoding if matched, otherwise null. */ protected static function get_encoding( string $label ): ?string { /* * > Remove any leading and trailing ASCII whitespace from label. */ $label = trim( $label, " \t\f\r\n" ); /* * > If label is an ASCII case-insensitive match for any of the labels listed in the * > table below, then return the corresponding encoding; otherwise return failure. */ switch ( strtolower( $label ) ) { case 'unicode-1-1-utf-8': case 'unicode11utf8': case 'unicode20utf8': case 'utf-8': case 'utf8': case 'x-unicode20utf8': return 'UTF-8'; default: return null; } } /* * Constants that would pollute the top of the class if they were found there. */ /** * Indicates that the next HTML token should be parsed and processed. * * @since 6.4.0 * * @var string */ const PROCESS_NEXT_NODE = 'process-next-node'; /** * Indicates that the current HTML token should be reprocessed in the newly-selected insertion mode. * * @since 6.4.0 * * @var string */ const REPROCESS_CURRENT_NODE = 'reprocess-current-node'; /** * Indicates that the current HTML token should be processed without advancing the parser. * * @since 6.5.0 * * @var string */ const PROCESS_CURRENT_NODE = 'process-current-node'; /** * Indicates that the parser encountered unsupported markup and has bailed. * * @since 6.4.0 * * @var string */ const ERROR_UNSUPPORTED = 'unsupported'; /** * Indicates that the parser encountered more HTML tokens than it * was able to process and has bailed. * * @since 6.4.0 * * @var string */ const ERROR_EXCEEDED_MAX_BOOKMARKS = 'exceeded-max-bookmarks'; /** * Unlock code that must be passed into the constructor to create this class. * * This class extends the WP_HTML_Tag_Processor, which has a public class * constructor. Therefore, it's not possible to have a private constructor here. * * This unlock code is used to ensure that anyone calling the constructor is * doing so with a full understanding that it's intended to be a private API. * * @access private */ const CONSTRUCTOR_UNLOCK_CODE = 'Use WP_HTML_Processor::create_fragment() instead of calling the class constructor directly.'; } ```
```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.coders; import java.io.EOFException; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.UTFDataFormatException; import java.util.Collections; import java.util.List; import org.apache.beam.sdk.util.VarInt; import org.apache.beam.sdk.values.TypeDescriptor; /** * A {@link Coder} that encodes {@link Long Longs} using between 1 and 10 bytes. Negative numbers * always take 10 bytes, so {@link BigEndianLongCoder} may be preferable for longs that are known to * often be large or negative. */ public class VarLongCoder extends StructuredCoder<Long> { public static VarLongCoder of() { return INSTANCE; } ///////////////////////////////////////////////////////////////////////////// private static final VarLongCoder INSTANCE = new VarLongCoder(); private static final TypeDescriptor<Long> TYPE_DESCRIPTOR = new TypeDescriptor<Long>() {}; private VarLongCoder() {} @Override public void encode(Long value, OutputStream outStream) throws IOException, CoderException { if (value == null) { throw new CoderException("cannot encode a null Long"); } VarInt.encode(value, outStream); } @Override public Long decode(InputStream inStream) throws IOException, CoderException { try { return VarInt.decodeLong(inStream); } catch (EOFException | UTFDataFormatException exn) { // These exceptions correspond to decoding problems, so change // what kind of exception they're branded as. throw new CoderException(exn); } } @Override public List<? extends Coder<?>> getCoderArguments() { return Collections.emptyList(); } @Override public void verifyDeterministic() {} /** * {@inheritDoc} * * @return {@code true}. {@link VarLongCoder} is injective. */ @Override public boolean consistentWithEquals() { return true; } /** * {@inheritDoc} * * @return {@code true}. {@link #getEncodedElementByteSize} is cheap. */ @Override public boolean isRegisterByteSizeObserverCheap(Long value) { return true; } @Override public TypeDescriptor<Long> getEncodedTypeDescriptor() { return TYPE_DESCRIPTOR; } @Override protected long getEncodedElementByteSize(Long value) throws Exception { if (value == null) { throw new CoderException("cannot encode a null Long"); } return VarInt.getLength(value); } } ```
```sqlpl SELECT uniq(a) FROM (SELECT 1 AS a) UNION ALL SELECT uniq(b) FROM (SELECT 1 AS b); ```
Don Nottingham (born June 26, 1949) is a former American football running back who played for the Baltimore Colts and Miami Dolphins of the National Football League (NFL). He was affectionately referred to as 'The Human Bowling Ball' because of his short but robust frame. Early career and college He attended Ravenna High School in Ravenna, Ohio and played college football at nearby Kent State University. He was a three-year letterman, and captained the team his senior year. He finished his college career with 2,515 yards on 602 carries. He also made the first-team All-Mid-American Conference teams in 1969 and 1970. Nottingham's Golden Flashes teammates included future head coaches Gary Pinkel (Toledo, Missouri) and Nick Saban (Toledo, Michigan State, LSU, Alabama). Professional career Nottingham was selected in the 17th round of the 1971 NFL Draft by the Baltimore Colts, the second to last pick. He spent two full years with the team, and was traded midway through the 1973 NFL season to the Dolphins. He was part of the Dolphins team that won Super Bowl VIII over the Minnesota Vikings 24-7. He gained the starting role after Larry Csonka left for the World Football League in 1975 and finished in the top ten of all running backs for rushing touchdowns during the 1974, 1975, and 1976 seasons. Nottingham broke his left shoulder blade in August 1978 and sat out the entire 1978 season on injured reserve, then retired in March 1979 to sell insurance. He finished his career with 2,496 yards and 34 touchdowns on 611 carries, as well as 67 catches for 502 yards. Career statistics Regular season References External links Don Nottingham at Kent State's website 1949 births Living people People from Clay County, West Virginia People from Ravenna, Ohio Players of American football from Ohio American football running backs Kent State Golden Flashes football players Baltimore Colts players Miami Dolphins players
William Leroy "The Big Whistle" Chadwick (October 10, 1915 – October 24, 2009) was the first US-born referee to serve in the National Hockey League (NHL). Despite being blind in his right eye, his on-ice officiating career spanned the greater part of the 1940s and 1950s, during which he pioneered the system of hand signals for penalties which is now used in all hockey games internationally. He later was a popular broadcaster for the New York Rangers on radio and television. Amateur hockey playing career Born in Manhattan, New York City, he attended Jamaica High School. While playing as a center for a Metropolitan Amateur Hockey League All-Star team at Madison Square Garden in 1935, he was struck in the right eye by an errant puck during a line change against a team from Boston. Even though the doctors at Manhattan Eye, Ear and Throat Hospital weren't able to restore vision to his right eye, he continued to play the sport with the New York Rovers of the Eastern Amateur Hockey League. NHL officiating pioneer Chadwick was encouraged to become a referee by his former Rovers' coach, Tommy Lockhart. His first experience as an on-ice official was in a Rovers game in March 1937, when he substituted for the scheduled referee who was stuck in a snowstorm. His work in the amateur circuit caught the attention of then-NHL president Frank Calder, who hired him as the league's first American-born linesman in 1939. The first professional match Chadwick worked was between the Montreal Canadiens and New York Americans at The Garden. After one year of service in the NHL, he was promoted to referee, eventually becoming the first one to use hand signals during games in the early 1940s. The system he developed was adopted by the NHL in 1956, one year after his retirement. During his fifteen seasons as a referee, he worked over 900 regular season contests and a record 42 Stanley Cup Finals matches, 13 of them series deciders. He became the fifth on-ice official, the first American-born, to be inducted into the Hockey Hall of Fame in 1964. "The Big Whistle" He has been elected to both the Hockey Hall of Fame and the United States Hockey Hall of Fame. Chadwick spent 14 seasons as a hockey color commentator both on radio and television for the New York Rangers. From 1967–72, he worked on radio with Marv Albert, and in 1972 moved to television broadcasts on WOR-TV, Channel 9, and the MSG Network. His 1972–73 partner was Sal Marchiano, and from 1973 to 1981 he was paired with Jim Gordon. Death He died on October 24, 2009, at the age of 94. See also List of members of the United States Hockey Hall of Fame References External links The Big Whistle' passes away at age 94 New York Rangers, Saturday, October 24, 2009. An NHL Legend--Bill Chadwick Dies Fischler, Stan. Game On! (Madison Square Garden blog), Saturday, October 24, 2009. An Appreciation of 'The Big Whistle' Halligan, John. New York Rangers, Sunday, October 25, 2009. 'Big Whistle,' Dead at 94 Klein, Jeff Z. Sunday's News of Hockey, 10/25/09: Booth Out of Hospital; Chadwick, Slap Shot (The New York Times hockey blog), Sunday, October 25, 2009. 1915 births 2009 deaths Fordham University alumni Hockey Hall of Fame inductees Lester Patrick Trophy recipients National Hockey League officials National Hockey League broadcasters New York Rangers announcers People from Cutchogue, New York People from Manhattan United States Hockey Hall of Fame inductees
Bryce Hallett is a Canadian independent animator living and working in Toronto, Ontario, Canada. A graduate of Sheridan College's classical animation program and Canadore College's graphic communications program, Hallett has been creating numerous cartoons and animations since 1999 working under his business "Frog Feet Productions". His first job was creating the "Ranger Gord's Educational Films" and "Ranger Gord's Safety Tips" cartoons based on the character of the same name for The Red Green Show created by Steve Smith which aired on CBC Television and PBS. Since that time, Hallett has created numerous other animated shorts for sketch comedy TV series; a list that includes animation for Gemini Nominated History Bites (created by Rick Green), Listen Missy (created by Jane Ford) and The Frantics. He has also contributed animation to numerous music videos and TV commercials airing across Canada and the United States and in films ranging from small Canadian independent films like "At Home by Myself...With You" (dir Kris Booth, 2009) and documentaries. Trained in traditional animation and graphic design, Hallett has been known to experiment with a variety of styles and techniques including photography, cutout animation, stopmotion, watercolour and other media and various computer software. He is the illustrator of the book "Animation Unleashed: 100 Principles Every Animator, Comic Book Writer, Filmmaker, Video Artist, and Game Developer Should Know" written by veteran animator and "award-winning director of films for the National Film Board of Canada" Ellen Besen. Released in 2008. Selected works Television The Red Green Show (Animator/ director of Ranger Gord's Educational Films, 23 episodes) (1999–2004) History Bites (animator/ designer 11 episodes) (2003) Listen Missy! (animator) (2004) The Frantics (comedy) Reunion Special (animator) (2005) History Bites: Mother Britain (animator) (1 hour special) (2005) History Bites: Uncle Sam (animator) (1 hour special) (2006) History Bites: The Separatists (animator) (1 hour special) (2007) History Bites: Celine Dion (animator and also appears as himself) (1 hour special) (2008) What a Booty (Animator) (1 hour doc directed by Tantyana Terzoupoulos) (2008) Music videos Howie Beck (Alice) (contributing animator) (2004) (dir by Tin Can Forest aka Marek Colek and Samantha Ferguson) Robin Black (Why Don't You Love me?) (animator/designer/storyboards) (2005) Directed by Kris Lefcoe & Ghost Milk Studios. Animation by Ghostmilk, Bryce Hallett, Justin Lee and Chris Stone. Eminem (Shake That feat. Nate Dogg (contributing animator) (2006) ( dir by Plates Animation) Delica-m (Counting Stars) (Animator/Designer) (2010) Feature films At Home by Myself...With You (dir Kris Booth ) (Animation by Bryce Hallett) (2009) Tall Girls: A Story of Giants (dir Edda Baumann von Broen ) (Animation by Bryce Hallett) (2011) Bibliography List of books illustrated by Bryce Hallett Notes External links Frog Feet Productions Toronto Animated Image Society Animations on YouTube Living people Canadore College alumni Artists from Ontario Canadian animated film directors 1976 births Canadian bloggers Stop motion animators Sheridan College animation program alumni People from North Bay, Ontario
Çakır () is a neighbourhood in the municipality and district of Kızıltepe, Mardin Province in Turkey. The village is populated by Kurds of the Xalecan tribe and had a population of 398 in 2021. References Neighbourhoods in Kızıltepe District Kurdish settlements in Mardin Province
AMSYSCO, Inc. is a Post-Tensioning supplier based in Romeoville, Illinois. AMSYSCO, Inc. has an unbonded plant that it is certified under the Post-Tensioning Institute 'Plant Certification' program. Business Segments The company is involved in five major business segments: arts & sports stadiums, commercial buildings, commercial multi-family housing, parking structures, and barrier cable. History AMSYSCO, Inc. was founded in 1981 by Rattan Khosa. In 1984, it joined the Post-Tensioning Institute, and in 1999, Rattan Khosa was elected President of Post-Tensioning Institute for a two-year term. In 2008, the company was awarded the Post-Tensioning Institute's "Project of the Year - Award of Excellence" for the New Guthrie Theater in Minneapolis, Minnesota. Notable Projects 1998 – Minneapolis-Saint Paul International Airport Parking Structures (Minneapolis, MN) 2004 – Epic Campus (Verona, WI) 2005 – 340 On The Park Condominiums (Chicago, IL) 2006 – Lumiere Casino (St. Louis, MO) 2007 – Indianapolis International Airport Parking Structures (Indianapolis, IN) 2008 – New Guthrie Theater (Minneapolis, MN) 2009 – Minnesota Twins Ballpark 'Target Field' (Minneapolis, MN) References "Entrepreneurial Internship Program Sponsors", Chicago Booth Polsky Center. "Hopewell Ventures finds good VC value in Midwest", Chicago Sun Times. "Another Twins ballpark milestone reached on Wednesday", Minnesota Twins MLB website. "Post-Tensioning Institute Plant Certification", Post-Tensioning Institute. "PTI recognizes AMSYSCO with its top 2008 award", Concrete Monthly. "A Creative and Cost-Efficient Structural System", Engineer News Record. "The Leaders Speak", Engineer News Record. "Record-Height of a Post-Tensioned Residential Building Another First for Chicago", PTI Journal. "St. Louis Casino stays afloat with post-tensioned concrete", Engineer News Record. "Post-Tensioning leads to Airport Modernization", Amsysco. External links AMSYSCO Inc. AMSYSCO Blog Construction and civil engineering companies of the United States Manufacturing companies based in Illinois Companies based in Will County, Illinois Romeoville, Illinois American companies established in 1921 Construction and civil engineering companies established in 1981 Manufacturing companies established in 1981 1981 establishments in Illinois
```css `vh` and `vw`, `vmin` and `vmax` `currentColor` improves code reusability Property names require American English Add `line-height` to `body` Autohiding scrollbars for **IE** ```
```javascript 'use strict' const test = require('tap').test const validateOpts = require('../lib/validate') const helper = require('./helper') const { hasWorkerSupport } = require('../lib/util') test('validateOpts should not return an error with only an url passed in', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url }) t.ok(!(result instanceof Error)) }) test('validateOpts should return an error when workers option is present and hasWorkerSupport is false', (t) => { const validateOpts = t.mock('../lib/validate', { '../lib/util': { hasWorkerSupport: false } }) t.plan(2) const result = validateOpts({ workers: 1 }) t.ok(result instanceof Error) t.equal(result.message, 'Please use node >= 11.7.0 for workers support') }) test('validateOpts should return an error when bailout is less than 1', (t) => { const validateOpts = t.mock('../lib/validate', { '../lib/util': { hasWorkerSupport: false } }) t.plan(2) const result = validateOpts({ bailout: 0 }) t.ok(result instanceof Error) t.equal(result.message, 'bailout threshold can not be less than 1') }) test('validateOpts should return an error when connectionRate is less than 1', (t) => { t.plan(2) const result = validateOpts({ connectionRate: 0 }) t.ok(result instanceof Error) t.equal(result.message, 'connectionRate can not be less than 1') }) test('validateOpts should return an error when overallRate is less than 1', (t) => { t.plan(2) const result = validateOpts({ overallRate: 0 }) t.ok(result instanceof Error) t.equal(result.message, 'bailout overallRate can not be less than 1') }) test('validateOpts should return an error when amount is less than 1', (t) => { t.plan(2) const result = validateOpts({ amount: 0 }) t.ok(result instanceof Error) t.equal(result.message, 'amount can not be less than 1') }) test('validateOpts should return an error when maxConnectionRequests is less than 1', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url maxConnectionRequests: 0 }) t.ok(result instanceof Error) t.equal(result.message, 'maxConnectionRequests can not be less than 1') }) test('validateOpts should return an error when maxOverallRequests is less than 1', (t) => { t.plan(2) const result = validateOpts({ maxOverallRequests: 0 }) t.ok(result instanceof Error) t.equal(result.message, 'maxOverallRequests can not be less than 1') }) test('validateOpts should return an error when requests does not contain a valid setupRequest function', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url requests: [{ setupRequest: 123 }] }) t.ok(result instanceof Error) t.equal(result.message, 'Invalid option setupRequest, please provide a function (or file path when in workers mode)') }) test('validateOpts should return an error when requests does not contain a valid onResponse function', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url requests: [{ onResponse: 123 }] }) t.ok(result instanceof Error) t.equal(result.message, 'Invalid option onResponse, please provide a function (or file path when in workers mode)') }) test('validateOpts should return an error when setupClient is not a valid function', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url setupClient: 123 }) t.ok(result instanceof Error) t.equal(result.message, 'Invalid option setupClient, please provide a function (or file path when in workers mode)') }) test('validateOpts should return an error if neither url or socket path are provided', (t) => { t.plan(2) const result = validateOpts({ }) t.ok(result instanceof Error) t.equal(result.message, 'url or socketPath option required') }) test('validateOpts should convert a duration that is a string representation of a number into a number', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url duration: '100' }) t.equal(result.duration, 100) }) test('validateOpts should convert a duration that is a timestring into a number', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url duration: '2 weeks' }) t.equal(result.duration, 1209600) }) test('validateOpts should return an error if duration is in an invalid format', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url duration: '2 dsweeks' }) t.ok(result instanceof Error) }) test('validateOpts should return an error if duration less than 0', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url duration: -1 }) t.ok(result instanceof Error) t.equal(result.message, 'duration can not be less than 0') }) test('validateOpts should return an error if expectBody is used in conjunction with requests', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url expectBody: 'foo', requests: [] }) t.ok(result instanceof Error) t.equal(result.message, 'expectBody cannot be used in conjunction with requests') }) test('validateOpts should parse a multipart form correctly', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url form: '{ "field 1": { "type": "text", "value": "a text value"} }' }) t.ok(result.form) }) test('validateOpts should return an error if a multipart form is incorrectly formatted', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url form: 'invalid form' }) t.ok(result instanceof Error) }) test('validateOpts should parse a HAR request successfully', (t) => { t.plan(1) const har = helper.customizeHAR('./fixtures/httpbin-get.json', 'path_to_url 'path_to_url const result = validateOpts({ url: 'path_to_url har }) t.ok(result.har) }) test('validateOpts should return an error if a HAR request is unsuccessful', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url har: 'invalid har' }) t.ok(result instanceof Error) }) test('validateOpts should return an error when connections is less than 1', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url connections: 0 }) t.ok(result instanceof Error) t.equal(result.message, 'connections can not be less than 1') }) test('validateOpts should return an error when ignoreCoordinatedOmission used without connectionRate or overallRate', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url ignoreCoordinatedOmission: true }) t.ok(result instanceof Error) t.equal(result.message, 'ignoreCoordinatedOmission makes no sense without connectionRate or overallRate') }) test('validateOpts is successful when ignoreCoordinatedOmission is used with connectionRate', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url ignoreCoordinatedOmission: true, connectionRate: 1 }) t.ok(result.ignoreCoordinatedOmission) }) test('validateOpts is successful when ignoreCoordinatedOmission is used with overallRate', (t) => { t.plan(1) const result = validateOpts({ url: 'path_to_url ignoreCoordinatedOmission: true, overallRate: 1 }) t.ok(result.ignoreCoordinatedOmission) }) test('validateOpts should return an error when forever is used with cbPassedIn', (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url forever: true }, () => {}) t.ok(result instanceof Error) t.equal(result.message, 'should not use the callback parameter when the `forever` option is set to true. Use the `done` event on this event emitter') }) test('validateOpts should return an error when forever is used with workers', { skip: !hasWorkerSupport }, (t) => { t.plan(2) const result = validateOpts({ url: 'path_to_url forever: true, workers: 2 }) t.ok(result instanceof Error) t.equal(result.message, 'Using `forever` option isn\'t currently supported with workers') }) test('validateOpts should not set render options by default', (t) => { t.plan(3) const result = validateOpts({ url: 'path_to_url }) t.equal(result.renderProgressBar, undefined) t.equal(result.renderResultsTable, undefined) t.equal(result.renderLatencyTable, undefined) }) test('validateOpts should disable render options when json is true', (t) => { t.plan(3) const result = validateOpts({ url: 'path_to_url json: true }) t.equal(result.renderProgressBar, false) t.equal(result.renderResultsTable, false) t.equal(result.renderLatencyTable, false) }) ```
```java package view; import com.arellomobile.mvp.GenerateViewState; import com.arellomobile.mvp.MvpView; /** * Date: 26.02.2016 * Time: 11:49 * * @author Savin Mikhail */ public interface ViewStateForGenericView<T> extends MvpView { void testEvent(T ter); } ```
Mian Tariq Abdullah is a Pakistani politician who had been a member of the Provincial Assembly of the Punjab from August 2018 till January 2023. Early life and education He was born on 15 March 1957 in Multan, Pakistan. He has a degree of Bachelor of Arts. Political career He was elected to the Provincial Assembly of the Punjab as a candidate of the Pakistan Tehreek-e-Insaf (PTI) from PP-220 (Multan-X) in the 2018 Punjab provincial election. He is running for a seat in the Provincial Assembly from PP-220 Multan-X as a candidate of the PTI in the 2023 Punjab provincial election. References Living people Pakistan Tehreek-e-Insaf MPAs (Punjab) 1957 births
Hans Bathelt is a German drummer, percussionist and lyricist who played with the German progressive rock band Triumvirat between 1970 and 1976. He left because of musical differences between him and the keyboardist Hans Jürgen Fritz, the record company wanted some more commercial music, Fritz gave them what they wanted so the drummer left Discography Studio albums Mediterranean Tales (1972) Illusions on a Double Dimple (1974) U.S. #55 Spartacus (1975) U.S. #27 Old Loves Die Hard (1976) U.S. #85 Collaboration 1977 : You won't see me from Helmut Köllen. - Text for the song The Story Of Life, album was played & produced by keyboardist Hans-Jürgen Fritz. 1984 : Gladbacher Freunde from Fly Dirt. - His collaboration with keyboardist Hans-Jürgen Fritz is for the text and music of the title song Gladbacher Freunde, although they did not play on the album. The album was engineered and mixed by Fritz. References You won't see me Helmut Köllen : https://www.discogs.com/fr/Helmut-Koellen-You-Wont-See-Me/release/1567271 Gladbacher Freunde Fly Dirt : https://www.discogs.com/Fly-Dirt-Gladbacher-Freunde/release/8277511 German drummers Male drummers German male musicians Progressive rock drummers Living people Year of birth missing (living people)
```javascript 'use strict' const bench = require('fastbench') const pino = require('../') const bunyan = require('bunyan') const bole = require('bole')('bench') const fs = require('node:fs') const dest = fs.createWriteStream('/dev/null') const plogNodeStream = pino(dest) const plogDest = pino(pino.destination(('/dev/null'))) delete require.cache[require.resolve('../')] const plogMinLength = require('../')(pino.destination({ dest: '/dev/null', sync: false, minLength: 4096 })) const max = 10 const blog = bunyan.createLogger({ name: 'myapp', streams: [{ level: 'trace', stream: dest }] }) require('bole').output({ level: 'info', stream: dest }).setFastTime(true) const run = bench([ function benchBunyanCreation (cb) { const child = blog.child({ a: 'property' }) for (var i = 0; i < max; i++) { child.info({ hello: 'world' }) } setImmediate(cb) }, function benchBoleCreation (cb) { const child = bole('child') for (var i = 0; i < max; i++) { child.info({ hello: 'world' }) } setImmediate(cb) }, function benchPinoCreation (cb) { const child = plogDest.child({ a: 'property' }) for (var i = 0; i < max; i++) { child.info({ hello: 'world' }) } setImmediate(cb) }, function benchPinoMinLengthCreation (cb) { const child = plogMinLength.child({ a: 'property' }) for (var i = 0; i < max; i++) { child.info({ hello: 'world' }) } setImmediate(cb) }, function benchPinoNodeStreamCreation (cb) { const child = plogNodeStream.child({ a: 'property' }) for (var i = 0; i < max; i++) { child.info({ hello: 'world' }) } setImmediate(cb) }, function benchPinoCreationWithOption (cb) { const child = plogDest.child({ a: 'property' }, { redact: [] }) for (var i = 0; i < max; i++) { child.info({ hello: 'world' }) } setImmediate(cb) } ], 10000) run(run) ```
Monique de Bissy (married Schimmelpenninck; 13 March 1923 – 17 November 2009) was a French-Belgian resistance member during World War II. She was born in Schaerbeek, Belgium and died in Montpellier, France. Belgian Resistance Monique de Bissy started the war as a nurse for the Belgian Red Cross and then she enrolled in the Resistance after the Belgian defeat in 1940 (aged 17). She worked for several resistance groups, such as the « Brigade Blanche », and the « Ailes Brisées ». She also worked on the Comet Line. She organized and participated in the escape to Spain of 20 Allies pilots after their aircraft had been shot by the German Army around the Belgian city of Liège. She was arrested in 1944 after denunciation and was taken to the jail of Maastricht in Netherlands where she was tortured. After four months of detention she was liberated by U.S. troops in August 1944. She never gave any information to the Nazis during her captivity and she managed to keep her resistance partners safe by her silence. Monique de Bissy enlisted as a nurse in the French army in September 1944. Post-war Activities After the war she continued to work as a nurse, first in Belgian Congo, then in Montpellier (south of France) after the independence of the Belgian colony. In 1946 Monique de Bissy married Gerrit Schimmelpenninck with whom she had three children: Gérard (1947), Sonia (1956) and Joëlle (1958). She has had six grandchildren: Stéphanie (1980), Louis (1981), Sophie (1983), Astrid (1987), Xavier (1990) and Olivier (1991). She died on 17 November 2009, six months after receiving the Légion d'Honneur from French Senator Jacqueline Gourault in the name of President Nicolas Sarkozy for her contribution to Peace and Freedom during World War II. Medals Numerous countries have expressed their gratitude through number of medals: Belgium: "Médaille de la Résistance" (Resistance Medal) and "Médaille commémorative de la guerre 1940-1945" (Commemorative Medal of World War II) with Belgian Lion, United Kingdom: King's Medal for Courage in the Cause of Freedom, USA: Medal of Freedom, France: Légion d'Honneur. Gallery See also Bissy (family) Schimmelpenninck (family) Belgian Resistance during World War II French resistance during World War II Red Cross References External links Website of Belgian Resistant group "Comète" with the full list of Allies pilots saved and Belgian resistants French Resistance members de Bissy Red Cross personnel Recipients of the Resistance Medal Recipients of the King's Medal for Courage in the Cause of Freedom Recipients of the Medal of Freedom Recipients of the Legion of Honour 1923 births 2009 deaths People from Schaerbeek
```clojure (ns css.styles (:require [garden.def :refer [defstylesheet defstyles]] [garden.units :refer [px percent]] [garden.selectors :refer [nth-child]])) (def title [:div.title {:font-size (px 40) :margin [[(px 40) 0 (px 40) (px 80)]]}]) (def confusion-matrix [:div.confusion-matrix {:display :inline-block :vertical-align :top} [:table.confusion-matrix {:border-spacing 0 :border-collapse :collapse} [:td.class-header {:text-align :center} [:&.top {:padding-bottom (px 40) :font-weight :bold}] [:&.left {:font-weight :bold :transform "rotate(-90deg)" :-webkit-transform "rotate(-90deg)" :-moz-transform "rotate(-90deg)" :-ms-transform "rotate(-90deg)" :-o-transform "rotate(-90deg)"}]] [:td.item-header {:text-align :center} [:&.left-row {:text-align :right :padding-right (px 25) :border-right [[:solid (px 1) :#222]]}] [:&.top-row {:padding-bottom (px 12) :border-bottom [[:solid (px 1) :#222]]}]] [:td.item-value {:padding (px 12) :text-align :center :cursor :pointer :color :#228} [:&:hover {:background-color :#e0e0e0}]]] [:td.bottom-row {:padding-left (px 10)} [:&.last {:padding-right (px 25) :border-right "solid 1px #222" :text-align :right}]] [:td.end-column {:padding-left (px 10)}]]) (def confusion-detail [:div.confusion-detail {:display :inline-block :margin [[(px 50) 0 0 (px 80)]]} [:td.detail {:padding [[0 (px 20) (px 20) 0]]}]]) (def dataset [:div.dataset {:margin-left (px 80)} [:div.batch-column {:margin-right (px 50) :display :inline-block} [:div.batch-name {:margin-bottom (px 10) :border-bottom :solid :font-weight :bold}]]]) (def mnist-styles [[:body {:font-family "Monospace" :font-size (px 14) :margin [[(px 60) (px 30)]]} [title] [:div.confusion {:margin-bottom (px 60)} [confusion-matrix] [confusion-detail]] [dataset]]]) (defstyles styles mnist-styles) ```
```java package org.lamport.tla.toolbox.tool.prover.ui.output.data; import java.util.HashMap; import java.util.Map; import org.eclipse.core.runtime.Assert; import org.lamport.tla.toolbox.tool.prover.ui.ProverUIActivator; import org.lamport.tla.toolbox.tool.prover.ui.output.TagBasedTLAPMOutputIncrementalParser; import tla2sany.st.Location; import util.UniqueString; /** * Abstract class for the data in a message of output * of the TLAPM. * * A message of output consists of field name-value * pairs. This class provides a common type to be extended * by all objects representing TLAPM messages. * * It also contains a static method * {@link TLAPMMessage#parseMessage(String, String)} for parsing * a single message output by the TLAPM. It returns the appropriate * subtype of this class that represents the message. * * @author Daniel Ricketts * */ public abstract class TLAPMMessage { public static final String TYPE_FIELD = "type"; public static final String LOC_FIELD = "loc"; public static final String STATUS_FIELD = "status"; /** * String that separates the field name from * its values, as in * * <field-name>:<field-value> */ public static final String FIELD_PAIR_SPLIT = ":"; /** * Type of message containing information * on the status of an obligation. */ public static final String OB_STATUS_TYPE = "obligation"; /** * Type of message containing information on the * status of a proof step. */ public static final String STEP_STATUS_TYPE = "proof-step"; /** * Type of message containing information on the status * of a theorem. */ public static final String THEOREM_STATUS_TYPE = "theorem"; /** * Type of message containing the number of obligations * in the region being proved or checked. */ public static final String OB_NUMBER_TYPE = "obligationsnumber"; /** * Type of message containing some sort of warning message. */ public static final String WARNING_TYPE = "warning"; /** * Type of message containing some sort of error message. */ public static final String ERROR_TYPE = "error"; /** * Returns a {@link TLAPMMessage} representing the information * contained in proverMessage. The String proverMessage * should be the String between the tags @!!BEGIN and @!!END. * It can include these tags. * * This returns null if no data can be parsed from * proverMessage. * * @param proverMessage * @return */ public static TLAPMMessage parseMessage(String proverMessage, String moduleName) { // ProverUIActivator.getDefault().logDebug("New message to be parsed : \n" + proverMessage); /* * The String proverMessage should be of the form * * @!!<field-name>:<field-value> * @!!<field-name>:<field-value> * . * . * . * * One of the field names should be "type". * * This method parses the type of the message, * then delegates the remaining parsing to the * subclass of TLAPM message that corresponds * to this type. It delegates this parsing * by passing a set of field-name,field-value * pairs to a static method of the subclass. */ /* * First, we get all field-name, field-value pairs. * * We split the string around all occurrences * of the delimiter @!!. Trim all strings * in between the delimiter and try to parse * field names and values. */ String[] fieldStrings = proverMessage.split(TagBasedTLAPMOutputIncrementalParser.DELIM); String type = null; Map fieldPairs = new HashMap(); for (int i = 0; i < fieldStrings.length; i++) { /* * The first element of the array may be the empty string. */ if (!(fieldStrings[i].trim().length() == 0)) { /* * The trimmed field string should be of the form * <field-name>:<field-value> * * Split the field string around the first * occurrence of ":". */ String[] nameValPair = fieldStrings[i].trim().split(FIELD_PAIR_SPLIT, 2); Assert.isTrue(nameValPair.length == 2, "Encountered a flawed field name-value string : " + fieldStrings[i] + "\n in message :" + proverMessage); String fieldName = nameValPair[0]; String fieldValue = nameValPair[1]; if (fieldName != null && fieldValue != null) { if (fieldName.equals(TYPE_FIELD)) { type = fieldValue; } else { /* * Put all name,value pairs that * are not the message type into the map. */ fieldPairs.put(fieldName, fieldValue); } } else { ProverUIActivator.getDefault() .logDebug("Null field name or value when parsing message. This is a bug. Message:"); ProverUIActivator.getDefault().logDebug(proverMessage); } } } if (type != null) { /* * Delegate the remaining parsing to the appropriate * subclass. */ if (type.equals(OB_STATUS_TYPE)) { ObligationStatusMessage message = ObligationStatusMessage.getObMessage(fieldPairs.entrySet(), moduleName); return message; } else if (type.equals(STEP_STATUS_TYPE) || type.equals(THEOREM_STATUS_TYPE)) { StepStatusMessage message = StepStatusMessage.getStepMessage(fieldPairs.entrySet(), moduleName); return message; } else if (type.equals(OB_NUMBER_TYPE)) { ObligationNumberMessage message = ObligationNumberMessage.getObNumMessage(fieldPairs.entrySet(), moduleName); return message; } else if (type.equals(WARNING_TYPE)) { WarningMessage message = WarningMessage.getWarningMessage(fieldPairs.entrySet(), moduleName); return message; } else if (type.equals(ERROR_TYPE)) { ErrorMessage message = ErrorMessage.getErrorMessage(fieldPairs.entrySet(), moduleName); return message; } else { ProverUIActivator.getDefault().logDebug("Unsuppported message type " + type); } } else { ProverUIActivator.getDefault().logDebug("Type field not found in TLAPM message. The message follows."); ProverUIActivator.getDefault().logDebug(proverMessage); } return null; /* * This first bad implementations of this method. */ // TLAPMMessage message = new TLAPMMessage(); // // /* // * We split the string around all occurrences // * of the delimiter @!!. Trim all strings // * in between the delimiter and try to parse // * field names and values. // */ // String[] fieldStrings = proverMessage.split(TagBasedTLAPMOutputIncrementalParser2.DELIM); // // // flag indicating if the type field has been found // // in the message // boolean typeFieldFound = false; // // String type = null; // // Map fieldPairs = new HashMap(); // // for (int i = 0; i < fieldStrings.length; i++) // { // /* // * The first element of the array may be the empty string. // */ // if (!fieldStrings[i].trim().isEmpty()) // { // /* // * The trimmed field string should be of the form // * <field-name>:<field-value> // * // * Split the field string around the first // * occurrence of ":". // */ // String[] nameValPair = fieldStrings[i].trim().split(FIELD_PAIR_SPLIT, 2); // Assert.isTrue(nameValPair.length == 2, "Encountered a flawed field name-value string : " // + fieldStrings[i]); // // String fieldName = nameValPair[0]; // String fieldValue = nameValPair[1]; // if (fieldName != null && fieldValue != null) // { // fieldPairs.put(fieldName, fieldValue); // if (fieldName.equals(TYPE_FIELD)) // { // typeFieldFound = true; // message.type = fieldValue; // type = fieldValue; // } else if (fieldName.equals(LOC_FIELD)) // { // try // { // /* // * Attempt to parse bl, bc, el, ec from // * the field value. // * // * fieldValue should be of the form: // * // * "bl:bc:el:ec" // * // */ // String[] coordinates = fieldValue.split(":"); // Assert.isTrue(coordinates.length >= 4, "Not enough coordinates found in location string " // + fieldName); // message.location = new Location(UniqueString.uniqueStringOf(moduleName), Integer // .parseInt(coordinates[0]), Integer.parseInt(coordinates[1]), Integer // .parseInt(coordinates[2]), Integer.parseInt(coordinates[3])); // } catch (NumberFormatException e) // { // ProverUIActivator.getDefault().logError("Error parsing location from TLAPM message. Location string : " // + fieldValue, e); // } // } else if (fieldName.equals(OBL_FIELD)) // { // message.obligation = fieldValue; // } else if (fieldName.equals(STATUS_FIELD)) // { // message.status = fieldValue; // } else // { // ProverUIActivator.getDefault().logDebug("Unknown field name : " + fieldName + "."); // } // } else // { // ProverUIActivator // .logDebug("Null field name or value when parsing message. This is a bug. Message:"); // ProverUIActivator.getDefault().logDebug(proverMessage); // } // } // } // // if (typeFieldFound) // { // ProverUIActivator.getDefault().logDebug("New message parsed : "); // ProverUIActivator.getDefault().logDebug(message.toString()); // return message; // } else // { // ProverUIActivator.getDefault().logDebug("Type field not found in TLAPM message. The message follows."); // ProverUIActivator.getDefault().logDebug(proverMessage); // } // // return null; // // flag indicating if the type field has been found // // in the message // boolean typeFieldFound = false; // // while (matcher.find()) // { // String fieldName = matcher.group(1); // String fieldValue = matcher.group(2); // if (fieldName != null && fieldValue != null) // { // if (fieldName.equals(TYPE_FIELD)) // { // typeFieldFound = true; // message.type = fieldValue; // } else if (fieldName.equals(LOC_FIELD)) // { // try // { // /* // * Attempt to parse bl, bc, el, ec from // * the field value. // * // * fieldValue should be of the form: // * // * "bl:bc:el:ec" // * // */ // String[] coordinates = fieldValue.split(":"); // Assert.isTrue(coordinates.length >= 4, "Not enough coordinates found in location string " // + fieldName); // message.location = new Location(UniqueString.uniqueStringOf(moduleName), Integer // .parseInt(coordinates[0]), Integer.parseInt(coordinates[1]), Integer // .parseInt(coordinates[2]), Integer.parseInt(coordinates[3])); // } catch (NumberFormatException e) // { // ProverUIActivator.getDefault().logError("Error parsing location from TLAPM message. Location string : " // + fieldValue, e); // } // } else if (fieldName.equals(OBL_FIELD)) // { // message.obligation = fieldValue; // } else if (fieldName.equals(STATUS_FIELD)) // { // message.status = fieldValue; // } else // { // ProverUIActivator.getDefault().logDebug("Unknown field name : " + fieldName + "."); // } // } else // { // ProverUIActivator.getDefault().logDebug("Null field name or value when parsing message. This is a bug. Message:"); // ProverUIActivator.getDefault().logDebug(proverMessage); // } // // matcher.region(matcher.end() - TagBasedTLAPMOutputIncrementalParser2.DELIM.length(), matcher.regionEnd()); // } // // if (typeFieldFound) // { // ProverUIActivator.getDefault().logDebug("New message parsed : "); // ProverUIActivator.getDefault().logDebug(message.toString()); // return message; // } else // { // ProverUIActivator.getDefault().logDebug("Type field not found in TLAPM message. The message follows."); // ProverUIActivator.getDefault().logDebug(proverMessage); // } // // return null; } /** * Parses the location string returned by the prover * into an instance of {@link Location}. Null * if parsing is unsuccessful. * * @param locString * @return */ protected static Location parseLocation(String locString, String moduleName) { try { /* * Attempt to parse bl, bc, el, ec from * the locString. * * locString should be of the form: * * "bl:bc:el:ec" * * For tlapm messages, ec corresponds to the * column after the last character in the location. * For example, if the location described the string * "ab", then bc would be n and ec would be n+2. * * This is not consistent with SANY Locations, in which * the end column corresponds to the column before the last * character in the location. In the previous example, bc * would be n and ec would be n+1. We want the Locations to be * consistent in the Toolbox, so we subtract 1 from the ec * reported by the tlapm. */ String[] coordinates = locString.split(":"); Assert.isTrue(coordinates.length >= 4, "Not enough coordinates found in location string : " + locString); return new Location(UniqueString.uniqueStringOf(moduleName), Integer.parseInt(coordinates[0]), Integer .parseInt(coordinates[1]), Integer.parseInt(coordinates[2]), Integer.parseInt(coordinates[3]) - 1); } catch (NumberFormatException e) { ProverUIActivator.getDefault().logError("Error parsing location from TLAPM message. Location string : " + locString, e); } return null; } } ```
Oberhausen is a municipality in the Weilheim-Schongau district, in Bavaria, Germany. References Weilheim-Schongau
Joseph Charles Gustave Brault (1886–1954) was a Canadian architect who served as Chief Dominion Architect from 1947 to 1952. As chief government architect he was responsible for many of the federal buildings constructed in this period. Drawings for public buildings such as Post Office Buildings and Dominion Public Buildings designed by Brault and his staff during his tenure as Chief Architect of the Department of Public Works are now held at the National Archives of Canada. Joseph Charles Gustave Brault was born in Montreal, Quebec on 15 March 1886. He attended Mont-St-Louis College in 1901–06. He articled in Montreal, Quebec with Edward & W.S. Maxwell in 1907–08. He articled with Ross & MacFarlane in 1910–11. He also trained in offices of Marchand & Haskell and Kenneth Rea as a summer student. He attended courses in architecture at Cornell University in 1911–12. He worked as a draftsman in Montreal, Quebec for Ross and MacFarlane and for Barott, Blackader & Webster. He joined the Department of Public Works as a staff architect from 1913–1947 in Ottawa, Ontario. He was appointed Chief Architect of the Department of Public Works from 1947 until he retired in 1952. He died on 7 May 1954 in Montreal. Works During the period of rapid growth following World War II his work included planning for new structures and major additions to Post Offices known as Dominion Public Buildings, Customs & Immigration facilities at new border crossings, and military hospitals. He designed Customs & Immigration Buildings in Edmundston, New Brunswick (1947); Phillipsburg, Quebec (1947); Saint John, New Brunswick (1948); Armstrong, Quebec (1948); Lacollege, Quebec (1948) and Coutts, Alberta (1950). He designed a Forward Mail Building in Edmonton, Alberta in 1948. References External links Joseph Charles Gustave Brault, Dominion Architect, 1936-1947 1886 births 1954 deaths Architects from Montreal Canadian architects Cornell University College of Architecture, Art, and Planning alumni Chief Dominion Architects, Canada
The Last Wolf is a 2002 children's book written by Michael Morpurgo and illustrated by Michael Foreman. It won the Nestlé Smarties Book Prize Bronze Award. Plot Miya helps her grandfather, Michael McLeod, become interested in computers. Michael comes up with the idea to trace their ancestors back to the 18th century; while working to do that, they discover a story written by their great-great-great-great-great grandfather. In the story, their great-great-great-great-great grandfather, Robbie McLeod, talks about his childhood. After being orphaned, his cruel uncle had looked after him; to escape the abuse, Robbie ran away into the woods. He found a male wolf pup who, similarly, had also been orphaned, and looked after him, naming it Charlie. A few days later, Robbie and Charlie made their way to America in hopes of a better life, but they were disillusioned; in America, there had been a war between the redcoats and the rebels. They encountered life-threatening situations. As the years passed, Charlie's temperament naturally became wilder and more animalistic. Robbie noticed the change in Charlie and, reluctantly, let him go. He built a farm next to a lake where he occasionally saw Charlie. A couple years later, Robbie got married and had a son named Alan. The last time Robbie saw Charlie, Charlie had also started a family of his own. After reading the story, Miya and her grandfather decide to travel to America to see where Robbie and Charlie lived. References 2002 British novels British children's novels Children's historical novels Novels about wolves Novels set in Scotland Novels set in the United States Novels by Michael Morpurgo Doubleday (publisher) books
```html <script> initFunction(function () { anchors.add("main h1, main h2, main h3, main h4") }); </script> ```
Ontario Township may refer to: Ontario Township, Knox County, Illinois Ontario Township, Ramsey County, North Dakota, in Ramsey County, North Dakota Ontario Township, Hand County, South Dakota, in Hand County, South Dakota See also List of townships in Ontario Township name disambiguation pages