Image copyright Getty Images Image caption Willie Rennie met his four MPs

Scottish Lib Dem leader Willie Rennie has met the party's new MPs to rally them before they head to Westminster next week.

The party lost its UK leader, Jo Swinson, when the SNP won the seat she was defending in East Dunbartonshire.

However, they gained another seat, North East Fife, from the SNP so their total number of MPs north of the border remained at four.

Mr Rennie said the loss of leader was a "harsh" blow.

'Jo Swinson paid a hard price'

Ms Swinson was forced to step down as UK Liberal Democrat leader after losing her seat to the SNP's Amy Callaghan by 149 votes.

A new leader will be appointed in the new year after a leadership contest.

Image copyright Getty Images Image caption Jo Swinson lost her seat

Mr Rennie, who is in charge in Scotland, said: "Politics can be harsh and the loss of our leader, Jo Swinson, by 150 votes is especially so.

"I have already spoken about her principled stance, putting country before party and giving the voters the opportunity to stop Brexit.

"It did not work and Jo has paid a hard price for that."

But he said Wendy Chamberlain, who beat the SNP's Stephen Gethins in the UK's most marginal constituency, North East Fife, was a "bright new star".

He added that she was "was the only win from the SNP across Scotland from any party".

The Lib Dems' other MPs are Christine Jardine (Edinburgh West), Alistair Carmichael (Orkney and Shetland) and Jamie Stone (Caithness, Sutherland and Easter Ross).

Mr Rennie also reiterated his party's opposition to Brexit and to a second independence referendum.

What was the election result in Scotland?
  • The SNP won 48 of 59 seats, including the one being defended by Lib Dem leader Jo Swinson.
  • The Conservatives won an overall majority across the UK, but in Scotland they only won six seats.
  • The Scottish Liberal Democrats remained on four seats - one was North East Fife, which was the SNP's only loss.
  • Ian Murray is now Scottish Labour's only MP, after the party lost the other six seats it was defending.

For a nationwide breakdown of results, see our results page, which will be updated throughout the night.

!function(){if(void 0===window.DataPres){var a="addEventListener"in window&&"querySelector"in document&&"localStorage"in window,b=window.navigator.userAgent.indexOf("Opera Mini/")>-1&&window.navigator.userAgent.indexOf("Presto/")>-1;window.DataPres={enhanced:a&&!b}}}(),window.DataPres&&!window.DataPres.setData&&(window.DataPres._internal={data:{}},window.DataPres.setData=function(a,b){return window.DataPres._internal.data[a]=b,b},window.DataPres.getData=function(a){return window.DataPres._internal.data[a]});(function(){var lookup_data = { "W07000049": {"name": "Aberavon"},"W07000058": {"name": "Aberconwy"},"S14000001": {"name": "Aberdeen North"},"S14000002": {"name": "Aberdeen South"},"S14000058": {"name": "Aberdeenshire West & Kincardine"},"S14000003": {"name": "Airdrie & Shotts"},"E14000530": {"name": "Aldershot"},"E14000531": {"name": "Aldridge-Brownhills"},"E14000532": {"name": "Altrincham & Sale West"},"W07000043": {"name": "Alyn & Deeside"},"E14000533": {"name": "Amber Valley"},"S14000004": {"name": "Angus"},"W07000057": {"name": "Arfon"},"S14000005": {"name": "Argyll & Bute"},"E14000534": {"name": "Arundel & South Downs"},"E14000535": {"name": "Ashfield"},"E14000536": {"name": "Ashford"},"E14000537": {"name": "Ashton-under-Lyne"},"E14000538": {"name": "Aylesbury"},"S14000006": {"name": "Ayr, Carrick & Cumnock"},"S14000010": {"name": "Ayrshire Central"},"S14000048": {"name": "Ayrshire North & Arran"},"E14000539": {"name": "Banbury"},"S14000007": {"name": "Banff & Buchan"},"E14000540": {"name": "Barking"},"E14000541": {"name": "Barnsley Central"},"E14000542": {"name": "Barnsley East"},"E14000543": {"name": "Barrow & Furness"},"E14000544": {"name": "Basildon & Billericay"},"E14000933": {"name": "Basildon South & Thurrock East"},"E14000545": {"name": "Basingstoke"},"E14000546": {"name": "Bassetlaw"},"E14000547": {"name": "Bath"},"E14000548": {"name": "Batley & Spen"},"E14000549": {"name": "Battersea"},"E14000550": {"name": "Beaconsfield"},"E14000551": {"name": "Beckenham"},"E14000552": {"name": "Bedford"},"E14000813": {"name": "Bedfordshire Mid"},"E14000841": {"name": "Bedfordshire North East"},"E14000949": {"name": "Bedfordshire South West"},"N06000001": {"name": "Belfast East"},"N06000002": {"name": "Belfast North"},"N06000003": {"name": "Belfast South"},"N06000004": {"name": "Belfast West"},"E14000553": {"name": "Bermondsey & Old Southwark"},"E14000554": {"name": "Berwick-Upon-Tweed"},"S14000008": {"name": "Berwickshire, Roxburgh & Selkirk"},"E14000555": {"name": "Bethnal Green & Bow"},"E14000556": {"name": "Beverley & Holderness"},"E14000557": {"name": "Bexhill & Battle"},"E14000558": {"name": "Bexleyheath & Crayford"},"E14000559": {"name": "Birkenhead"},"E14000560": {"name": "Birmingham Edgbaston"},"E14000561": {"name": "Birmingham Erdington"},"E14000562": {"name": "Birmingham Hall Green"},"E14000563": {"name": "Birmingham Hodge Hill"},"E14000564": {"name": "Birmingham Ladywood"},"E14000565": {"name": "Birmingham Northfield"},"E14000566": {"name": "Birmingham Perry Barr"},"E14000567": {"name": "Birmingham Selly Oak"},"E14000568": {"name": "Birmingham Yardley"},"E14000569": {"name": "Bishop Auckland"},"E14000570": {"name": "Blackburn"},"E14000571": {"name": "Blackley & Broughton"},"E14000572": {"name": "Blackpool North & Cleveleys"},"E14000573": {"name": "Blackpool South"},"W07000072": {"name": "Blaenau Gwent"},"E14000574": {"name": "Blaydon"},"E14000575": {"name": "Blyth Valley"},"E14000576": {"name": "Bognor Regis & Littlehampton"},"E14000577": {"name": "Bolsover"},"E14000578": {"name": "Bolton North East"},"E14000579": {"name": "Bolton South East"},"E14000580": {"name": "Bolton West"},"E14000581": {"name": "Bootle"},"E14000582": {"name": "Boston & Skegness"},"E14000583": {"name": "Bosworth"},"E14000584": {"name": "Bournemouth East"},"E14000585": {"name": "Bournemouth West"},"E14000586": {"name": "Bracknell"},"E14000587": {"name": "Bradford East"},"E14000588": {"name": "Bradford South"},"E14000589": {"name": "Bradford West"},"E14000590": {"name": "Braintree"},"W07000068": {"name": "Brecon & Radnorshire"},"E14000591": {"name": "Brent Central"},"E14000592": {"name": "Brent North"},"E14000593": {"name": "Brentford & Isleworth"},"E14000594": {"name": "Brentwood & Ongar"},"W07000073": {"name": "Bridgend"},"E14000595": {"name": "Bridgwater & West Somerset"},"E14000596": {"name": "Brigg & Goole"},"E14000597": {"name": "Brighton Kemptown"},"E14000598": {"name": "Brighton Pavilion"},"E14000599": {"name": "Bristol East"},"E14000600": {"name": "Bristol North West"},"E14000601": {"name": "Bristol South"},"E14000602": {"name": "Bristol West"},"E14000603": {"name": "Broadland"},"E14000604": {"name": "Bromley & Chislehurst"},"E14000605": {"name": "Bromsgrove"},"E14000606": {"name": "Broxbourne"},"E14000607": {"name": "Broxtowe"},"E14000608": {"name": "Buckingham"},"E14000609": {"name": "Burnley"},"E14000610": {"name": "Burton"},"E14000611": {"name": "Bury North"},"E14000612": {"name": "Bury South"},"E14000613": {"name": "Bury St Edmunds"},"W07000076": {"name": "Caerphilly"},"S14000009": {"name": "Caithness, Sutherland & Easter Ross"},"E14000614": {"name": "Calder Valley"},"E14000615": {"name": "Camberwell & Peckham"},"E14000616": {"name": "Camborne & Redruth"},"E14000617": {"name": "Cambridge"},"E14000842": {"name": "Cambridgeshire North East"},"E14000855": {"name": "Cambridgeshire North West"},"E14000934": {"name": "Cambridgeshire South"},"E14000937": {"name": "Cambridgeshire South East"},"E14000618": {"name": "Cannock Chase"},"E14000619": {"name": "Canterbury"},"W07000050": {"name": "Cardiff Central"},"W07000051": {"name": "Cardiff North"},"W07000080": {"name": "Cardiff South & Penarth"},"W07000079": {"name": "Cardiff West"},"E14000620": {"name": "Carlisle"},"W07000067": {"name": "Carmarthen East & Dinefwr"},"W07000066": {"name": "Carmarthen West & Pembrokeshire South"},"E14000621": {"name": "Carshalton & Wallington"},"E14000622": {"name": "Castle Point"},"W07000064": {"name": "Ceredigion"},"E14000625": {"name": "Charnwood"},"E14000626": {"name": "Chatham & Aylesford"},"E14000627": {"name": "Cheadle"},"E14000628": {"name": "Chelmsford"},"E14000629": {"name": "Chelsea & Fulham"},"E14000630": {"name": "Cheltenham"},"E14000631": {"name": "Chesham & Amersham"},"E14000640": {"name": "Chester, City of"},"E14000632": {"name": "Chesterfield"},"E14000633": {"name": "Chichester"},"E14000634": {"name": "Chingford & Woodford Green"},"E14000635": {"name": "Chippenham"},"E14000636": {"name": "Chipping Barnet"},"E14000637": {"name": "Chorley"},"E14000638": {"name": "Christchurch"},"E14000639": {"name": "Cities Of London & Westminster"},"E14000642": {"name": "Clacton"},"E14000643": {"name": "Cleethorpes"},"W07000062": {"name": "Clwyd South"},"W07000059": {"name": "Clwyd West"},"S14000011": {"name": "Coatbridge, Chryston & Bellshill"},"E14000644": {"name": "Colchester"},"E14000645": {"name": "Colne Valley"},"E14000646": {"name": "Congleton"},"E14000647": {"name": "Copeland"},"E14000648": {"name": "Corby"},"E14000837": {"name": "Cornwall North"},"E14000938": {"name": "Cornwall South East"},"E14000991": {"name": "Cotswolds, The"},"E14000649": {"name": "Coventry North East"},"E14000650": {"name": "Coventry North West"},"E14000651": {"name": "Coventry South"},"E14000652": {"name": "Crawley"},"E14000653": {"name": "Crewe & Nantwich"},"E14000654": {"name": "Croydon Central"},"E14000655": {"name": "Croydon North"},"E14000656": {"name": "Croydon South"},"S14000012": {"name": "Cumbernauld, Kilsyth & Kirkintilloch East"},"W07000070": {"name": "Cynon Valley"},"E14000657": {"name": "Dagenham & Rainham"},"E14000658": {"name": "Darlington"},"E14000659": {"name": "Dartford"},"E14000660": {"name": "Daventry"},"W07000042": {"name": "Delyn"},"E14000661": {"name": "Denton & Reddish"},"E14000662": {"name": "Derby North"},"E14000663": {"name": "Derby South"},"E14000664": {"name": "Derbyshire Dales"},"E14000814": {"name": "Derbyshire Mid"},"E14000843": {"name": "Derbyshire North East"},"E14000935": {"name": "Derbyshire South"},"E14000665": {"name": "Devizes"},"E14000623": {"name": "Devon Central"},"E14000678": {"name": "Devon East"},"E14000838": {"name": "Devon North"},"E14000950": {"name": "Devon South West"},"E14001000": {"name": "Devon West & Torridge"},"E14000666": {"name": "Dewsbury"},"E14000667": {"name": "Don Valley"},"E14000668": {"name": "Doncaster Central"},"E14000669": {"name": "Doncaster North"},"E14000815": {"name": "Dorset Mid & Poole North"},"E14000839": {"name": "Dorset North"},"E14000936": {"name": "Dorset South"},"E14001031": {"name": "Dorset West"},"E14000670": {"name": "Dover"},"E14000671": {"name": "Dudley North"},"E14000672": {"name": "Dudley South"},"E14000673": {"name": "Dulwich & West Norwood"},"S14000013": {"name": "Dumfries & Galloway"},"S14000014": {"name": "Dumfriesshire, Clydesdale & Tweeddale"},"S14000018": {"name": "Dunbartonshire East"},"S14000059": {"name": "Dunbartonshire West"},"S14000015": {"name": "Dundee East"},"S14000016": {"name": "Dundee West"},"S14000017": {"name": "Dunfermline & West Fife"},"E14000840": {"name": "Durham North"},"E14000856": {"name": "Durham North West"},"E14000641": {"name": "Durham, City of"},"W07000061": {"name": "Dwyfor Meirionnydd"},"E14000674": {"name": "Ealing Central & Acton"},"E14000675": {"name": "Ealing North"},"E14000676": {"name": "Ealing Southall"},"E14000677": {"name": "Easington"},"N06000005": {"name": "East Antrim"},"E14000679": {"name": "East Ham"},"S14000019": {"name": "East Kilbride, Strathaven & Lesmahagow"},"N06000006": {"name": "East Londonderry"},"S14000020": {"name": "East Lothian"},"E14000684": {"name": "Eastbourne"},"E14000685": {"name": "Eastleigh"},"E14000686": {"name": "Eddisbury"},"S14000022": {"name": "Edinburgh East"},"S14000023": {"name": "Edinburgh North & Leith"},"S14000024": {"name": "Edinburgh South"},"S14000025": {"name": "Edinburgh South West"},"S14000026": {"name": "Edinburgh West"},"E14000687": {"name": "Edmonton"},"E14000688": {"name": "Ellesmere Port & Neston"},"E14000689": {"name": "Elmet & Rothwell"},"E14000690": {"name": "Eltham"},"E14000691": {"name": "Enfield North"},"E14000692": {"name": "Enfield Southgate"},"E14000693": {"name": "Epping Forest"},"E14000694": {"name": "Epsom & Ewell"},"E14000695": {"name": "Erewash"},"E14000696": {"name": "Erith & Thamesmead"},"E14000697": {"name": "Esher & Walton"},"E14000698": {"name": "Exeter"},"S14000028": {"name": "Falkirk"},"E14000699": {"name": "Fareham"},"E14000700": {"name": "Faversham & Mid Kent"},"E14000701": {"name": "Feltham & Heston"},"N06000007": {"name": "Fermanagh & South Tyrone"},"S14000049": {"name": "Fife North East"},"E14000702": {"name": "Filton & Bradley Stoke"},"E14000703": {"name": "Finchley & Golders Green"},"E14000704": {"name": "Folkestone & Hythe"},"E14000705": {"name": "Forest Of Dean"},"N06000008": {"name": "Foyle"},"E14000706": {"name": "Fylde"},"E14000707": {"name": "Gainsborough"},"E14000708": {"name": "Garston & Halewood"},"E14000709": {"name": "Gateshead"},"E14000710": {"name": "Gedling"},"E14000711": {"name": "Gillingham & Rainham"},"S14000029": {"name": "Glasgow Central"},"S14000030": {"name": "Glasgow East"},"S14000031": {"name": "Glasgow North"},"S14000032": {"name": "Glasgow North East"},"S14000033": {"name": "Glasgow North West"},"S14000034": {"name": "Glasgow South"},"S14000035": {"name": "Glasgow South West"},"S14000036": {"name": "Glenrothes"},"E14000712": {"name": "Gloucester"},"S14000037": {"name": "Gordon"},"E14000713": {"name": "Gosport"},"W07000046": {"name": "Gower"},"E14000714": {"name": "Grantham & Stamford"},"E14000715": {"name": "Gravesham"},"E14000716": {"name": "Great Grimsby"},"E14000717": {"name": "Great Yarmouth"},"E14000718": {"name": "Greenwich & Woolwich"},"E14000719": {"name": "Guildford"},"E14000720": {"name": "Hackney North & Stoke Newington"},"E14000721": {"name": "Hackney South & Shoreditch"},"E14000722": {"name": "Halesowen & Rowley Regis"},"E14000723": {"name": "Halifax"},"E14000724": {"name": "Haltemprice & Howden"},"E14000725": {"name": "Halton"},"E14000726": {"name": "Hammersmith"},"E14000680": {"name": "Hampshire East"},"E14000844": {"name": "Hampshire North East"},"E14000857": {"name": "Hampshire North West"},"E14000727": {"name": "Hampstead & Kilburn"},"E14000728": {"name": "Harborough"},"E14000729": {"name": "Harlow"},"E14000730": {"name": "Harrogate & Knaresborough"},"E14000731": {"name": "Harrow East"},"E14000732": {"name": "Harrow West"},"E14000733": {"name": "Hartlepool"},"E14000734": {"name": "Harwich & Essex North"},"E14000735": {"name": "Hastings & Rye"},"E14000736": {"name": "Havant"},"E14000737": {"name": "Hayes & Harlington"},"E14000738": {"name": "Hazel Grove"},"E14000739": {"name": "Hemel Hempstead"},"E14000740": {"name": "Hemsworth"},"E14000741": {"name": "Hendon"},"E14000742": {"name": "Henley"},"E14000743": {"name": "Hereford & Herefordshire South"},"E14000847": {"name": "Herefordshire North"},"E14000744": {"name": "Hertford & Stortford"},"E14000845": {"name": "Hertfordshire North East"},"E14000951": {"name": "Hertfordshire South West"},"E14000745": {"name": "Hertsmere"},"E14000746": {"name": "Hexham"},"E14000747": {"name": "Heywood & Middleton"},"E14000748": {"name": "High Peak"},"E14000749": {"name": "Hitchin & Harpenden"},"E14000750": {"name": "Holborn & St Pancras"},"E14000751": {"name": "Hornchurch & Upminster"},"E14000752": {"name": "Hornsey & Wood Green"},"E14000753": {"name": "Horsham"},"E14000754": {"name": "Houghton & Sunderland South"},"E14000755": {"name": "Hove"},"E14000756": {"name": "Huddersfield"},"E14000771": {"name": "Hull East"},"E14000772": {"name": "Hull North"},"E14000773": {"name": "Hull West & Hessle"},"E14000757": {"name": "Huntingdon"},"E14000758": {"name": "Hyndburn"},"E14000759": {"name": "Ilford North"},"E14000760": {"name": "Ilford South"},"S14000038": {"name": "Inverclyde"},"S14000039": {"name": "Inverness, Nairn, Badenoch & Strathspey"},"E14000761": {"name": "Ipswich"},"E14000762": {"name": "Isle Of Wight"},"E14000763": {"name": "Islington North"},"E14000764": {"name": "Islington South & Finsbury"},"W07000077": {"name": "Islwyn"},"E14000765": {"name": "Jarrow"},"E14000766": {"name": "Keighley"},"E14000767": {"name": "Kenilworth & Southam"},"E14000768": {"name": "Kensington"},"E14000769": {"name": "Kettering"},"S14000040": {"name": "Kilmarnock & Loudoun"},"E14000770": {"name": "Kingston & Surbiton"},"E14000774": {"name": "Kingswood"},"S14000041": {"name": "Kirkcaldy & Cowdenbeath"},"E14000775": {"name": "Knowsley"},"N06000009": {"name": "Lagan Valley"},"S14000042": {"name": "Lanark & Hamilton East"},"E14001033": {"name": "Lancashire West"},"E14000776": {"name": "Lancaster & Fleetwood"},"E14000777": {"name": "Leeds Central"},"E14000778": {"name": "Leeds East"},"E14000779": {"name": "Leeds North East"},"E14000780": {"name": "Leeds North West"},"E14000781": {"name": "Leeds West"},"E14000782": {"name": "Leicester East"},"E14000783": {"name": "Leicester South"},"E14000784": {"name": "Leicester West"},"E14000858": {"name": "Leicestershire North West"},"E14000940": {"name": "Leicestershire South"},"E14000785": {"name": "Leigh"},"E14000786": {"name": "Lewes"},"E14000789": {"name": "Lewisham Deptford"},"E14000787": {"name": "Lewisham East"},"E14000788": {"name": "Lewisham West & Penge"},"E14000790": {"name": "Leyton & Wanstead"},"E14000791": {"name": "Lichfield"},"E14000792": {"name": "Lincoln"},"S14000043": {"name": "Linlithgow & Falkirk East"},"E14000793": {"name": "Liverpool Riverside"},"E14000794": {"name": "Liverpool Walton"},"E14000795": {"name": "Liverpool Wavertree"},"E14000796": {"name": "Liverpool West Derby"},"S14000044": {"name": "Livingston"},"W07000045": {"name": "Llanelli"},"E14000797": {"name": "Loughborough"},"E14000798": {"name": "Louth & Horncastle"},"E14000799": {"name": "Ludlow"},"E14000800": {"name": "Luton North"},"E14000801": {"name": "Luton South"},"E14000802": {"name": "Macclesfield"},"E14000803": {"name": "Maidenhead"},"E14000804": {"name": "Maidstone & The Weald"},"E14000805": {"name": "Makerfield"},"E14000806": {"name": "Maldon"},"E14000807": {"name": "Manchester Central"},"E14000808": {"name": "Manchester Gorton"},"E14000809": {"name": "Manchester Withington"},"E14000810": {"name": "Mansfield"},"E14000811": {"name": "Meon Valley"},"E14000812": {"name": "Meriden"},"W07000071": {"name": "Merthyr Tydfil & Rhymney"},"N06000010": {"name": "Mid Ulster"},"E14000819": {"name": "Middlesbrough"},"E14000820": {"name": "Middlesbrough South & Cleveland East"},"S14000045": {"name": "Midlothian"},"E14000821": {"name": "Milton Keynes North"},"E14000822": {"name": "Milton Keynes South"},"E14000823": {"name": "Mitcham & Morden"},"E14000824": {"name": "Mole Valley"},"W07000054": {"name": "Monmouth"},"W07000063": {"name": "Montgomeryshire"},"S14000046": {"name": "Moray"},"E14000825": {"name": "Morecambe & Lunesdale"},"E14000826": {"name": "Morley & Outwood"},"S14000047": {"name": "Motherwell & Wishaw"},"S14000027": {"name": "Na H-Eileanan An Iar [Western Isles]"},"W07000069": {"name": "Neath"},"E14000827": {"name": "New Forest East"},"E14000828": {"name": "New Forest West"},"E14000829": {"name": "Newark"},"E14000830": {"name": "Newbury"},"E14000831": {"name": "Newcastle Upon Tyne Central"},"E14000832": {"name": "Newcastle Upon Tyne East"},"E14000833": {"name": "Newcastle Upon Tyne North"},"E14000834": {"name": "Newcastle-under-Lyme"},"W07000055": {"name": "Newport East"},"W07000056": {"name": "Newport West"},"N06000011": {"name": "Newry & Armagh"},"E14000835": {"name": "Newton Abbot"},"E14000816": {"name": "Norfolk Mid"},"E14000848": {"name": "Norfolk North"},"E14000859": {"name": "Norfolk North West"},"E14000941": {"name": "Norfolk South"},"E14000952": {"name": "Norfolk South West"},"E14000836": {"name": "Normanton, Pontefract & Castleford"},"N06000012": {"name": "North Antrim"},"N06000013": {"name": "North Down"},"E14000861": {"name": "Northampton North"},"E14000862": {"name": "Northampton South"},"E14000942": {"name": "Northamptonshire South"},"E14000863": {"name": "Norwich North"},"E14000864": {"name": "Norwich South"},"E14000865": {"name": "Nottingham East"},"E14000866": {"name": "Nottingham North"},"E14000867": {"name": "Nottingham South"},"E14000868": {"name": "Nuneaton"},"S14000050": {"name": "Ochil & South Perthshire"},"W07000074": {"name": "Ogmore"},"E14000869": {"name": "Old Bexley & Sidcup"},"E14000870": {"name": "Oldham East & Saddleworth"},"E14000871": {"name": "Oldham West & Royton"},"S14000051": {"name": "Orkney & Shetland"},"E14000872": {"name": "Orpington"},"E14000873": {"name": "Oxford East"},"E14000874": {"name": "Oxford West & Abingdon"},"S14000052": {"name": "Paisley & Renfrewshire North"},"S14000053": {"name": "Paisley & Renfrewshire South"},"E14000875": {"name": "Pendle"},"E14000876": {"name": "Penistone & Stocksbridge"},"E14000877": {"name": "Penrith & The Border"},"S14000054": {"name": "Perth & Perthshire North"},"E14000878": {"name": "Peterborough"},"E14000879": {"name": "Plymouth Moor View"},"E14000880": {"name": "Plymouth Sutton & Devonport"},"W07000075": {"name": "Pontypridd"},"E14000881": {"name": "Poole"},"E14000882": {"name": "Poplar & Limehouse"},"E14000883": {"name": "Portsmouth North"},"E14000884": {"name": "Portsmouth South"},"W07000065": {"name": "Preseli Pembrokeshire"},"E14000885": {"name": "Preston"},"E14000886": {"name": "Pudsey"},"E14000887": {"name": "Putney"},"E14000888": {"name": "Rayleigh & Wickford"},"E14000889": {"name": "Reading East"},"E14000890": {"name": "Reading West"},"E14000891": {"name": "Redcar"},"E14000892": {"name": "Redditch"},"E14000893": {"name": "Reigate"},"S14000021": {"name": "Renfrewshire East"},"W07000052": {"name": "Rhondda"},"E14000894": {"name": "Ribble Valley"},"E14000895": {"name": "Richmond [Yorks]"},"E14000896": {"name": "Richmond Park"},"E14000897": {"name": "Rochdale"},"E14000898": {"name": "Rochester & Strood"},"E14000899": {"name": "Rochford & Southend East"},"E14000900": {"name": "Romford"},"E14000901": {"name": "Romsey & Southampton North"},"S14000055": {"name": "Ross, Skye & Lochaber"},"E14000902": {"name": "Rossendale & Darwen"},"E14000903": {"name": "Rother Valley"},"E14000904": {"name": "Rotherham"},"E14000905": {"name": "Rugby"},"E14000906": {"name": "Ruislip, Northwood & Pinner"},"E14000907": {"name": "Runnymede & Weybridge"},"E14000908": {"name": "Rushcliffe"},"S14000056": {"name": "Rutherglen & Hamilton West"},"E14000909": {"name": "Rutland & Melton"},"E14000910": {"name": "Saffron Walden"},"E14000911": {"name": "Salford & Eccles"},"E14000912": {"name": "Salisbury"},"E14000913": {"name": "Scarborough & Whitby"},"E14000914": {"name": "Scunthorpe"},"E14000915": {"name": "Sedgefield"},"E14000916": {"name": "Sefton Central"},"E14000917": {"name": "Selby & Ainsty"},"E14000918": {"name": "Sevenoaks"},"E14000921": {"name": "Sheffield Brightside & Hillsborough"},"E14000919": {"name": "Sheffield Central"},"E14000922": {"name": "Sheffield Hallam"},"E14000923": {"name": "Sheffield Heeley"},"E14000920": {"name": "Sheffield South East"},"E14000924": {"name": "Sherwood"},"E14000925": {"name": "Shipley"},"E14000926": {"name": "Shrewsbury & Atcham"},"E14000849": {"name": "Shropshire North"},"E14000927": {"name": "Sittingbourne & Sheppey"},"E14000928": {"name": "Skipton & Ripon"},"E14000929": {"name": "Sleaford & North Hykeham"},"E14000930": {"name": "Slough"},"E14000931": {"name": "Solihull"},"E14000850": {"name": "Somerset North"},"E14000846": {"name": "Somerset North East"},"E14000932": {"name": "Somerton & Frome"},"N06000014": {"name": "South Antrim"},"N06000015": {"name": "South Down"},"E14000939": {"name": "South Holland & The Deepings"},"E14000943": {"name": "South Ribble"},"E14000944": {"name": "South Shields"},"E14000955": {"name": "Southampton Itchen"},"E14000956": {"name": "Southampton Test"},"E14000957": {"name": "Southend West"},"E14000958": {"name": "Southport"},"E14000959": {"name": "Spelthorne"},"E14000960": {"name": "St Albans"},"E14000961": {"name": "St Austell & Newquay"},"E14000962": {"name": "St Helens North"},"E14000963": {"name": "St Helens South & Whiston"},"E14000964": {"name": "St Ives"},"E14000965": {"name": "Stafford"},"E14000966": {"name": "Staffordshire Moorlands"},"E14000945": {"name": "Staffordshire South"},"E14000967": {"name": "Stalybridge & Hyde"},"E14000968": {"name": "Stevenage"},"S14000057": {"name": "Stirling"},"E14000969": {"name": "Stockport"},"E14000970": {"name": "Stockton North"},"E14000971": {"name": "Stockton South"},"E14000972": {"name": "Stoke-on-Trent Central"},"E14000973": {"name": "Stoke-on-Trent North"},"E14000974": {"name": "Stoke-on-Trent South"},"E14000975": {"name": "Stone"},"E14000976": {"name": "Stourbridge"},"N06000016": {"name": "Strangford"},"E14000977": {"name": "Stratford-on-Avon"},"E14000978": {"name": "Streatham"},"E14000979": {"name": "Stretford & Urmston"},"E14000980": {"name": "Stroud"},"E14000624": {"name": "Suffolk Central & Ipswich North"},"E14000981": {"name": "Suffolk Coastal"},"E14000946": {"name": "Suffolk South"},"E14001034": {"name": "Suffolk West"},"E14000982": {"name": "Sunderland Central"},"E14000681": {"name": "Surrey East"},"E14000983": {"name": "Surrey Heath"},"E14000953": {"name": "Surrey South West"},"E14000817": {"name": "Sussex Mid"},"E14000984": {"name": "Sutton & Cheam"},"E14000985": {"name": "Sutton Coldfield"},"W07000048": {"name": "Swansea East"},"W07000047": {"name": "Swansea West"},"E14000851": {"name": "Swindon North"},"E14000947": {"name": "Swindon South"},"E14000986": {"name": "Tamworth"},"E14000987": {"name": "Tatton"},"E14000988": {"name": "Taunton Deane"},"E14000989": {"name": "Telford"},"E14000990": {"name": "Tewkesbury"},"E14000852": {"name": "Thanet North"},"E14000948": {"name": "Thanet South"},"E14000993": {"name": "Thirsk & Malton"},"E14000994": {"name": "Thornbury & Yate"},"E14000995": {"name": "Thurrock"},"E14000996": {"name": "Tiverton & Honiton"},"E14000997": {"name": "Tonbridge & Malling"},"E14000998": {"name": "Tooting"},"E14000999": {"name": "Torbay"},"W07000053": {"name": "Torfaen"},"E14001001": {"name": "Totnes"},"E14001002": {"name": "Tottenham"},"E14001003": {"name": "Truro & Falmouth"},"E14001004": {"name": "Tunbridge Wells"},"E14001005": {"name": "Twickenham"},"E14001006": {"name": "Tynemouth"},"E14000853": {"name": "Tyneside North"},"N06000017": {"name": "Upper Bann"},"E14001007": {"name": "Uxbridge & South Ruislip"},"W07000060": {"name": "Vale Of Clwyd"},"W07000078": {"name": "Vale Of Glamorgan"},"E14001008": {"name": "Vauxhall"},"E14001009": {"name": "Wakefield"},"E14001010": {"name": "Wallasey"},"E14001011": {"name": "Walsall North"},"E14001012": {"name": "Walsall South"},"E14001013": {"name": "Walthamstow"},"E14001014": {"name": "Wansbeck"},"E14001015": {"name": "Wantage"},"E14001016": {"name": "Warley"},"E14001017": {"name": "Warrington North"},"E14001018": {"name": "Warrington South"},"E14001019": {"name": "Warwick & Leamington"},"E14000854": {"name": "Warwickshire North"},"E14001020": {"name": "Washington & Sunderland West"},"E14001021": {"name": "Watford"},"E14001022": {"name": "Waveney"},"E14001023": {"name": "Wealden"},"E14001024": {"name": "Weaver Vale"},"E14001025": {"name": "Wellingborough"},"E14001026": {"name": "Wells"},"E14001027": {"name": "Welwyn Hatfield"},"E14001028": {"name": "Wentworth & Dearne"},"E14001029": {"name": "West Bromwich East"},"E14001030": {"name": "West Bromwich West"},"E14001032": {"name": "West Ham"},"N06000018": {"name": "West Tyrone"},"E14001036": {"name": "Westminster North"},"E14001037": {"name": "Westmorland & Lonsdale"},"E14001038": {"name": "Weston-super-Mare"},"E14001039": {"name": "Wigan"},"E14000860": {"name": "Wiltshire North"},"E14000954": {"name": "Wiltshire South West"},"E14001040": {"name": "Wimbledon"},"E14001041": {"name": "Winchester"},"E14001042": {"name": "Windsor"},"E14001043": {"name": "Wirral South"},"E14001044": {"name": "Wirral West"},"E14001045": {"name": "Witham"},"E14001046": {"name": "Witney"},"E14001047": {"name": "Woking"},"E14001048": {"name": "Wokingham"},"E14001049": {"name": "Wolverhampton North East"},"E14001050": {"name": "Wolverhampton South East"},"E14001051": {"name": "Wolverhampton South West"},"E14001052": {"name": "Worcester"},"E14000818": {"name": "Worcestershire Mid"},"E14001035": {"name": "Worcestershire West"},"E14001053": {"name": "Workington"},"E14001054": {"name": "Worsley & Eccles South"},"E14000682": {"name": "Worthing East & Shoreham"},"E14001055": {"name": "Worthing West"},"E14000992": {"name": "Wrekin, The"},"W07000044": {"name": "Wrexham"},"E14001056": {"name": "Wycombe"},"E14001057": {"name": "Wyre & Preston North"},"E14001058": {"name": "Wyre Forest"},"E14001059": {"name": "Wythenshawe & Sale East"},"E14001060": {"name": "Yeovil"},"W07000041": {"name": "Ynys Mon"},"E14001061": {"name": "York Central"},"E14001062": {"name": "York Outer"},"E14000683": {"name": "Yorkshire East"}, }; window.DataPres.setData('lookup-data', lookup_data);})();
.nw-c-general-election-2019-constituency-lookup{clear:both;display:none}ul.news-vj-search-lookup__menu{color:#222;background-color:#fff;max-height:180px;overflow-x:hidden;margin:0;padding:0;border:1px solid #dcdcdc;border-top:0;width:100%}ul.news-vj-search-lookup__menu--overlay{-webkit-box-shadow:rgba(0,0,0,.25) 0 2px 6px;box-shadow:0 2px 6px rgba(0,0,0,.25);left:0;position:absolute;top:100%;z-index:100}ul.news-vj-search-lookup__menu--overlay:empty{display:none}ul.news-vj-search-lookup__menu--inline{position:relative}ul.news-vj-search-lookup__menu--hidden{display:none}ul.news-vj-search-lookup__menu--visible{display:block}.news-vj-search-lookup__option{border-bottom:1px solid #dcdcdc;padding:13px 10px;background-color:#fff;overflow:hidden;cursor:pointer;font-size:16px;list-style-type:none}.news-vj-search-lookup__option:last-child{border-bottom:0}.news-vj-search-lookup__option--focused,.news-vj-search-lookup__option:hover{background-color:#ececec;outline:0}.off-screen{position:absolute;clip:rect(0,0,0,0);padding:0;border:0;height:1px;width:1px;margin-bottom:-1px;margin-right:-1px;white-space:nowrap;overflow:hidden}@-webkit-keyframes spinnerRotate{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}.news-vj-search-lookup__loading-spinner{display:block;width:33px;height:33px;max-width:33px;-webkit-animation-name:spinnerRotate;-webkit-animation-duration:5s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-moz-animation-name:spinnerRotate;-moz-animation-duration:5s;-moz-animation-iteration-count:infinite;-moz-animation-timing-function:linear;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAMAAABgOjJdAAAArlBMVEUNDQ3///8NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ1jFL5cAAAAOXRSTlMAAAECBg4PEBweIiYnKCkqKy8wR0hQUVRVVldjZGVnaGl1doGxsrO0ubq7wMHGyMnU2/Dx8vP5/P1F9dvoAAABM0lEQVR4AYWTYVeCMBSGt5VZKZYWZZmBBBQKGQno/f9/rHcTzgxu8Xy5h73P2dkdd0L2IZoKxqsw/6ZLm2mMITTK/STDVccQhtGGqG3IU2NeEmNIaywPBA5rfzaUZ/KExnjcE4hv2E60MSqQV69sq8ZQGy3cc8K1MoZLYMnk52+Va4wMwjsjjL6IMm04uotbxpjoBh0YK9S15EiQBDBCVJ81fCQhjBx1yhozJDmMHeqQNS6Q7GAQkDwEevco+s9R9+Kxhlf3Evx5Hx9IguZOJ//dqdDzGTNGhPXM/tuXjrAg4BpDpdx83FVYTVU9Y6VWfu+y0EI5bub06Tin9riTmMD+uTPriTcdyMHUS46fS/a9WMp5682lLSEdC2sYlLsly/ZBibYBnCDKCyryKHDsIow+fgDWVEMTzDczcQAAAABJRU5ErkJggg==")}.news-vj-search-lookup__wrapper *{-webkit-box-sizing:border-box;box-sizing:border-box}.news-vj-search-lookup__wrapper{position:relative}.news-vj-search-lookup__wrapper input.news-vj-search-lookup__input{display:inline-block;width:100%;vertical-align:middle;height:44px;font-size:16px;color:#222;border:1px solid #d2d2d2;-webkit-transition:border-color .8s linear;transition:border-color .8s linear;padding:.5em 8px;border-radius:0;margin:0}.news-vj-search-lookup__wrapper input.news-vj-search-lookup__input:focus{border:1px solid #007f7f;background-color:#fff;outline:none}.news-vj-search-lookup__wrapper input.news-vj-search-lookup__input:invalid{-webkit-box-shadow:none;box-shadow:none}@media (min-width:450px){.news-vj-search-lookup__wrapper input.news-vj-search-lookup__input{padding:.5em 16px}}.news-vj-search-lookup__wrapper button.news-vj-search-lookup__button{padding:12px;border:0;margin:0;width:44px;height:44px;background-color:#007f7f;-webkit-transition:background-color .4s;transition:background-color .4s}.news-vj-search-lookup__wrapper button.news-vj-search-lookup__button:focus,.news-vj-search-lookup__wrapper button.news-vj-search-lookup__button:hover{background-color:#0b6868}.news-vj-search-lookup__wrapper button.news-vj-search-lookup__button[disabled]{background-color:#dcdcdc}.news-vj-search-lookup__wrapper button.news-vj-search-lookup__button[disabled] .bbc-news-visual-journalism-icon--search{fill:#222}.news-vj-search-lookup__wrapper--button .news-vj-search-lookup__menu,.news-vj-search-lookup__wrapper--button input.news-vj-search-lookup__input{width:calc(100% - 44px)}.news-vj-search-lookup__loading-spinner{display:none}.bbc-news-visual-journalism-icon--search{display:block;fill:#fff;-webkit-transition:fill .4s linear;transition:fill .4s linear}.news-vj-search-lookup__button--loading{background-color:#007f7f}.news-vj-search-lookup__button--loading .news-vj-search-lookup__loading-spinner{display:block;max-width:22px;height:22px;background-size:100%}.news-vj-search-lookup__button--loading .bbc-news-visual-journalism-icon--search{display:none}.nw-c-general-election-2019-constituency-lookup{clear:both;display:none;padding:0 0 16px;max-width:100%}@media (min-width:63em){.nw-c-general-election-2019-constituency-lookup{max-width:613px}}.nw-c-general-election-2019-constituency-lookup h3,.nw-c-general-election-2019-constituency-lookup h4{color:#3f3f42}.nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup--logo,.nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__heading{display:none}.nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup form{padding:0}.nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__postcode-search{color:#404040;display:block;margin-top:18px}.nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__postcode-search-label{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;color:#6e6e73;margin-bottom:16px}@media (min-width:20em){.nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__postcode-search-label{line-height:18px;line-height:1.125rem}}@media (min-width:37.5em){.no-touch .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__postcode-search-label{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__postcode-search-placeholder{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;color:#6e6e73;margin-bottom:8px}@media (min-width:20em){.nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__postcode-search-placeholder{line-height:18px;line-height:1.125rem}}@media (min-width:37.5em){.no-touch .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__postcode-search-placeholder{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container{margin-top:8px;display:inline-block;vertical-align:top;width:calc(100% + 44px)}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container .news-vj-search-lookup__input{font-size:15px;font-size:.9375rem;line-height:18px;line-height:1.125rem;border:1px solid #6e6e73;color:#222;height:44px;min-width:240px;width:calc(100% - 44px);vertical-align:top}@media (min-width:37.5em){.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container .news-vj-search-lookup__input{line-height:20px;line-height:1.25rem}.no-touch .nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container .news-vj-search-lookup__input{font-size:14px;font-size:.875rem;line-height:18px;line-height:1.125rem}}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container .news-vj-search-lookup__input:focus,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container .news-vj-search-lookup__input:hover{border:2px solid #222}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container .news-vj-search-lookup__input:focus+button,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container .news-vj-search-lookup__input:hover+button{border-width:2px;border-color:#222;padding:8px 8px 8px 9px}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button{background-color:#fff;color:#6e6e73;cursor:pointer;-webkit-transition:background-color .5s;transition:background-color .5s;vertical-align:top;position:relative;left:-44px;top:0;max-height:44px;padding:10px;border:1px solid #6e6e73}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button:active,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button:focus,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button:hover{background-color:#ededed;color:#222}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button svg.bbc-news-visual-journalism-icon--search{fill:#6e6e73;stroke:transparent}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button svg.bbc-news-visual-journalism-icon--search:active,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button svg.bbc-news-visual-journalism-icon--search:focus,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button svg.bbc-news-visual-journalism-icon--search:hover{fill:#222}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button[disabled]{background-color:#fff;color:#6e6e73}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button[disabled] svg.bbc-news-visual-journalism-icon--search{fill:#6e6e73}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__input-container button.news-vj-search-lookup__button .news-vj-search-lookup__button--loading .news-vj-search-lookup__loading-spinner{background-color:#fff;background-size:26px;border:1px solid #fff;display:none;position:relative;top:-24px;left:-3px;height:28px;max-width:28px}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu{width:calc(100% - 44px);border:0;-webkit-box-shadow:none;box-shadow:none;left:0}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu ul.news-vj-search-lookup__menu--overlay{border:1px solid #6e6e73;border-top:0}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option{background-color:#fff;border:1px solid #6e6e73;border-top:0;color:#222}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option--focused,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option:hover{background-color:#222;border:1px solid #222;border-top:0;color:#fff;text-decoration:underline;cursor:pointer}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option--error-message,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option--error-message:focus,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option--error-message:hover{background-color:#fff;border:1px solid #6e6e73;border-top:0;color:#222;text-decoration:none;cursor:default}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option--error-message a{color:#222;font-weight:700;text-decoration:none}.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option--error-message a:focus,.nw-c-general-election-2019-constituency-lookup .news-vj-search-lookup__menu .news-vj-search-lookup__option--error-message a:hover{color:#1380a1;text-decoration:underline;cursor:pointer}.story-body .nw-c-general-election-2019-constituency-lookup{background-color:#f2f2f2;background-repeat:repeat-x;background-image:url({{background_image_url}});padding:65px 16px 16px;position:relative;margin-top:16px;margin-bottom:16px}@media (min-width:63em){.story-body .nw-c-general-election-2019-constituency-lookup{padding:75px 16px 32px}}.story-body .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__heading{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;color:#3f3f42;clear:both;display:block;font-weight:700;letter-spacing:-1px;margin-bottom:8px}@media (min-width:20em){.story-body .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__heading{font-size:24px;font-size:1.5rem;line-height:28px;line-height:1.75rem}}@media (min-width:37.5em){.story-body .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__heading{font-size:36px;font-size:2.25rem;line-height:40px;line-height:2.5rem}.no-touch .story-body .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__heading{font-size:32px;font-size:2rem;line-height:36px;line-height:2.25rem}}@media (min-width:63em){.story-body .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__heading{margin-bottom:16px}}.story-body .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup__postcode-search-label{display:inline-block}.story-body .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup--logo{display:inline-block;height:60px;width:auto;padding:0;position:absolute;margin-top:-56px;right:1.25em}@media (min-width:63em){.story-body .nw-c-general-election-2019-constituency-lookup .nw-c-general-election-2019-constituency-lookup--logo{margin-top:-65px}}.story-body .nw-c-general-election-2019-constituency-lookup { background-image:url(https://news.test.files.bbci.co.uk/include/elections/ge2019/backgrounds/election2019-exit-poll.svg); position: relative; padding-top: 75px;}
Find a constituency Enter a UK postcode or constituency
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://news.files.bbci.co.uk/include/datapres/static-components/bbc/general-election-2019-constituency-lookup/1.0.36/",n(n.s=186)}({186:function(e,t,n){"use strict";n(187)},187:function(e,t,n){}});//# sourceMappingURL=https:/news.files.bbci.co.uk/include/datapres/static-components/bbc/general-election-2019-constituency-lookup/1.0.36/js/core.js.map!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="https://news.files.bbci.co.uk/include/datapres/static-components/bbc/general-election-2019-constituency-lookup/1.0.36/",n(n.s=79)}([function(t,e,n){var r=n(4),o=n(9),i=n(16),s=n(17),u=n(19),a=function(t,e,n){var c,l,f,h,p=t&a.F,d=t&a.G,v=t&a.S,y=t&a.P,g=t&a.B,m=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?o:o[e]||(o[e]={}),_=b.prototype||(b.prototype={});for(c in d&&(n=e),n)f=((l=!p&&m&&void 0!==m[c])?m:n)[c],h=g&&l?u(f,r):y&&"function"==typeof f?u(Function.call,f):f,m&&s(m,c,f,t&a.U),b[c]!=f&&i(b,c,h),y&&_[c]!=f&&(_[c]=f)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(33)("wks"),o=n(28),i=n(4).Symbol,s="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(23),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(2);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(0),o=n(6),i=n(15),s=/"/g,u=function(t,e,n,r){var o=String(i(t)),u=""+o+""};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){t.exports=!n(6)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(30),o=n(15);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(9),i=n(6);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",s)}},function(t,e,n){var r=n(5),o=n(56),i=n(43),s=Object.defineProperty;e.f=n(11)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(14),o=n(27);t.exports=n(11)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(4),o=n(16),i=n(18),s=n(28)("src"),u=n(83),a=(""+u).split("toString");n(9).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,s)||o(n,s,t[e]?""+t[e]:a.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||u.call(this)}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(24);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(19),o=n(30),i=n(8),s=n(3),u=n(92);t.exports=function(t,e){var n=1==t,a=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||u;return function(e,u,d){for(var v,y,g=i(e),m=o(g),b=r(u,d,3),_=s(m.length),w=0,x=n?p(e,_):a?p(e,0):void 0;_>w;w++)if((h||w in m)&&(y=b(v=m[w],w,g),t))if(n)x[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(l)return!1;return f?-1:c||l?l:x}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(58),o=n(46);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=!1},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports={}},function(t,e,n){var r=n(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(23),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(23),o=n(15);t.exports=function(t){return function(e,n){var i,s,u=String(o(e)),a=r(n),c=u.length;return a=c?t?"":void 0:(i=u.charCodeAt(a))56319||a+1===c||(s=u.charCodeAt(a+1))57343?t?u.charAt(a):i:t?u.slice(a,a+2):s-56320+(i-55296a;)r(u,n=e[a++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(12),o=n(3),i=n(31);t.exports=function(t){return function(e,n,s){var u,a=r(e),c=o(a.length),l=i(s,c);if(t&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(18),o=n(8),i=n(45)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(5);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(29),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(14),o=n(27);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(35),o=n(1)("iterator"),i=n(29);t.exports=n(9).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},t(i)}catch(t){}return n}},function(t,e,n){var r=n(24),o=n(8),i=n(30),s=n(3);t.exports=function(t,e,n,u,a){r(e);var c=o(t),l=i(c),f=s(c.length),h=a?f-1:0,p=a?-1:1;if(n=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(2),o=n(20),i=n(1)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(5),o=n(24),i=n(1)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[i])?e:o(n)}},function(t,e,n){e.f=n(1)},function(t,e,n){var r=n(12),o=n(74).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(58),o=n(46).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(35),o={};o[n(1)("toStringTag")]="z",o+""!="[object z]"&&n(17)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r,o,i,s=n(19),u=n(168),a=n(47),c=n(42),l=n(4),f=l.process,h=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++y]=function(){u("function"==typeof t?t:Function(t),e)},r(y),y},p=function(t){delete g[t]},"process"==n(20)(f)?r=function(t){f.nextTick(s(m,t,1))}:v&&v.now?r=function(t){v.now(s(m,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=s(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(t){a.appendChild(c("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(s(m,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){"use strict";var r=n(24);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t){t.exports=JSON.parse('{"en":{"news_vj_search_lookup_aria_label":"Find a constituency","buttonLabel":"Find a constituency","noLocatorApi":"Sorry there is no postcode search available, please use the [Constituencies A-Z](/news/politics/constituencies/)","noResults":"Please enter a UK postcode or constituency name, or use the [Constituencies A-Z](/news/politics/constituencies/)","news_vj_search_lookup_label":"Enter a UK postcode or constituency","news_vj_search_lookup_header":"Find a constituency","news_vj_search_lookup_min_chars":"Type in {{num}} or more characters for results.","news_vj_search_lookup_no_results":"No search results.","news_vj_search_lookup_one_result_available":"1 result is available: {{suggestion}}.","news_vj_search_lookup_multiple_results_available":"{{numberOfResults}} results are available.","news_vj_search_lookup_selected_result":"{{suggestion}} is selected."},"cy":{"news_vj_search_lookup_aria_label":"Cael hyd i etholaeth","buttonLabel":"Cael hyd i etholaeth","noLocatorApi":"Mae\'n ddrwg gennym, nid oes modd chwilio gyda chôd post, defnyddiwch restr [A-Y yr etholaethau](/cymrufyw/gwleidyddiaeth/etholaethau/)","noResults":"Rhowch god post Cymreig neu defnyddiwch y rhestr restr [A-Y yr etholaethau](/cymrufyw/gwleidyddiaeth/etholaethau/)","news_vj_search_lookup_label":"Rhowch god post neu enw etholaeth yng Nghymru","news_vj_search_lookup_header":"Cael hyd i etholaeth","news_vj_search_lookup_min_chars":"Teipiwch {{num}} neu fwy o nodau i gael canlyniadau.","news_vj_search_lookup_no_results":"Dim canlyniadau chwilio","news_vj_search_lookup_one_result_available":"Mae 1 canlyniad ar gael {{suggestion}}","news_vj_search_lookup_multiple_results_available":"Mae {{numberOfResults}} o ganlyniadau ar gael","news_vj_search_lookup_selected_result":"Mae {{selection}} wedi ei ddewis."}}')},function(t,e,n){"use strict";n(80),n(185)},function(t,e,n){"use strict";var r,o=n(81);new((r=o)&&r.__esModule?r:{default:r}).default},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(22));n(82),n(110),n(141),n(163),n(174);var o=u(n(175)),i=u(n(183)),s=u(n(78));function u(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(){var e=this;if((0,r.default)(this,t),this.lang=document.documentElement.lang||"en",this.lang=/en.*/.test(this.lang)?"en":"cy",this.vocabs=s.default[this.lang],this.lookupData=window.DataPres.getData("lookup-data")||!1,this.en={},this.cy={},this.en.pagePath="/news/politics/constituencies/",this.cy.pagePath="/cymrufyw/gwleidyddiaeth/etholaethau/",this.pagePath=this[this.lang].pagePath,this.vocabs.noResults=this.toHref(this.vocabs.noResults),this.vocabs.noLocatorApi=this.toHref(this.vocabs.noLocatorApi),this.apiAvailable=this.apiIsAvailable(),document.querySelector(".nw-c-general-election-2019-constituency-lookup").style.display="block",!this.apiAvailable||!this.lookupData)return this.removeLookup(),!1;this.lookup=new o.default({target:document.getElementById("lookup-container"),data:this.lookupData,vocab:this.vocabs,lang:this.lang,minChars:3,clearInput:!0,confirmOnBlur:this.mapIsOnPage(),displayKey:"name",noResultsCallback:this.doNothing,plugins:[new i.default({searchType:"gss-seat",intersectCallback:function(t){return i.default.isFullPostcode(t)}})],onSelect:function(t,n){if(e.mapIsOnPage()&&t&&"function"==typeof window.vjConfigObject["5197-map-component-app"].changeChosenRegionOnMap&&!document.querySelector(".bbc-news-vj-embed-wrapper iframe.pym-iframe")){window.vjConfigObject["5197-map-component-app"].changeChosenRegionOnMap(t);var r=document.querySelector("#responsive-embed-5197-map-component-app > div").shadowRoot.querySelector(".vj-map__view-results");return r&&setTimeout((function(){r.focus({preventScroll:!1})}),200),!0}var o=t&&t.toUpperCase().startsWith("W");"cy"!==e.lang||o||(e.pagePath=e.en.pagePath),"cy"===e.lang&&o&&(e.pagePath=e.cy.pagePath),window.location.href="https://"+window.location.hostname+e.pagePath+t}});document.querySelector(".news-vj-search-lookup__button")}return t.prototype.toHref=function(t){return t.replace(/\[(.+?)\]\((\/[a-zA-Z0-9/.(]+?)\)/g,'$1')},t.prototype.doNothing=function(t){return t.preventDefault(),!1},t.prototype.apiIsAvailable=function(){return this.apiAvailable=window.fetch("https://locator-service.api.bbci.co.uk/locations/W1A1AA?api_key=WdmvTVscFy19vwu3UG82gTQ3HtaaLsVp").then((function(t){return!!t.ok})).then((function(t){return!!t})).catch((function(t){return!1})),this.apiAvailable},t.prototype.removeLookup=function(){var t=document.getElementsByClassName("nw-c-general-election-2019-constituency-lookup");t&&(t[0].innerHTML="

"+this.vocabs.noLocatorApi+"

")},t.prototype.mapIsOnPage=function(){return!!window.DataPres&&!!window.DataPres.getData("map-data")&&!!Object.prototype.hasOwnProperty.call(window.vjConfigObject["5197-map-component-app"],"changeChosenRegionOnMap")},t}();e.default=a},function(t,e,n){n(40),n(85),n(86),n(87),n(88),n(89),n(90),n(91),n(94),n(95),n(96),n(97),n(98),n(99),n(100),n(101),n(102),n(104),n(106),n(107),n(108),n(68),t.exports=n(9).Array},function(t,e,n){t.exports=n(33)("native-function-to-string",Function.toString)},function(t,e,n){"use strict";var r=n(44),o=n(27),i=n(34),s={};n(16)(s,n(1)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(48)})},function(t,e,n){"use strict";var r=n(19),o=n(0),i=n(8),s=n(61),u=n(62),a=n(3),c=n(63),l=n(64);o(o.S+o.F*!n(65)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,h=i(t),p="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,m=l(h);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),null==m||p==Array&&u(m))for(n=new p(e=a(h.length));e>g;g++)c(n,g,y?v(h[g],g):h[g]);else for(f=m.call(h),n=new p;!(o=f.next()).done;g++)c(n,g,y?s(f,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(0),o=n(63);r(r.S+r.F*n(6)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(12),i=[].join;r(r.P+r.F*(n(30)!=Object||!n(10)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(47),i=n(20),s=n(31),u=n(3),a=[].slice;r(r.P+r.F*n(6)((function(){o&&a.call(o)})),"Array",{slice:function(t,e){var n=u(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return a.call(this,t,e);for(var o=s(t,n),c=s(e,n),l=u(c-o),f=new Array(l),h=0;h2?arguments[2]:void 0,c=void 0===a?n:o(a,n);c>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(0),o=n(21)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(32)("find")},function(t,e,n){"use strict";var r=n(0),o=n(21)(6),i="findIndex",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r(r.P+r.F*s,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(32)(i)},function(t,e,n){n(67)("Array")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(111),n(112),n(113),n(40),n(116),n(117),n(118),n(119),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(138),n(139),n(140),t.exports=n(9).String},function(t,e,n){var r=n(0),o=n(31),i=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(12),i=n(3);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,s=[],u=0;n>u;)s.push(String(e[u++])),u1?arguments[1]:void 0,r=o(e.length),u=void 0===n?r:Math.min(o(n),r),a=String(t);return s?s.call(e,a,u):e.slice(u-a.length,u)===a}})},function(t,e,n){"use strict";var r=n(0),o=n(49);r(r.P+r.F*n(50)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(120)})},function(t,e,n){"use strict";var r=n(23),o=n(15);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(49),s="".startsWith;r(r.P+r.F*n(50)("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(7)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(7)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(7)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(7)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(7)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(7)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(7)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(7)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(7)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(7)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(7)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(7)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(7)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){"use strict";var r=n(5),o=n(3),i=n(51),s=n(36);n(37)("match",1,(function(t,e,n,u){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=u(n,t,this);if(e.done)return e.value;var a=r(t),c=String(this);if(!a.global)return s(a,c);var l=a.unicode;a.lastIndex=0;for(var f,h=[],p=0;null!==(f=s(a,c));){var d=String(f[0]);h[p]=d,""===d&&(a.lastIndex=i(c,o(a.lastIndex),l)),p++}return 0===p?null:h}]}))},function(t,e,n){"use strict";var r=n(52);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){"use strict";var r=n(5);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(5),o=n(8),i=n(3),s=n(23),u=n(51),a=n(36),c=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|]*>)/g,p=/\$([$&`']|\d\d?)/g;n(37)("replace",2,(function(t,e,n,d){return[function(r,o){var i=t(this),s=null==r?void 0:r[e];return void 0!==s?s.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=d(n,t,this,e);if(o.done)return o.value;var f=r(t),h=String(this),p="function"==typeof e;p||(e=String(e));var y=f.global;if(y){var g=f.unicode;f.lastIndex=0}for(var m=[];;){var b=a(f,h);if(null===b)break;if(m.push(b),!y)break;""===String(b[0])&&(f.lastIndex=u(h,i(f.lastIndex),g))}for(var _,w="",x=0,S=0;Sc){var h=f(l/10);return 0===h?n:h1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,s,u,a=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,l+"g");(i=c.call(d,o))&&!((s=d.lastIndex)>f&&(a.push(o.slice(f,i.index)),i.length>1&&i.index=p));)d.lastIndex===i.index&&d.lastIndex++;return f===o.length?!u&&d.test("")||a.push(""):a.push(o.slice(f)),a.length>p?a.slice(0,p):a}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):d.call(String(o),n,r)},function(t,e){var r=l(d,t,this,e,d!==n);if(r.done)return r.value;var c=o(t),h=String(this),v=i(c,RegExp),y=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(p?"y":"g"),m=new v(p?c:"^(?:"+c.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===h.length)return null===a(m,h)?[h]:[];for(var _=0,w=0,x=[];wi;)o(U,e=n[i++])||e==L||e==a||r.push(e);return r},tt=function(t){for(var e,n=t===N,r=M(n?K:w(t)),i=[],s=0;r.length>s;)!o(U,e=r[s++])||n&&!o(N,e)||i.push(U[e]);return i};H||(u((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===N&&e.call(K,n),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),G(this,t,S(1,n))};return i&&W&&G(N,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",(function(){return this._k})),A.f=Z,E.f=Y,n(74).f=P.f=X,n(39).f=Q,j.f=tt,i&&!n(26)&&u(N,"propertyIsEnumerable",Q,!0),d.f=function(t){return V(p(t))}),s(s.G+s.W+s.F*!H,{Symbol:T});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=k(p.store),ot=0;rt.length>ot;)v(rt[ot++]);s(s.S+s.F*!H,"Symbol",{for:function(t){return o(q,t+="")?q[t]:q[t]=T(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var e in q)if(q[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!H,"Object",{create:function(t,e){return void 0===e?O(t):J(O(t),e)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:X,getOwnPropertySymbols:tt});var it=c((function(){j.f(1)}));s(s.S+s.F*it,"Object",{getOwnPropertySymbols:function(t){return j.f(_(t))}}),F&&s(s.S+s.F*(!H||c((function(){var t=T();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!$(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!$(e))return e}),r[1]=e,I.apply(F,r)}}),T.prototype[B]||n(16)(T.prototype,B,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(4),o=n(9),i=n(26),s=n(72),u=n(14).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:s.f(t)})}},function(t,e,n){var r=n(25),o=n(53),i=n(39);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var s,u=n(t),a=i.f,c=0;u.length>c;)a.call(t,s=u[c++])&&e.push(s);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(44)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(11),"Object",{defineProperty:n(14).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(11),"Object",{defineProperties:n(57)})},function(t,e,n){var r=n(12),o=n(54).f;n(13)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(8),o=n(60);n(13)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(8),o=n(25);n(13)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(13)("getOwnPropertyNames",(function(){return n(73).f}))},function(t,e,n){var r=n(2),o=n(38).onFreeze;n(13)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(2),o=n(38).onFreeze;n(13)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(2),o=n(38).onFreeze;n(13)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(2);n(13)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(2);n(13)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(2);n(13)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(159)})},function(t,e,n){"use strict";var r=n(11),o=n(25),i=n(53),s=n(39),u=n(8),a=n(30),c=Object.assign;t.exports=!c||n(6)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=u(t),c=arguments.length,l=1,f=i.f,h=s.f;c>l;)for(var p,d=a(arguments[l++]),v=f?o(d).concat(f(d)):o(d),y=v.length,g=0;y>g;)p=v[g++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:c},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(70)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(162).set})},function(t,e,n){var r=n(2),o=n(5),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(19)(Function.call,n(54).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){n(75),n(40),n(164),n(165),t.exports=n(9).Promise},function(t,e,n){for(var r=n(68),o=n(25),i=n(17),s=n(4),u=n(16),a=n(29),c=n(1),l=c("iterator"),f=c("toStringTag"),h=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(p),v=0;vi;)s(n[i++]);t._c=[],t._n=!1,e&&!t._h&&F(t)}))}},F=function(t){g.call(a,(function(){var e,n,r,o=t._v,i=I(t);if(i&&(e=_((function(){E?O.emit("unhandledRejection",o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=E||I(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){g.call(a,(function(){var e;E?O.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})}))},B=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),T(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=M(t))?m((function(){var r={_w:n,_d:!1};try{e.call(t,c(D,r,1),c(B,r,1))}catch(t){B.call(r,t)}})):(n._v=t,n._s=1,T(n,!1))}catch(t){B.call({_w:n,_d:!1},t)}}};R||(j=function(t){d(this,j,"Promise","_h"),p(t),r.call(this);try{t(c(D,this,1),c(B,this,1))}catch(t){B.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(173)(j.prototype,{then:function(t,e){var n=C(y(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(D,t,1),this.reject=c(B,t,1)},b.f=C=function(t){return t===j||t===s?new i(t):o(t)}),f(f.G+f.W+f.F*!R,{Promise:j}),n(34)(j,"Promise"),n(67)("Promise"),s=n(9).Promise,f(f.S+f.F*!R,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!R),"Promise",{resolve:function(t){return x(u&&this===s?j:this,t)}}),f(f.S+f.F*!(R&&n(65)((function(t){j.all(t).catch(k)}))),"Promise",{all:function(t){var e=this,n=C(e),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,s=1;v(t,!1,(function(t){var u=i++,a=!1;n.push(void 0),s++,e.resolve(t).then((function(t){a||(a=!0,n[u]=t,--s||r(n))}),o)})),--s||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,o=_((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(19),o=n(61),i=n(62),s=n(5),u=n(3),a=n(64),c={},l={};(e=t.exports=function(t,e,n,f,h){var p,d,v,y,g=h?function(){return t}:a(t),m=r(n,f,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=u(t.length);p>b;b++)if((y=e?m(s(d=t[b])[0],d[1]):m(t[b]))===c||y===l)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,m,d.value,e))===c||y===l)return y}).BREAK=c,e.RETURN=l},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(4),o=n(76).set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,u=r.Promise,a="process"==n(20)(s);t.exports=function(){var t,e,n,c=function(){var r,o;for(a&&(r=s.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(a)n=function(){s.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,h=document.createTextNode("");new i(c).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(4).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(5),o=n(2),i=n(77);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";n.r(e),n.d(e,"Headers",(function(){return c})),n.d(e,"Request",(function(){return y})),n.d(e,"Response",(function(){return m})),n.d(e,"DOMException",(function(){return _})),n.d(e,"fetch",(function(){return w}));var r={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(r.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function h(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:r.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:r.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():r.arrayBuffer&&r.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t,e,n,r=l(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=f(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function m(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status\s+=0,e=1===this.state.suggestions.length,n=this.state.indexOfMatchingElement>=0,r=this.state.suggestions.length>0,o=t||e||n;this.confirmOnBlur&&r&&o?this.attemptSubmit():(this.state.menuShouldOpen=!1,this.render())},t.prototype.handleButtonClick=function(){this.attemptSubmit()},t.prototype.handleDownArrow=function(t){t.preventDefault(),this.state.focusIndex!==this.state.suggestions.length-1&&this.state.menuShouldOpen&&this.handleOptionFocus(this.state.focusIndex+1)},t.prototype.handleUpArrow=function(t){t.preventDefault(),-1!==this.state.focusIndex&&this.state.menuShouldOpen&&this.handleOptionFocus(this.state.focusIndex-1)},t.prototype.handleOptionFocus=function(t){this.state.focusIndex=t,this.render()},t.prototype.handleOptionClick=function(t,e){this.selectOption(e)},t.prototype.handleEnter=function(t){this.state.menuShouldOpen&&(t.preventDefault(),this.attemptSubmit())},t.prototype.attemptSubmit=function(){var t=this.state.focusIndex>=0,e=1===this.state.suggestions.length,n=this.state.indexOfMatchingElement>=0;t&&this.selectOption(this.state.focusIndex),e&&this.selectOption(0),n&&this.selectOption(this.state.indexOfMatchingElement)},t.prototype.handleInputChange=function(t){var e=this,n=t.target.value,r=0===n.length,o=this.state.query.length!==n.length,i=n.length>=this.minChars;if(this.state.menuShouldOpen=i,this.state.query=n,!r&&o&&i){this.hasButton&&this.els.button.classList.add("news-vj-search-lookup__button--loading");var s={suggestions:this.suggestionFilter(n)};new Promise((function(t,r){return e.pluginManager.query(n,t,r,s)})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,n=t.suggestions&&t.suggestions.length>0;n?e.updateSuggestions(t.suggestions):t.error?(e.state.suppressError=!1,e.updateError(t.error)):t.suppressError?(e.state.suppressError=!0,e.updateError()):e.updateSuggestions([])})).catch((function(t){console.error(t)}))}else this.updateSuggestions([])},t.prototype.getIndexOfMatchingElement=function(){var t=this,e=void 0,n=this.state.suggestions.reduce((function(e,n){return t.state.query===n.data[t.displayKey]?n:e}),!1);return n||(e=this.state.suggestions.reduce((function(e,n){return(0,u.prepareForFuzzyMatch)(n.data[t.displayKey])===(0,u.prepareForFuzzyMatch)(t.state.query)?n:e}),{})),this.state.suggestions.indexOf(n||e)},t.prototype.queryPlugin=function(t,e,n,r){return this.plugin&&e.length0?(this.state.shouldDisplayError=!1,this.render()):this.updateError()},t.prototype.updateError=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.vocab.noResults;this.state.shouldDisplayError=!this.state.suppressError,this.state.suggestions=[],this.errorMessage=t,this.render()},t.prototype.selectOption=function(t){var e=this.state.suggestions[t];e&&e!==this.state.selectedSuggestion&&(this.state.selectedSuggestion=this.state.suggestions[t],this.callback(this.state.selectedSuggestion.id,this.state.selectedSuggestion.data)),this.state.focusIndex=-1,this.state.menuShouldOpen=!1,this.state.query=this.clearInput?"":this.state.selectedSuggestion.data[this.displayKey],this.render()},t.prototype.suggestionFilter=function(t){var e=this;return this.data.filter((function(n){return(0,u.hasFuzzyMatch)(n.data[e.displayKey],t)||!!n.data.synonyms&&n.data.synonyms.filter((function(e){return(0,u.hasFuzzyMatch)(e,t)})).length>0})).sort(this.sortSuggestions)},t.prototype.sortSuggestions=function(t,e){var n=t.data[this.displayKey].toLowerCase(),r=e.data[this.displayKey].toLowerCase(),o=this.state.query.toLowerCase(),i=n.indexOf(o),s=r.indexOf(o);return i>s?1:ir?1:n=0;return this.state.query.length0;l||p||f||h?this.els.button.removeAttribute("disabled"):this.els.button.setAttribute("disabled",!0),this.els.button.classList.remove("news-vj-search-lookup__button--loading")}var d=n?"visible":"hidden";this.els.menu.setAttribute("class",this.menuClassList+" news-vj-search-lookup__menu--"+d),(0,o.clear)(this.els.menu);var v=i.map((function(e,n){return r===n?t.createSuggestion(e.data[t.displayKey],n,"focused"):t.createSuggestion(e.data[t.displayKey],n)})).map((function(e,n){return t.addSuggestionListener("mousedown",e,n)}));u&&(v.push(this.createSuggestion(this.errorMessage,0,"error-message")),this.noResultsCallback&&v[0].addEventListener("mousedown",this.noResultsCallback)),v.forEach((function(e){t.els.menu.appendChild(e)})),this.els.menu.scrollTop=0,this.pluginManager.postRender(this.els)},t}();e.default=f},function(t,e,n){"use strict";e.__esModule=!0,e.clear=e.text=e.create=e.AppDOM=void 0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var s=e.AppDOM=function(){function t(e){(0,i.default)(this,t),this.app=e||document}return t.prototype.select=function(t){return this.app.querySelector(t)},t.prototype.selectAll=function(t){return Array.from(this.app.querySelectorAll(t))},t}(),u=e.create=function(t,e){var n=document.createElement(t);if(e)for(var r=Object.keys(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return t.replace(/{{(.*?)}}/g,(function(t,n){var r=e[n]||{};return"string"==typeof r||"number"==typeof r?r:t}))},r=e.createVocab=function(e){var r=e.buttonLabel,o=void 0===r?t("news_vj_search_lookup_button_label"):r,i=e.minChars,s=void 0===i?t("news_vj_search_lookup_min_chars"):i,u=e.noResults,a=void 0===u?t("news_vj_search_lookup_no_results"):u,c=e.oneResultAvailable,l=void 0===c?t("news_vj_search_lookup_one_result_available"):c,f=e.multipleResultsAvailable,h=void 0===f?t("news_vj_search_lookup_multiple_results_available"):f,p=e.selectedResult,d=void 0===p?t("news_vj_search_lookup_selected_result"):p;return{buttonLabel:o,minChars:function(t){return n(s,{num:t})},noResults:a,oneResultAvailable:function(t){return n(l,{suggestion:t})},multipleResultsAvailable:function(t){return n(h,{numberOfResults:t})},selectedResult:function(t){return n(d,{suggestion:t})}}};e.default=r}).call(this,n(178))},function(t,e,n){const r=n(78);t.exports=function(t){const e=/en.*/.test(document.documentElement.lang)?"en":"cy";return r[e][t]||r[t]}},function(t,e,n){"use strict";e.__esModule=!0;var r=e.keyCodes={13:"enter",27:"escape",38:"up",40:"down"},o=e.isPrintableKeyCode=function(t){return t>47&&t64&&t95&&t185&&t218&&t0&&void 0!==arguments[0]?arguments[0]:"";return t.toLowerCase().replace(/-/g," ").replace(/'/g,"").replace(/ /g,"")},o=e.hasFuzzyMatch=function(t,e){return r(t).indexOf(r(e))>-1};e.default={hasFuzzyMatch:o,prepareForFuzzyMatch:r}},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var s=function(){function t(e){var n=e.plugins,r=void 0===n?[]:n,o=e.dataset,s=void 0===o?{}:o;(0,i.default)(this,t),this.dataset=s,this.queryPlugins=r.filter((function(t){return t&&"function"==typeof t.query})),this.postRenderPlugins=r.filter((function(t){return t&&"function"==typeof t.postRender}))}return t.prototype.query=function(t,e,n,r){this.localResults=r;var o={resolve:e,reject:n};this.queryPlugins.length>0?this.triggerQueryPlugins(t,o,this.queryPlugins):e()},t.prototype.triggerQueryPlugins=function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n[o],s=o0&&void 0!==arguments[0]?arguments[0]:{},u=i.suppressError;s?r.triggerQueryPlugins(t,e,n,o+1):void 0!==u?e.resolve({suppressError:u}):e.resolve()},c=function(t){e.resolve({error:t})};i.query(t,u,a,c,this.localResults,this.dataset)},t.prototype.postRender=function(t){this.postRenderPlugins.forEach((function(e){e.postRender(t)}))},t}();e.default=s},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var s=function(){function t(e){(0,i.default)(this,t),this.vocab=e}return t.prototype.getLookupHTML=function(t){var e=t.id,n=void 0===e?"news-vj-search-lookup":e,r=t.button,o=void 0===r||r,i=t.inline,s=void 0!==i&&i,u=t.minChars,a=void 0===u?2:u,c=t.pattern,l=void 0===c?"":c,f=(l?'pattern="'+l+'"':"")+" "+(a?'minlength="'+a+'"':"")+" "+(l||a?"required":""),h='\n \n
\n ';return'\n \n \n