// The Two Items Below Are For Back Compat Only /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2006, 2014 Klaus Hartl * Released under the MIT license */ // Included for compatibility only // Refactoring involves a lot of "old" Martini advertising (function (factory) { factory(window.jQuery); }(function ($) { var pluses = /\+/g; function encode(s) { return config.raw ? s : encodeURIComponent(s); } function decode(s) { return config.raw ? s : decodeURIComponent(s); } function stringifyCookieValue(value) { return encode(config.json ? JSON.stringify(value) : String(value)); } function parseCookieValue(s) { if (s.indexOf('"') === 0) { // This is a quoted cookie as according to RFC2068, unescape... s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); } try { // Replace server-side written pluses with spaces. // If we can't decode the cookie, ignore it, it's unusable. // If we can't parse the cookie, ignore it, it's unusable. s = decodeURIComponent(s.replace(pluses, ' ')); return config.json ? JSON.parse(s) : s; } catch(e) {} } function read(s, converter) { var value = config.raw ? s : parseCookieValue(s); return $.isFunction(converter) ? converter(value) : value; } var config = $.cookie = function (key, value, options) { // Write if (arguments.length > 1 && !$.isFunction(value)) { options = $.extend({}, config.defaults, options); if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setMilliseconds(t.getMilliseconds() + days * 864e+5); } return (document.cookie = [ encode(key), '=', stringifyCookieValue(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // Read var result = key ? undefined : {}, // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. Also prevents odd result when // calling $.cookie(). cookies = document.cookie ? document.cookie.split('; ') : [], i = 0, l = cookies.length; for (; i < l; i++) { var parts = cookies[i].split('='), name = decode(parts.shift()), cookie = parts.join('='); if (key === name) { // If second argument (value) is a function it's a converter... result = read(cookie, value); break; } // Prevent storing a cookie that we couldn't decode. if (!key && (cookie = read(cookie)) !== undefined) { result[name] = cookie; } } return result; }; config.defaults = {}; $.removeCookie = function (key, options) { // Must not alter options, thus extending a fresh object... $.cookie(key, '', $.extend({}, options, { expires: -1 })); return !$.cookie(key); }; })); /*!mobile-detect v1.3.5 2016-11-14*/ /*global module:false, define:false*/ /*jshint latedef:false*/ /*!@license Copyright 2013, Heinrich Goebl, License: MIT, see https://github.com/hgoebl/mobile-detect.js*/ (function () { 'use strict'; var impl = {}; impl.mobileDetectRules = { "phones": { "iPhone": "\\biPhone\\b|\\biPod\\b", "BlackBerry": "BlackBerry|\\bBB10\\b|rim[0-9]+", "HTC": "HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m", "Nexus": "Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6", "Dell": "Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b", "Motorola": "Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b", "Samsung": "\\bSamsung\\b|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F", "LG": "\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)", "Sony": "SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533", "Asus": "Asus.*Galaxy|PadFone.*Mobile", "NokiaLumia": "Lumia [0-9]{3,4}", "Micromax": "Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b", "Palm": "PalmSource|Palm", "Vertu": "Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature", "Pantech": "PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790", "Fly": "IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250", "Wiko": "KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM", "iMobile": "i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)", "SimValley": "\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b", "Wolfgang": "AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q", "Alcatel": "Alcatel", "Nintendo": "Nintendo 3DS", "Amoi": "Amoi", "INQ": "INQ", "GenericPhone": "Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser" }, "tablets": { "iPad": "iPad|iPad.*Mobile", "NexusTablet": "Android.*Nexus[\\s]+(7|9|10)", "SamsungTablet": "SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y|SM-T280", "Kindle": "Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI)\\b", "SurfaceTablet": "Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)", "HPTablet": "HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10", "AsusTablet": "^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z", "BlackBerryTablet": "PlayBook|RIM Tablet", "HTCtablet": "HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410", "MotorolaTablet": "xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617", "NookTablet": "Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2", "AcerTablet": "Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30", "ToshibaTablet": "Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO", "LGTablet": "\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b", "FujitsuTablet": "Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b", "PrestigioTablet": "PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002", "LenovoTablet": "Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)", "DellTablet": "Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7", "YarvikTablet": "Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b", "MedionTablet": "Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB", "ArnovaTablet": "97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2", "IntensoTablet": "INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004", "IRUTablet": "M702pro", "MegafonTablet": "MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b", "EbodaTablet": "E-Boda (Supreme|Impresspeed|Izzycomm|Essential)", "AllViewTablet": "Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)", "ArchosTablet": "\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b", "AinolTablet": "NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark", "NokiaLumiaTablet": "Lumia 2520", "SonyTablet": "Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31", "PhilipsTablet": "\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b", "CubeTablet": "Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT", "CobyTablet": "MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010", "MIDTablet": "M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10", "MSITablet": "MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b", "SMiTTablet": "Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)", "RockChipTablet": "Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A", "FlyTablet": "IQ310|Fly Vision", "bqTablet": "Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris [E|M]10)|Maxwell.*Lite|Maxwell.*Plus", "HuaweiTablet": "MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim", "NecTablet": "\\bN-06D|\\bN-08D", "PantechTablet": "Pantech.*P4100", "BronchoTablet": "Broncho.*(N701|N708|N802|a710)", "VersusTablet": "TOUCHPAD.*[78910]|\\bTOUCHTAB\\b", "ZyncTablet": "z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900", "PositivoTablet": "TB07STA|TB10STA|TB07FTA|TB10FTA", "NabiTablet": "Android.*\\bNabi", "KoboTablet": "Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build", "DanewTablet": "DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b", "TexetTablet": "NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE", "PlaystationTablet": "Playstation.*(Portable|Vita)", "TrekstorTablet": "ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab", "PyleAudioTablet": "\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b", "AdvanTablet": "Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ", "DanyTechTablet": "Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1", "GalapadTablet": "Android.*\\bG1\\b", "MicromaxTablet": "Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b", "KarbonnTablet": "Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b", "AllFineTablet": "Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide", "PROSCANTablet": "\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b", "YONESTablet": "BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026", "ChangJiaTablet": "TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503", "GUTablet": "TX-A1301|TX-M9002|Q702|kf026", "PointOfViewTablet": "TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10", "OvermaxTablet": "OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)", "HCLTablet": "HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync", "DPSTablet": "DPS Dream 9|DPS Dual 7", "VistureTablet": "V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10", "CrestaTablet": "CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989", "MediatekTablet": "\\bMT8125|MT8389|MT8135|MT8377\\b", "ConcordeTablet": "Concorde([ ]+)?Tab|ConCorde ReadMan", "GoCleverTablet": "GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042", "ModecomTablet": "FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003", "VoninoTablet": "\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b", "ECSTablet": "V07OT2|TM105A|S10OT1|TR10CS1", "StorexTablet": "eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab", "VodafoneTablet": "SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497", "EssentielBTablet": "Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2", "RossMoorTablet": "RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711", "iMobileTablet": "i-mobile i-note", "TolinoTablet": "tolino tab [0-9.]+|tolino shine", "AudioSonicTablet": "\\bC-22Q|T7-QC|T-17B|T-17P\\b", "AMPETablet": "Android.* A78 ", "SkkTablet": "Android.* (SKYPAD|PHOENIX|CYCLOPS)", "TecnoTablet": "TECNO P9", "JXDTablet": "Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b", "iJoyTablet": "Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)", "FX2Tablet": "FX2 PAD7|FX2 PAD10", "XoroTablet": "KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151", "ViewsonicTablet": "ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a", "OdysTablet": "LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10", "CaptivaTablet": "CAPTIVA PAD", "IconbitTablet": "NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S", "TeclastTablet": "T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi", "OndaTablet": "\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+", "JaytechTablet": "TPC-PA762", "BlaupunktTablet": "Endeavour 800NG|Endeavour 1010", "DigmaTablet": "\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b", "EvolioTablet": "ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b", "LavaTablet": "QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b", "AocTablet": "MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712", "MpmanTablet": "MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010", "CelkonTablet": "CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b", "WolderTablet": "miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b", "MiTablet": "\\bMI PAD\\b|\\bHM NOTE 1W\\b", "NibiruTablet": "Nibiru M1|Nibiru Jupiter One", "NexoTablet": "NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI", "LeaderTablet": "TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100", "UbislateTablet": "UbiSlate[\\s]?7C", "PocketBookTablet": "Pocketbook", "KocasoTablet": "\\b(TB-1207)\\b", "HisenseTablet": "\\b(F5281|E2371)\\b", "Hudl": "Hudl HT7S3|Hudl 2", "TelstraTablet": "T-Hub2", "GenericTablet": "Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b" }, "oss": { "AndroidOS": "Android", "BlackBerryOS": "blackberry|\\bBB10\\b|rim tablet os", "PalmOS": "PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino", "SymbianOS": "Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b", "WindowsMobileOS": "Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;", "WindowsPhoneOS": "Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;", "iOS": "\\biPhone.*Mobile|\\biPod|\\biPad", "MeeGoOS": "MeeGo", "MaemoOS": "Maemo", "JavaOS": "J2ME\/|\\bMIDP\\b|\\bCLDC\\b", "webOS": "webOS|hpwOS", "badaOS": "\\bBada\\b", "BREWOS": "BREW" }, "uas": { "Chrome": "\\bCrMo\\b|CriOS|Android.*Chrome\/[.0-9]* (Mobile)?", "Dolfin": "\\bDolfin\\b", "Opera": "Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR\/[0-9.]+|Coast\/[0-9.]+", "Skyfire": "Skyfire", "Edge": "Mobile Safari\/[.0-9]* Edge", "IE": "IEMobile|MSIEMobile", "Firefox": "fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS", "Bolt": "bolt", "TeaShark": "teashark", "Blazer": "Blazer", "Safari": "Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari", "UCBrowser": "UC.*Browser|UCWEB", "baiduboxapp": "baiduboxapp", "baidubrowser": "baidubrowser", "DiigoBrowser": "DiigoBrowser", "Puffin": "Puffin", "Mercury": "\\bMercury\\b", "ObigoBrowser": "Obigo", "NetFront": "NF-Browser", "GenericBrowser": "NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger", "PaleMoon": "Android.*PaleMoon|Mobile.*PaleMoon" }, "props": { "Mobile": "Mobile\/[VER]", "Build": "Build\/[VER]", "Version": "Version\/[VER]", "VendorID": "VendorID\/[VER]", "iPad": "iPad.*CPU[a-z ]+[VER]", "iPhone": "iPhone.*CPU[a-z ]+[VER]", "iPod": "iPod.*CPU[a-z ]+[VER]", "Kindle": "Kindle\/[VER]", "Chrome": [ "Chrome\/[VER]", "CriOS\/[VER]", "CrMo\/[VER]" ], "Coast": [ "Coast\/[VER]" ], "Dolfin": "Dolfin\/[VER]", "Firefox": [ "Firefox\/[VER]", "FxiOS\/[VER]" ], "Fennec": "Fennec\/[VER]", "Edge": "Edge\/[VER]", "IE": [ "IEMobile\/[VER];", "IEMobile [VER]", "MSIE [VER];", "Trident\/[0-9.]+;.*rv:[VER]" ], "NetFront": "NetFront\/[VER]", "NokiaBrowser": "NokiaBrowser\/[VER]", "Opera": [ " OPR\/[VER]", "Opera Mini\/[VER]", "Version\/[VER]" ], "Opera Mini": "Opera Mini\/[VER]", "Opera Mobi": "Version\/[VER]", "UC Browser": "UC Browser[VER]", "MQQBrowser": "MQQBrowser\/[VER]", "MicroMessenger": "MicroMessenger\/[VER]", "baiduboxapp": "baiduboxapp\/[VER]", "baidubrowser": "baidubrowser\/[VER]", "SamsungBrowser": "SamsungBrowser\/[VER]", "Iron": "Iron\/[VER]", "Safari": [ "Version\/[VER]", "Safari\/[VER]" ], "Skyfire": "Skyfire\/[VER]", "Tizen": "Tizen\/[VER]", "Webkit": "webkit[ \/][VER]", "PaleMoon": "PaleMoon\/[VER]", "Gecko": "Gecko\/[VER]", "Trident": "Trident\/[VER]", "Presto": "Presto\/[VER]", "Goanna": "Goanna\/[VER]", "iOS": " \\bi?OS\\b [VER][ ;]{1}", "Android": "Android [VER]", "BlackBerry": [ "BlackBerry[\\w]+\/[VER]", "BlackBerry.*Version\/[VER]", "Version\/[VER]" ], "BREW": "BREW [VER]", "Java": "Java\/[VER]", "Windows Phone OS": [ "Windows Phone OS [VER]", "Windows Phone [VER]" ], "Windows Phone": "Windows Phone [VER]", "Windows CE": "Windows CE\/[VER]", "Windows NT": "Windows NT [VER]", "Symbian": [ "SymbianOS\/[VER]", "Symbian\/[VER]" ], "webOS": [ "webOS\/[VER]", "hpwOS\/[VER];" ] }, "utils": { "Bot": "Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom", "MobileBot": "Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker\/M1A1-R2D2", "DesktopMode": "WPDesktop", "TV": "SonyDTV|HbbTV", "WebKit": "(webkit)[ \/]([\\w.]+)", "Console": "\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b", "Watch": "SM-V700" } }; // following patterns come from http://detectmobilebrowsers.com/ impl.detectMobileBrowsers = { fullPattern: /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, shortPattern: /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, tabletPattern: /android|ipad|playbook|silk/i }; var hasOwnProp = Object.prototype.hasOwnProperty, isArray; impl.FALLBACK_PHONE = 'UnknownPhone'; impl.FALLBACK_TABLET = 'UnknownTablet'; impl.FALLBACK_MOBILE = 'UnknownMobile'; isArray = ('isArray' in Array) ? Array.isArray : function (value) { return Object.prototype.toString.call(value) === '[object Array]'; }; function equalIC(a, b) { return a != null && b != null && a.toLowerCase() === b.toLowerCase(); } function containsIC(array, value) { var valueLC, i, len = array.length; if (!len || !value) { return false; } valueLC = value.toLowerCase(); for (i = 0; i < len; ++i) { if (valueLC === array[i].toLowerCase()) { return true; } } return false; } function convertPropsToRegExp(object) { for (var key in object) { if (hasOwnProp.call(object, key)) { object[key] = new RegExp(object[key], 'i'); } } } (function init() { var key, values, value, i, len, verPos, mobileDetectRules = impl.mobileDetectRules; for (key in mobileDetectRules.props) { if (hasOwnProp.call(mobileDetectRules.props, key)) { values = mobileDetectRules.props[key]; if (!isArray(values)) { values = [values]; } len = values.length; for (i = 0; i < len; ++i) { value = values[i]; verPos = value.indexOf('[VER]'); if (verPos >= 0) { value = value.substring(0, verPos) + '([\\w._\\+]+)' + value.substring(verPos + 5); } values[i] = new RegExp(value, 'i'); } mobileDetectRules.props[key] = values; } } convertPropsToRegExp(mobileDetectRules.oss); convertPropsToRegExp(mobileDetectRules.phones); convertPropsToRegExp(mobileDetectRules.tablets); convertPropsToRegExp(mobileDetectRules.uas); convertPropsToRegExp(mobileDetectRules.utils); // copy some patterns to oss0 which are tested first (see issue#15) mobileDetectRules.oss0 = { WindowsPhoneOS: mobileDetectRules.oss.WindowsPhoneOS, WindowsMobileOS: mobileDetectRules.oss.WindowsMobileOS }; }()); /** * Test userAgent string against a set of rules and find the first matched key. * @param {Object} rules (key is String, value is RegExp) * @param {String} userAgent the navigator.userAgent (or HTTP-Header 'User-Agent'). * @returns {String|null} the matched key if found, otherwise null * @private */ impl.findMatch = function(rules, userAgent) { for (var key in rules) { if (hasOwnProp.call(rules, key)) { if (rules[key].test(userAgent)) { return key; } } } return null; }; /** * Test userAgent string against a set of rules and return an array of matched keys. * @param {Object} rules (key is String, value is RegExp) * @param {String} userAgent the navigator.userAgent (or HTTP-Header 'User-Agent'). * @returns {Array} an array of matched keys, may be empty when there is no match, but not null * @private */ impl.findMatches = function(rules, userAgent) { var result = []; for (var key in rules) { if (hasOwnProp.call(rules, key)) { if (rules[key].test(userAgent)) { result.push(key); } } } return result; }; /** * Check the version of the given property in the User-Agent. * * @param {String} propertyName * @param {String} userAgent * @return {String} version or null if version not found * @private */ impl.getVersionStr = function (propertyName, userAgent) { var props = impl.mobileDetectRules.props, patterns, i, len, match; if (hasOwnProp.call(props, propertyName)) { patterns = props[propertyName]; len = patterns.length; for (i = 0; i < len; ++i) { match = patterns[i].exec(userAgent); if (match !== null) { return match[1]; } } } return null; }; /** * Check the version of the given property in the User-Agent. * Will return a float number. (eg. 2_0 will return 2.0, 4.3.1 will return 4.31) * * @param {String} propertyName * @param {String} userAgent * @return {Number} version or NaN if version not found * @private */ impl.getVersion = function (propertyName, userAgent) { var version = impl.getVersionStr(propertyName, userAgent); return version ? impl.prepareVersionNo(version) : NaN; }; /** * Prepare the version number. * * @param {String} version * @return {Number} the version number as a floating number * @private */ impl.prepareVersionNo = function (version) { var numbers; numbers = version.split(/[a-z._ \/\-]/i); if (numbers.length === 1) { version = numbers[0]; } if (numbers.length > 1) { version = numbers[0] + '.'; numbers.shift(); version += numbers.join(''); } return Number(version); }; impl.isMobileFallback = function (userAgent) { return impl.detectMobileBrowsers.fullPattern.test(userAgent) || impl.detectMobileBrowsers.shortPattern.test(userAgent.substr(0,4)); }; impl.isTabletFallback = function (userAgent) { return impl.detectMobileBrowsers.tabletPattern.test(userAgent); }; impl.prepareDetectionCache = function (cache, userAgent, maxPhoneWidth) { if (cache.mobile !== undefined) { return; } var phone, tablet, phoneSized; // first check for stronger tablet rules, then phone (see issue#5) tablet = impl.findMatch(impl.mobileDetectRules.tablets, userAgent); if (tablet) { cache.mobile = cache.tablet = tablet; cache.phone = null; return; // unambiguously identified as tablet } phone = impl.findMatch(impl.mobileDetectRules.phones, userAgent); if (phone) { cache.mobile = cache.phone = phone; cache.tablet = null; return; // unambiguously identified as phone } // our rules haven't found a match -> try more general fallback rules if (impl.isMobileFallback(userAgent)) { phoneSized = MobileDetect.isPhoneSized(maxPhoneWidth); if (phoneSized === undefined) { cache.mobile = impl.FALLBACK_MOBILE; cache.tablet = cache.phone = null; } else if (phoneSized) { cache.mobile = cache.phone = impl.FALLBACK_PHONE; cache.tablet = null; } else { cache.mobile = cache.tablet = impl.FALLBACK_TABLET; cache.phone = null; } } else if (impl.isTabletFallback(userAgent)) { cache.mobile = cache.tablet = impl.FALLBACK_TABLET; cache.phone = null; } else { // not mobile at all! cache.mobile = cache.tablet = cache.phone = null; } }; // t is a reference to a MobileDetect instance impl.mobileGrade = function (t) { // impl note: // To keep in sync w/ Mobile_Detect.php easily, the following code is tightly aligned to the PHP version. // When changes are made in Mobile_Detect.php, copy this method and replace: // $this-> / t. // self::MOBILE_GRADE_(.) / '$1' // , self::VERSION_TYPE_FLOAT / (nothing) // isIOS() / os('iOS') // [reg] / (nothing) <-- jsdelivr complaining about unescaped unicode character U+00AE var $isMobile = t.mobile() !== null; if ( // Apple iOS 3.2-5.1 - Tested on the original iPad (4.3 / 5.0), iPad 2 (4.3), iPad 3 (5.1), original iPhone (3.1), iPhone 3 (3.2), 3GS (4.3), 4 (4.3 / 5.0), and 4S (5.1) t.os('iOS') && t.version('iPad')>=4.3 || t.os('iOS') && t.version('iPhone')>=3.1 || t.os('iOS') && t.version('iPod')>=3.1 || // Android 2.1-2.3 - Tested on the HTC Incredible (2.2), original Droid (2.2), HTC Aria (2.1), Google Nexus S (2.3). Functional on 1.5 & 1.6 but performance may be sluggish, tested on Google G1 (1.5) // Android 3.1 (Honeycomb) - Tested on the Samsung Galaxy Tab 10.1 and Motorola XOOM // Android 4.0 (ICS) - Tested on a Galaxy Nexus. Note: transition performance can be poor on upgraded devices // Android 4.1 (Jelly Bean) - Tested on a Galaxy Nexus and Galaxy 7 ( t.version('Android')>2.1 && t.is('Webkit') ) || // Windows Phone 7-7.5 - Tested on the HTC Surround (7.0) HTC Trophy (7.5), LG-E900 (7.5), Nokia Lumia 800 t.version('Windows Phone OS')>=7.0 || // Blackberry 7 - Tested on BlackBerry Torch 9810 // Blackberry 6.0 - Tested on the Torch 9800 and Style 9670 t.is('BlackBerry') && t.version('BlackBerry')>=6.0 || // Blackberry Playbook (1.0-2.0) - Tested on PlayBook t.match('Playbook.*Tablet') || // Palm WebOS (1.4-2.0) - Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0) ( t.version('webOS')>=1.4 && t.match('Palm|Pre|Pixi') ) || // Palm WebOS 3.0 - Tested on HP TouchPad t.match('hp.*TouchPad') || // Firefox Mobile (12 Beta) - Tested on Android 2.3 device ( t.is('Firefox') && t.version('Firefox')>=12 ) || // Chrome for Android - Tested on Android 4.0, 4.1 device ( t.is('Chrome') && t.is('AndroidOS') && t.version('Android')>=4.0 ) || // Skyfire 4.1 - Tested on Android 2.3 device ( t.is('Skyfire') && t.version('Skyfire')>=4.1 && t.is('AndroidOS') && t.version('Android')>=2.3 ) || // Opera Mobile 11.5-12: Tested on Android 2.3 ( t.is('Opera') && t.version('Opera Mobi')>11 && t.is('AndroidOS') ) || // Meego 1.2 - Tested on Nokia 950 and N9 t.is('MeeGoOS') || // Tizen (pre-release) - Tested on early hardware t.is('Tizen') || // Samsung Bada 2.0 - Tested on a Samsung Wave 3, Dolphin browser // @todo: more tests here! t.is('Dolfin') && t.version('Bada')>=2.0 || // UC Browser - Tested on Android 2.3 device ( (t.is('UC Browser') || t.is('Dolfin')) && t.version('Android')>=2.3 ) || // Kindle 3 and Fire - Tested on the built-in WebKit browser for each ( t.match('Kindle Fire') || t.is('Kindle') && t.version('Kindle')>=3.0 ) || // Nook Color 1.4.1 - Tested on original Nook Color, not Nook Tablet t.is('AndroidOS') && t.is('NookTablet') || // Chrome Desktop 11-21 - Tested on OS X 10.7 and Windows 7 t.version('Chrome')>=11 && !$isMobile || // Safari Desktop 4-5 - Tested on OS X 10.7 and Windows 7 t.version('Safari')>=5.0 && !$isMobile || // Firefox Desktop 4-13 - Tested on OS X 10.7 and Windows 7 t.version('Firefox')>=4.0 && !$isMobile || // Internet Explorer 7-9 - Tested on Windows XP, Vista and 7 t.version('MSIE')>=7.0 && !$isMobile || // Opera Desktop 10-12 - Tested on OS X 10.7 and Windows 7 // @reference: http://my.opera.com/community/openweb/idopera/ t.version('Opera')>=10 && !$isMobile ){ return 'A'; } if ( t.os('iOS') && t.version('iPad')<4.3 || t.os('iOS') && t.version('iPhone')<3.1 || t.os('iOS') && t.version('iPod')<3.1 || // Blackberry 5.0: Tested on the Storm 2 9550, Bold 9770 t.is('Blackberry') && t.version('BlackBerry')>=5 && t.version('BlackBerry')<6 || //Opera Mini (5.0-6.5) - Tested on iOS 3.2/4.3 and Android 2.3 ( t.version('Opera Mini')>=5.0 && t.version('Opera Mini')<=6.5 && (t.version('Android')>=2.3 || t.is('iOS')) ) || // Nokia Symbian^3 - Tested on Nokia N8 (Symbian^3), C7 (Symbian^3), also works on N97 (Symbian^1) t.match('NokiaN8|NokiaC7|N97.*Series60|Symbian/3') || // @todo: report this (tested on Nokia N71) t.version('Opera Mobi')>=11 && t.is('SymbianOS') ){ return 'B'; } if ( // Blackberry 4.x - Tested on the Curve 8330 t.version('BlackBerry')<5.0 || // Windows Mobile - Tested on the HTC Leo (WinMo 5.2) t.match('MSIEMobile|Windows CE.*Mobile') || t.version('Windows Mobile')<=5.2 ){ return 'C'; } //All older smartphone platforms and featurephones - Any device that doesn't support media queries //will receive the basic, C grade experience. return 'C'; }; impl.detectOS = function (ua) { return impl.findMatch(impl.mobileDetectRules.oss0, ua) || impl.findMatch(impl.mobileDetectRules.oss, ua); }; impl.getDeviceSmallerSide = function () { return window.screen.width < window.screen.height ? window.screen.width : window.screen.height; }; /** * Constructor for MobileDetect object. *
* Such an object will keep a reference to the given user-agent string and cache most of the detect queries.
*
* Find information how to download and install: * github.com/hgoebl/mobile-detect.js/ *
* * @example
     *     var md = new MobileDetect(window.navigator.userAgent);
     *     if (md.mobile()) {
     *         location.href = (md.mobileGrade() === 'A') ? '/mobile/' : '/lynx/';
     *     }
     * 
* * @param {string} userAgent typically taken from window.navigator.userAgent or http_header['User-Agent'] * @param {number} [maxPhoneWidth=600] only for browsers specify a value for the maximum * width of smallest device side (in logical "CSS" pixels) until a device detected as mobile will be handled * as phone. * This is only used in cases where the device cannot be classified as phone or tablet.
* See Declaring Tablet Layouts * for Android.
* If you provide a value < 0, then this "fuzzy" check is disabled. * @constructor * @global */ function MobileDetect(userAgent, maxPhoneWidth) { this.ua = userAgent || ''; this._cache = {}; //600dp is typical 7" tablet minimum width this.maxPhoneWidth = maxPhoneWidth || 600; } MobileDetect.prototype = { constructor: MobileDetect, /** * Returns the detected phone or tablet type or null if it is not a mobile device. *
* For a list of possible return values see {@link MobileDetect#phone} and {@link MobileDetect#tablet}.
*
* If the device is not detected by the regular expressions from Mobile-Detect, a test is made against * the patterns of detectmobilebrowsers.com. If this test * is positive, a value of UnknownPhone, UnknownTablet or * UnknownMobile is returned.
* When used in browser, the decision whether phone or tablet is made based on screen.width/height.
*
* When used server-side (node.js), there is no way to tell the difference between UnknownTablet * and UnknownMobile, so you will get UnknownMobile here.
* Be aware that since v1.0.0 in this special case you will get UnknownMobile only for: * {@link MobileDetect#mobile}, not for {@link MobileDetect#phone} and {@link MobileDetect#tablet}. * In versions before v1.0.0 all 3 methods returned UnknownMobile which was tedious to use. *
* In most cases you will use the return value just as a boolean. * * @returns {String} the key for the phone family or tablet family, e.g. "Nexus". * @function MobileDetect#mobile */ mobile: function () { impl.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth); return this._cache.mobile; }, /** * Returns the detected phone type/family string or null. *
* The returned tablet (family or producer) is one of following keys:
*
iPhone, BlackBerry, HTC, Nexus, Dell, Motorola, Samsung, LG, Sony, Asus, * NokiaLumia, Micromax, Palm, Vertu, Pantech, Fly, Wiko, iMobile, SimValley, * Wolfgang, Alcatel, Nintendo, Amoi, INQ, GenericPhone
*
* If the device is not detected by the regular expressions from Mobile-Detect, a test is made against * the patterns of detectmobilebrowsers.com. If this test * is positive, a value of UnknownPhone or UnknownMobile is returned.
* When used in browser, the decision whether phone or tablet is made based on screen.width/height.
*
* When used server-side (node.js), there is no way to tell the difference between UnknownTablet * and UnknownMobile, so you will get null here, while {@link MobileDetect#mobile} * will return UnknownMobile.
* Be aware that since v1.0.0 in this special case you will get UnknownMobile only for: * {@link MobileDetect#mobile}, not for {@link MobileDetect#phone} and {@link MobileDetect#tablet}. * In versions before v1.0.0 all 3 methods returned UnknownMobile which was tedious to use. *
* In most cases you will use the return value just as a boolean. * * @returns {String} the key of the phone family or producer, e.g. "iPhone" * @function MobileDetect#phone */ phone: function () { impl.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth); return this._cache.phone; }, /** * Returns the detected tablet type/family string or null. *
* The returned tablet (family or producer) is one of following keys:
*
iPad, NexusTablet, SamsungTablet, Kindle, SurfaceTablet, HPTablet, AsusTablet, * BlackBerryTablet, HTCtablet, MotorolaTablet, NookTablet, AcerTablet, * ToshibaTablet, LGTablet, FujitsuTablet, PrestigioTablet, LenovoTablet, * DellTablet, YarvikTablet, MedionTablet, ArnovaTablet, IntensoTablet, IRUTablet, * MegafonTablet, EbodaTablet, AllViewTablet, ArchosTablet, AinolTablet, * NokiaLumiaTablet, SonyTablet, PhilipsTablet, CubeTablet, CobyTablet, MIDTablet, * MSITablet, SMiTTablet, RockChipTablet, FlyTablet, bqTablet, HuaweiTablet, * NecTablet, PantechTablet, BronchoTablet, VersusTablet, ZyncTablet, * PositivoTablet, NabiTablet, KoboTablet, DanewTablet, TexetTablet, * PlaystationTablet, TrekstorTablet, PyleAudioTablet, AdvanTablet, * DanyTechTablet, GalapadTablet, MicromaxTablet, KarbonnTablet, AllFineTablet, * PROSCANTablet, YONESTablet, ChangJiaTablet, GUTablet, PointOfViewTablet, * OvermaxTablet, HCLTablet, DPSTablet, VistureTablet, CrestaTablet, * MediatekTablet, ConcordeTablet, GoCleverTablet, ModecomTablet, VoninoTablet, * ECSTablet, StorexTablet, VodafoneTablet, EssentielBTablet, RossMoorTablet, * iMobileTablet, TolinoTablet, AudioSonicTablet, AMPETablet, SkkTablet, * TecnoTablet, JXDTablet, iJoyTablet, FX2Tablet, XoroTablet, ViewsonicTablet, * OdysTablet, CaptivaTablet, IconbitTablet, TeclastTablet, OndaTablet, * JaytechTablet, BlaupunktTablet, DigmaTablet, EvolioTablet, LavaTablet, * AocTablet, MpmanTablet, CelkonTablet, WolderTablet, MiTablet, NibiruTablet, * NexoTablet, LeaderTablet, UbislateTablet, PocketBookTablet, KocasoTablet, * HisenseTablet, Hudl, TelstraTablet, GenericTablet
*
* If the device is not detected by the regular expressions from Mobile-Detect, a test is made against * the patterns of detectmobilebrowsers.com. If this test * is positive, a value of UnknownTablet or UnknownMobile is returned.
* When used in browser, the decision whether phone or tablet is made based on screen.width/height.
*
* When used server-side (node.js), there is no way to tell the difference between UnknownTablet * and UnknownMobile, so you will get null here, while {@link MobileDetect#mobile} * will return UnknownMobile.
* Be aware that since v1.0.0 in this special case you will get UnknownMobile only for: * {@link MobileDetect#mobile}, not for {@link MobileDetect#phone} and {@link MobileDetect#tablet}. * In versions before v1.0.0 all 3 methods returned UnknownMobile which was tedious to use. *
* In most cases you will use the return value just as a boolean. * * @returns {String} the key of the tablet family or producer, e.g. "SamsungTablet" * @function MobileDetect#tablet */ tablet: function () { impl.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth); return this._cache.tablet; }, /** * Returns the (first) detected user-agent string or null. *
* The returned user-agent is one of following keys:
*
Chrome, Dolfin, Opera, Skyfire, Edge, IE, Firefox, Bolt, TeaShark, Blazer, * Safari, UCBrowser, baiduboxapp, baidubrowser, DiigoBrowser, Puffin, Mercury, * ObigoBrowser, NetFront, GenericBrowser, PaleMoon
*
* In most cases calling {@link MobileDetect#userAgent} will be sufficient. But there are rare * cases where a mobile device pretends to be more than one particular browser. You can get the * list of all matches with {@link MobileDetect#userAgents} or check for a particular value by * providing one of the defined keys as first argument to {@link MobileDetect#is}. * * @returns {String} the key for the detected user-agent or null * @function MobileDetect#userAgent */ userAgent: function () { if (this._cache.userAgent === undefined) { this._cache.userAgent = impl.findMatch(impl.mobileDetectRules.uas, this.ua); } return this._cache.userAgent; }, /** * Returns all detected user-agent strings. *
* The array is empty or contains one or more of following keys:
*
Chrome, Dolfin, Opera, Skyfire, Edge, IE, Firefox, Bolt, TeaShark, Blazer, * Safari, UCBrowser, baiduboxapp, baidubrowser, DiigoBrowser, Puffin, Mercury, * ObigoBrowser, NetFront, GenericBrowser, PaleMoon
*
* In most cases calling {@link MobileDetect#userAgent} will be sufficient. But there are rare * cases where a mobile device pretends to be more than one particular browser. You can get the * list of all matches with {@link MobileDetect#userAgents} or check for a particular value by * providing one of the defined keys as first argument to {@link MobileDetect#is}. * * @returns {Array} the array of detected user-agent keys or [] * @function MobileDetect#userAgents */ userAgents: function () { if (this._cache.userAgents === undefined) { this._cache.userAgents = impl.findMatches(impl.mobileDetectRules.uas, this.ua); } return this._cache.userAgents; }, /** * Returns the detected operating system string or null. *
* The operating system is one of following keys:
*
AndroidOS, BlackBerryOS, PalmOS, SymbianOS, WindowsMobileOS, WindowsPhoneOS, * iOS, MeeGoOS, MaemoOS, JavaOS, webOS, badaOS, BREWOS
* * @returns {String} the key for the detected operating system. * @function MobileDetect#os */ os: function () { if (this._cache.os === undefined) { this._cache.os = impl.detectOS(this.ua); } return this._cache.os; }, /** * Get the version (as Number) of the given property in the User-Agent. *
* Will return a float number. (eg. 2_0 will return 2.0, 4.3.1 will return 4.31) * * @param {String} key a key defining a thing which has a version.
* You can use one of following keys:
*
Mobile, Build, Version, VendorID, iPad, iPhone, iPod, Kindle, Chrome, Coast, * Dolfin, Firefox, Fennec, Edge, IE, NetFront, NokiaBrowser, Opera, Opera Mini, * Opera Mobi, UC Browser, MQQBrowser, MicroMessenger, baiduboxapp, baidubrowser, * SamsungBrowser, Iron, Safari, Skyfire, Tizen, Webkit, PaleMoon, Gecko, Trident, * Presto, Goanna, iOS, Android, BlackBerry, BREW, Java, Windows Phone OS, Windows * Phone, Windows CE, Windows NT, Symbian, webOS
* * @returns {Number} the version as float or NaN if User-Agent doesn't contain this version. * Be careful when comparing this value with '==' operator! * @function MobileDetect#version */ version: function (key) { return impl.getVersion(key, this.ua); }, /** * Get the version (as String) of the given property in the User-Agent. *
* * @param {String} key a key defining a thing which has a version.
* You can use one of following keys:
*
Mobile, Build, Version, VendorID, iPad, iPhone, iPod, Kindle, Chrome, Coast, * Dolfin, Firefox, Fennec, Edge, IE, NetFront, NokiaBrowser, Opera, Opera Mini, * Opera Mobi, UC Browser, MQQBrowser, MicroMessenger, baiduboxapp, baidubrowser, * SamsungBrowser, Iron, Safari, Skyfire, Tizen, Webkit, PaleMoon, Gecko, Trident, * Presto, Goanna, iOS, Android, BlackBerry, BREW, Java, Windows Phone OS, Windows * Phone, Windows CE, Windows NT, Symbian, webOS
* * @returns {String} the "raw" version as String or null if User-Agent doesn't contain this version. * * @function MobileDetect#versionStr */ versionStr: function (key) { return impl.getVersionStr(key, this.ua); }, /** * Global test key against userAgent, os, phone, tablet and some other properties of userAgent string. * * @param {String} key the key (case-insensitive) of a userAgent, an operating system, phone or * tablet family.
* For a complete list of possible values, see {@link MobileDetect#userAgent}, * {@link MobileDetect#os}, {@link MobileDetect#phone}, {@link MobileDetect#tablet}.
* Additionally you have following keys:
*
Bot, MobileBot, DesktopMode, TV, WebKit, Console, Watch
* * @returns {boolean} true when the given key is one of the defined keys of userAgent, os, phone, * tablet or one of the listed additional keys, otherwise false * @function MobileDetect#is */ is: function (key) { return containsIC(this.userAgents(), key) || equalIC(key, this.os()) || equalIC(key, this.phone()) || equalIC(key, this.tablet()) || containsIC(impl.findMatches(impl.mobileDetectRules.utils, this.ua), key); }, /** * Do a quick test against navigator::userAgent. * * @param {String|RegExp} pattern the pattern, either as String or RegExp * (a string will be converted to a case-insensitive RegExp). * @returns {boolean} true when the pattern matches, otherwise false * @function MobileDetect#match */ match: function (pattern) { if (!(pattern instanceof RegExp)) { pattern = new RegExp(pattern, 'i'); } return pattern.test(this.ua); }, /** * Checks whether the mobile device can be considered as phone regarding screen.width. *
* Obviously this method makes sense in browser environments only (not for Node.js)! * @param {number} [maxPhoneWidth] the maximum logical pixels (aka. CSS-pixels) to be considered as phone.
* The argument is optional and if not present or falsy, the value of the constructor is taken. * @returns {boolean|undefined} undefined if screen size wasn't detectable, else true * when screen.width is less or equal to maxPhoneWidth, otherwise false.
* Will always return undefined server-side. */ isPhoneSized: function (maxPhoneWidth) { return MobileDetect.isPhoneSized(maxPhoneWidth || this.maxPhoneWidth); }, /** * Returns the mobile grade ('A', 'B', 'C'). * * @returns {String} one of the mobile grades ('A', 'B', 'C'). * @function MobileDetect#mobileGrade */ mobileGrade: function () { if (this._cache.grade === undefined) { this._cache.grade = impl.mobileGrade(this); } return this._cache.grade; } }; // environment-dependent if (typeof window !== 'undefined' && window.screen) { MobileDetect.isPhoneSized = function (maxPhoneWidth) { return maxPhoneWidth < 0 ? undefined : impl.getDeviceSmallerSide() <= maxPhoneWidth; }; } else { MobileDetect.isPhoneSized = function () {}; } // should not be replaced by a completely new object - just overwrite existing methods MobileDetect._impl = impl; MobileDetect.version = '1.3.5 2016-11-14'; window.MobileDetect = MobileDetect; })(); (()=>{var e={92443(e){e.exports=window.jQuery},73758(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={googleBot:function(){return-1!==navigator.userAgent.toString().toLowerCase().indexOf("googlebot")}}},38212(e,t,r){"use strict";t.h=void 0;var n=r(73758);Object.defineProperty(t,"h",{enumerable:!0,get:function(){return n.default}})},79306(e,t,r){"use strict";var n=r(94901),o=r(16823),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},73506(e,t,r){"use strict";var n=r(13925),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},6469(e,t,r){"use strict";var n=r(78227),o=r(2360),i=r(24913).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},57829(e,t,r){"use strict";var n=r(68183).charAt;e.exports=function(e,t,r){return t+(r&&n(e,t).length||1)}},90679(e,t,r){"use strict";var n=r(1625),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},28551(e,t,r){"use strict";var n=r(20034),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},19617(e,t,r){"use strict";var n=r(25397),o=r(35610),i=r(26198),s=function(e){return function(t,r,s){var a=n(t),c=i(a);if(0===c)return!e&&-1;var u,l=o(s,c);if(e&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},34598(e,t,r){"use strict";var n=r(79039);e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}},67680(e,t,r){"use strict";var n=r(79504);e.exports=n([].slice)},74488(e,t,r){"use strict";var n=r(67680),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var s,a,c=1;c0;)e[a]=e[--a];a!==c++&&(e[a]=s)}else for(var u=o(r/2),l=i(n(e,0,u),t),d=i(n(e,u),t),f=l.length,p=d.length,h=0,g=0;h0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},3607(e,t,r){"use strict";var n=r(82839).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},46518(e,t,r){"use strict";var n=r(44576),o=r(77347).f,i=r(66699),s=r(36840),a=r(39433),c=r(77740),u=r(92796);e.exports=function(e,t){var r,l,d,f,p,h=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[h]||a(h,{}):n[h]&&n[h].prototype)for(l in t){if(f=t[l],d=e.dontCallGetSet?(p=o(r,l))&&p.value:r[l],!u(g?l:h+(m?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),s(r,l,f,e)}}},79039(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},89228(e,t,r){"use strict";r(27495);var n=r(69565),o=r(36840),i=r(57323),s=r(79039),a=r(78227),c=r(66699),u=a("species"),l=RegExp.prototype;e.exports=function(e,t,r,d){var f=a(e),p=!s(function(){var t={};return t[f]=function(){return 7},7!==""[e](t)}),h=p&&!s(function(){var t=!1,r=/a/;if("split"===e){var n={};n[u]=function(){return r},(r={constructor:n,flags:""})[f]=/./[f]}return r.exec=function(){return t=!0,null},r[f](""),!t});if(!p||!h||r){var g=/./[f],m=t(f,""[e],function(e,t,r,o,s){var a=t.exec;return a===i||a===l.exec?p&&!s?{done:!0,value:n(g,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}});o(String.prototype,e,m[0]),o(l,f,m[1])}d&&c(l[f],"sham",!0)}},18745(e,t,r){"use strict";var n=r(40616),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},76080(e,t,r){"use strict";var n=r(27476),o=r(79306),i=r(40616),s=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},40616(e,t,r){"use strict";var n=r(79039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},69565(e,t,r){"use strict";var n=r(40616),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},10350(e,t,r){"use strict";var n=r(43724),o=r(39297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},46706(e,t,r){"use strict";var n=r(79504),o=r(79306);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(i){}}},27476(e,t,r){"use strict";var n=r(22195),o=r(79504);e.exports=function(e){if("Function"===n(e))return o(e)}},79504(e,t,r){"use strict";var n=r(40616),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},97751(e,t,r){"use strict";var n=r(44576),o=r(94901);e.exports=function(e,t){return arguments.length<2?(r=n[e],o(r)?r:void 0):n[e]&&n[e][t];var r}},1767(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},50851(e,t,r){"use strict";var n=r(36955),o=r(55966),i=r(64117),s=r(26269),a=r(78227)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[n(e)]}},70081(e,t,r){"use strict";var n=r(69565),o=r(79306),i=r(28551),s=r(16823),a=r(50851),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(o(r))return i(n(r,e));throw new c(s(e)+" is not iterable")}},55966(e,t,r){"use strict";var n=r(79306),o=r(64117);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},2478(e,t,r){"use strict";var n=r(79504),o=r(48981),i=Math.floor,s=n("".charAt),a=n("".replace),c=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,f){var p=r+e.length,h=n.length,g=l;return void 0!==d&&(d=o(d),g=u),a(f,g,function(o,a){var u;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,p);case"<":u=d[c(a,1,-1)];break;default:var l=+a;if(0===l)return o;if(l>h){var f=i(l/10);return 0===f?o:f<=h?void 0===n[f-1]?s(a,1):n[f-1]+s(a,1):o}u=n[l-1]}return void 0===u?"":u})}},44576(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297(e,t,r){"use strict";var n=r(79504),o=r(48981),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},30421(e){"use strict";e.exports={}},20397(e,t,r){"use strict";var n=r(97751);e.exports=n("document","documentElement")},35917(e,t,r){"use strict";var n=r(43724),o=r(79039),i=r(4055);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},47055(e,t,r){"use strict";var n=r(79504),o=r(79039),i=r(22195),s=Object,a=n("".split);e.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?a(e,""):s(e)}:s},23167(e,t,r){"use strict";var n=r(94901),o=r(20034),i=r(52967);e.exports=function(e,t,r){var s,a;return i&&n(s=t.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(e,a),e}},33706(e,t,r){"use strict";var n=r(79504),o=r(94901),i=r(77629),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},91181(e,t,r){"use strict";var n,o,i,s=r(58622),a=r(44576),c=r(20034),u=r(66699),l=r(39297),d=r(77629),f=r(66119),p=r(30421),h="Object already initialized",g=a.TypeError,m=a.WeakMap;if(s||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new g(h);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=f("state");p[y]=!0,n=function(e,t){if(l(e,y))throw new g(h);return t.facade=e,u(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},44209(e,t,r){"use strict";var n=r(78227),o=r(26269),i=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},34376(e,t,r){"use strict";var n=r(22195);e.exports=Array.isArray||function(e){return"Array"===n(e)}},94901(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},92796(e,t,r){"use strict";var n=r(79039),o=r(94901),i=/#|\.prototype\./,s=function(e,t){var r=c[a(e)];return r===l||r!==u&&(o(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},64117(e){"use strict";e.exports=function(e){return null==e}},20034(e,t,r){"use strict";var n=r(94901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},13925(e,t,r){"use strict";var n=r(20034);e.exports=function(e){return n(e)||null===e}},96395(e){"use strict";e.exports=!1},65810(e,t,r){"use strict";var n=r(20034),o=r(91181).get;e.exports=function(e){if(!n(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},60788(e,t,r){"use strict";var n=r(20034),o=r(22195),i=r(78227)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},10757(e,t,r){"use strict";var n=r(97751),o=r(94901),i=r(1625),s=r(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,a(e))}},72652(e,t,r){"use strict";var n=r(76080),o=r(69565),i=r(28551),s=r(16823),a=r(44209),c=r(26198),u=r(1625),l=r(70081),d=r(50851),f=r(9539),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},g=h.prototype;e.exports=function(e,t,r){var m,v,y,w,b,S,x,E=r&&r.that,O=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_RECORD),R=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),A=n(t,E),P=function(e){var t=m;return m=void 0,t&&f(t,"normal"),new h(!0,e)},C=function(e){return O?(i(e),T?A(e[0],e[1],P):A(e[0],e[1])):T?A(e,P):A(e)};if(_)m=e.iterator;else if(R)m=e;else{if(!(v=d(e)))throw new p(s(e)+" is not iterable");if(a(v)){for(y=0,w=c(e);w>y;y++)if((b=C(e[y]))&&u(g,b))return b;return new h(!1)}m=l(e,v)}for(S=_?e.next:m.next;!(x=o(S,m)).done;){var k=x.value;try{b=C(k)}catch(j){if(!m)throw j;f(m,"throw",j)}if("object"==typeof b&&b&&u(g,b))return b}return new h(!1)}},91385(e,t,r){"use strict";var n=r(9539);e.exports=function(e,t,r){for(var o=e.length-1;o>=0;o--)if(void 0!==e[o])try{r=n(e[o].iterator,t,r)}catch(i){t="throw",r=i}if("throw"===t)throw r;return r}},9539(e,t,r){"use strict";var n=r(69565),o=r(28551),i=r(55966);e.exports=function(e,t,r){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(c){a=!0,s=c}if("throw"===t)throw r;if(a)throw s;return o(s),r}},33994(e,t,r){"use strict";var n=r(57657).IteratorPrototype,o=r(2360),i=r(6980),s=r(10687),a=r(26269),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),s(e,l,!1,!0),a[l]=c,e}},19462(e,t,r){"use strict";var n=r(69565),o=r(2360),i=r(66699),s=r(56279),a=r(78227),c=r(91181),u=r(55966),l=r(57657).IteratorPrototype,d=r(62529),f=r(9539),p=r(91385),h=a("toStringTag"),g="IteratorHelper",m="WrapForValidIterator",v="normal",y="throw",w=c.set,b=function(e){var t=c.getterFor(e?m:g);return s(o(l),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return d(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:d(n,r.done)}catch(o){throw r.done=!0,o}},return:function(){var r=t(this),o=r.iterator,i=r.done;if(r.done=!0,e){var s=u(o,"return");return s?n(s,o):d(void 0,!0)}if(i)return d(void 0,!0);if(r.inner)try{f(r.inner.iterator,v)}catch(a){return f(o,y,a)}if(r.openIters)try{p(r.openIters,v)}catch(a){if(o)return f(o,y,a);throw a}return o&&f(o,v),d(void 0,!0)}})},S=b(!0),x=b(!1);i(x,h,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?m:g,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,w(this,o)};return n.prototype=t?S:x,n}},51088(e,t,r){"use strict";var n=r(46518),o=r(69565),i=r(96395),s=r(10350),a=r(94901),c=r(33994),u=r(42787),l=r(52967),d=r(10687),f=r(66699),p=r(36840),h=r(78227),g=r(26269),m=r(57657),v=s.PROPER,y=s.CONFIGURABLE,w=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,S=h("iterator"),x="keys",E="values",O="entries",_=function(){return this};e.exports=function(e,t,r,s,h,m,R){c(r,t,s);var T,A,P,C=function(e){if(e===h&&N)return N;if(!b&&e&&e in L)return L[e];switch(e){case x:case E:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},k=t+" Iterator",j=!1,L=e.prototype,I=L[S]||L["@@iterator"]||h&&L[h],N=!b&&I||C(h),F="Array"===t&&L.entries||I;if(F&&(T=u(F.call(new e)))!==Object.prototype&&T.next&&(i||u(T)===w||(l?l(T,w):a(T[S])||p(T,S,_)),d(T,k,!0,!0),i&&(g[k]=_)),v&&h===E&&I&&I.name!==E&&(!i&&y?f(L,"name",E):(j=!0,N=function(){return o(I,this)})),h)if(A={values:C(E),keys:m?N:C(x),entries:C(O)},R)for(P in A)(b||j||!(P in L))&&p(L,P,A[P]);else n({target:t,proto:!0,forced:b||j},A);return i&&!R||L[S]===N||p(L,S,N,{name:h}),g[t]=N,A}},30684(e){"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(n){return!0}}},84549(e,t,r){"use strict";var n=r(44576);e.exports=function(e,t){var r=n.Iterator,o=r&&r.prototype,i=o&&o[e],s=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof t||(s=!1)}if(!s)return i}},57657(e,t,r){"use strict";var n,o,i,s=r(79039),a=r(94901),c=r(20034),u=r(2360),l=r(42787),d=r(36840),f=r(78227),p=r(96395),h=f("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):g=!0),!c(n)||s(function(){var e={};return n[h].call(e)!==e})?n={}:p&&(n=u(n)),a(n[h])||d(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},26269(e){"use strict";e.exports={}},26198(e,t,r){"use strict";var n=r(18014);e.exports=function(e){return n(e.length)}},50283(e,t,r){"use strict";var n=r(79504),o=r(79039),i=r(94901),s=r(39297),a=r(43724),c=r(10350).CONFIGURABLE,u=r(33706),l=r(91181),d=l.enforce,f=l.get,p=String,h=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),y=a&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),w=String(String).split("String"),b=e.exports=function(e,t,r){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&s(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var n=d(e);return s(n,"source")||(n.source=v(w,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function(){return i(this)&&f(this).source||u(this)},"toString")},80741(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},27819(e,t,r){"use strict";var n=r(79039);e.exports=!n(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},2360(e,t,r){"use strict";var n,o=r(28551),i=r(96801),s=r(88727),a=r(30421),c=r(20397),u=r(4055),l=r(66119),d="prototype",f="script",p=l("IE_PROTO"),h=function(){},g=function(e){return"<"+f+">"+e+""},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?m(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(n);for(var o=s.length;o--;)delete v[d][s[o]];return v()};a[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[d]=o(e),r=new h,h[d]=null,r[p]=e):r=v(),void 0===t?r:i.f(r,t)}},96801(e,t,r){"use strict";var n=r(43724),o=r(48686),i=r(24913),s=r(28551),a=r(25397),c=r(71072);t.f=n&&!o?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,r=o[l++],n[r]);return e}},24913(e,t,r){"use strict";var n=r(43724),o=r(35917),i=r(48686),s=r(28551),a=r(56969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=n?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=a(t),s(r),o)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},77347(e,t,r){"use strict";var n=r(43724),o=r(69565),i=r(48773),s=r(6980),a=r(25397),c=r(56969),u=r(39297),l=r(35917),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=c(t),l)try{return d(e,t)}catch(r){}if(u(e,t))return s(!o(i.f,e,t),e[t])}},38480(e,t,r){"use strict";var n=r(61828),o=r(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},33717(e,t){"use strict";t.f=Object.getOwnPropertySymbols},42787(e,t,r){"use strict";var n=r(39297),o=r(94901),i=r(48981),s=r(66119),a=r(12211),c=s("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},1625(e,t,r){"use strict";var n=r(79504);e.exports=n({}.isPrototypeOf)},61828(e,t,r){"use strict";var n=r(79504),o=r(39297),i=r(25397),s=r(19617).indexOf,a=r(30421),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);for(;t.length>u;)o(n,r=t[u++])&&(~s(l,r)||c(l,r));return l}},71072(e,t,r){"use strict";var n=r(61828),o=r(88727);e.exports=Object.keys||function(e){return n(e,o)}},48773(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},52967(e,t,r){"use strict";var n=r(46706),o=r(20034),i=r(67750),s=r(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(a){}return function(r,n){return i(r),s(n),o(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},84270(e,t,r){"use strict";var n=r(69565),o=r(94901),i=r(20034),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&o(r=e.toString)&&!i(a=n(r,e)))return a;if(o(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&o(r=e.toString)&&!i(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},35031(e,t,r){"use strict";var n=r(97751),o=r(79504),i=r(38480),s=r(33717),a=r(28551),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?c(t,r(e)):t}},616(e,t,r){"use strict";var n=r(79504),o=r(39297),i=SyntaxError,s=parseInt,a=String.fromCharCode,c=n("".charAt),u=n("".slice),l=n(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,n="";t0&&y(u,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==P&&"\r"!==P&&"\u2028"!==P&&"\u2029"!==P)&&(R="(?: (?:"+R+"))",A=" "+A,T++),r=new RegExp("^(?:"+R+")",h)}O&&(r=new RegExp("^"+R+"$(?!\\s)",h)),x&&(n=o.lastIndex);var C=i(m,p?r:o,A);return p?C?(C.input=u,C[0]=S(C[0],T),C.index=o.lastIndex,o.lastIndex+=C[0].length):o.lastIndex=0:x&&C&&(o.lastIndex=o.global?C.index+C[0].length:n),O&&C&&C.length>1&&i(g,C[0],r,function(){for(var e=1;eb)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})},67750(e,t,r){"use strict";var n=r(64117),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},93389(e,t,r){"use strict";var n=r(44576),o=r(43724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},87633(e,t,r){"use strict";var n=r(97751),o=r(62106),i=r(78227),s=r(43724),a=i("species");e.exports=function(e){var t=n(e);s&&t&&!t[a]&&o(t,a,{configurable:!0,get:function(){return this}})}},10687(e,t,r){"use strict";var n=r(24913).f,o=r(39297),i=r(78227)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},66119(e,t,r){"use strict";var n=r(25745),o=r(33392),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},77629(e,t,r){"use strict";var n=r(96395),o=r(44576),i=r(39433),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25745(e,t,r){"use strict";var n=r(77629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},68183(e,t,r){"use strict";var n=r(79504),o=r(91291),i=r(655),s=r(67750),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,d=i(s(t)),f=o(r),p=d.length;return f<0||f>=p?e?"":void 0:(n=c(d,f))<55296||n>56319||f+1===p||(l=c(d,f+1))<56320||l>57343?e?a(d,f):n:e?u(d,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},60706(e,t,r){"use strict";var n=r(10350).PROPER,o=r(79039),i=r(47452);e.exports=function(e){return o(function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||n&&i[e].name!==e})}},43802(e,t,r){"use strict";var n=r(79504),o=r(67750),i=r(655),s=r(47452),a=n("".replace),c=RegExp("^["+s+"]+"),u=RegExp("(^|[^"+s+"])["+s+"]+$"),l=function(e){return function(t){var r=i(o(t));return 1&e&&(r=a(r,c,"")),2&e&&(r=a(r,u,"$1")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},4495(e,t,r){"use strict";var n=r(39519),o=r(79039),i=r(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},35610(e,t,r){"use strict";var n=r(91291),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},25397(e,t,r){"use strict";var n=r(47055),o=r(67750);e.exports=function(e){return n(o(e))}},91291(e,t,r){"use strict";var n=r(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},18014(e,t,r){"use strict";var n=r(91291),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},48981(e,t,r){"use strict";var n=r(67750),o=Object;e.exports=function(e){return o(n(e))}},72777(e,t,r){"use strict";var n=r(69565),o=r(20034),i=r(10757),s=r(55966),a=r(84270),c=r(78227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=s(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},56969(e,t,r){"use strict";var n=r(72777),o=r(10757);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},92140(e,t,r){"use strict";var n={};n[r(78227)("toStringTag")]="z",e.exports="[object z]"===String(n)},655(e,t,r){"use strict";var n=r(36955),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},16823(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},33392(e,t,r){"use strict";var n=r(79504),o=0,i=Math.random(),s=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},67416(e,t,r){"use strict";var n=r(79039),o=r(78227),i=r(43724),s=r(96395),a=o("iterator");e.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),r.delete("a",2),r.delete("b",void 0),s&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(s||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})},7040(e,t,r){"use strict";var n=r(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686(e,t,r){"use strict";var n=r(43724),o=r(79039);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},22812(e){"use strict";var t=TypeError;e.exports=function(e,r){if(e=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)},"values");var g=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&d&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(m){}},26910(e,t,r){"use strict";var n=r(46518),o=r(79504),i=r(79306),s=r(48981),a=r(26198),c=r(84606),u=r(655),l=r(79039),d=r(74488),f=r(34598),p=r(13709),h=r(13763),g=r(39519),m=r(3607),v=[],y=o(v.sort),w=o(v.push),b=l(function(){v.sort(void 0)}),S=l(function(){v.sort(null)}),x=f("sort"),E=!l(function(){if(g)return g<70;if(!(p&&p>3)){if(h)return!0;if(m)return m<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)v.push({k:t+n,v:r})}for(v.sort(function(e,t){return t.v-e.v}),n=0;no?1:-1}}(e)),r=a(o),n=0;n@^][^\s!#%&*+<=>@^]*>/,N=/a/g,F=/a/g,D=new R(N)!==N,U=g.MISSED_STICKY,V=g.UNSUPPORTED_Y,M=n&&(!D||U||E||O||y(function(){return F[_]=!1,R(N)!==N||R(F)===F||"/a/i"!==String(R(N,"i"))}));if(s("RegExp",M)){for(var B=function(e,t){var r,n,o,i,s,l,g=d(T,this),m=f(e),v=void 0===t,y=[],S=e;if(!g&&m&&v&&e.constructor===B)return e;if((m||d(T,e))&&(e=e.source,v&&(t=h(S))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),S=e,E&&"dotAll"in N&&(n=!!t&&j(t,"s")>-1)&&(t=k(t,/s/g,"")),r=t,U&&"sticky"in N&&(o=!!t&&j(t,"y")>-1)&&V&&(t=k(t,/y/g,"")),O&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],s=u(null),a=!1,c=!1,l=0,d="";n"===t&&c:if(""===d||w(s,d))throw new A("Invalid capture group name");s[d]=!0,i[i.length]=[d,l],c=!1,d="";continue}c?d+=t:o+=t}for(var f=0;f",h="\\"+i[f][1];j(o,p)>-1;)o=k(o,p,h);return[o,i]}(e),e=i[0],y=i[1]),s=a(R(e,t),g?this:T,B),(n||o||y.length)&&(l=b(s),n&&(l.dotAll=!0,l.raw=B(function(e){for(var t,r=e.length,n=0,o="",i=!1;nz;)m(B,R,q[z++]);T.constructor=B,B.prototype=T,v(o,"RegExp",B,{constructor:!0})}S("RegExp")},27495(e,t,r){"use strict";var n=r(46518),o=r(57323);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},27337(e,t,r){"use strict";var n=r(46518),o=r(79504),i=r(35610),s=RangeError,a=String.fromCharCode,c=String.fromCodePoint,u=o([].join);n({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(i(t=+arguments[o],1114111)!==t)throw new s(t+" is not a valid code point");r[o++]=t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320)}return u(r,"")}})},25440(e,t,r){"use strict";var n=r(18745),o=r(69565),i=r(79504),s=r(89228),a=r(79039),c=r(28551),u=r(94901),l=r(20034),d=r(91291),f=r(18014),p=r(655),h=r(67750),g=r(57829),m=r(55966),v=r(2478),y=r(61034),w=r(56682),b=r(78227)("replace"),S=Math.max,x=Math.min,E=i([].concat),O=i([].push),_=i("".indexOf),R=i("".slice),T=function(e){return void 0===e?e:String(e)},A="$0"==="a".replace(/./,"$0"),P=!!/./[b]&&""===/./[b]("a","$0");s("replace",function(e,t,r){var i=P?"$":"$0";return[function(e,r){var n=h(this),i=l(e)?m(e,b):void 0;return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var s=c(this),a=p(e),l=u(o);l||(o=p(o));var h=p(y(s));if("string"==typeof o&&!~_(o,i)&&!~_(o,"$<")&&!~_(h,"y")){var m=r(t,s,a,o);if(m.done)return m.value}var b,A=!!~_(h,"g");A&&(b=!!~_(h,"u")||!!~_(h,"v"),s.lastIndex=0);for(var P,C=[];null!==(P=w(s,a))&&(O(C,P),A);){""===p(P[0])&&(s.lastIndex=g(a,f(s.lastIndex),b))}for(var k="",j=0,L=0;L=j&&(k+=R(a,j,F)+I,j=F+N.length)}return k+R(a,j)}]},!!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})||!A||P)},42762(e,t,r){"use strict";var n=r(46518),o=r(43802).trim;n({target:"String",proto:!0,forced:r(60706)("trim")},{trim:function(){return o(this)}})},98992(e,t,r){"use strict";r(18111)},54520(e,t,r){"use strict";r(22489)},3949(e,t,r){"use strict";r(7588)},81454(e,t,r){"use strict";r(61701)},37550(e,t,r){"use strict";r(13579)},62953(e,t,r){"use strict";var n=r(44576),o=r(67400),i=r(79296),s=r(23792),a=r(66699),c=r(10687),u=r(78227)("iterator"),l=s.values,d=function(e,t){if(e){if(e[u]!==l)try{a(e,u,l)}catch(n){e[u]=l}if(c(e,t,!0),o[t])for(var r in s)if(e[r]!==s[r])try{a(e,r,s[r])}catch(n){e[r]=s[r]}}};for(var f in o)d(n[f]&&n[f].prototype,f);d(i,"DOMTokenList")},98406(e,t,r){"use strict";r(23792),r(27337);var n=r(46518),o=r(44576),i=r(93389),s=r(97751),a=r(69565),c=r(79504),u=r(43724),l=r(67416),d=r(36840),f=r(62106),p=r(56279),h=r(10687),g=r(33994),m=r(91181),v=r(90679),y=r(94901),w=r(39297),b=r(76080),S=r(36955),x=r(28551),E=r(20034),O=r(655),_=r(2360),R=r(6980),T=r(70081),A=r(50851),P=r(62529),C=r(22812),k=r(78227),j=r(74488),L=k("iterator"),I="URLSearchParams",N=I+"Iterator",F=m.set,D=m.getterFor(I),U=m.getterFor(N),V=i("fetch"),M=i("Request"),B=i("Headers"),q=M&&M.prototype,z=B&&B.prototype,H=o.TypeError,$=o.encodeURIComponent,W=String.fromCharCode,G=s("String","fromCodePoint"),J=parseInt,K=c("".charAt),X=c([].join),Y=c([].push),Q=c("".replace),Z=c([].shift),ee=c([].splice),te=c("".split),re=c("".slice),ne=c(/./.exec),oe=/\+/g,ie=/^[0-9a-f]+$/i,se=function(e,t){var r=re(e,t,t+2);return ne(ie,r)?J(r,16):NaN},ae=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},ce=function(e){var t=null,r=e.length;switch(r){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||t>1114111||t>=55296&&t<=57343||t<(r>3?65536:r>2?2048:r>1?128:0)?null:t},ue=function(e){for(var t=(e=Q(e,oe," ")).length,r="",n=0;nt){r+="%",n++;continue}var i=se(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var s=ae(i);if(0===s)o=W(i);else{if(1===s||s>4){r+="�",n++;continue}for(var a=[i],c=1;ct||"%"!==K(e,n));){var u=se(e,n+1);if(u!=u||u>191||u<128)break;if(1===c){if(224===i&&u<160)break;if(237===i&&u>159)break;if(240===i&&u<144)break;if(244===i&&u>143)break}Y(a,u),n+=2,c++}if(a.length!==s){r+="�";continue}var l=ce(a);if(null===l){for(var d=0;d=t.length)return e.target=null,P(void 0,!0);var n=t[r];switch(e.kind){case"keys":return P(n.key,!1);case"values":return P(n.value,!1)}return P([n.key,n.value],!1)},!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(E(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?re(e,1):e:O(e)))};ge.prototype={type:I,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,s,c,u=this.entries,l=A(e);if(l)for(r=(t=T(e,l)).next;!(n=a(r,t)).done;){if(i=(o=T(x(n.value))).next,(s=a(i,o)).done||(c=a(i,o)).done||!a(i,o).done)throw new H("Expected sequence with length 2");Y(u,{key:O(s.value),value:O(c.value)})}else for(var d in e)w(e,d)&&Y(u,{key:d,value:O(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=te(e,"&"),i=0;i0?arguments[0]:void 0));u||(this.size=e.entries.length)},ve=me.prototype;if(p(ve,{append:function(e,t){var r=D(this);C(arguments.length,2),Y(r.entries,{key:O(e),value:O(t)}),u||this.size++,r.updateURL()},delete:function(e){for(var t=D(this),r=C(arguments.length,1),n=t.entries,o=O(e),i=r<2?void 0:arguments[1],s=void 0===i?i:O(i),a=0;at.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=D(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),o=0;o1?be(arguments[1]):{})}}),y(M)){var Se=function(e){return v(this,q),new M(e,arguments.length>1?be(arguments[1]):{})};q.constructor=Se,Se.prototype=q,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Se})}}e.exports={URLSearchParams:me,getState:D}},48408(e,t,r){"use strict";r(98406)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e={};function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}function o(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.r(e),r.d(e,{hasBrowserEnv:()=>it,hasStandardBrowserEnv:()=>at,hasStandardBrowserWebWorkerEnv:()=>ct,navigator:()=>st,origin:()=>ut});r(26910),r(33110),r(27495),r(98992),r(3949),r(81454),r(54520),r(37550);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{if("string"!=typeof e||!e)throw new Error("Invalid customer ID");const n=s(s({allowStorageAccess:!0,allowPersonalisation:!0,gdprApplies:null,consentString:"",integrateWithCmp:!1,waitForCmpConsent:!1,requestParams:{},timeout:1e3,addStatusKey:!1,cacheType:"",cacheKey:"url,allowPersonalisation,requestParams",cacheTime:86400,requestDomains:{regular:"pdw-usr.userreport.com",nonPersonalised:"dnt-userreport.com"},debug:!1},t),(()=>{const e="__audienceProjectDataFetchOptions=";let t;return window.location.search.split(/[?&]/).some(r=>{const n=0===r.indexOf(e);if(n){const e=r.slice(34);try{t=JSON.parse(decodeURIComponent(e))}catch(o){}}return n}),t})()),o=function(){for(var e,t=arguments.length,r=new Array(t),o=0;o{try{return JSON.parse(e)}catch(t){return}},d=()=>(e=>{let t=0;const r=e.length;for(let n=0;n{if("url"===e)return window.location.pathname.slice(1)+window.location.search;if("allowPersonalisation"===e)return n.allowPersonalisation?"":0;if("requestParams"===e){const e=JSON.stringify(n.requestParams);return"{}"===e?"":e}return""}).join("")),m=localStorage,v="apr_sref",y="apr_data_cache",w=e=>{if(!n.allowStorageAccess)return;let t;try{t=m[e]}catch(r){}return t&&0===t.indexOf("{")&&t.lastIndexOf("}")===t.length-1?i(t):t},b=(e,t)=>{if(!n.allowStorageAccess)return;const r="object"==typeof t?JSON.stringify(t):t;try{m[e]=r}catch(o){}},S=e=>{if(!n.integrateWithCmp)return void e();if(o("Checking CMP…"),"function"!=typeof __tcfapi)return void o("No TCF 2.2 API found…");o("Using TCF 2.2 API…");const t=(e,t)=>{__tcfapi(e,2,function(){for(var e=arguments.length,r=new Array(e),n=0;n{s&&("tcloaded"!==i.eventStatus&&"useractioncomplete"!==i.eventStatus||(t("removeEventListener",r),(e=>{if(n.gdprApplies=Boolean(e.gdprApplies),n.consentString=e.tcString||"",n.gdprApplies){var t,r,i;const o=null===(t=e.vendor)||void 0===t||null===(t=t.consents)||void 0===t?void 0:t[394];n.allowStorageAccess=Boolean(o&&(null===(r=e.purpose)||void 0===r||null===(r=r.consents)||void 0===r?void 0:r[1])),n.allowPersonalisation=Boolean(o&&(null===(i=e.purpose)||void 0===i||null===(i=i.consents)||void 0===i?void 0:i[3]))}o("Options after CMP override:",n)})(i),e()))};o("Adding TCF consent listener…"),t("addEventListener",r)};let x;const E=Math.round((new Date).getTime()/1e3),O=()=>"localStorage"!==n.cacheType||(()=>{if(!n.allowStorageAccess)return!1;const e="apr_check_access@".concat(Math.random());try{m[e]=e;const t=m[e]===e;return delete m[e],t}catch(t){}return!1})()?n.cacheType:"memory",_=new XMLHttpRequest,R=(t,r)=>{o("Reading prediction from API…");const s=["med",window.location.href];document.referrer&&s.push("ref",document.referrer);const a=w(v);if(a&&s.push("sref",a),n.allowPersonalisation){const e=w("apr_dsu");e&&s.push("dsu",e)}"boolean"==typeof n.gdprApplies&&s.push("gdpr",Number(n.gdprApplies)),n.consentString&&s.push("gdpr_consent",n.consentString),s.push("appid","".concat(c,":").concat(u));!function e(t,r){Object.keys(t).forEach(n=>{const o=t[n];if(void 0===o)return;const i=r+n;var a;a=o,"[object Array]"===Object.prototype.toString.call(a)?o.forEach(e=>{s.push(i,e)}):"object"==typeof o?e(o,"".concat(i,"_")):s.push(i,o)})}(n.requestParams,"");const l=n.allowPersonalisation?n.requestDomains.regular:n.requestDomains.nonPersonalised;let d="https://".concat(l,"/api/v2/partner/").concat(encodeURIComponent(e),"/uid");return s.forEach((e,t)=>{d+=(t%2?"=":t?"&":"?")+encodeURIComponent(e)}),((e,t,r)=>{o("API request:",e),_.onreadystatechange=()=>{if(_.readyState===XMLHttpRequest.DONE)if(200===_.status){const e=i(_.responseText);o("API response:",e),t(e)}else o("API failed with code:",_.status),r()},_.open("GET",e,!0),_.withCredentials=n.allowPersonalisation,_.send()})(d,t,r)},T=[];return"function"==typeof r&&T.push(r),(()=>{let e;g.state=f,delete g.result,delete g.options;let t=!1;const r=(r,i)=>{if(t)return;t=!0,((e,t)=>{n.addStatusKey&&(o("Updating status fields…"),e.keyValues=e.keyValues||{},e.keyValues.ap_ds=String(t))})(r,i.code);const a=s({type:i.value},r);g.state=parseInt(i.code,10)>0?p:h,g.result=a,g.options=n,(e=>{clearTimeout(e);const t=(new Date).getTime()-x;o("Timeout ended:",t,"ms")})(e),_.abort(),o("Callback result:",a),T.forEach(e=>{e(a)})};S(()=>{const t={value:"TIMEOUT",code:-2},i={value:"BACKEND_ERROR",code:-1},s=n.allowPersonalisation?{value:"RETURNED",code:1}:{value:"RETURNED_ANONYMOUS",code:"1a"},a=n.allowPersonalisation?{value:"RETURNED_FROM_CACHE",code:2}:{value:"RETURNED_ANONYMOUS_FROM_CACHE",code:"2a"};return e=(e=>{if(n.timeout)return o("Timeout started…"),x=(new Date).getTime(),setTimeout(e,n.timeout)})(()=>{r({},t)}),(()=>{if(!n.allowPersonalisation)return;o("Checking session referrer…");const e="".concat(window.location.protocol,"//").concat(window.location.host,"/");document.referrer&&0!==document.referrer.indexOf(e)&&(o("Session referrer updated:",document.referrer),b(v,document.referrer))})(),((e,t)=>{const r=O();if(!r)return t();let i;o("Reading prediction from cache…");const s=d();return"localStorage"===r?(o("Reading prediction from local storage key:",s),i=w(y)):"memory"===r&&(o("Reading prediction from memory key:",s),i=l[s]),"object"!=typeof i?t():i.ttl+n.cacheTime{r(e,a)},()=>R(e=>{(e=>{const t=O();if(!t)return;o("Saving prediction to cache…");const r=d(),n={data:e,ttl:E,hash:r};"localStorage"===t?b(y,n):"memory"===t&&(l[r]=n)})(e),r(e,s)},()=>{r({},i)}))})})(),{promise:()=>new Promise(e=>{o("Promise called…"),T.push(e)})}},utils:{sendDataToGooglePublisherTag:e=>{window.googletag=window.googletag||{cmd:[]};const t=()=>{Object.keys(e.keyValues).forEach(t=>{window.googletag.pubads().setTargeting(t,e.keyValues[t])})};window.googletag.cmd.unshift?window.googletag.cmd.unshift(t):window.googletag.cmd.push(t)}}},v={css:{logLabel:"color: #FFF; background: #188ae2; padding: 2px 0px 2px 4px; border-radius: 3px 0px 0px 3px; font-weight: bold",log:"color: #FFF; background: #188ae2; padding: 2px 4px 2px 0px; border-radius: 0px 3px 3px 0px;",successLabel:"color: #FFF; background: #31ce77; padding: 2px 0px 2px 4px; border-radius: 3px 0px 0px 3px; font-weight: bold",success:"color: #FFF; background: #31ce77; padding: 2px 4px 2px 0px; border-radius: 0px 3px 3px 0px;",warningLabel:"color: #FFF; background: #F57C00; padding: 2px 0px 2px 4px; border-radius: 3px 0px 0px 3px; font-weight: bold",warning:"color: #FFF; background: #F57C00; padding: 2px 4px 2px 0px; border-radius: 0px 3px 3px 0px;",errorLabel:"color: #FFF; background: #f34943; padding: 2px 0px 2px 4px; border-radius: 3px 0px 0px 3px; font-weight: bold",error:"color: #FFF; background: #f34943; padding: 2px 4px 2px 0px; border-radius: 0px 3px 3px 0px;"},print(e,t){if(1===parseInt(this.getCookie("debug"),10)){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o=this.acceptableViewability?this.startTimer(e):this.pauseTimer(e)):v.log("DFP - Browser is not focused, ignoring ".concat(e)):v.log("DFP - Ignoring ".concat(e))},pauseTimer(e){v.log("DFP - pausing timer for ".concat(e)),clearTimeout(this.runningTimers[e]),this.runningTimers[e]=null},startTimer(e){e in this.timerPositions||(this.timerPositions[e]=0),e in this.runningTimers||(this.runningTimers[e]=null),e in this.timerCount||(this.timerCount[e]=1),"number"!=typeof this.runningTimers[e]?(v.log("DFP - (re)starting a timer for ".concat(e)),this.runningTimers[e]=window.setTimeout(()=>{this.updateTimer(e)},1e3)):v.log("DFP - Timer for ".concat(e," already running"))},updateTimer(e){if(!this.checkFocus())return v.log("DFP - Browser is not focused, pausing timer for ".concat(e)),void this.pauseTimer(e);if(!this.checkRefresh(e))return v.log("DFP - advert has no-refresh dom attribute, pausing timer for ".concat(e)),void this.pauseTimer(e);let t=this.timerPositions[e];if(t+=1,v.log("DFP - updating ".concat(e," to ").concat(t," seconds")),t>this.advertRefreshTime)return this.resetTimer(e),void this.refreshAdvert(e);this.timerPositions[e]=t,this.runningTimers[e]=window.setTimeout(()=>{this.updateTimer(e)},1e3)},refreshAdvert(e){v.log("DFP - Refreshing ".concat(e));const t=this.timerCount[e];v.log("DFP - setting rfs to ".concat(t," for ").concat(e)),window.dfpHolder[e].setTargeting("rfs",t),window.pbjs.rp.requestBids({callback:this.refreshAdvertCallback,gptSlotObjects:[window.dfpHolder[e]]}),this.timerCount[e]+=1},refreshAdvertCallback(e){window.googletag.pubads().refresh(e)},resetTimer(e){this.pauseTimer(e),this.timerPositions[e]=0},checkName(e){switch(e){case"DFP_top_leaderboard":return 1===y("#comments-in-page").length&&window.screen.width<=450;case"DFP_article_fluid_1":case"DFP_teads":case"DFP_out_of_page":case"DFP_standard_mpu_3":case"DFP_standard_mpu_4":case"DFP_standard_mpu_5":case"DFP_standard_mpu_6":case"DFP_standard_mpu_7":case"DFP_gallery_mpu":case"DFP_gallery_interstitial":return!1;default:return!0}},checkFocus(){return this.browserFocus},setFocusListeners(){window.addEventListener("focus",()=>{this.setFocused()},!1),window.addEventListener("blur",()=>{this.setBlurred()},!1)},setFocused(){v.log("DFP - Browser focused"),this.browserFocus=!0},setBlurred(){v.log("DFP - Browser blurred"),this.browserFocus=!1},checkRefresh(e){v.log("Checking DOM for no-refresh on ".concat(e));const t=document.getElementById(e).classList.contains("no-refresh");return v.log("Does ".concat(e," contain 'no-refresh'? ").concat(t)),!t}};r(25440),r(92443),r(92443);r(84864),r(42762);const b={modalSelector:{container:"mar-modal-container",inner:"mar-modal",dialog:"mar-modal__dialog",header:"mar-modal__header",title:"mar-modal__title",body:"mar-modal__body",actions:"mar-modal__actions",animateOut:"mar-modal-container--animate-out",animateOutLayout:"mar-modal-container--animate-out-layout",submitBtn:'[data-uses-js="modal-submit"]',cancelBtn:'[data-uses-js="modal-cancel"]'},hiddenSelector:"visually-hidden",noScrollSelector:"no-scroll",bodyContentSelector:"takeover",openSelector:'[data-uses-js="open-modal"]',closeSelector:'[data-uses-js="close-modal"]',modalVariants:["sm","md","lg"],sourceContent:null,customClass:null,init(){v.log("modal has been inititated");document.querySelector(this.openSelector)&&this.bind()},bind(){document.addEventListener("click",e=>{e.target.closest(this.openSelector)&&(this.toggleModal(!0),this.renderModalSize({btnElement:e.target.closest(this.openSelector),open:!0}),this.toggleModalName({btnElement:e.target.closest(this.openSelector),add:!0})),e.target.closest(this.closeSelector)&&this.close(),e.target.closest(this.modalSelector.cancelBtn)&&this.close()})},async open(e){let t=e.size,r=e.heading,n=e.source,o=e.content,i=e.btnElement,s=e.btnSecondary,a=e.customClass;this.toggleModal(!0),this.renderModalSize({open:!0,btnElement:i,size:t}),this.renderContent({heading:r,source:n,content:o,btnElement:i,btnSecondary:s,customClass:a}),n&&(document.querySelector(".".concat(this.modalSelector.container)).dataset.source=n)},close(){this.toggleModal(!1),this.renderModalSize({open:!1}),this.toggleModalName({add:!1}),this.destroyContent(document.querySelector(".".concat(this.modalSelector.container)).dataset.source)},toggleModal(e){const t=document.querySelector("body"),r=document.querySelector(".".concat(this.modalSelector.container)),n=document.getElementById(this.bodyContentSelector),o=window.innerWidth-document.documentElement.clientWidth;e?(requestAnimationFrame(()=>{r.classList.remove(this.hiddenSelector)}),r.classList.remove(this.modalSelector.animateOut),t.classList.add(this.noScrollSelector),t.style.paddingRight="".concat(o,"px")):(r.classList.add(this.modalSelector.animateOut),t.classList.remove(this.noScrollSelector),t.style.removeProperty("padding-right"),n.classList.add(this.modalSelector.animateOutLayout),requestAnimationFrame(()=>{n.classList.remove(this.modalSelector.animateOutLayout),r.classList.add(this.hiddenSelector)}))},renderModalSize(e){let t=e.btnElement,r=e.open,n=e.variants,o=void 0===n?this.modalVariants:n,i=e.size;const s=document.querySelector(".".concat(this.modalSelector.container)),a=s.querySelector(".".concat(this.modalSelector.inner));if(r){if(!s)return;const e=i||t.dataset.modalSize,r="".concat(this.modalSelector.inner,"--").concat(e);a.classList.contains(r)||a.classList.add(r)}else{if(!o.length)return;o.forEach(e=>{const t="".concat(this.modalSelector.inner,"--").concat(e);a.classList.contains(t)&&a.classList.remove(t)})}},renderContent(e){let t=e.heading,r=e.source,n=e.content,o=e.btnElement,i=e.btnSecondary,s=e.customClass;const a=document.querySelector(".".concat(this.modalSelector.container)),c=a.querySelector(".".concat(this.modalSelector.header)),u=a.querySelector(".".concat(this.modalSelector.title)),l=a.querySelector(".".concat(this.modalSelector.body));let d=a.querySelector(this.modalSelector.submitBtn);const f=a.querySelector(this.modalSelector.cancelBtn),p=o||{text:""},h=p.text,g=p.addEventListener,m=p.dataUsesJs;s&&(a.classList.add(s),this.customClass=s),t?(c.classList.remove("hidden"),u.innerHTML=t,u.style.textAlign="left"):(c.classList.add("hidden"),u.innerHTML=""),n?l.innerHTML=n:r?(this.sourceContent=document.querySelector(r).innerHTML,document.querySelector(r).innerHTML="",l.innerHTML=this.sourceContent):l.innerHTML="",d&&d.classList.remove("hidden"),o&&f.classList.remove("hidden"),o?(h&&d&&(d.textContent=h),"function"==typeof g&&d&&d.addEventListener("click",g),m&&(null===d||""===d?(d=a.querySelector("button"),d.dataset.usesJs=m,d.textContent=h,d.addEventListener("click",g)):d.dataset.usesJs=m)):d&&d.classList.add("hidden"),i?(i.text&&(f.textContent=i.text),"function"==typeof i.addEventListener&&f.addEventListener("click",i.addEventListener)):f.classList.add("hidden"),o||i||document.querySelector(".".concat(this.modalSelector.actions)).classList.add("hidden")},destroyContent(e){if(e){const t=document.querySelector(".".concat(this.modalSelector.container));t.querySelector(".".concat(this.modalSelector.body)).innerHTML="",t.dataset.source=null,t.classList.remove(this.customClass),this.customClass=null,document.querySelector(e).innerHTML=this.sourceContent}},toggleModalName(e){let t=e.btnElement,r=e.add;const n=document.querySelector(".".concat(this.modalSelector.container));if(r){const e=t.dataset.modalName;e&&n.setAttribute("data-modal-name",e)}else n.removeAttribute("data-modal-name")}};class S{static trackMobileVerification(e,t){try{switch(window.s.events=e,window.s.linkTrackEvents=e,e){case this.Events.MobileVerification.Started:case this.Events.MobileVerification.CodeSent:case this.Events.MobileVerification.Success:window.s.linkTrackVars="eVar2,eVar4,eVar5,eVar6,eVar7,eVar16,eVar19,eVar26";break;case this.Events.MobileVerification.TelNoError:case this.Events.MobileVerification.CodeError:window.s.linkTrackVars="eVar2,eVar4,eVar5,eVar6,eVar7,eVar16,eVar19,eVar26,eVar31",window.s.eVar31=t||"Unknown error"}switch(window.s.tl(!0,"o","mobile verification"),e){case this.Events.MobileVerification.Started:v.success("Log verify phone begin");break;case this.Events.MobileVerification.TelNoError:v.error("Log verify phone tel no error");break;case this.Events.MobileVerification.CodeSent:v.success("Log verify phone code sent");break;case this.Events.MobileVerification.CodeError:v.error("Log verify phone code error");break;case this.Events.MobileVerification.Success:v.success("Log verify phone success")}}catch(r){v.error(r)}}static trackNewsletter(e){try{let t;switch(window.s.events=e,e){case this.Events.NewsletterSubscription.Subscribed:window.s.eVar99="+1",window.s.linkTrackVars="eVar2,eVar4,eVar5,eVar6,eVar16,eVar19,eVar25,eVar26,eVar27,eVar43,eVar61,eVar63,eVar99,prop62,list3,events",t="Newsletter subscription, event85";break;case this.Events.NewsletterSubscription.Unsubscribed:window.s.linkTrackVars="eVar2,eVar4,eVar5,eVar6,eVar16,eVar19,eVar25,eVar26,eVar27,eVar43,eVar61,eVar63,prop62,list3,events",t="Newsletter unsubscription, event86"}window.s.suppressPageView=!0,window.s.linkTrackEvents=e,window.s.tl(!0,"o","Newsletter Sign Up"),window.s.events="",v.success(t)}catch(t){v.error(t)}}static trackSubEditor(e,t){const r=window.s;r.linkTrackVars="eVar2,prop3,prop4,prop5,prop6,prop7,prop8,prop9,prop15,prop16,prop17,prop18,prop20,prop23,prop26,eVar61eVar3,eVar4,eVar5,eVar6,eVar7,eVar8,eVar9,eVar15,eVar16,eVar17,eVar18,eVar20,eVar23,eVar26",r.eVar2="(www) /admin/martina/sub-editor/",r.prop4=t.articleId,r.prop5="AdminModule",r.prop6="admin",r.prop7="admin/martina/sub-editor/",r.prop8="admin/martina/sub-editor/choose-task/",r.prop9="admin/martina/sub-editor/choose-task/",r.eVar6="admin",r.eVar7="admin/martina/sub-editor/",r.eVar8="admin/martina/sub-editor/choose-task/",r.eVar9="admin/martina/sub-editor/choose-task/","PageEntry"===e&&(r.eVar3="Martina Sub-Editor > Choose task"),"Suggestions"===e&&(r.eVar3="Martina Sub-Editor > Suggestions",r.eVar8="admin/martina/sub-editor/suggestions/",r.eVar9="admin/martina/sub-editor/suggestions/".concat(t.taskName,"/"),r.prop8="admin/martina/sub-editor/suggestions/",r.prop9="admin/martina/sub-editor/suggestions/".concat(t.taskName,"/"),r.eVar61=t.siteId,r.eVar62=t.taskId),"FinalCheck"===e&&(r.eVar3="Martina Sub-Editor > Final Check",r.eVar8="admin/martina/sub-editor/final-check/",r.eVar9="admin/martina/sub-editor/final-check/".concat(t.taskName,"/"),r.prop8="admin/martina/sub-editor/final-check/",r.prop9="admin/martina/sub-editor/final-check/".concat(t.taskName,"/"),r.eVar61=t.siteId,r.eVar62=t.taskId),r.t()}}function x(e,t){return function(){return e.apply(t,arguments)}}o(S,"Events",{MobileVerification:{Started:"event98",TelNoError:"event99",CodeSent:"event100",CodeError:"event101",Success:"event102"},NewsletterSubscription:{Subscribed:"event85",Unsubscribed:"event86"}});const{toString:E}=Object.prototype,{getPrototypeOf:O}=Object,{iterator:_,toStringTag:R}=Symbol,T=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),A=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),P=(e,t,r)=>e===Object.prototype||!r&&null===t,C=(e,t)=>{let r=e;const n=[];for(;null!=r;){if(-1!==n.indexOf(r))return!1;n.push(r);const o=O(r);if(P(r,o,r===e))return!1;if(T(r,t))return!0;r=o}return!1},k=(j=Object.create(null),e=>{const t=E.call(e);return j[t]||(j[t]=t.slice(8,-1).toLowerCase())});var j;const L=e=>(e=e.toLowerCase(),t=>k(t)===e),I=e=>t=>typeof t===e,{isArray:N}=Array,F=I("undefined");function D(e){return null!==e&&!F(e)&&null!==e.constructor&&!F(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const U=L("ArrayBuffer");const V=I("string"),M=I("function"),B=I("number"),q=e=>null!==e&&"object"==typeof e,z=e=>{if(!q(e))return!1;const t=O(e);return!(null!==t&&t!==Object.prototype&&null!==O(t)||C(e,R)||C(e,_))},H=L("Date"),$=L("File"),W=L("Blob"),G=L("FileList"),J=L("Set");const K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},X=void 0!==K.FormData?K.FormData:void 0,Y=L("URLSearchParams"),[Q,Z,ee,te]=["ReadableStream","Request","Response","Headers"].map(L);function re(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),N(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,ie=e=>!F(e)&&e!==oe;const se=(ae="undefined"!=typeof Uint8Array&&O(Uint8Array),e=>ae&&e instanceof ae);var ae;const ce=L("HTMLFormElement"),{propertyIsEnumerable:ue}=Object.prototype,le=L("RegExp"),de=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};re(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)};const fe=L("AsyncFunction"),pe=(he="function"==typeof setImmediate,ge=M(oe.postMessage),he?setImmediate:ge?(me=`axios@${Math.random()}`,ve=[],oe.addEventListener("message",({source:e,data:t})=>{e===oe&&t===me&&ve.length&&ve.shift()()},!1),e=>{ve.push(e),oe.postMessage(me,"*")}):e=>setTimeout(e));var he,ge,me,ve;const ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):"undefined"!=typeof process&&process.nextTick||pe,we=e=>null!=e&&M(e[_]),be={isArray:N,isArrayBuffer:U,isBuffer:D,isFormData:e=>{if(!e)return!1;if(X&&e instanceof X)return!0;const t=O(e);if(!t||t===Object.prototype)return!1;if(!M(e.append))return!1;const r=k(e);return"formdata"===r||"object"===r&&M(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&U(e.buffer),t},isString:V,isNumber:B,isBoolean:e=>!0===e||!1===e,isObject:q,isPlainObject:z,isEmptyObject:e=>{if(!q(e)||D(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Q,isRequest:Z,isResponse:ee,isHeaders:te,isUndefined:F,isDate:H,isFile:$,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:W,isRegExp:le,isFunction:M,isStream:e=>q(e)&&M(e.pipe),isURLSearchParams:Y,isTypedArray:se,isFileList:G,forEach:re,merge:function e(...t){const{caseless:r,skipUndefined:n}=ie(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=r&&"string"==typeof i&&ne(o,i)||i,a=T(o,s)?o[s]:void 0;z(a)&&z(t)?o[s]=e(a,t):z(t)?o[s]=e({},t):N(t)?o[s]=t.slice():n&&F(t)||(o[s]=t)};for(let s=0,a=t.length;s(re(t,(t,n)=>{r&&M(t)?Object.defineProperty(e,n,{__proto__:null,value:x(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&O(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:k,kindOfTest:L,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(N(e))return e;let t=e.length;if(!B(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[_]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ce,hasOwnProperty:T,hasOwnProp:T,hasOwnInPrototypeChain:C,getSafeProp:(e,t)=>null!=e&&C(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=O(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(A(t))return!1;const r=Object.getOwnPropertyDescriptor(e,t);return!!r&&r.configurable&&!0===r.writable})})(e))return e;const r=Object.create(null),n=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const s=i===e?t:O(i);if(P(i,s,i===e))break;const a=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(i));for(const t of a)A(t)||T(n,t)||(r[t]=e[t],n[t]=!0);i=s}return r},reduceDescriptors:de,freezeMethods:e=>{de(e,(t,r)=>{if(M(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];M(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return N(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ne,global:oe,isContextDefined:ie,isSpecCompliantForm:function(e){return!!(e&&M(e.append)&&"FormData"===e[R]&&e[_])},toJSONObject:e=>{const t=new WeakSet,r=e=>{if(q(e)){if(t.has(e))return;if(D(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),J(e)){n=[];for(const t of e){const e=r(t);!F(e)&&n.push(e)}}else n=N(e)?[]:{},re(e,(e,t)=>{const o=r(e);!F(o)&&(n[t]=o)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:fe,isThenable:e=>e&&(q(e)||M(e))&&M(e.then)&&M(e.catch),setImmediate:pe,asap:ye,isIterable:we,isSafeIterable:e=>null!=e&&C(e,_)&&we(e)},Se=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xe=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim();const i=be.hasOwnProp(t,r);!r||i&&be.hasOwnProp(Se,r)||("set-cookie"===r?i?t[r].push(n):t[r]=[n]:t[r]=i?t[r]+", "+n:n)}),t};r.dn(xe);const Ee=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Oe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function _e(e,t){return be.isArray(e)?e.map(e=>_e(e,t)):function(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function Re(e){const t=Object.create(null);return be.forEach(e.toJSON(),(e,r)=>{t[r]=(e=>_e(e,Oe))(e)}),t}const Te=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return!1===e||null==e?e:be.isArray(e)?e.map(Pe):(e=>_e(e,Ee))(String(e))}const Ce=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ke(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function je(e,t,r,n,o){return be.isFunction(n)?n.call(this,t,r):(o&&(t=r),be.isString(t)?be.isString(n)?-1!==t.indexOf(n):be.isRegExp(n)?n.test(t):void 0:void 0)}class Le{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Ae(t);if(!o)return;const i=be.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Pe(e))}const i=(e,t)=>be.forEach(e,(e,r)=>o(e,r,t));if(be.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(be.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(xe(e),t);else if(be.isObject(e)&&be.isSafeIterable(e)){let r,n,o=Object.create(null);for(const t of e){if(!be.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],be.hasOwnProp(o,n)?(r=o[n],o[n]=be.isArray(r)?[...r,t[1]]:[r,t[1]]):o[n]=t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=Ae(e)){const r=be.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(be.isFunction(t))return t.call(this,e,r);if(be.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const r=be.findKey(this,e);return!(!r||void 0===this[r]||t&&!je(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Ae(e)){const o=be.findKey(r,e);!o||t&&!je(0,r[o],o,t)||(delete r[o],n=!0)}}return be.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!je(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return be.forEach(this,(n,o)=>{const i=be.findKey(r,o);if(i)return t[i]=Pe(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();s!==o&&delete t[o],t[s]=Pe(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return be.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&be.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return be.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),r=String(e);let n=0,o=!1,i=!1;function s(e){const o=ke(r.slice(n,e)),i=o.indexOf("=");if(i<1)return;const s=ke(o.slice(0,i));if(!Ce.test(s))return;const a=s.toLowerCase();if("__proto__"===a||"constructor"===a||"prototype"===a)return;const c=ke(o.slice(i+1));t[a]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n=t))return e;r+=e[n]}return r}(c)}for(let a=0;ar.set(e)),r}static accessor(e){const t=(this[Te]=this[Te]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ae(e);t[n]||(!function(e,t){const r=be.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return be.isArray(e)?e.forEach(n):n(e),this}}Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),be.reduceDescriptors(Le.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),be.freezeMethods(Le);const Ie=Le,Ne="[REDACTED ****]";function Fe(e,t){const r=new Set(t.map(e=>String(e).toLowerCase())),n=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(be.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof Ie&&(e=e.toJSON()),n.push(e),be.isArray(e))t=[],e.forEach((e,r)=>{const n=o(e);be.isUndefined(n)||(t[r]=n)});else{if(!be.isPlainObject(e)&&function(e){if(be.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(be.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;t=Object.create(null);for(const[n,i]of Object.entries(e)){const e=r.has(n.toLowerCase())?Ne:o(i);be.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return o(e)}function De(e){try{return String(e)}catch(t){return""}}class Ue extends Error{static from(e,t,r,n,o,i){let s=e.message;!s&&be.isArray(e.errors)&&e.errors.length&&(s=function(e){return e.errors.map(e=>{try{return e&&e.message?De(e.message):De(e)}catch(t){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const a=new Ue(s,t||e.code,r,n,o);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&be.hasOwnProp(e,"redact")?e.redact:void 0,r=be.isArray(t)&&t.length>0?Fe(e,t):be.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}Ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ue.ERR_BAD_OPTION="ERR_BAD_OPTION",Ue.ECONNABORTED="ECONNABORTED",Ue.ETIMEDOUT="ETIMEDOUT",Ue.ECONNREFUSED="ECONNREFUSED",Ue.ERR_NETWORK="ERR_NETWORK",Ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ue.ERR_DEPRECATED="ERR_DEPRECATED",Ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ue.ERR_CANCELED="ERR_CANCELED",Ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ue.ERR_INVALID_URL="ERR_INVALID_URL",Ue.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Ve=Ue,Me=null;function Be(e){return be.isPlainObject(e)||be.isArray(e)}function qe(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function ze(e,t,r){return e?e.concat(t).map(function(e,t){return e=qe(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const He=be.toFlatObject(be,{},null,function(e){return/^is[A-Z]/.test(e)});const $e=function(e,t,r){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(e,t)=>{const n=be.getSafeProp(r,e);return be.isUndefined(n)?t:n},o=n("metaTokens",!0),i=n("visitor")||h,s=n("dots",!1),a=n("indexes",!1),c=n("Blob")||"undefined"!=typeof Blob&&Blob,u=n("maxDepth",100),l=c&&be.isSpecCompliantForm(t),d=[];if(!be.isFunction(i))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(be.isDate(e))return e.toISOString();if(be.isBoolean(e))return e.toString();if(!l&&be.isBlob(e))throw new Ve("Blob is not supported. Use a Buffer instead.");if(be.isArrayBuffer(e)||be.isTypedArray(e)){if(l&&"function"==typeof c)return new c([e]);throw new Ve("Blob is not supported. Use a Buffer instead.",Ve.ERR_NOT_SUPPORT)}return e}function p(e){if(e>u)throw new Ve("Object is too deeply nested ("+e+" levels). Max depth: "+u,Ve.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,r,n){let i=e;if(be.isReactNative(t)&&be.isReactNativeBlob(e))return t.append(ze(n,r,s),f(e)),!1;if(e&&!n&&"object"==typeof e)if(be.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);const r=[];return JSON.stringify(e,function(e,n){if(!be.isObject(n))return n;for(;r.length&&r[r.length-1]!==this;)r.pop();return r.push(n),p(t+r.length-1),n})}(e,1);else if(be.isArray(e)&&function(e){return be.isArray(e)&&!e.some(Be)}(e)||(be.isFileList(e)||be.endsWith(r,"[]"))&&(i=be.toArray(e)))return r=qe(r),i.forEach(function(e,n){!be.isUndefined(e)&&null!==e&&t.append(!0===a?ze([r],n,s):null===a?r:r+"[]",f(e))}),!1;return!!Be(e)||(t.append(ze(n,r,s),f(e)),!1)}const g=Object.assign(He,{defaultVisitor:h,convertValue:f,isVisitable:Be});if(!be.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o=0){if(!be.isUndefined(r)){if(p(o),-1!==d.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));d.push(r),be.forEach(r,function(r,s){!0===(!(be.isUndefined(r)||null===r)&&i.call(t,r,be.isString(s)?s.trim():s,n,g))&&e(r,n?n.concat(s):[s],o+1)}),d.pop()}}(e),t};function We(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ge(e,t){this._pairs=[],e&&$e(e,this,t)}const Je=Ge.prototype;Je.append=function(e,t){this._pairs.push([e,t])},Je.toString=function(e){const t=e?t=>e.call(this,t,We):We;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ke=Ge;function Xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ye(e,t,r){if(!t)return e;e=e||"";const n=be.isFunction(r)?{serialize:r}:r,o=be.getSafeProp(n,"encode")||Xe,i=be.getSafeProp(n,"serialize");let s;if(s=i?i(t,n):be.isURLSearchParams(t)?t.toString():new Ke(t,n).toString(o),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Qe=Symbol("internals");function Ze(e){return e?e.length:0}function et(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function tt(e,t){const r=e.handlers,n=Ze(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(e,n){r[e.index]!==e.handler&&t.handlerEntries.delete(n)}):t.handlerEntries.clear()),t.handlersLength=n}const rt=class{constructor(){this.handlers=[],this[Qe]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){const n={fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null},o=this[Qe];null==this.handlers&&(this.handlers=[]),tt(this,o);const i=o.nextId++;return this.handlers.push(n),o.handlerEntries.set(i,{handler:n,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[Qe];tt(this,t);const r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(et(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],tt(this,this[Qe]))}forEach(e){const t=this[Qe];tt(this,t),t.iterationDepth++;try{be.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(tt(this,t),et(this.handlers),t.handlersLength=Ze(this.handlers))}}},nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ot={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ke,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},it="undefined"!=typeof window&&"undefined"!=typeof document,st="object"==typeof navigator&&navigator||void 0,at=it&&(!st||["ReactNative","NativeScript","NS"].indexOf(st.product)<0),ct="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ut=it&&window.location.href||"http://localhost",lt={...e,...ot};function dt(e){if(e>100)throw new Ve("FormData field is too deeply nested ("+e+" levels). Max depth: 100",Ve.ERR_FORM_DATA_DEPTH_EXCEEDED)}const ft=function(e){function t(e,r,n,o){dt(o);let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&be.isArray(n)?n.length:i,a)return be.hasOwnProp(n,i)?n[i]=be.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!s;be.hasOwnProp(n,i)&&be.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&be.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;null!==(n=r.exec(e));)dt(t.length),t.push("[]"===n[0]?"":n[1]||n[0]);return t}(e),n,r,0)}),r}return null},pt=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),ht=(e,t)=>null!=e&&be.hasOwnProp(e,t)?e[t]:void 0;const gt={transitional:nt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=be.isObject(e);o&&be.isHTMLForm(e)&&(e=new FormData(e));if(be.isFormData(e))return n?JSON.stringify(ft(e)):e;if(be.isArrayBuffer(e)||be.isBuffer(e)||be.isStream(e)||be.isFile(e)||be.isBlob(e)||be.isReadableStream(e))return e;if(be.isArrayBufferView(e))return e.buffer;if(be.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=ht(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $e(e,new lt.classes.URLSearchParams,{visitor:function(e,t,r,n){return lt.isNode&&be.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=be.isFileList(e))||r.indexOf("multipart/form-data")>-1){const r=ht(this,"env"),n=r&&r.FormData;return $e(i?{"files[]":e}:e,n&&new n,t)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=ht(this,"transitional")||gt.transitional,r=t&&t.forcedJSONParsing,n=ht(this,"responseType"),o="json"===n;if(be.isResponse(e)||be.isReadableStream(e))return e;if(e&&be.isString(e)&&(r&&!n||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,ht(this,"parseReviver"))}catch(i){if(r){if("SyntaxError"===i.name)throw Ve.from(i,Ve.ERR_BAD_RESPONSE,this,null,ht(this,"response"));throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(pt,e=>{gt.headers[e]={}});const mt=gt;function vt(e,t){const r=this||mt,n=t||r,o=Ie.from(n.headers);let i=n.data;return be.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function yt(e){return!(!e||!e.__CANCEL__)}const wt=class extends Ve{constructor(e,t,r){super(null==e?"canceled":e,Ve.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function bt(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ve("Request failed with status code "+r.status,r.status>=400&&r.status<500?Ve.ERR_BAD_REQUEST:Ve.ERR_BAD_RESPONSE,r.config,r.request,r)):e(r)}const St=/[\t\n\r]/g;function xt(e){if("string"!=typeof e)return e;let t=0;for(;t{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r),(...e)=>s(e)]},Rt=(e,t,r=3)=>{let n=0;const o=Ot(50,250);return _t(r=>{if(!r||!be.isNumber(r.loaded))return;const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=Math.max(0,null!=s?Math.min(i,s):i),c=Math.max(0,a-n),u=o(c);n=Math.max(n,a);e({loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s?(s-a)/u:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},Tt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},At=(e,t=be.asap)=>(...r)=>t(()=>e(...r)),Pt=lt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,lt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>!0,Ct=lt.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];be.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),be.isString(n)&&a.push(`path=${n}`),be.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),be.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;nnull,remove(){}};const kt=/^https?:(?!\/\/)/i;function jt(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Ne}@`),r=t.indexOf("#"),n=(-1===r?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Ne}`);return-1===r?n:`${n}#${o=t.slice(r+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${Ne}`):o}`;var o}function Lt(e,t){if("string"==typeof e){const r=xt(e);if(kt.test(r))throw new Ve(`Invalid URL ${JSON.stringify(jt(r))}: missing "//" after protocol`,Ve.ERR_INVALID_URL,t)}}function It(e,t,r,n){Lt(t,n);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===r)?(Lt(e,n),function(e,t){if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const Nt=e=>e instanceof Ie?{...e}:e;function Ft(e,t){e=e||{},t=t||{};const r=Object.create(null);function n(e,t,r,n){return be.isPlainObject(e)&&be.isPlainObject(t)?be.merge.call({caseless:n},e,t):be.isPlainObject(t)?be.merge({},t):be.isArray(t)?t.slice():t}function o(e,t,r,o){return be.isUndefined(t)?be.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!be.isUndefined(t))return n(void 0,t)}function s(e,t){return be.isUndefined(t)?be.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return be.hasOwnProp(t,i)?n(r,o):be.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(Nt(e),Nt(t),0,!0)};var u;return be.forEach((u={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(u).concat(Object.getOwnPropertySymbols(u).filter(e=>Object.getOwnPropertyDescriptor(u,e).enumerable)):Object.keys(u)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=be.hasOwnProp(c,n)?c[n]:o,s=i(be.hasOwnProp(e,n)?e[n]:void 0,be.hasOwnProp(t,n)?t[n]:void 0,n);be.isUndefined(s)&&i!==a||(r[n]=s)}),be.hasOwnProp(t,"validateStatus")&&be.isUndefined(t.validateStatus)&&!1===function(r){const n=be.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!be.isUndefined(n)){if(!be.isPlainObject(n))return;if(be.hasOwnProp(n,r))return n[r]}const o=be.hasOwnProp(e,"transitional")?e.transitional:void 0;if(be.isPlainObject(o)&&be.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(be.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const Dt=["content-type","content-length"];const Ut=function(e){const t=Ft({},e),r=e=>be.hasOwnProp(t,e)?t[e]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),s=r("xsrfCookieName");let a=r("headers");const c=r("auth"),u=r("baseURL"),l=r("allowAbsoluteUrls"),d=r("url");if(t.headers=a=Ie.from(a),t.url=Ye(It(u,d,l,t),r("params"),r("paramsSerializer")),c){const t=be.getSafeProp(c,"username")||"",r=be.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(f){throw Ve.from(f,Ve.ERR_BAD_OPTION_VALUE,e)}}if(be.isFormData(n)){const e=be.getSafeProp(n,"getHeaders");lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv||be.isReactNative(n)?a.setContentType(void 0):be.isFunction(e)&&function(e,t,r){"content-only"===r?Object.entries(t||{}).forEach(([t,r])=>{Dt.includes(t.toLowerCase())&&e.set(t,r)}):e.set(t)}(a,e.call(n),r("formDataHeaderPolicy"))}if(lt.hasStandardBrowserEnv){be.isFunction(o)&&(o=o(t));if(!0===o||null==o&&Pt(t.url)){const e=i&&s&&Ct.read(s);e&&a.set(i,e)}}return t},Vt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Ut(e);let o=n.data;const i=Ie.from(n.headers).normalize();let s,a,c,u,l,d,{responseType:f,onUploadProgress:p,onDownloadProgress:h}=n;function g(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(o){if(!m)return;if(!(0!==m.status||"file"===(Et(xt(n.url))||Et(lt.origin))||m.responseURL&&m.responseURL.startsWith("file:")))return r(new Ve("Request aborted",Ve.ECONNABORTED,e,m)),g(),void(m=null);try{o?d&&d(o):l&&l()}catch(s){setTimeout(()=>{throw s})}if(!m)return;const i=Ie.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());bt(function(e){t(e),g()},function(e){r(e),g()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(v)},m.onabort=function(){m&&(r(new Ve("Request aborted",Ve.ECONNABORTED,e,m)),g(),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new Ve(n,Ve.ERR_NETWORK,e,m);o.event=t||null,r(o),g(),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||nt;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Ve(t,o.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,e,m)),g(),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&be.forEach(Re(i),function(e,t){m.setRequestHeader(t,e)}),be.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),f&&"json"!==f&&(m.responseType=n.responseType),h&&([c,l,d]=Rt(h,!0),m.addEventListener("progress",c)),p&&m.upload&&([a,u]=Rt(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new wt(null,e,m):t),m.abort(),g(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const y=Et(n.url);if(y&&!lt.protocols.includes(y))return r(new Ve("Unsupported protocol "+y+":",Ve.ERR_BAD_REQUEST,e)),void g();m.send(o||null)})},Mt=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ve?t:new wt(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ve(`timeout of ${t}ms exceeded`,Ve.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{n||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:a}=r;return a.unsubscribe=()=>be.asap(s),a},Bt=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of qt(e))yield*Bt(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},Ht=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,$t=(e,t,r)=>t+2e<=57?e-48:(223&e)-55,Gt=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Jt=e=>9===e||10===e||12===e||13===e||32===e,Kt=e=>{const t=e.length;let r=0;return t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor(3*(t-r)/4)},Xt=e=>{const t=e.length;let r=0,n=0,o=!1;for(let i=0;i0?o=!0:r++:n++)}return o||n>2||n>0&&(r+n)%4!=0||r%4==1?Kt(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(r)},Yt=(e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),o=e.slice(r+1);if(/;base64/i.test(n))return t(o);let i=0;for(let s=0,a=o.length;s=55296&&e<=56319&&s+1=56320&&e<=57343?(i+=4,s++):i+=3}else i+=3}return i};const Qt="1.20.0",Zt={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:er}=be,tr=e=>{if(!be.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},rr=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},nr=e=>{const t=void 0!==be.global&&null!==be.global?be.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=be.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:s}=e,a=o?er(o):"function"==typeof fetch,c=er(i),u=er(s);if(!a)return!1;const l=a&&er(r),d=a&&("function"==typeof n?(f=new n,e=>f.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var f;const p=c&&l&&rr(()=>{let e=!1;const t=new i(lt.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),h=u&&l&&rr(()=>be.isReadableStream(new s("").body)),g={stream:h&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!g[e]&&(g[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new Ve(`Response type '${e}' is not supported`,Ve.ERR_NOT_SUPPORT,r)})});const m=async e=>{if(null==e)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e)){const t=new i(lt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return be.isArrayBufferView(e)||be.isArrayBuffer(e)?e.byteLength:(be.isURLSearchParams(e)&&(e+=""),be.isString(e)?(await d(e)).byteLength:void 0)};return async e=>{let{url:t,method:r,data:a,signal:u,cancelToken:d,timeout:f,onDownloadProgress:v,onUploadProgress:y,responseType:w,headers:b,withCredentials:S="same-origin",fetchOptions:x,maxContentLength:E,maxBodyLength:O,maxRedirects:_}=Ut(e);const R=be.isNumber(E)&&E>-1,T=be.isNumber(O)&&O>-1;let A=o||fetch;w=w?(w+"").toLowerCase():"text";let P=Mt([u,d&&d.toAbortSignal()],f),C=null;const k=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let j,L=null;const I=()=>new Ve("Request body larger than maxBodyLength limit",Ve.ERR_BAD_REQUEST,e,C);try{let o;const u=(F="auth",be.hasOwnProp(e,F)?e[F]:void 0);if(u){const e=be.getSafeProp(u,"username")||"";o={username:e,password:be.getSafeProp(u,"password")||""}}if((e=>{const t=e.indexOf("://");let r=e;return-1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")})(t)){const e=new URL(t,lt.origin);if(!o&&(e.username||e.password)){const t=tr(e.username);o={username:t,password:tr(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(b.delete("authorization"),b.set("Authorization","Basic "+btoa((N=(o.username||"")+":"+(o.password||""),encodeURIComponent(N).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),R&&"string"==typeof t&&t.startsWith("data:")){const r=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return Yt(-1===t?e:e.slice(0,t),Xt)}(t);if(r>E)throw new Ve("maxContentLength size of "+E+" exceeded",Ve.ERR_BAD_RESPONSE,e,C)}if(T&&"get"!==r&&"head"!==r){const e=await m(a);if("number"==typeof e&&isFinite(e)&&(j=e,e>O))throw I()}const d=T&&(be.isReadableStream(a)||be.isStream(a)),f=(e,t,r)=>zt(e,65536,e=>{if(T&&e>O)throw L=I();t&&t(e)},r);if(p&&"get"!==r&&"head"!==r&&(y||d)){if(j=null==j?await(async(e,t)=>{const r=be.toFiniteNumber(e.getContentLength());return null==r?m(t):r})(b,a):j,0!==j||d){let e,r=new i(t,{method:"POST",body:a,duplex:"half"});if(be.isFormData(a)&&(e=r.headers.get("content-type"))&&b.setContentType(e),r.body){const[e,t]=y&&Tt(j,Rt(At(y)))||[];a=f(r.body,e,t)}}}else if(d&&!c&&l&&"get"!==r&&"head"!==r)a=f(a);else if(d&&c&&!p&&"get"!==r&&"head"!==r)throw new Ve("Stream request bodies are not supported by the current fetch implementation",Ve.ERR_NOT_SUPPORT,e,C);be.isString(S)||(S=S?"include":"omit");const D=c&&"credentials"in i.prototype;if(be.isFormData(a)){const e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete("content-type")}b.set("User-Agent","axios/"+Qt,!1);const U=null==x?x:Object.assign(Object.create(null),x);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);const V=Object.assign(Object.create(null),U,{signal:P,method:r.toUpperCase(),headers:Re(b.normalize()),body:a,duplex:"half",credentials:D?S:void 0});c&&(be.forEach(Zt,(e,t)=>{void 0===V[t]&&(V[t]=e)}),void 0===V.signal&&(V.signal=null),void 0===V.body&&(V.body=null)),0===_&&(V.redirect="manual",U&&(U.redirect="manual")),C=c&&new i(t,V);let M=await(c?A(C,U):A(t,V));const B=Ie.from(M.headers);if(R){const t=be.toFiniteNumber(B.getContentLength());if(null!=t&&t>E)throw new Ve("maxContentLength size of "+E+" exceeded",Ve.ERR_BAD_RESPONSE,e,C)}const q=h&&("stream"===w||"response"===w);if(h&&M.body&&(v||R||q&&k)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const r=be.toFiniteNumber(B.getContentLength()),[n,o]=v&&Tt(r,Rt(At(v),!0))||[];let i=0;const a=t=>{if(R&&(i=t,i>E))throw new Ve("maxContentLength size of "+E+" exceeded",Ve.ERR_BAD_RESPONSE,e,C);n&&n(t)};M=new s(zt(M.body,65536,a,()=>{o&&o(),k&&k()}),t)}w=w||"text";let z=await g[be.findKey(g,w)||"text"](M,e);if(R&&!h&&!q){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof n?(new n).encode(z).byteLength:z.length)),"number"==typeof t&&t>E)throw new Ve("maxContentLength size of "+E+" exceeded",Ve.ERR_BAD_RESPONSE,e,C)}return!q&&k&&k(),await new Promise((t,r)=>{bt(t,r,{data:z,headers:Ie.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:C})})}catch(D){if(k&&k(),P&&P.aborted&&P.reason instanceof Ve){const t=P.reason;throw t.config=e,C&&(t.request=C),D!==t&&Object.defineProperty(t,"cause",{__proto__:null,value:D,writable:!0,enumerable:!1,configurable:!0}),t}if(L)throw C&&!L.request&&(L.request=C),L;if(D instanceof Ve)throw C&&!D.request&&(D.request=C),D;if(D&&"TypeError"===D.name&&/Load failed|fetch/i.test(D.message)){const t=new Ve("Network Error",Ve.ERR_NETWORK,e,C,D&&D.response);throw Object.defineProperty(t,"cause",{__proto__:null,value:D.cause||D,writable:!0,enumerable:!1,configurable:!0}),t}throw Ve.from(D,D&&D.code,e,C,D&&D.response)}var N,F}},or=new Map,ir=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,c=i.length,u=or;for(;c--;)s=i[c],a=u.get(s),void 0===a&&u.set(s,a=c?new Map:nr(t)),u=a;return a},sr=(ir(),{http:Me,xhr:Vt,fetch:{get:ir}});be.forEach(sr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(r){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ar=e=>`- ${e}`,cr=e=>be.isFunction(e)||null===e||!1===e;const ur={getAdapter:function(e,t){e=be.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(ar).join("\n"):" "+ar(e[0]):"as no adapter specified";throw new Ve("There is no suitable adapter to dispatch the request "+t,Ve.ERR_NOT_SUPPORT)}return o},adapters:sr};function lr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wt(null,e)}function dr(e){const t=be.toSafeFlatObject(e);lr(t),t.headers=Ie.from(be.getSafeProp(t,"headers")),t.data=vt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ur.getAdapter(t.adapter||mt.adapter,t)(t).then(function(e){lr(t),t.response=e;try{e.data=vt.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Ie.from(e.headers),e},function(e){if(!yt(e)&&(lr(t),e&&e.response)){t.response=e.response;try{e.response.data=vt.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Ie.from(e.response.headers)}return Promise.reject(e)})}const fr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pr={};fr.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Qt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Ve(n(o," has been removed"+(t?" in "+t:"")),Ve.ERR_DEPRECATED);return t&&!pr[o]&&(pr[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},fr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const hr={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Ve("option "+i+" must be "+r,Ve.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Ve("Unknown option "+i,Ve.ERR_BAD_OPTION)}},validators:fr},gr=hr.validators;class mr{constructor(e){this.defaults=e||{},this.interceptors={request:new rt,response:new rt}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error)try{let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack;let n="";if("string"==typeof t){const e=t.indexOf("\n");n=-1===e?"":t.slice(e+1)}if(r.stack){if(n){const e=n.indexOf("\n"),t=-1===e?-1:n.indexOf("\n",e+1),o=-1===t?"":n.slice(t+1);String(r.stack).endsWith(o)||(r.stack+="\n"+n)}}else r.stack=n}catch(n){}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ft(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&hr.assertOptions(r,{silentJSONParsing:gr.transitional(gr.boolean),forcedJSONParsing:gr.transitional(gr.boolean),clarifyTimeoutError:gr.transitional(gr.boolean),legacyInterceptorReqResOrdering:gr.transitional(gr.boolean),advertiseZstdAcceptEncoding:gr.transitional(gr.boolean),validateStatusUndefinedResolves:gr.transitional(gr.boolean)},!1),null!=n&&(be.isFunction(n)?t.paramsSerializer={serialize:n}:hr.assertOptions(n,{encode:gr.function,serialize:gr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),hr.assertOptions(t,{baseUrl:gr.spelling("baseURL"),withXsrfToken:gr.spelling("withXSRFToken")},!0),t.method=(be.getSafeProp(t,"method")||be.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&be.merge(o.common,o[t.method]);o&&be.forEach(pt.concat("common"),e=>{delete o[e]}),t.headers=Ie.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||nt;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!a){const e=[dr.bind(this),void 0];for(e.unshift(...s),e.push(...c),l=e.length,u=Promise.resolve(t);ddr.call(this,f)))}catch(h){u=Promise.reject(h)}break}}if(!u)try{u=dr.call(this,f)}catch(p){u=Promise.reject(p)}for(d=0,l=c.length;d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new wt(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new yr(function(t){e=t}),cancel:e}}}const wr=yr;const br={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(br).forEach(([e,t])=>{void 0===br[t]&&(br[t]=e)});const Sr=br;const xr=function e(t){const r=new vr(t),n=x(vr.prototype.request,r);return be.extend(n,vr.prototype,r,{allOwnKeys:!0}),be.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ft(t,r))},n}(mt);xr.Axios=vr,xr.CanceledError=wt,xr.CancelToken=wr,xr.isCancel=yt,xr.VERSION=Qt,xr.toFormData=$e,xr.AxiosError=Ve,xr.Cancel=xr.CanceledError,xr.all=function(e){return Promise.all(e)},xr.spread=function(e){return function(t){return e.apply(null,t)}},xr.isAxiosError=function(e){return be.isObject(e)&&!0===e.isAxiosError},xr.mergeConfig=Ft,xr.AxiosHeaders=Ie,xr.formToJSON=e=>ft(be.isHTMLForm(e)?new FormData(e):e),xr.getAdapter=ur.getAdapter,xr.HttpStatusCode=Sr,xr.default=xr;const Er=xr;var Or=r(92443);const _r={eventSent:!1,registrationSent:!1,loginSent:!1,height:500,width:460,isNewsletterSignup:!1,init(){window.screen.width<460&&(this.width=window.screen.width),Or(document).on("click",".piano-id__register",e=>{e.preventDefault(),this.isNewsletterSignup=!0,Or.cookie("reg_return_url",window.location.pathname,{expires:1,path:"/;SameSite=Lax",domain:window.data_layer.site.cookie_domain});const t=sessionStorage.getItem("nq_content_id");window.location="/user/create-account/commenting/".concat(t,"/")}),Or(document).on("click",".piano-id__login",e=>{e.preventDefault(),this.login()}),Or(document).on("click",".piano-id__logout",e=>{e.preventDefault(),this.logout()}),Or("#piano-id-logout").on("click",e=>{e.preventDefault(),this.logout()}),Or(document).on("click",".piano-user-link",()=>{this.isNewsletterSignup=!0,Or.cookie("reg_return_url",window.location.pathname,{expires:1,path:"/;SameSite=Lax",domain:window.data_layer.site.cookie_domain})}),-1!==document.cookie.indexOf("newsletterSignUpBulletins")&&(this.isNewsletterSignup=!0),Or(document).on("click",".newsletter-option",()=>{this.checkNewsletters()}),-1!==document.cookie.indexOf("reg_newsletters")&&(this.isNewsletterSignup=!0)},reloadPage(){v.log("AA: Would reload this page"),window.setTimeout(()=>{window.location.reload()},1e3)},login(){v.log("TPM: login function called"),window.tp.pianoId.show({screen:"login",displayMode:"modal",loggedIn:()=>{v.log("TPM: login callback called"),this.loggedIn()},loggedOut:()=>{},registrationSuccess:()=>{v.log("TPM: registeredSuccess callback called"),this.registered()},width:this.width,height:this.height})},register(){window.tp.pianoId.show({screen:"register",displayMode:"modal",loggedIn:()=>{v.log("TPM: logloggedInin callback called"),this.loggedIn(!0)},loggedOut:()=>{},registrationSuccess:()=>{v.log("TPM: registrationSuccess callback called"),this.registered()},width:this.width,height:this.height})},logout(){try{window.tp.pianoId.logout(),!1===this.isLoggedInAsAdmin()&&Or.removeCookie("nqdm_au",{path:"/",domain:window.data_layer.site.cookie_domain}),this.logOutOfViafoura(),this.reloadPage()}catch(e){v.log("Error piano-id.logout",e)}},isLoggedInAsAdmin:()=>!!Or.cookie("nq_al")||(!!Or.cookie("nq_internal_admin_entra")||!!Or.cookie("nq_external_admin")),loggedIn(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v.log("AA: login method triggered, have we sent a login event already? ".concat(this.loginSent,"\n Is this from a registration? ").concat(e)),this.loginSent?this.redirectUser(!0):(this.raiseLaunchEvent("user-has-logged-in"),this.loginSent=!0,this.sendToAdobe("event8","Login"),e||(this.loginUser(),this.redirectUser(!0)))},registered(){v.log("AA: registered method triggered, have we sent a registration event already? ".concat(this.registrationSent)),this.registrationSent||(this.sendToAdobe("event3","Registration"),this.raiseLaunchEvent("user-has-registered"),this.registerUser(),this.registrationSent=!0,this.redirectUser())},async registerUser(){await Er.get("/api/user/create-id/")},async loginUser(){await Er.get("/api/user/login-id/")},sendToAdobe(e,t){if(v.log("AA: sending ".concat(e)),this.eventSent)return;const r=window.s;r.eVar2=window.location.href,r.pageName="(www) ".concat(window.location.pathname),r.events=e,r.linkTrackEvents=e,r.suppressPageView=!0;try{r.tl(!0,"o",t)}catch(n){}r.ignoreNext=!0},redirectToPage(e){v.log("AA: Would redirect to ".concat(e)),window.setTimeout(()=>{window.location=e},1e3)},checkNewsletters(){let e="";document.querySelectorAll(".newsletter-option:checked").forEach(t=>{""!==e&&(e+=","),e+=Or(t).val()}),""!==e&&Or.cookie("newsletterSignUpBulletins",e,{expires:1,path:"/",domain:window.data_layer.site.cookie_domain})},redirectUser(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("yes"===window.data_layer.site.disable_newsletters)return document.location.pathname.indexOf("account/login")>0?void this.redirectToPage("/"):void this.reloadPage();!0!==this.isNewsletterSignup&&!0!==this.isTopNavigation||!1!==e?document.location.pathname.indexOf("account/register")>0&&!1===e?this.redirectToPage("/user/account/newsletters/"):document.location.pathname.indexOf("account/login")>0?this.redirectToPage("/"):this.reloadPage():this.redirectToPage("/user/account/newsletters/")},raiseLaunchEvent(e){v.log("launch:piano:".concat(e," has been dispatched"));const t=new Event("launch:piano:".concat(e));window.dispatchEvent(t)},logOutOfViafoura(){}};var Rr=r(92443);const Tr={commentsModalSelector:"article-comments__interrupt-modal-content",activeChurn:{eventStarted:"martini:piano-active-churn:started",eventFinished:"martini:piano-active-churn:finished",attemptStorageKey:"piano_active_churn_attempt_id",startedInFlight:!1,finishedInFlight:!1},init(){var e=this;window.addEventListener("message",e=>{const t=e.data;switch(t.src){case"send-email":this.handleEmail(t);break;case"expand-window":this.expandWindow();break;case"close-bottom-banner":case"close-fixed-banner":this.closeBottomBanner();break;case"login":this.login(t);break;case"register":this.register(t);break;case"open-comments-modal":this.showCommentsModal();break;case"sign-up":this.signUp(t);break;case"login-modal":this.loginModal();break;case"register-modal":this.registerModal();break;case"start-checkout":this.showOffer(t);break;case"close-partial-article":this.closePartialArticle();break;case"close-fullarticle":this.closeFullArticle();break;case"init-ad-slot":this.initAdSlot(t);break;case"active-churn-save-started":this.handleActiveChurnSaveStarted({detail:t});break;case"active-churn-save-finished":this.handleActiveChurnSaveFinished({detail:t})}}),window.addEventListener(this.activeChurn.eventStarted,e=>{this.handleActiveChurnSaveStarted(e)}),window.addEventListener(this.activeChurn.eventFinished,e=>{this.handleActiveChurnSaveFinished(e)}),window.activeChurnSaveStarted=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{window.dispatchEvent(new CustomEvent(e.activeChurn.eventStarted,{detail:t}))}catch(r){v.log(r)}},window.activeChurnSaveFinished=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{window.dispatchEvent(new CustomEvent(e.activeChurn.eventFinished,{detail:t}))}catch(r){v.log(r)}}},setActiveChurnAttemptId(e){try{if(null==e||""===e)return;window.sessionStorage.setItem(this.activeChurn.attemptStorageKey,String(e))}catch(t){v.log(t)}},getActiveChurnAttemptId(){try{return window.sessionStorage.getItem(this.activeChurn.attemptStorageKey)}catch(e){v.log(e)}return null},clearActiveChurnAttemptId(){try{window.sessionStorage.removeItem(this.activeChurn.attemptStorageKey)}catch(e){v.log(e)}},async handleActiveChurnSaveStarted(e){if(!0!==this.activeChurn.startedInFlight){this.activeChurn.startedInFlight=!0;try{const t=e&&e.detail?e.detail:{},r=await fetch("/api/users/active-churn/save-started/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await r.json();if(200===r.status&&n&&!0===n.success&&n.data){const e=void 0!==n.data.attempt_id?n.data.attempt_id:n.data.id;this.setActiveChurnAttemptId(e)}}catch(t){v.log(t)}finally{this.activeChurn.startedInFlight=!1}}},async handleActiveChurnSaveFinished(e){if(!0!==this.activeChurn.finishedInFlight){this.activeChurn.finishedInFlight=!0;try{const t=e&&e.detail?e.detail:{};if(void 0===t.attempt_id||null===t.attempt_id||""===t.attempt_id){const e=this.getActiveChurnAttemptId();e&&(t.attempt_id=e)}const r=await fetch("/api/users/active-churn/save-finished/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await r.json();200===r.status&&n&&!0===n.success&&this.clearActiveChurnAttemptId()}catch(t){v.log(t)}finally{this.activeChurn.finishedInFlight=!1}}},closeBottomBanner(){Rr("#bottom-expandable-wrapper").hide()},async handleEmail(e){const t={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"email=".concat(e.email)},r=await fetch("/api/user/register-with-email/",t),n=await r.json();if(void 0!==n.success&&!0===n.success)return _r.sendToAdobe("event3"),void(window.location="/user/account/newsletters/");void 0===n.redirect?window.location="/user/login/?newsletter_signup=1":window.location=n.redirect},expandWindow(){window.$("#bottom-expandable-wrapper").toggleClass("open")},login(e){Rr.cookie("reg_return_url",window.location.pathname,{expires:1,path:"/;SameSite=Lax"}),window.location="/user/login/?cmpid=".concat(e.cmpid)},register(e){Rr.cookie("reg_return_url",window.location.pathname,{expires:1,path:"/;SameSite=Lax"}),Rr.cookie("reg_newsletters",!0,{expires:1,path:"/"}),window.location="/my/account/register/?cmpid=".concat(e.cmpid,"&newsletter_signup=1")},async showCommentsModal(){const e=document.getElementById(this.commentsModalSelector);if(e){const t=e.innerHTML;await b.open({size:b.modalVariants[1],heading:"Subscriber Comments",content:t,btnElement:null}),b.bind()}},async signUp(e){var t;if("yes"===window.data_layer.user.is_logged_in)return void this.signUpLoggedIn(e);const r=e.email,n=e.newsletter_id,o=null!==(t=e.template_id)&&void 0!==t?t:"template-not-found";if(r)try{const e={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"email=".concat(r,"&newsletter_id=").concat(n,"&template_id=").concat(o)};await fetch("/api/user/register-with-newsletter/",e),S.trackNewsletter(S.Events.NewsletterSubscription.Subscribed)}catch(i){v.log(i)}},async signUpLoggedIn(e){var t;v.log("Signing up logged-in user to newsletter with data");const r=e.newsletter_id,n=null!==(t=e.template_id)&&void 0!==t?t:"template-not-found";try{const e={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"bulletin_id=".concat(r,"&template_id=").concat(n)};await fetch("/api/user/bulletin-subscription/",e),S.trackNewsletter(S.Events.NewsletterSubscription.Subscribed)}catch(o){v.log(o)}},loginModal(){_r.login()},registerModal(){_r.register()},setLts(e){const t=window.s;t.events="event89",t.eVar79=e,t.linkTrackVars="eVar2,eVar4,eVar5,eVar6,eVar7,eVar16,eVar19,eVar25,eVar26,eVar28,eVar59,eVar60,eVar61,eVar62,eVar79,eVar80,prop63,list3,events",t.suppressPageView=!0,t.linkTrackEvents="event89",t.tl(!0,"o","Non Meter LtS Score")},setLtsHighShowingGate(){const e=window.s;e.eVar59="T1 / Inline / Interrupt for Premium Content / 2021 (1)",e.events="event5",e.linkTrackVars="eVar2,eVar3,eVar4,eVar5,eVar6,eVar16,eVar19,eVar25,eVar26,eVar28,eVar43,eVar59,eVar61,eVar62,prop63,eVar80,eVar79,list3, events",e.linkTrackEvents="event5",e.tl(document,"o","Metered Access Notice")},showOffer(e){const t={templateId:e.templateId,termId:e.termId,offerId:e.offerId,displayMode:"modal",checkoutFlowId:e.checkoutFlowId};""!==e.templateVariantId&&(t.templateVariantId=e.templateVariantId),window.tp.offer.startCheckout(t)},closePartialArticle(){Rr("#po-inline-articlewall-partialarticle-closable").css("display","none"),Rr("#po-inline-articlegate-partialarticle").css("display","block")},closeFullArticle(){Rr("#po-inline-articlewall-fullarticle-closable").css("display","none"),Rr("#po-inline-articlegate-fullarticle").css("display","block")},setContentScore:async e=>e,initAdSlot(e){const t=e.ad_slot_id;window.addAdSlot(t,t.replace("DFP_",""))}};r(62953),r(48408);const Ar={queryString:null,get(e){return null===this.queryString&&this.decode(),e.indexOf("[")>1?this.queryString.getAll(e):this.queryString.get(e)},decode(e){let t=e;return void 0===t&&(t=window.location.search.slice(1)),this.queryString=new URLSearchParams(t),this.queryString},encode(){return this.queryString.toString()},stringify:e=>"?".concat(Object.entries(e).map(e=>e.join("=")).join("&")),set(e,t){e.indexOf("[")>1?this.queryString.append(e,t):this.queryString.set(e,t)},delete(e){this.queryString.delete(e)}},Pr={subscriptions:null,showcaseDomain:"",templateId:"",templateVariantId:"",uniqueId:"",registeredTimestamp:"",load(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this.subscriptions=e,this.showcaseDomain=t,this.templateId=r,this.templateVariantId=n,this.uniqueId=o,this.registeredTimestamp=i,v.log("Extended Metering: Loaded for ".concat(t,":showcase")),e.init("".concat(t,":showcase")),e.setOnLoginRequest(()=>{_r.login()}),e.setOnNativeSubscribeRequest(()=>{document.location="/subscribe/?ref=extendedmetering"})},showGoogleRegWall(){v.log("Extended Metering: Showing Reg Wall with an iframe of https://www.".concat(this.showcaseDomain,"/showcase.html")),window.GaaMeteringRegwall.show({iframeUrl:"https://www.".concat(this.showcaseDomain,"/showcase.html")}).then(e=>{this.registerShowcaseUser(e)}).catch(e=>{v.log("Extended Metering: Reg wall failed with an error object of ",e)})},userIsSubscriber(){v.log("Extended Metering: User is Subbed"),this.subscriptions.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_SUBSCRIPTION",isUserRegister:!0})},userHasGateAccess(){v.log("Extended Metering: Meter not expired"),this.subscriptions.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_METER",isUserRegister:"yes"===window.data_layer.user.is_logged_in})},articleNotGated(){v.log("Extended Metering: Article is not gated"),this.subscriptions.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_UNLOCKED_FREE_PAGE",isUserRegister:"yes"===window.data_layer.user.is_logged_in})},triggerGoogleGate(){if(v.log("Extended Metering: Loading Google Gate"),"yes"!==window.data_layer.user.is_logged_in)return void this.showGoogleRegWall();const e=this.getUserStateObj();v.log("Extended Metering: UserState",e),this.subscriptions.getEntitlements(e).then(e=>{v.log("Extended Metering: Entitlements object",e),e.enablesThisWithGoogleMetering()?e.consume(()=>{}):this.subscriptions.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL",isUserRegister:!0})})},async registerShowcaseUser(e){v.log("Extended Metering: User data:",e);const t={headers:{"content-type":"application/x-www-form-urlencoded;charset=utf-8"}},r=new FormData;r.set("google_id",e.idToken);let n=null;try{n=await Er.post("/api/user/google/showcase/create/",r,t)}catch(o){return void v.log("Creation failed",o)}this.uniqueId=n.unique_id,this.registeredTimestamp=n.date_registered,window.data_layer.user.is_logged_in="yes"},getUserStateObj(){return{metering:{state:{id:this.uniqueId,standardAttributes:{registered_user:{timestamp:this.registeredTimestamp}}}}}},checkShowcaseReferrer(){if(!Ar.get("gaa_at"))return!1;if(!Ar.get("gaa_n"))return v.log("SwG Entitlements: The `gaa_n` URL param is missing."),!1;if(!Ar.get("gaa_sig"))return v.log("SwG Entitlements: The `gaa_sig` URL param is missing."),!1;if(!Ar.get("gaa_ts"))return v.log("SwG Entitlements: The `gaa_ts` URL param is missing."),!1;if(parseInt(Ar.get("gaa_ts"),16)0===document.location.pathname.indexOf("/admin")?"newsquestgroupadmindev":"newsquestgroupprod",isMobileScreen:()=>window.screen.width<728,isArticle(){return this.isArticleState},itemFromObject:(e,t)=>"object"==typeof t&&void 0!==t[e]?decodeURIComponent(t[e]):"",getGoogleId(){let e="/".concat(this.googleNetworkCode,"/").concat(this.primaryDomain).concat(this.path);return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},getFromQueryString:e=>new URLSearchParams(window.location.search).get(e),getPathFragment(e,t){let r=this.moduleType;const n=this.localInfoVirtualFolder;let o="";o=!0===this.pathOverride?this.path:document.location.pathname.toString(),(r.indexOf("Block")>-1||"NationalNewsModule"===r)&&(r="ArticleModule");const i=o.substring(1,o.length-1),s=i.split("/");if(!0===t){if("/"===i)return 0===e?"homepage":"";const t=[];for(let e=0;e<4;e++)void 0===s[e]||s[e].match(/[0-9]+\./)||t.push(s[e]);return void 0===t[e]?"":t[e]}s[-1]="";for(let u=0;u<4;u++)void 0===s[u]&&(s[u]=""),""===s[u]||"ArticleModule"===r&&s[u].match(/[0-9]+\./)&&this.isArticleState?s[u]=s[u-1]:u>0&&(s[u]="".concat(s[u-1],"/").concat(s[u]));"/"===o&&(s[0]="homepage",s[1]="homepage",s[2]="homepage",s[3]="homepage");let a=o.match(/(\w+)\.(in|near|compare)\.([,a-zA-Z0-9 _-]+)[/]?$/);const c=o.match(/(\w+)\.detail\.(.*)$/);return null!==c&&c.length>1&&(a=c),null!==a&&a.length>1&&(s[0]="li",s[1]="li/".concat(n),s[2]="li/".concat(n,"/").concat(a[1]),s[3]="li/".concat(n,"/").concat(a[1])),s[e].toLowerCase()},getOmniturePath(){let e="";return e=document.getElementById("gallery-base-url")?document.getElementById("gallery-base-url").value:window.location.pathname,e},getTrackingFromCookie(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=this.getCookie(e);return r||t},getConsentString(){const e=[];return this.getCookie("consentUUID")?e.push("yes"):e.push("no"),"true"===this.getCookie("_sp_enable_dfp_personalized_ads")?e.push("yes"):"false"===this.getCookie("_sp_enable_dfp_personalized_ads")?e.push("no"):e.push("none"),e.join(",")},getDayOfWeek(){const e=new Date,t=[];t[0]="Sunday",t[1]="Monday",t[2]="Tuesday",t[3]="Wednesday",t[4]="Thursday",t[5]="Friday",t[6]="Saturday";return t[e.getDay()]},getAutoPlay:e=>"yes"===e&&"/"!==window.location.pathname?"yes":"no",getArticleAge(){const e=this.articleTimestamp;if(0===e)return"";const t=parseInt(e,10),r=(new Date).getTime()/1e3;return Math.round((r-t)/60)},getSource(e){if(""===e)return"martini";switch(parseInt(e,10)){case"6":return"knowledge";case"8":return"press association";case"17":return"uefa";case"18":return"jpi";default:return"martini"}},getCookie(e){const t=kr.get(e);return t||""},getDevice:()=>window.matchMedia("(max-width: 767px)").matches?"phone":window.matchMedia("(min-width: 768px) and (max-width: 1024px)").matches?"tablet":"desktop",getMobileDevice:()=>window.matchMedia("(max-width: 767px)").matches?"yes":"no",getTabletDevice:()=>window.matchMedia("(min-width: 768px) and (max-width: 1024px)").matches?"yes":"no",getSourcepointAdbockStatus(){return void 0===this.getCookie("nqab")?"unknown":"true"===this.getCookie("nqab")?"yes":"no"},getSubscriptionGateway:(e,t)=>e?"sagepay":t?"piano":"",getSubscriptionLevel:(e,t)=>e?"subscribed":t?"registered":"anonymous",getPianoTags(e){const t=this.moduleType,r=[];return r.push("martini"),r.push(t),r.push(e.piano_domain),""!==e.piano_master&&r.push("master_".concat(e.master)),e.breaking_news&&r.push("content_is_breaking"),e.user_is_entra_authenticated&&r.push("user_is_entra_authenticated"),e.editorial_opinion&&r.push("content_is_editorial_opinion"),e.free_subscriber&&r.push("free_subscriber"),e.has_video&&r.push("content_has_video"),e.is_alist&&r.push("user_is_alist"),e.is_article&&(r.push("content_is_article"),""!==e.article_content_level&&r.push("content_level_".concat(e.article_content_level)),e.article_content_level_open_access&&r.push("content_level_openaccess_override"),e.picture_gallery_id&&r.push("content_has_gallery")),e.user_is_newsquest&&"yes"!==this.getCookie("nq-show-piano-viewer")&&r.push("user_is_newsquest"),e.user_logged_in&&r.push("user_is_logged_in"),e.is_live_article&&r.push("content_is_live_article"),""!==e.why_free_subscriber&&r.push(e.why_free_subscriber),e.is_covid_headline&&r.push("headline_has_covid"),e.is_covid_body&&r.push("article_has_covid"),e.is_covid_body&&e.is_covid_headline&&r.push("content_is_covid"),e.audio_provider_bytecast&&r.push("has-audio"),r.push("user_".concat(this.getDevice())),e.extra_tags.length>0&&e.extra_tags.forEach(e=>{r.push(e)}),r},loadScript(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"text/javascript";const o=document.createElement("script"),i=document.getElementsByTagName("body")[0];o.type=n,o.async=t,o.src=e,"string"==typeof r&&(o.id=r),i.parentNode.insertBefore(o,i)},getCmpDate(){const e=new Date;let t=e.getDate().toString();1===t.length&&(t="0".concat(t));let r=(e.getMonth()+1).toString();1===r.length&&(r="0".concat(r));return t+r+e.getFullYear().toString()},getRestrictedContent:(e,t,r,n)=>0===parseInt(e,10)||229===parseInt(t,10)||229===parseInt(r,10)||n.length>1?"no":"yes",untrackedPuzzleCheck(){return this.getCookie("puzzle_last_visited")?"yes":"no"}};var Lr=r(38212);window.AudienceProjectData=m,window.advertisingTimer=w,window.data_layer_helper=jr,window.qs=Ar,window.extendedMetering=Pr,window.pianoListener=Tr,window.isRobot=Lr.h,window.pianoId=_r})()})();