sqwidget.define(["require"],function(t){var e=sqwidget.define,n={packages:[],preloads:["Ractive"]};return e("helpers",[],function(){var t={};return t.addCssToDocument=function(t){var e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),e.appendChild(n)},t}),function(t,e){t("mobile-detect",[],function(){"use strict";function t(t,e){return null!=t&&null!=e&&t.toLowerCase()===e.toLowerCase()}function n(t,e){var n,i,r=t.length;if(!r||!e)return!1;for(n=e.toLowerCase(),i=0;r>i;++i)if(n===t[i].toLowerCase())return!0;return!1}function i(t){for(var e in t)a.call(t,e)&&(t[e]=new RegExp(t[e],"i"))}function r(t,e){this.ua=t||"",this._cache={},this.maxPhoneWidth=e||600}var o={};o.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|SM-G920F|SM-G920V|SM-G930F|SM-N910C",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-T116BU|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|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",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|\\bP027\\b",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-850M|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|c|)(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|\\bQTAQZ3\\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"}},o.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 s,a=Object.prototype.hasOwnProperty;return o.FALLBACK_PHONE="UnknownPhone",o.FALLBACK_TABLET="UnknownTablet",o.FALLBACK_MOBILE="UnknownMobile",s="isArray"in Array?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},function(){var t,e,n,r,u,l,h=o.mobileDetectRules;for(t in h.props)if(a.call(h.props,t)){for(e=h.props[t],s(e)||(e=[e]),u=e.length,r=0;u>r;++r)n=e[r],l=n.indexOf("[VER]"),l>=0&&(n=n.substring(0,l)+"([\\w._\\+]+)"+n.substring(l+5)),e[r]=new RegExp(n,"i");h.props[t]=e}i(h.oss),i(h.phones),i(h.tablets),i(h.uas),i(h.utils),h.oss0={WindowsPhoneOS:h.oss.WindowsPhoneOS,WindowsMobileOS:h.oss.WindowsMobileOS}}(),o.findMatch=function(t,e){for(var n in t)if(a.call(t,n)&&t[n].test(e))return n;return null},o.findMatches=function(t,e){var n=[];for(var i in t)a.call(t,i)&&t[i].test(e)&&n.push(i);return n},o.getVersionStr=function(t,e){var n,i,r,s,u=o.mobileDetectRules.props;if(a.call(u,t))for(n=u[t],r=n.length,i=0;r>i;++i)if(s=n[i].exec(e),null!==s)return s[1];return null},o.getVersion=function(t,e){var n=o.getVersionStr(t,e);return n?o.prepareVersionNo(n):NaN},o.prepareVersionNo=function(t){var e;return e=t.split(/[a-z._ \/\-]/i),1===e.length&&(t=e[0]),e.length>1&&(t=e[0]+".",e.shift(),t+=e.join("")),Number(t)},o.isMobileFallback=function(t){return o.detectMobileBrowsers.fullPattern.test(t)||o.detectMobileBrowsers.shortPattern.test(t.substr(0,4))},o.isTabletFallback=function(t){return o.detectMobileBrowsers.tabletPattern.test(t)},o.prepareDetectionCache=function(t,n,i){if(t.mobile===e){var s,a,u;return(a=o.findMatch(o.mobileDetectRules.tablets,n))?(t.mobile=t.tablet=a,void(t.phone=null)):(s=o.findMatch(o.mobileDetectRules.phones,n))?(t.mobile=t.phone=s,void(t.tablet=null)):void(o.isMobileFallback(n)?(u=r.isPhoneSized(i),u===e?(t.mobile=o.FALLBACK_MOBILE,t.tablet=t.phone=null):u?(t.mobile=t.phone=o.FALLBACK_PHONE,t.tablet=null):(t.mobile=t.tablet=o.FALLBACK_TABLET,t.phone=null)):o.isTabletFallback(n)?(t.mobile=t.tablet=o.FALLBACK_TABLET,t.phone=null):t.mobile=t.tablet=t.phone=null)}},o.mobileGrade=function(t){var e=null!==t.mobile();return t.os("iOS")&&t.version("iPad")>=4.3||t.os("iOS")&&t.version("iPhone")>=3.1||t.os("iOS")&&t.version("iPod")>=3.1||t.version("Android")>2.1&&t.is("Webkit")||t.version("Windows Phone OS")>=7||t.is("BlackBerry")&&t.version("BlackBerry")>=6||t.match("Playbook.*Tablet")||t.version("webOS")>=1.4&&t.match("Palm|Pre|Pixi")||t.match("hp.*TouchPad")||t.is("Firefox")&&t.version("Firefox")>=12||t.is("Chrome")&&t.is("AndroidOS")&&t.version("Android")>=4||t.is("Skyfire")&&t.version("Skyfire")>=4.1&&t.is("AndroidOS")&&t.version("Android")>=2.3||t.is("Opera")&&t.version("Opera Mobi")>11&&t.is("AndroidOS")||t.is("MeeGoOS")||t.is("Tizen")||t.is("Dolfin")&&t.version("Bada")>=2||(t.is("UC Browser")||t.is("Dolfin"))&&t.version("Android")>=2.3||t.match("Kindle Fire")||t.is("Kindle")&&t.version("Kindle")>=3||t.is("AndroidOS")&&t.is("NookTablet")||t.version("Chrome")>=11&&!e||t.version("Safari")>=5&&!e||t.version("Firefox")>=4&&!e||t.version("MSIE")>=7&&!e||t.version("Opera")>=10&&!e?"A":t.os("iOS")&&t.version("iPad")<4.3||t.os("iOS")&&t.version("iPhone")<3.1||t.os("iOS")&&t.version("iPod")<3.1||t.is("Blackberry")&&t.version("BlackBerry")>=5&&t.version("BlackBerry")<6||t.version("Opera Mini")>=5&&t.version("Opera Mini")<=6.5&&(t.version("Android")>=2.3||t.is("iOS"))||t.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||t.version("Opera Mobi")>=11&&t.is("SymbianOS")?"B":(t.version("BlackBerry")<5||t.match("MSIEMobile|Windows CE.*Mobile")||t.version("Windows Mobile")<=5.2,"C")},o.detectOS=function(t){return o.findMatch(o.mobileDetectRules.oss0,t)||o.findMatch(o.mobileDetectRules.oss,t)},o.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},r.prototype={constructor:r,mobile:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===e&&(this._cache.userAgent=o.findMatch(o.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===e&&(this._cache.userAgents=o.findMatches(o.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===e&&(this._cache.os=o.detectOS(this.ua)),this._cache.os},version:function(t){return o.getVersion(t,this.ua)},versionStr:function(t){return o.getVersionStr(t,this.ua)},is:function(e){return n(this.userAgents(),e)||t(e,this.os())||t(e,this.phone())||t(e,this.tablet())||n(o.findMatches(o.mobileDetectRules.utils,this.ua),e)},match:function(t){return t instanceof RegExp||(t=new RegExp(t,"i")),t.test(this.ua)},isPhoneSized:function(t){return r.isPhoneSized(t||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===e&&(this._cache.grade=o.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?r.isPhoneSized=function(t){return 0>t?e:o.getDeviceSmallerSide()<=t}:r.isPhoneSized=function(){},r._impl=o,r.version="1.3.7 2017-09-06",r})}(function(t){if("undefined"!=typeof module&&module.exports)return function(t){module.exports=t()};if("function"==typeof e&&e.amd)return e;if("undefined"!=typeof window)return function(t){window.MobileDetect=t()};throw new Error("unknown environment")}()),function(){"use strict";function n(t,e,n,i,r,o){e[t]&&(n.push(t),(e[t]===!0||1===e[t])&&i.push(r+t+"/"+o))}function i(e,n,i,r,o){var s=r+n+"/"+o;t._fileExists(e.toUrl(s+".js"))&&i.push(s)}function r(t,e,n){var i;for(i in e)!e.hasOwnProperty(i)||t.hasOwnProperty(i)&&!n?"object"==typeof e[i]&&(!t[i]&&e[i]&&(t[i]={}),r(t[i],e[i],n)):t[i]=e[i]}var o=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;e("i18n",["module"],function(t){var e=t.config?t.config():{};return{version:"2.0.4",load:function(t,s,a,u){u=u||{},u.locale&&(e.locale=u.locale);var l,h,c,f=o.exec(t),d=f[1],p=f[4],g=f[5],T=p.split("-"),m=[],v={},b="";if(f[5]?(d=f[1],l=d+g):(l=t,g=f[4],p=e.locale,p||(p=e.locale="undefined"==typeof navigator?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),T=p.split("-")),u.isBuild){for(m.push(l),i(s,"root",m,d,g),h=0;h<T.length;h++)c=T[h],b+=(b?"-":"")+c,i(s,b,m,d,g);s(m,function(){a()})}else s([l],function(t){var e,i=[];for(n("root",t,i,m,d,g),h=0;h<T.length;h++)e=T[h],b+=(b?"-":"")+e,n(b,t,i,m,d,g);s(m,function(){var e,n,o;for(e=i.length-1;e>-1&&i[e];e--)o=i[e],n=t[o],(n===!0||1===n)&&(n=s(d+o+"/"+g)),r(v,n);a(v)})})}}})}(),e("nls/strings",{root:{text_us:"Text Us"}}),e("text",["module"],function(e){"use strict";var n,i,r,o,s,a=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],u=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,l=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,h="undefined"!=typeof location&&location.href,c=h&&location.protocol&&location.protocol.replace(/\:/,""),f=h&&location.hostname,d=h&&(location.port||void 0),p={},g=e.config&&e.config()||{};return n={version:"2.0.10",strip:function(t){if(t){t=t.replace(u,"");var e=t.match(l);e&&(t=e[1])}else t="";return t},jsEscape:function(t){return t.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:g.createXhr||function(){var t,e,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(e=0;3>e;e+=1){n=a[e];try{t=new ActiveXObject(n)}catch(i){}if(t){a=[n];break}}return t},parseName:function(t){var e,n,i,r=!1,o=t.indexOf("."),s=0===t.indexOf("./")||0===t.indexOf("../");return-1!==o&&(!s||o>1)?(e=t.substring(0,o),n=t.substring(o+1,t.length)):e=t,i=n||e,o=i.indexOf("!"),-1!==o&&(r="strip"===i.substring(o+1),i=i.substring(0,o),n?n=i:e=i),{moduleName:e,ext:n,strip:r}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(t,e,i,r){var o,s,a,u=n.xdRegExp.exec(t);return u?(o=u[2],s=u[3],s=s.split(":"),a=s[1],s=s[0],!(o&&o!==e||s&&s.toLowerCase()!==i.toLowerCase()||(a||s)&&a!==r)):!0},finishLoad:function(t,e,i,r){i=e?n.strip(i):i,g.isBuild&&(p[t]=i),r(i)},load:function(t,e,i,r){if(r.isBuild&&!r.inlineText)return void i();g.isBuild=r.isBuild;var o=n.parseName(t),s=o.moduleName+(o.ext?"."+o.ext:""),a=e.toUrl(s),u=g.useXhr||n.useXhr;return 0===a.indexOf("empty:")?void i():void(!h||u(a,c,f,d)?n.get(a,function(e){n.finishLoad(t,o.strip,e,i)},function(t){i.error&&i.error(t)}):e([s],function(t){n.finishLoad(o.moduleName+"."+o.ext,o.strip,t,i)}))},write:function(t,e,i,r){if(p.hasOwnProperty(e)){var o=n.jsEscape(p[e]);i.asModule(t+"!"+e,"define(function () { return '"+o+"';});\n")}},writeFile:function(t,e,i,r,o){var s=n.parseName(e),a=s.ext?"."+s.ext:"",u=s.moduleName+a,l=i.toUrl(s.moduleName+a)+".js";n.load(u,i,function(e){var i=function(t){return r(l,t)};i.asModule=function(t,e){return r.asModule(t,l,e)},n.write(t,u,i,o)},o)}},"node"===g.env||!g.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]?(i=t.nodeRequire("fs"),n.get=function(t,e,n){try{var r=i.readFileSync(t,"utf8");0===r.indexOf("\ufeff")&&(r=r.substring(1)),e(r)}catch(o){n(o)}}):"xhr"===g.env||!g.env&&n.createXhr()?n.get=function(t,e,i,r){var o,s=n.createXhr();if(s.open("GET",t,!0),r)for(o in r)r.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),r[o]);g.onXhr&&g.onXhr(s,t),s.onreadystatechange=function(n){var r,o;4===s.readyState&&(r=s.status,r>399&&600>r?(o=new Error(t+" HTTP status: "+r),o.xhr=s,i(o)):e(s.responseText),g.onXhrComplete&&g.onXhrComplete(s,t))},s.send(null)}:"rhino"===g.env||!g.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?n.get=function(t,e){var n,i,r="utf-8",o=new java.io.File(t),s=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),r)),u="";try{for(n=new java.lang.StringBuffer,i=a.readLine(),i&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),null!==i&&n.append(i);null!==(i=a.readLine());)n.append(s),n.append(i);u=String(n.toString())}finally{a.close()}e(u)}:("xpconnect"===g.env||!g.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(r=Components.classes,o=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),s="@mozilla.org/windows-registry-key;1"in r,n.get=function(t,e){var n,i,a,u={};s&&(t=t.replace(/\//g,"\\")),a=new FileUtils.File(t);try{n=r["@mozilla.org/network/file-input-stream;1"].createInstance(o.nsIFileInputStream),n.init(a,1,0,!1),i=r["@mozilla.org/intl/converter-input-stream;1"].createInstance(o.nsIConverterInputStream),i.init(n,"utf-8",n.available(),o.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),i.readString(n.available(),u),i.close(),n.close(),e(u.value)}catch(l){throw new Error((a&&a.path||"")+": "+l)}}),n}),e("text!compiled/css/main.css",[],function(){return".numberai-text-widget {\n  position: fixed;\n  bottom: 0;\n  font-size: 1.1em;\n  padding: 0.5em 1em;\n  z-index: 1000;\n  color: #000000;\n  background-color: #ef1515;\n  cursor: pointer;\n}\n.numberai-text-widget.numberai-phone {\n  left: 0;\n  right: 0;\n}\n.numberai-text-widget.numberai-nonphone {\n  border-radius: 0.25em 0.25em 0 0;\n  right: 10%;\n}\n.numberai-text-widget .numberai-number {\n  display: block;\n  color: inherit;\n}\n.numberai-text-form {\n  color: #000000;\n  margin-top: 15%;\n  max-width: 50%;\n  min-width: 500px;\n  margin-left: auto;\n  margin-right: auto;\n  padding: 1em;\n  z-index: 1001;\n  border-radius: 0.25em;\n  border: 1px solid #ef1515;\n  box-shadow: 0px 0px 30px -7px rgba(0, 0, 0, 0.5);\n  background-color: #ffffff;\n  font-size: 12pt;\n}\n.numberai-text-form label,\n.numberai-text-form input,\n.numberai-text-form textarea {\n  display: block;\n  font-family: inherit;\n  font-size: inherit;\n}\n.numberai-text-form textarea,\n.numberai-text-form input[type=tel] {\n  width: 100%;\n  padding: 0.25em;\n  border: 1px solid #999999;\n  box-sizing: border-box;\n}\n.numberai-text-form label {\n  font-weight: bold;\n  color: #000000;\n  margin-bottom: 0.25em;\n}\n.numberai-text-form input[type=submit] {\n  margin-top: 1em;\n  margin-left: auto;\n  color: #000000;\n  background-color: #ef1515;\n  border: none;\n  border-radius: 0.25em;\n  padding: 0.5em 1em;\n  font-weight: bold;\n  cursor: pointer;\n}\n.numberai-text-form button {\n  display: inlne-block;\n  float: right;\n  color: #999999;\n  background-color: #ffffff;\n  border: 1px solid #dddddd;\n  border-radius: 0.25em;\n  padding: 0.5em 1em;\n  cursor: pointer;\n}\n.numberai-text-note {\n  display: block;\n  font-size: 1.1em;\n  margin-bottom: 1em;\n}\n.numberai-text-nospam {\n  display: block;\n  color: #666666;\n  padding-top: 0.25em;\n  margin-bottom: 1em;\n  font-size: 0.8em;\n}\n.numberai-title {\n  font-size: 1.3em;\n  font-weight: bold;\n  padding-top: 0.5em;\n  margin-bottom: 0.5em;\n}\n"}),e("amd-loader",[],function(){var e=function(n,i,r,o){return 3==arguments.length?(o=r,r=void 0):2==arguments.length&&(o=i,i=r=void 0),{buildCache:{},load:function(s,a,u,l){var h=a.toUrl(s),c="";if(-1!=h.indexOf("?")&&(c=h.substr(h.indexOf("?")),h=h.substr(0,h.length-c.length)),l.precompiled instanceof Array){for(var f=0;f<l.precompiled.length;f++)if(h.substr(0,l.precompiled[f].length)==l.precompiled[f])return t([h+"."+n+".js"+c],u,u.error)}else if(l.precompiled===!0)return t([h+"."+n+".js"+c],u,u.error);if(i&&"/"!=s.substr(0,1)&&!s.match(/:\/\//)){var d=!1;if(r)for(var f=0;f<r.length;f++)s.substr(s.length-r[f].length-1)=="."+r[f]&&(d=!0);h+=d?c:"."+i+c}else h+=c;var p=this;e.fetch(h,function(t){o(s,t,a,function(t){"string"==typeof t?(l.isBuild&&(p.buildCache[s]=t),u.fromText(t)):u(t)},u.error,l)},u.error)},write:function(t,e,n){var i=this.buildCache[e];i&&n.asModule(t+"!"+e,i)},writeFile:function(t,e,i,r){r.asModule(t+"!"+e,i.toUrl(e+"."+n+".js"),this.buildCache[e])}}};if("undefined"!=typeof window){var n=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],i=function(t){var e=!0,i=/^(\w+:)?\/\/([^\/]+)/.exec(t);"undefined"!=typeof window&&i&&(e=i[2]===window.location.host,i[1]&&(e&=i[1]===window.location.protocol));var r;if("undefined"!=typeof XMLHttpRequest)r=new XMLHttpRequest;else for(var o,s=0;3>s;s+=1){o=n[s];try{r=new ActiveXObject(o)}catch(a){}if(r){n=[o];break}}if(!e)if("undefined"!=typeof XDomainRequest)r=new XDomainRequest;else if(!("withCredentials"in r))throw new Error("getXhr(): Cross Origin XHR not supported.");if(!r)throw new Error("getXhr(): XMLHttpRequest not available");return r};e.fetch=function(t,e,n){var r=i(t);r.open("GET",t,!requirejs.inlineRequire),r.onreadystatechange=function(i){var o,s;if(4===r.readyState)if(o=r.status,o>399&&600>o)s=new Error(t+" HTTP status: "+o),s.xhr=r,n&&n(s);else{if(""==r.responseText)return n(new Error(t+" empty response"));e(r.responseText)}},r.send(null)}}else if("undefined"!=typeof process&&process.versions&&process.versions.node){var r=requirejs.nodeRequire("fs");e.fetch=function(t,e){e(r.readFileSync(t,"utf8"))}}else"undefined"!=typeof Packages?e.fetch=function(t,e,n){var i,r,o="utf-8",s=new java.io.File(t),a=java.lang.System.getProperty("line.separator"),u=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(s),o)),l="";try{for(i=new java.lang.StringBuffer,r=u.readLine(),r&&r.length()&&65279===r.charAt(0)&&(r=r.substring(1)),i.append(r);null!==(r=u.readLine());)i.append(a),i.append(r);l=String(i.toString())}catch(h){n&&n(h)}finally{u.close()}e(l)}:e.fetch=function(){throw new Error("Environment unsupported.")};return e}),function(t){var n=function(){return"undefined"!=typeof document?document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"):void 0}(),i=function(){var t;try{Object.create(null),t=Object.create}catch(e){t=function(){var t=function(){};return function(e,n){var i;return null===e?{}:(t.prototype=e,i=new t,n&&Object.defineProperties(i,n),i)}}()}return t}(),r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},o=function(t,e){return t?function(t,e){return e?document.createElementNS(e,t):document.createElement(t)}:function(t,n){if(n&&n!==e.html)throw"This browser does not support namespaces other than http://www.w3.org/1999/xhtml. The most likely cause of this error is that you're trying to render SVG in an older browser. See https://github.com/RactiveJS/Ractive/wiki/SVG-and-older-browsers for more information";return document.createElement(t)}}(n,r),s=function(){return"object"==typeof document?!0:!1}(),a=function(t){try{return Object.defineProperty({},"test",{value:0}),t&&Object.defineProperty(document.createElement("div"),"test",{value:0}),Object.defineProperty}catch(e){return function(t,e,n){t[e]=n.value}}}(s),u=function(t,e,n){try{try{Object.defineProperties({},{test:{value:0}})}catch(i){throw i}return n&&Object.defineProperties(t("div"),{test:{value:0}}),Object.defineProperties}catch(i){return function(t,n){var i;for(i in n)n.hasOwnProperty(i)&&e(t,i,n[i])}}}(o,a,s),l=function(){var t=/\[\s*(\*|[0-9]|[1-9][0-9]+)\s*\]/g;return function(e){return(e||"").replace(t,".$1")}}(),h={},c={TEXT:1,INTERPOLATOR:2,TRIPLE:3,SECTION:4,INVERTED:5,CLOSING:6,ELEMENT:7,PARTIAL:8,COMMENT:9,DELIMCHANGE:10,MUSTACHE:11,TAG:12,ATTRIBUTE:13,COMPONENT:15,NUMBER_LITERAL:20,STRING_LITERAL:21,ARRAY_LITERAL:22,OBJECT_LITERAL:23,BOOLEAN_LITERAL:24,GLOBAL:26,KEY_VALUE_PAIR:27,REFERENCE:30,REFINEMENT:31,MEMBER:32,PREFIX_OPERATOR:33,BRACKETED:34,CONDITIONAL:35,INFIX_OPERATOR:36,INVOCATION:40},f=function(){var t=Object.prototype.toString;return function(e){return"[object Array]"===t.call(e)}}(),d=function(){return function t(e,n){var i,r;if((r=e._wrapped[n])&&r.teardown()!==!1&&(e._wrapped[n]=null),e._cache[n]=void 0,i=e._cacheMap[n])for(;i.length;)t(e,i.pop())}}(),p=function(){return function(t,e){var n,i,r,o,s,a;for(n=[],a=t.rendered?t.el:t.fragment.docFrag,i=a.querySelectorAll('input[type="checkbox"][name="{{'+e+'}}"]'),o=i.length,s=0;o>s;s+=1)r=i[s],(r.hasAttribute("checked")||r.checked)&&(n[n.length]=r._ractive.value);return n}}(),g=function(t){return function(e){var n,i,r,o,s,a;for(n=e._deferred;i=n.evals.pop();)i.update().deferred=!1;for(;r=n.selectValues.pop();)r.deferredUpdate();for(;o=n.attrs.pop();)o.update().deferred=!1;for(;s=n.checkboxes.pop();)e.set(s,t(e,s));for(;a=n.radios.pop();)a.update()}}(p),T=function(){return function(t){var e,n,i,r,o,s;for(e=t._deferred,(n=e.focusable)&&(n.focus(),e.focusable=null);i=e.liveQueries.pop();)i._sort();for(;r=e.decorators.pop();)r.init();for(;o=e.transitions.pop();)o.init();for(;s=e.observers.pop();)s.update()}}(),m=function(){var t=function(t,e){var n,i,r,o;return t._parent&&t._parent._transitionManager?t._parent._transitionManager:(i=[],r=function(){var t,e;for(t=i.length;t--;)e=i[t],o(e.node)&&(e.detach(),i.splice(t,1))},o=function(t){var e,i;for(e=n.active.length;e--;)if(i=n.active[e],t.contains(i))return!1;return!0},n={active:[],push:function(t){n.active[n.active.length]=t},pop:function(t){var e;e=n.active.indexOf(t),-1!==e&&(n.active.splice(e,1),r(),!n.active.length&&n._ready&&n.complete())},complete:function(){e&&e.call(t)},ready:function(){r(),n._ready=!0,n.active.length||n.complete()},detachWhenReady:function(t){i[i.length]=t}})};return t}(),v=function(){function t(t,i,r,o){var s=t._deps[r];s&&(e(s[i]),o||n(t._depsMap[i],t,r))}function e(t){var e,n;if(t)for(n=t.length,e=0;n>e;e+=1)t[e].update()}function n(e,n,i,r){var o;if(e)for(o=e.length;o--;)t(n,e[o],i,r)}function i(t,e,n,o,s){var u,l,h,c,f,d,p,g;for(u=t._patternObservers.length;u--;)l=t._patternObservers[u],l.regex.test(n)&&l.update(n);o||(g=function(e){if(h=t._depsMap[e])for(u=h.length;u--;)c=h[u],f=a.exec(c)[0],d=n+"."+f,i(t,c,d)},s?(p=r(n),p.forEach(g)):g(e))}function r(t){var e,n,i,r,s,a;for(e=t.split("."),n=o(e.length),s=[],i=function(t,n){return t?"*":e[n]},r=n.length;r--;)a=n[r].map(i).join("."),s[a]||(s[s.length]=a,s[a]=!0);return s}function o(t){var e,n,i,r,o,s="";if(!u[t]){for(i=[];s.length<t;)s+=1;for(e=parseInt(s,2),r=function(t){return"1"===t},o=0;e>=o;o+=1){for(n=o.toString(2);n.length<t;)n="0"+n;i[o]=Array.prototype.map.call(n,r)}u[t]=i}return u[t]}var s,a,u={};return a=/[^\.]+$/,s=function(e,n,r){var o;for(e._patternObservers.length&&i(e,n,n,r,!0),o=0;o<e._deps.length;o+=1)t(e,n,o,r)},s.multiple=function(e,n,r){var o,s,a;if(a=n.length,e._patternObservers.length)for(o=a;o--;)i(e,n[o],n[o],r,!0);for(o=0;o<e._deps.length;o+=1)if(e._deps[o])for(s=a;s--;)t(e,n[s],o,r)},s}(),b=function(t,e,n,i,r,o,s,a){var u,l,h,c,f,d,p,g,T,m;return u={filter:function(t){return n(t)&&(!t._ractive||!t._ractive.setting)},wrap:function(t,e,n){return new h(t,e,n)}},h=function(t,n,i){this.root=t,this.value=n,this.keypath=i,n._ractive||(e(n,"_ractive",{value:{wrappers:[],instances:[],setting:!1},configurable:!0}),c(n)),n._ractive.instances[t._guid]||(n._ractive.instances[t._guid]=0,n._ractive.instances.push(t)),n._ractive.instances[t._guid]+=1,n._ractive.wrappers.push(this)},h.prototype={get:function(){return this.value},teardown:function(){var t,e,n,i,r;if(t=this.value,e=t._ractive,n=e.wrappers,i=e.instances,e.setting)return!1;if(r=n.indexOf(this),-1===r)throw new Error(m);if(n.splice(r,1),n.length){if(i[this.root._guid]-=1,!i[this.root._guid]){if(r=i.indexOf(this.root),-1===r)throw new Error(m);i.splice(r,1)}}else delete t._ractive,f(this.value)}},l=function(e,n,o){var s,u,l,h,c;for(s=function(t,s){var l,h,c,f,d,p,g,T,m,v,b,S;if("sort"===n||"reverse"===n)return void t.set(s,e);for(i(t,s),d=[],p=[],g=0;g<t._deps.length;g+=1)if(l=t._deps[g],l&&(h=l[s])){for(u(s,h,d,p),r(t);d.length;)d.pop().smartUpdate(n,o);for(;p.length;)p.pop().update()}if("splice"===n&&o.length>2&&o[1])for(T=Math.min(o[1],o.length-2),m=o[0],v=m+T,o[1]===o.length-2&&(S=!0),g=m;v>g;g+=1)b=s+"."+g,a(t,b);for(r(t),f=[],c=s.split(".");c.length;)c.pop(),f[f.length]=c.join(".");a.multiple(t,f,!0),S||a(t,s+".length",!0)},u=function(e,n,i,r){var o,s;for(o=n.length;o--;)s=n[o],s.type===t.REFERENCE?s.update():s.keypath===e&&s.type===t.SECTION&&!s.inverted&&s.docFrag?i[i.length]=s:r[r.length]=s},l=e._ractive.wrappers,c=l.length;c--;)h=l[c],s(h.root,h.keypath)},d=[],g=["pop","push","reverse","shift","sort","splice","unshift"],T=function(){},g.forEach(function(t){var n=function(){var e,n,i,a,u={},h={};for(e=Array.prototype[t].apply(this,arguments),n=this._ractive.instances,a=n.length;a--;)i=n[a],u[i._guid]=i._transitionManager,i._transitionManager=h[i._guid]=s(i,T);for(this._ractive.setting=!0,l(this,t,arguments),this._ractive.setting=!1,a=n.length;a--;)i=n[a],i._transitionManager=u[i._guid],h[i._guid].ready(),r(i),o(i);return e};e(d,t,{value:n})}),p={},p.__proto__?(c=function(t){t.__proto__=d},f=function(t){t.__proto__=Array.prototype}):(c=function(t){var n,i;for(n=g.length;n--;)i=g[n],e(t,i,{value:d[i],configurable:!0})},f=function(t){var e;for(e=g.length;e--;)delete t[g[e]]}),m="Something went wrong in a rather interesting way",u}(c,a,f,d,g,T,m,v),S=function(){var t,e;try{Object.defineProperty({},"test",{value:0})}catch(n){return!1}return t={filter:function(t,e){return!!e},wrap:function(t,n,i){return new e(t,n,i)}},e=function(t,e,n){var i,r,o,s,a,u,l,h,c,f=this;if(this.ractive=t,this.keypath=n,i=n.split("."),this.prop=i.pop(),o=i.join("."),this.obj=o?t.get(o):t.data,s=this.originalDescriptor=Object.getOwnPropertyDescriptor(this.obj,this.prop),s&&s.set&&(a=s.set._ractiveWrappers))return void(-1===a.indexOf(this)&&a.push(this));if(s&&!s.configurable)throw new Error('Cannot use magic mode with property "'+r+'" - object is not configurable');s&&(this.value=s.value,u=s.get,l=s.set),h=u||function(){return f.value},c=function(t){var e,n,i;for(l&&l(t),e=c._ractiveWrappers,i=e.length;i--;)n=e[i],n.resetting||n.ractive.set(n.keypath,t)},c._ractiveWrappers=[this],Object.defineProperty(this.obj,this.prop,{get:h,set:c,enumerable:!0,configurable:!0})},e.prototype={get:function(){return this.value},reset:function(t){this.resetting=!0,this.value=t,this.resetting=!1},teardown:function(){var t,e,n,i;t=Object.getOwnPropertyDescriptor(this.obj,this.prop),e=t.set,i=e._ractiveWrappers,i.splice(i.indexOf(this),1),i.length||(n=this.obj[this.prop],Object.defineProperty(this.obj,this.prop,this.originalDescriptor||{writable:!0,enumerable:!0,configrable:!0}),this.obj[this.prop]=n)}},t}(),A=function(t,e,n){function i(t,e){var n,i={};if(!e)return t;e+=".";for(n in t)t.hasOwnProperty(n)&&(i[e+n]=t[n]);return i}function r(t){var e;return o[t]||(e=t?t+".":"",o[t]=function(n,r){var o;return"string"==typeof n?(o={},o[e+n]=r,o):"object"==typeof n?e?i(n,t):n:void 0}),o[t]}var o={};return function(i,o,s,a){var u,l,h,c;for(u=i.adaptors.length,l=0;u>l;l+=1){if(h=i.adaptors[l],"string"==typeof h){if(!t[h])throw new Error('Missing adaptor "'+h+'"');h=i.adaptors[l]=t[h]}if(h.filter(s,o,i))return c=i._wrapped[o]=h.wrap(i,s,o,r(o)),void(c.value=s)}a||(i.magic&&n.filter(s,o,i)?i._wrapped[o]=n.wrap(i,s,o):i.modifyArrays&&e.filter(s,o,i)&&(i._wrapped[o]=e.wrap(i,s,o)))}}(h,b,S),M=function(t,e,n){var i,r,o;return i=function(t){return this._captured&&!this._captured[t]&&(this._captured.push(t),this._captured[t]=!0),r(this,t)},r=function(e,i){var r,s,a,u,l;return i=t(i),r=e._cache,void 0!==(s=r[i])?s:((u=e._wrapped[i])?a=u.value:i?a=(l=e._evaluators[i])?l.value:o(e,i):(n(e,"",e.data),a=e.data),r[i]=a,a)},o=function(t,e){var i,o,s,a,u,l,h;return i=e.split("."),o=i.pop(),s=i.join("."),a=r(t,s),(h=t._wrapped[s])&&(a=h.get()),null!==a&&void 0!==a?((u=t._cacheMap[s])?-1===u.indexOf(e)&&(u[u.length]=e):t._cacheMap[s]=[e],l=a[o],n(t,e,l),t._cache[e]=l,l):void 0},i}(l,h,A),y=function(){var t=Object.prototype.toString;return function(e){return"object"==typeof e&&"[object Object]"===t.call(e)}}(),P=function(){return function(t,e){return null===t&&null===e?!0:"object"==typeof t||"object"==typeof e?!1:t===e}}(),w=function(){var t;return t=function(t,e,n){var i,r,o,s,a,u,l,h,c,f,d;if(d='Could not resolve reference - too many "../" prefixes',"."===e){if(!n.length)return"";i=n[n.length-1]}else if("."===e.charAt(0))if(f=n[n.length-1],s=f?f.split("."):[],"../"===e.substr(0,3)){for(;"../"===e.substr(0,3);){if(!s.length)throw new Error(d);s.pop(),e=e.substring(3)}s.push(e),i=s.join(".")}else i=f?f+e:e.substring(1);else{for(r=e.split("."),o=r.pop(),u=r.length?"."+r.join("."):"",n=n.concat();n.length;)if(a=n.pop(),l=a+u,h=t.get(l),(c=t._wrapped[l])&&(h=c.get()),"object"==typeof h&&null!==h&&h.hasOwnProperty(o)){i=a+"."+e;break}i||void 0===t.get(e)||(i=e)}return i?i.replace(/^\./,""):i}}(),E=function(t){var e=Array.prototype.push;return function(n){for(var i,r,o;i=n._pendingResolution.pop();)r=t(n,i.ref,i.contextStack),void 0!==r?i.resolve(r):(o||(o=[])).push(i);o&&e.apply(n._pendingResolution,o)}}(w),G=function(t,e){return function(n){t(n),e(n)}}(g,T),C=function(){return function(t,e,n){var i,r,o,s,a,u,l;for(i=e.split("."),r=[],(o=t._wrapped[""])?(o.set&&o.set(i.join("."),n),s=o.get()):s=t.data;i.length>1;)a=r[r.length]=i.shift(),u=r.join("."),(o=t._wrapped[u])?(o.set&&o.set(i.join("."),n),s=o.get()):(s.hasOwnProperty(a)||(l||(l=u),s[a]=/^\s*[0-9]+\s*$/.test(i[0])?[]:{}),s=s[a]);return a=i[0],s[a]=n,l}}(),x=function(t,e,n,i,r,o,s,a,u){var l,h,c,f;return l=function(e,i,u){var l,f,d,p,g,T,m;if(f=[],t(e)&&(l=e,u=i),l)for(e in l)l.hasOwnProperty(e)&&(i=l[e],e=n(e),h(this,e,i,f));else e=n(e),h(this,e,i,f);if(f.length){if(p=this._transitionManager,this._transitionManager=g=s(this,u),d=c(f),d.length&&r.multiple(this,d,!0),r.multiple(this,f),this._pendingResolution.length&&o(this),a(this),this._transitionManager=p,g.ready(),!this.firingChangeEvent){for(this.firingChangeEvent=!0,m={},T=f.length;T--;)m[f[T]]=this.get(f[T]);this.fire("change",m),this.firingChangeEvent=!1}return this}},h=function(t,e,n,r){var o,s,a,l,h;if(!(a=t._wrapped[e])||!a.reset||f(t,e,n,a,r)===!1){if((h=t._evaluators[e])&&(h.value=n),o=t._cache[e],s=t.get(e),s===n||h){if(n===o&&"object"!=typeof n)return}else l=u(t,e,n);i(t,l||e),r[r.length]=e}},c=function(t){var e,n,i,r,o=[""];for(e=t.length;e--;)for(n=t[e],i=n.split(".");i.length>1;)i.pop(),r=i.join("."),o[r]||(o[o.length]=r,o[r]=!0);return o},f=function(t,n,r,o,s){var a,u,l,h;if(a=o.get(),!e(a,r)&&o.reset(r)===!1)return!1;if(r=o.get(),u=t._cache[n],!e(u,r)){if(t._cache[n]=r,l=t._cacheMap[n])for(h=l.length;h--;)i(t,l[h]);s[s.length]=n}},l}(y,P,l,d,v,E,m,G,C),I=function(t,e,n,i,r){return function(o,s){var a,u;return"function"==typeof o&&(s=o,o=""),u=this._transitionManager,this._transitionManager=a=t(this,s),e(this),n(this,o||""),i(this,o||""),r(this),this._transitionManager=u,a.ready(),"string"==typeof o?this.fire("update",o):this.fire("update"),this}}(m,E,d,v,G),B=function(t){return function(e,n){var i;if(!t(e)||!t(n))return!1;if(e.length!==n.length)return!1;for(i=e.length;i--;)if(e[i]!==n[i])return!1;return!0}}(f),N=function(t,e,n){function i(t,r,o,s,a){var u,l,h,c,f,d;if(u=t._twowayBindings[r])for(h=u.length;h--;)c=u[h],(!c.radioName||c.node.checked)&&(c.checkboxName?c.changed()&&!s[r]&&(s[r]=!0,s[s.length]=r):(f=c.attr.value,d=c.value(),e(f,d)||n(f,d)||(o[r]=d)));if(a&&(l=t._depsMap[r]))for(h=l.length;h--;)i(t,l[h],o,s,a)}return function(e,n){var r,o,s;if("string"!=typeof e&&(e="",n=!0),i(this,e,r={},o=[],n),s=o.length)for(;s--;)e=o[s],r[e]=t(this,e);this.set(r)}}(p,B,P),H=function(){return"undefined"!=typeof window?(function(t,e,n){var i,r;if(!n.requestAnimationFrame){for(i=0;i<t.length&&!n.requestAnimationFrame;++i)n.requestAnimationFrame=n[t[i]+"RequestAnimationFrame"];n.requestAnimationFrame||(r=n.setTimeout,n.requestAnimationFrame=function(t){var n,i,o;return n=Date.now(),i=Math.max(0,16-(n-e)),o=r(function(){t(n+i)},i),e=n+i,o})}}(["ms","moz","webkit","o"],0,window),window.requestAnimationFrame):void 0}(),O=function(t){var e=[],n={tick:function(){var i,r;for(i=0;i<e.length;i+=1)r=e[i],r.tick()||e.splice(i--,1);e.length?t(n.tick):n.running=!1},add:function(t){e[e.length]=t,n.running||(n.running=!0,n.tick())},abort:function(t,n){for(var i,r=e.length;r--;)i=e[r],i.root===n&&i.keypath===t&&i.stop()}};return n}(H),R=function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&"function"==typeof console.warn.apply?function(){console.warn.apply(console,arguments)}:function(){}}(),L=function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}}(),_=function(t,e,n){function i(t,e){var n=e-t;return n?function(e){return t+e*n}:function(){return t}}function r(t,e){var n,i,r,o;for(n=[],i=[],o=r=Math.min(t.length,e.length);o--;)i[o]=s(t[o],e[o]);for(o=r;o<t.length;o+=1)n[o]=t[o];for(o=r;o<e.length;o+=1)n[o]=e[o];return function(t){for(var e=r;e--;)n[e]=i[e](t);return n}}function o(t,e){var n,i,r,o,a=[];r={},i={};for(o in t)t.hasOwnProperty(o)&&(e.hasOwnProperty(o)?(a[a.length]=o,i[o]=s(t[o],e[o])):r[o]=t[o]);for(o in e)e.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(r[o]=e[o]);return n=a.length,function(t){for(var e,o=n;o--;)e=a[o],r[e]=i[e](t);return r}}var s=function(s,a){return n(s)&&n(a)?i(+s,+a):t(s)&&t(a)?r(s,a):e(s)&&e(a)?o(s,a):function(){return a}};return s}(f,y,L),k=function(t,e){var n=function(t){var n;this.startTime=Date.now();for(n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.interpolator=e(this.from,this.to),this.running=!0};return n.prototype={tick:function(){var e,n,i,r,o,s;return s=this.keypath,this.running?(r=Date.now(),e=r-this.startTime,e>=this.duration?(null!==s&&this.root.set(s,this.to),this.step&&this.step(1,this.to),this.complete&&this.complete(1,this.to),o=this.root._animations.indexOf(this),-1===o&&t("Animation was not found"),this.root._animations.splice(o,1),this.running=!1,!1):(n=this.easing?this.easing(e/this.duration):e/this.duration,null!==s&&(i=this.interpolator(n),
this.root.set(s,i)),this.step&&this.step(n,i),!0)):!1},stop:function(){var e;this.running=!1,e=this.root._animations.indexOf(this),-1===e&&t("Animation was not found"),this.root._animations.splice(e,1)}},n}(R,_),D=function(){return{linear:function(t){return t},easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)}}}(),F=function(t,e,n,i){function r(r,s,a,u){var l,h,c,f;return null!==s&&(f=r.get(s)),e.abort(s,r),t(f,a)?(u.complete&&u.complete(1,u.to),o):(u.easing&&(l="function"==typeof u.easing?u.easing:r.easing&&r.easing[u.easing]?r.easing[u.easing]:i[u.easing],"function"!=typeof l&&(l=null)),h=void 0===u.duration?400:u.duration,c=new n({keypath:s,from:f,to:a,root:r,duration:h,easing:l,step:u.step,complete:u.complete}),e.add(c),r._animations[r._animations.length]=c,c)}var o={stop:function(){}};return function(t,e,n){var i,o,s,a,u,l,h,c,f,d,p,g;if("object"==typeof t){n=e||{},a=n.easing,u=n.duration,s=[],l=n.step,h=n.complete,(l||h)&&(f={},n.step=null,n.complete=null,c=function(t){return function(e,n){f[t]=n}});for(i in t)t.hasOwnProperty(i)&&((l||h)&&(d=c(i),n={easing:a,duration:u},l&&(n.step=d),h&&(n.complete=d)),s[s.length]=r(this,i,t[i],n));return(l||h)&&(g={easing:a,duration:u},l&&(g.step=function(t){l(t,f)}),h&&(g.complete=function(t){h(t,f)}),s[s.length]=p=r(this,null,null,g)),{stop:function(){for(;s.length;)s.pop().stop();p&&p.stop()}}}return n=n||{},o=r(this,t,e,n),{stop:function(){o.stop()}}}}(P,O,k,D),V=function(){return function(t,e){var n,i,r=this;if("object"==typeof t){n=[];for(i in t)t.hasOwnProperty(i)&&(n[n.length]=this.on(i,t[i]));return{cancel:function(){for(;n.length;)n.pop().cancel()}}}return this._subs[t]?this._subs[t].push(e):this._subs[t]=[e],{cancel:function(){r.off(t,e)}}}}(),X=function(){return function(t,e){var n,i;if(!e)if(t)this._subs[t]=[];else for(t in this._subs)delete this._subs[t];n=this._subs[t],n&&(i=n.indexOf(e),-1!==i&&n.splice(i,1))}}(),W=function(){return function(t){var e,n,i,r,o,s,a,u;if(s=t.root,a=t.keypath,u=t.priority,e=s._deps[u]||(s._deps[u]={}),n=e[a]||(e[a]=[]),n[n.length]=t,t.registered=!0,a)for(i=a.split(".");i.length;)i.pop(),r=i.join("."),o=s._depsMap[r]||(s._depsMap[r]=[]),void 0===o[a]&&(o[a]=0,o[o.length]=a),o[a]+=1,a=r}}(),U=function(){return function(t){var e,n,i,r,o,s,a,u;if(s=t.root,a=t.keypath,u=t.priority,e=s._deps[u][a],n=e.indexOf(t),-1===n||!t.registered)throw new Error("Attempted to remove a dependant that was no longer registered! This should not happen. If you are seeing this bug in development please raise an issue at https://github.com/RactiveJS/Ractive/issues - thanks");if(e.splice(n,1),t.registered=!1,a)for(i=a.split(".");i.length;)i.pop(),r=i.join("."),o=s._depsMap[r],o[a]-=1,o[a]||(o.splice(o.indexOf(a),1),o[a]=void 0),a=r}}(),K=function(t){var e=function(t,e,n,i){var r=this;this.root=t,this.keypath=e,this.callback=n,this.defer=i.defer,this.debug=i.debug,this.proxy={update:function(){r.reallyUpdate()}},this.priority=0,this.context=i&&i.context?i.context:t};return e.prototype={init:function(t){t!==!1?this.update():this.value=this.root.get(this.keypath)},update:function(){return this.defer&&this.ready?void this.root._deferred.observers.push(this.proxy):void this.reallyUpdate()},reallyUpdate:function(){var e,n;if(e=this.value,n=this.root.get(this.keypath),this.value=n,!this.updating){if(this.updating=!0,!t(n,e)||!this.ready)try{this.callback.call(this.context,n,e,this.keypath)}catch(i){if(this.debug||this.root.debug)throw i}this.updating=!1}}},e}(P),j=function(){return function(t,e){var n,i,r,o,s,a,u;for(n=e.split("."),o=[],a=function(e){var n,i;n=t._wrapped[e]?t._wrapped[e].get():t.get(e);for(i in n)s.push(e+"."+i)},u=function(t){return t+"."+i};i=n.shift();)"*"===i?(s=[],o.forEach(a),o=s):o[0]?o=o.map(u):o[0]=i;return r={},o.forEach(function(e){r[e]=t.get(e)}),r}}(),Q=function(t,e){var n,i=/\*/;return n=function(t,e,n,i){this.root=t,this.callback=n,this.defer=i.defer,this.debug=i.debug,this.keypath=e,this.regex=new RegExp("^"+e.replace(/\./g,"\\.").replace(/\*/g,"[^\\.]+")+"$"),this.values={},this.defer&&(this.proxies=[]),this.priority="pattern",this.context=i&&i.context?i.context:t},n.prototype={init:function(t){var n,i;if(n=e(this.root,this.keypath),t!==!1)for(i in n)n.hasOwnProperty(i)&&this.update(i);else this.values=n},update:function(t){var n;{if(!i.test(t))return this.defer&&this.ready?void this.root._deferred.observers.push(this.getProxy(t)):void this.reallyUpdate(t);n=e(this.root,t);for(t in n)n.hasOwnProperty(t)&&this.update(t)}},reallyUpdate:function(e){var n=this.root.get(e);if(this.updating)return void(this.values[e]=n);if(this.updating=!0,!t(n,this.values[e])||!this.ready){try{this.callback.call(this.context,n,this.values[e],e)}catch(i){if(this.debug||this.root.debug)throw i}this.values[e]=n}this.updating=!1},getProxy:function(t){var e=this;return this.proxies[t]||(this.proxies[t]={update:function(){e.reallyUpdate(t)}}),this.proxies[t]}},n}(P,j),z=function(t,e,n,i,r){var o=/\*/,s={};return function(a,u,l,h){var c,f;return u=t(u),h=h||s,o.test(u)?(c=new r(a,u,l,h),a._patternObservers.push(c),f=!0):c=new i(a,u,l,h),e(c),c.init(h.init),c.ready=!0,{cancel:function(){var t;f&&(t=a._patternObservers.indexOf(c),-1!==t&&a._patternObservers.splice(t,1)),n(c)}}}}(l,W,U,K,Q),q=function(t,e){return function(n,i,r){var o,s=[];if(t(n)){r=i;for(o in n)n.hasOwnProperty(o)&&(i=n[o],s[s.length]=e(this,o,i,r));return{cancel:function(){for(;s.length;)s.pop().cancel()}}}return e(this,n,i,r)}}(y,z),J=function(){return function(t){var e,n,i,r=this._subs[t];if(r)for(e=Array.prototype.slice.call(arguments,1),n=0,i=r.length;i>n;n+=1)r[n].apply(this,e)}}(),Z=function(){return function(t){return this.el?this.fragment.find(t):null}}(),Y=function(t,e){var n,i,r,o,s,a,u,l;if(t){for(n=e("div"),i=["matches","matchesSelector"],s=["o","ms","moz","webkit"],l=function(t){return function(e,n){return e[t](n)}},a=i.length;a--;){if(r=i[a],n[r])return l(r);for(u=s.length;u--;)if(o=s[a]+r.substr(0,1).toUpperCase()+r.substring(1),n[o])return l(o)}return function(t,e){var n,i;for(n=(t.parentNode||t.document).querySelectorAll(e),i=n.length;i--;)if(n[i]===t)return!0;return!1}}}(s,o),$=function(t){return function(e,n){var i=this._isComponentQuery?!this.selector||e.name===this.selector:t(e.node,this.selector);return i?(this.push(e.node||e.instance),n||this._makeDirty(),!0):void 0}}(Y),tt=function(){return function(){var t,e,n;t=this._root[this._isComponentQuery?"liveComponentQueries":"liveQueries"],e=this.selector,n=t.indexOf(e),-1!==n&&(t.splice(n,1),t[e]=null)}}(),et=function(){function t(t){var e;return(e=t.parentFragment)?e.owner:t.component&&(e=t.component.parentFragment)?e.owner:void 0}function e(e){var n,i;for(n=[e],i=t(e);i;)n.push(i),i=t(i);return n}return function(t,n){var i,r,o,s,a,u,l,h,c,f;for(i=e(t.component||t._ractive.proxy),r=e(n.component||n._ractive.proxy),o=i[i.length-1],s=r[r.length-1];o&&o===s;)i.pop(),r.pop(),a=o,o=i[i.length-1],s=r[r.length-1];if(o=o.component||o,s=s.component||s,c=o.parentFragment,f=s.parentFragment,c===f)return u=c.items.indexOf(o),l=f.items.indexOf(s),u-l||i.length-r.length;if(h=a.fragments)return u=h.indexOf(c),l=h.indexOf(f),u-l||i.length-r.length;throw new Error("An unexpected condition was met while comparing the position of two components. Please file an issue at https://github.com/RactiveJS/Ractive/issues - thanks!")}}(),nt=function(t){return function(e,n){var i;return e.compareDocumentPosition?(i=e.compareDocumentPosition(n),2&i?1:-1):t(e,n)}}(et),it=function(t,e){return function(){this.sort(this._isComponentQuery?e:t),this._dirty=!1}}(nt,et),rt=function(){return function(){this._dirty||(this._root._deferred.liveQueries.push(this),this._dirty=!0)}}(),ot=function(){return function(t){var e=this.indexOf(this._isComponentQuery?t.instance:t.node);-1!==e&&this.splice(e,1)}}(),st=function(t,e,n,i,r,o){return function(s,a,u,l){var h;return h=[],t(h,{selector:{value:a},live:{value:u},_isComponentQuery:{value:l},_test:{value:e}}),u?(t(h,{cancel:{value:n},_root:{value:s},_sort:{value:i},_makeDirty:{value:r},_remove:{value:o},_dirty:{value:!1,writable:!0}}),h):h}}(u,$,tt,it,rt,ot),at=function(t,e,n,i){return function(t,e){var n,r;return this.el?(e=e||{},n=this._liveQueries,(r=n[t])?e&&e.live?r:r.slice():(r=i(this,t,!!e.live,!1),r.live&&(n.push(t),n[t]=r),this.fragment.findAll(t,r),r)):[]}}(R,Y,u,st),ut=function(){return function(t){return this.fragment.findComponent(t)}}(),lt=function(t,e,n,i){return function(t,e){var n,r;return e=e||{},n=this._liveComponentQueries,(r=n[t])?e&&e.live?r:r.slice():(r=i(this,t,!!e.live,!0),r.live&&(n.push(t),n[t]=r),this.fragment.findAllComponents(t,r),r)}}(R,Y,u,st),ht=function(){return function(t){var e;return"undefined"!=typeof window&&document&&t?t.nodeType?t:"string"==typeof t&&(e=document.getElementById(t),!e&&document.querySelector&&(e=document.querySelector(t)),e&&e.nodeType)?e:t[0]&&t[0].nodeType?t[0]:null:null}}(),ct=function(t,e){return function(n,i){var r,o,s,a,u;if(n.owner=i.owner,s=n.owner.parentFragment,n.root=i.root,n.pNode=i.pNode,n.contextStack=i.contextStack||[],n.owner.type===t.SECTION&&(n.index=i.index),s&&(a=s.indexRefs)){n.indexRefs=e(null);for(u in a)n.indexRefs[u]=a[u]}for(n.priority=s?s.priority+1:1,i.indexRef&&(n.indexRefs||(n.indexRefs={}),n.indexRefs[i.indexRef]=i.index),n.items=[],r=i.descriptor?i.descriptor.length:0,o=0;r>o;o+=1)n.items[n.items.length]=n.createItem({parentFragment:n,descriptor:i.descriptor[o],index:o})}}(c,i),ft=function(t){var e={};return function(n,i,r){var o,s=[];if(n)for(o=e[i]||(e[i]=t(i)),o.innerHTML=n;o.firstChild;)s[s.length]=o.firstChild,r.appendChild(o.firstChild);return s}}(o),dt=function(t){var e,n,i;return n=/</g,i=/>/g,e=function(e,n){this.type=t.TEXT,this.descriptor=e.descriptor,n&&(this.node=document.createTextNode(e.descriptor),n.appendChild(this.node))},e.prototype={detach:function(){return this.node.parentNode.removeChild(this.node),this.node},teardown:function(t){t&&this.detach()},firstNode:function(){return this.node},toString:function(){return(""+this.descriptor).replace(n,"&lt;").replace(i,"&gt;")}},e}(c),pt=function(t){return function(e){if(e.keypath)t(e);else{var n=e.root._pendingResolution.indexOf(e);-1!==n&&e.root._pendingResolution.splice(n,1)}}}(U),gt=function(t,e,n,i,r){function o(t,e,i){var r,o,s;if(!a.test(t.toString()))return n(t,"_nowrap",{value:!0}),t;if(!t["_"+e._guid]){n(t,"_"+e._guid,{value:function(){var n,i,r,s;if(n=e._captured,n||(e._captured=[]),i=t.apply(e,arguments),e._captured.length)for(r=o.length;r--;)s=o[r],s.updateSoftDependencies(e._captured);return e._captured=n,i},writable:!0});for(r in t)t.hasOwnProperty(r)&&(t["_"+e._guid][r]=t[r]);t["_"+e._guid+"_evaluators"]=[]}return o=t["_"+e._guid+"_evaluators"],s=o.indexOf(i),-1===s&&o.push(i),t["_"+e._guid]}var s,a;return a=/this/,s=function(e,n,r,s,a){var u;this.evaluator=r,this.keypath=n,this.root=e,this.argNum=s,this.type=t.REFERENCE,this.priority=a,u=e.get(n),"function"==typeof u&&(u=o(u,e,r)),this.value=r.values[s]=u,i(this)},s.prototype={update:function(){var t=this.root.get(this.keypath);"function"!=typeof t||t._nowrap||(t=o(t,this.root,this.evaluator)),e(t,this.value)||(this.evaluator.values[this.argNum]=t,this.evaluator.bubble(),this.value=t)},teardown:function(){r(this)}},s}(c,P,a,W,U),Tt=function(t,e,n){var i=function(t,n,i){this.root=t,this.keypath=n,this.priority=i.priority,this.evaluator=i,e(this)};return i.prototype={update:function(){var e=this.root.get(this.keypath);t(e,this.value)||(this.evaluator.bubble(),this.value=e)},teardown:function(){n(this)}},i}(P,W,U),mt=function(t,e,n,i,r,o,s,a,u){function l(t,e){var n,i;if(t=t.replace(/\$\{([0-9]+)\}/g,"_$1"),c[t])return c[t];for(i=[];e--;)i[e]="_"+e;return n=new Function(i.join(","),"return("+t+")"),c[t]=n,n}var h,c={};return h=function(t,e,n,i,r){var o,s;for(this.root=t,this.keypath=e,this.priority=r,this.fn=l(n,i.length),this.values=[],this.refs=[],o=i.length;o--;)(s=i[o])?s[0]?this.values[o]=s[1]:this.refs[this.refs.length]=new a(t,s[1],this,o,r):this.values[o]=void 0;this.selfUpdating=this.refs.length<=1,this.update()},h.prototype={bubble:function(){this.selfUpdating?this.update():this.deferred||(this.root._deferred.evals.push(this),this.deferred=!0)},update:function(){var e;if(this.evaluating)return this;this.evaluating=!0;try{e=this.fn.apply(null,this.values)}catch(r){if(this.root.debug)throw r;e=void 0}return t(e,this.value)||(n(this.root,this.keypath),this.root._cache[this.keypath]=e,s(this.root,this.keypath,e,!0),this.value=e,i(this.root,this.keypath)),this.evaluating=!1,this},teardown:function(){for(;this.refs.length;)this.refs.pop().teardown();n(this.root,this.keypath),this.root._evaluators[this.keypath]=null},refresh:function(){this.selfUpdating||(this.deferred=!0);for(var t=this.refs.length;t--;)this.refs[t].update();this.deferred&&(this.update(),this.deferred=!1)},updateSoftDependencies:function(t){var e,n,i;for(this.softRefs||(this.softRefs=[]),e=this.softRefs.length;e--;)i=this.softRefs[e],t[i.keypath]||(this.softRefs.splice(e,1),this.softRefs[i.keypath]=!1,i.teardown());for(e=t.length;e--;)n=t[e],this.softRefs[n]||(i=new u(this.root,n,this),this.softRefs[this.softRefs.length]=i,this.softRefs[n]=!0);this.selfUpdating=this.refs.length+this.softRefs.length<=1}},h}(P,a,d,v,W,U,A,gt,Tt),vt=function(t,e){var n=function(e,n,i,r){var o,s;s=this.root=e.root,o=t(s,n,i),void 0!==o?e.resolveRef(r,!1,o):(this.ref=n,this.argNum=r,this.resolver=e,this.contextStack=i,s._pendingResolution[s._pendingResolution.length]=this)};return n.prototype={resolve:function(t){this.keypath=t,this.resolver.resolveRef(this.argNum,!1,t)},teardown:function(){this.keypath||e(this)}},n}(w,pt),bt=function(){var t=/^(?:(?:[a-zA-Z$_][a-zA-Z$_0-9]*)|(?:[0-9]|[1-9][0-9]+))$/;return function(e){var n,i,r;for(n=e.split("."),r=n.length;r--;)if(i=n[r],"undefined"===i||!t.test(i))return!1;return!0}}(),St=function(t,e){return function(n,i){var r,o;return r=n.replace(/\$\{([0-9]+)\}/g,function(t,e){return i[e]?i[e][1]:"undefined"}),o=t(r),e(o)?o:"${"+r.replace(/[\.\[\]]/g,"-")+"}"}}(l,bt),At=function(t,e){function n(t,e,n){var r,o;if(r=t._depsMap[e])for(o=r.length;o--;)i(t,r[o],n)}function i(t,e,i){var r,o,s,a;for(r=t._deps.length;r--;)if(o=t._deps[r],o&&(s=o[e]))for(a=s.length;a--;)i.push(s[a]);n(t,e,i)}return function(n,r,o){var s,a,u;for(s=[],i(n,r,s),a=s.length;a--;)u=s[a],e(u),u.keypath=u.keypath.replace(r,o),t(u),u.update()}}(W,U),Mt=function(t,e,n,i){var r=function(t){var n,i,r,o,s;if(this.root=t.root,this.mustache=t,this.args=[],this.scouts=[],n=t.descriptor.x,s=t.parentFragment.indexRefs,this.str=n.s,r=this.unresolved=this.args.length=n.r?n.r.length:0,!r)return this.resolved=this.ready=!0,void this.bubble();for(i=0;r>i;i+=1)o=n.r[i],s&&void 0!==s[o]?this.resolveRef(i,!0,s[o]):this.scouts[this.scouts.length]=new e(this,o,t.contextStack,i);this.ready=!0,this.bubble()};return r.prototype={bubble:function(){var t;this.ready&&(t=this.keypath,this.keypath=n(this.str,this.args),"${"===this.keypath.substr(0,2)&&this.createEvaluator(),t?i(this.root,t,this.keypath):this.mustache.resolve(this.keypath))},teardown:function(){for(;this.scouts.length;)this.scouts.pop().teardown()},resolveRef:function(t,e,n){this.args[t]=[e,n],this.bubble(),this.resolved=!--this.unresolved},createEvaluator:function(){this.root._evaluators[this.keypath]?this.root._evaluators[this.keypath].refresh():this.root._evaluators[this.keypath]=new t(this.root,this.keypath,this.str,this.args,this.mustache.priority)}},r}(mt,vt,St,At),yt=function(t,e){return function(n,i){var r,o,s;s=n.parentFragment=i.parentFragment,n.root=s.root,n.contextStack=s.contextStack,n.descriptor=i.descriptor,n.index=i.index||0,n.priority=s.priority,n.type=i.descriptor.t,i.descriptor.r&&(s.indexRefs&&void 0!==s.indexRefs[i.descriptor.r]?(o=s.indexRefs[i.descriptor.r],n.indexRef=i.descriptor.r,n.value=o,n.render(n.value)):(r=t(n.root,i.descriptor.r,n.contextStack),void 0!==r?n.resolve(r):(n.ref=i.descriptor.r,n.root._pendingResolution[n.root._pendingResolution.length]=n))),i.descriptor.x&&(n.expressionResolver=new e(n)),n.descriptor.n&&!n.hasOwnProperty("value")&&n.render(void 0)}}(w,Mt),Pt=function(t,e,n){return function(i){i!==this.keypath&&(this.registered&&n(this),this.keypath=i,e(this),this.update(),this.root.twoway&&this.parentFragment.owner.type===t.ATTRIBUTE&&this.parentFragment.owner.element.bind(),this.expressionResolver&&this.expressionResolver.resolved&&(this.expressionResolver=null))}}(c,W,U),wt=function(t){return function(){var e,n;n=this.root.get(this.keypath),(e=this.root._wrapped[this.keypath])&&(n=e.get()),t(n,this.value)||(this.render(n),this.value=n)}}(P),Et=function(t,e,n,i,r){var o,s,a;return s=/</g,a=/>/g,o=function(e,i){this.type=t.INTERPOLATOR,i&&(this.node=document.createTextNode(""),i.appendChild(this.node)),n(this,e)},o.prototype={update:r,resolve:i,detach:function(){return this.node.parentNode.removeChild(this.node),this.node},teardown:function(t){t&&this.detach(),e(this)},render:function(t){this.node&&(this.node.data=void 0==t?"":t)},firstNode:function(){return this.node},toString:function(){var t=void 0!=this.value?""+this.value:"";return t.replace(s,"&lt;").replace(a,"&gt;")}},o}(c,pt,yt,Pt,wt),Gt=function(t,e,n){function i(t,e,n){var i,r,o;if(r=e.length,r<t.length)for(o=t.fragments.splice(r,t.length-r);o.length;)o.pop().teardown(!0);else if(r>t.length)for(i=t.length;r>i;i+=1)n.contextStack=t.contextStack.concat(t.keypath+"."+i),n.index=i,t.descriptor.i&&(n.indexRef=t.descriptor.i),t.fragments[i]=t.createFragment(n);t.length=r}function r(t,e,i){var r,o;o=t.fragmentsById||(t.fragmentsById=n(null));for(r in o)void 0===e[r]&&o[r]&&(o[r].teardown(!0),o[r]=null);for(r in e)void 0===e[r]||o[r]||(i.contextStack=t.contextStack.concat(t.keypath+"."+r),i.index=r,t.descriptor.i&&(i.indexRef=t.descriptor.i),o[r]=t.createFragment(i))}function o(t,e){t.length||(e.contextStack=t.contextStack.concat(t.keypath),e.index=0,t.fragments[0]=t.createFragment(e),t.length=1)}function s(e,n,i,r){var o,s,a,u;if(s=t(n)&&0===n.length,o=i?s||!n:n&&!s){if(e.length||(r.contextStack=e.contextStack,r.index=0,e.fragments[0]=e.createFragment(r),e.length=1),e.length>1)for(a=e.fragments.splice(1);u=a.pop();)u.teardown(!0)}else e.length&&(e.teardownFragments(!0),e.length=0)}return function(n,a){var u;return u={descriptor:n.descriptor.f,root:n.root,pNode:n.parentFragment.pNode,owner:n},n.descriptor.n?void s(n,a,!0,u):void(t(a)?i(n,a,u):e(a)?n.descriptor.i?r(n,a,u):o(n,u):s(n,a,!1,u))}}(f,y,i),Ct=function(t,e,n){function i(e,n,s,a,u,l,h){var c,f,d,p;if(!e.html){for(e.indexRefs&&void 0!==e.indexRefs[n]&&(e.indexRefs[n]=a),c=e.contextStack.length;c--;)d=e.contextStack[c],d.substr(0,l.length)===l&&(e.contextStack[c]=d.replace(l,h));for(c=e.items.length;c--;)switch(f=e.items[c],f.type){case t.ELEMENT:r(f,n,s,a,u,l,h);break;case t.PARTIAL:i(f.fragment,n,s,a,u,l,h);break;case t.COMPONENT:i(f.instance.fragment,n,s,a,u,l,h),(p=e.root._liveComponentQueries[f.name])&&p._makeDirty();break;case t.SECTION:case t.INTERPOLATOR:case t.TRIPLE:o(f,n,s,a,u,l,h)}}}function r(t,e,n,r,o,s,a){var u,l,h,c,f,d,p,g,T,m;for(u=t.attributes.length;u--;)l=t.attributes[u],l.fragment&&(i(l.fragment,e,n,r,o,s,a),l.twoway&&l.updateBindings());if(h=t.node._ractive){h.keypath.substr(0,s.length)===s&&(h.keypath=h.keypath.replace(s,a)),void 0!==e&&(h.index[e]=r);for(c in h.events)for(f=h.events[c].proxies,u=f.length;u--;)d=f[u],"object"==typeof d.n&&i(d.a,e,n,r,o,s,a),d.d&&i(d.d,e,n,r,o,s,a);(p=h.binding)&&p.keypath.substr(0,s.length)===s&&(g=h.root._twowayBindings[p.keypath],g.splice(g.indexOf(p),1),p.keypath=p.keypath.replace(s,a),g=h.root._twowayBindings[p.keypath]||(h.root._twowayBindings[p.keypath]=[]),g.push(p))}if(t.fragment&&i(t.fragment,e,n,r,o,s,a),T=t.liveQueries)for(m=t.root,u=T.length;u--;)m._liveQueries[T[u]]._makeDirty()}function o(t,e,r,o,s,a,u){var l;if(t.descriptor.x&&(t.expressionResolver&&t.expressionResolver.teardown(),t.expressionResolver=new n(t)),t.keypath?t.keypath.substr(0,a.length)===a&&t.resolve(t.keypath.replace(a,u)):t.indexRef===e&&(t.value=o,t.render(o)),t.fragments)for(l=t.fragments.length;l--;)i(t.fragments[l],e,r,o,s,a,u)}return i}(c,U,Mt),xt=function(t,e,n){return function(t,i,r,o,s){var a,u,l,h,c,f,d;for(l=i.descriptor.i,a=r;o>a;a+=1)u=i.fragments[a],h=a-s,c=a,f=i.keypath+"."+(a-s),d=i.keypath+"."+a,u.index+=s,e(u,l,h,c,s,f,d);n(t)}}(c,Ct,g),It=function(t){return function(e){var n,i,r,o,s,a,u,l,h,c,f=this;if(n=this.parentFragment,a=[],e.forEach(function(e,n){var o,s,l;return e===n?void(a[e]=f.fragments[n]):(void 0===i&&(i=n),-1===e?void(u||(u=[])).push(f.fragments[n]):(o=e-n,s=f.keypath+"."+n,l=f.keypath+"."+e,t(f.fragments[n],f.descriptor.i,n,e,o,s,l),a[e]=f.fragments[n],void(r=!0)))}),u)for(;h=u.pop();)h.teardown(!0);if(void 0===i&&(i=this.length),s=this.root.get(this.keypath).length,s!==i){for(l={descriptor:this.descriptor.f,root:this.root,pNode:n.pNode,owner:this},this.descriptor.i&&(l.indexRef=this.descriptor.i),o=i;s>o;o+=1)(h=a[o])?this.docFrag.appendChild(h.detach(!1)):(l.contextStack=this.contextStack.concat(this.keypath+"."+o),l.index=o,h=this.createFragment(l)),this.fragments[o]=h;c=n.findNextNode(this),n.pNode.insertBefore(this.docFrag,c),this.length=s}}}(Ct),Bt=function(){return[]}(),Nt=function(t,e,n,i,r,o,s,a,u,l,h){var c,f;return h.push(function(){f=h.DomFragment}),c=function(e,i){this.type=t.SECTION,this.inverted=!!e.descriptor.n,this.fragments=[],this.length=0,i&&(this.docFrag=document.createDocumentFragment()),this.initialising=!0,n(this,e),i&&i.appendChild(this.docFrag),this.initialising=!1},c.prototype={update:i,resolve:r,smartUpdate:function(t,e){var n;("push"===t||"unshift"===t||"splice"===t)&&(n={descriptor:this.descriptor.f,root:this.root,pNode:this.parentFragment.pNode,owner:this},this.descriptor.i&&(n.indexRef=this.descriptor.i)),this[t]&&(this.rendering=!0,this[t](n,e),this.rendering=!1)},pop:function(){this.length&&(this.fragments.pop().teardown(!0),this.length-=1)},push:function(t,e){var n,i,r;for(n=this.length,i=n+e.length,r=n;i>r;r+=1)t.contextStack=this.contextStack.concat(this.keypath+"."+r),t.index=r,this.fragments[r]=this.createFragment(t);this.length+=e.length,this.parentFragment.pNode.insertBefore(this.docFrag,this.parentFragment.findNextNode(this))},shift:function(){this.splice(null,[0,1])},unshift:function(t,e){this.splice(t,[0,0].concat(new Array(e.length)))},splice:function(t,e){var n,i,r,o,s,u,l,h,c;if(e.length&&(u=+(e[0]<0?this.length+e[0]:e[0]),i=Math.max(0,e.length-2),r=void 0!==e[1]?e[1]:this.length-u,r=Math.min(r,this.length-u),o=i-r)){if(0>o){for(l=u-o,s=u;l>s;s+=1)this.fragments[s].teardown(!0);this.fragments.splice(u,-o)}else{for(l=u+o,n=this.fragments[u]?this.fragments[u].firstNode():this.parentFragment.findNextNode(this),h=[u,0].concat(new Array(o)),this.fragments.splice.apply(this.fragments,h),s=u;l>s;s+=1)t.contextStack=this.contextStack.concat(this.keypath+"."+s),t.index=s,this.fragments[s]=this.createFragment(t);this.parentFragment.pNode.insertBefore(this.docFrag,n)}this.length+=o,c=u+i,a(this.root,this,c,this.length,o)}},merge:u,detach:function(){var t,e;for(e=this.fragments.length,t=0;e>t;t+=1)this.docFrag.appendChild(this.fragments[t].detach());return this.docFrag},teardown:function(t){this.teardownFragments(t),l(this)},firstNode:function(){return this.fragments[0]?this.fragments[0].firstNode():this.parentFragment.findNextNode(this)},findNextNode:function(t){return this.fragments[t.index+1]?this.fragments[t.index+1].firstNode():this.parentFragment.findNextNode(this)},teardownFragments:function(t){for(var e,n;n=this.fragments.shift();)n.teardown(t);if(this.fragmentsById)for(e in this.fragmentsById)this.fragments[e]&&(this.fragmentsById[e].teardown(t),this.fragmentsById[e]=null)},render:function(t){var n,i;(i=this.root._wrapped[this.keypath])&&(t=i.get()),this.rendering||(this.rendering=!0,o(this,t),this.rendering=!1,(!this.docFrag||this.docFrag.childNodes.length)&&!this.initialising&&e&&(n=this.parentFragment.findNextNode(this),n&&n.parentNode===this.parentFragment.pNode?this.parentFragment.pNode.insertBefore(this.docFrag,n):this.parentFragment.pNode.appendChild(this.docFrag)))},createFragment:function(t){var e=new f(t);return this.docFrag&&this.docFrag.appendChild(e.docFrag),e},toString:function(){var t,e,n,i;for(t="",e=0,i=this.length,e=0;i>e;e+=1)t+=this.fragments[e].toString();if(this.fragmentsById)for(n in this.fragmentsById)this.fragmentsById[n]&&(t+=this.fragmentsById[n].toString());return t},find:function(t){var e,n,i;for(n=this.fragments.length,e=0;n>e;e+=1)if(i=this.fragments[e].find(t))return i;return null},findAll:function(t,e){var n,i;for(i=this.fragments.length,n=0;i>n;n+=1)this.fragments[n].findAll(t,e)},findComponent:function(t){var e,n,i;for(n=this.fragments.length,e=0;n>e;e+=1)if(i=this.fragments[e].findComponent(t))return i;return null},findAllComponents:function(t,e){var n,i;for(i=this.fragments.length,n=0;i>n;n+=1)this.fragments[n].findAllComponents(t,e)}},c}(c,s,yt,wt,Pt,Gt,Ct,xt,It,pt,Bt),Ht=function(t,e,n,i,r,o,s){var a=function(e,i){this.type=t.TRIPLE,i&&(this.nodes=[],this.docFrag=document.createDocumentFragment()),this.initialising=!0,n(this,e),i&&i.appendChild(this.docFrag),this.initialising=!1};return a.prototype={update:i,resolve:r,detach:function(){for(var t=this.nodes.length;t--;)this.docFrag.appendChild(this.nodes[t]);return this.docFrag},teardown:function(t){t&&(this.detach(),this.docFrag=this.nodes=null),s(this)},firstNode:function(){return this.nodes[0]?this.nodes[0]:this.parentFragment.findNextNode(this)},render:function(t){var e,n;if(this.nodes){for(;this.nodes.length;)e=this.nodes.pop(),e.parentNode.removeChild(e);if(!t)return void(this.nodes=[]);n=this.parentFragment.pNode,this.nodes=o(t,n.tagName,this.docFrag),this.initialising||n.insertBefore(this.docFrag,this.parentFragment.findNextNode(this))}},toString:function(){return void 0!=this.value?this.value:""},find:function(t){var n,i,r,o;for(i=this.nodes.length,n=0;i>n;n+=1)if(r=this.nodes[n],1===r.nodeType){if(e(r,t))return r;if(o=r.querySelector(t))return o}return null},findAll:function(t,n){var i,r,o,s,a,u;for(r=this.nodes.length,i=0;r>i;i+=1)if(o=this.nodes[i],1===o.nodeType&&(e(o,t)&&n.push(o),s=o.querySelectorAll(t)))for(a=s.length,u=0;a>u;u+=1)n.push(s[u])}},a}(c,Y,yt,wt,Pt,ft,pt),Ot=function(t){return function(e,n){return e.a&&e.a.xmlns?e.a.xmlns:"svg"===e.e?t.svg:n.namespaceURI||t.html}}(r),Rt=function(){var t,e,n,i;return t="altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath vkern".split(" "),e="attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits contentScriptType contentStyleType diffuseConstant edgeMode externalResourcesRequired filterRes filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan".split(" "),n=function(t){for(var e={},n=t.length;n--;)e[t[n].toLowerCase()]=t[n];return e},i=n(t.concat(e)),function(t){var e=t.toLowerCase();return i[e]||e}}(),Lt=function(t,e){return function(n,i){var r,o;if(r=i.indexOf(":"),-1===r||(o=i.substr(0,r),"xmlns"===o))n.name=n.element.namespace!==t.html?e(i):i,n.lcName=n.name.toLowerCase();else if(i=i.substring(r+1),n.name=e(i),n.lcName=n.name.toLowerCase(),n.namespace=t[o.toLowerCase()],!n.namespace)throw'Unknown namespace ("'+o+'")'}}(r,Rt),_t=function(t){return function(e,n){var i,r=null===n.value?"":n.value;(i=n.pNode)&&(e.namespace?i.setAttributeNS(e.namespace,n.name,r):"style"===n.name&&i.style.setAttribute?i.style.setAttribute("cssText",r):"class"!==n.name||i.namespaceURI&&i.namespaceURI!==t.html?i.setAttribute(n.name,r):i.className=r,"id"===e.name&&(n.root.nodes[n.value]=i),"value"===e.name&&(i._ractive.value=n.value)),e.value=n.value}}(r),kt=function(t){var e={"accept-charset":"acceptCharset",accesskey:"accessKey",bgcolor:"bgColor","class":"className",codebase:"codeBase",colspan:"colSpan",contenteditable:"contentEditable",datetime:"dateTime",dirname:"dirName","for":"htmlFor","http-equiv":"httpEquiv",ismap:"isMap",maxlength:"maxLength",novalidate:"noValidate",pubdate:"pubDate",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return function(n,i){var r;!n.pNode||n.namespace||i.pNode.namespaceURI&&i.pNode.namespaceURI!==t.html||(r=e[n.name]||n.name,void 0!==i.pNode[r]&&(n.propertyName=r),("boolean"==typeof i.pNode[r]||"value"===r)&&(n.useProperty=!0))}}(r),Dt=function(t,e,n,i){var r,o,s,a,u,l,h,c,f,d,p,g,T,m;return r=function(){var t,e,n,i=this.pNode;return this.fragment&&(t=o(this))?(this.interpolator=t,this.keypath=t.keypath||t.descriptor.r,(e=u(this))?(i._ractive.binding=this.element.binding=e,this.twoway=!0,n=this.root._twowayBindings[this.keypath]||(this.root._twowayBindings[this.keypath]=[]),n[n.length]=e,!0):!1):!1},s=function(){this._ractive.binding.update()},a=function(){var t=this._ractive.root.get(this._ractive.binding.keypath);this.value=void 0==t?"":t},o=function(n){var i,r;return 1!==n.fragment.items.length?null:(i=n.fragment.items[0],i.type!==t.INTERPOLATOR?null:i.keypath||i.ref?i.keypath&&"${"===i.keypath.substr(0,2)?(r="You cannot set up two-way binding against an expression "+i.keypath,n.root.debug&&e(r),null):i:null)},u=function(t){var n=t.pNode;if("SELECT"===n.tagName)return n.multiple?new h(t,n):new c(t,n);if("checkbox"===n.type||"radio"===n.type){if("name"===t.propertyName){if("checkbox"===n.type)return new d(t,n);if("radio"===n.type)return new f(t,n)}return"checked"===t.propertyName?new p(t,n):null}return"value"!==t.lcName&&e("This is... odd"),"file"===n.type?new g(t,n):n.getAttribute("contenteditable")?new T(t,n):new m(t,n)},h=function(t,e){var n;l(this,t,e),e.addEventListener("change",s,!1),n=this.root.get(this.keypath),void 0===n&&this.update()},h.prototype={value:function(){var t,e,n,i;for(t=[],e=this.node.options,i=e.length,n=0;i>n;n+=1)e[n].selected&&(t[t.length]=e[n]._ractive.value);return t},update:function(){var t,e,i;return t=this.attr,e=t.value,i=this.value(),void 0!==e&&n(i,e)||(t.receiving=!0,t.value=i,this.root.set(this.keypath,i),t.receiving=!1),this},deferUpdate:function(){this.deferred!==!0&&(this.root._deferred.attrs.push(this),this.deferred=!0)},teardown:function(){this.node.removeEventListener("change",s,!1)}},c=function(t,e){var n;l(this,t,e),e.addEventListener("change",s,!1),n=this.root.get(this.keypath),void 0===n&&this.update()},c.prototype={value:function(){var t,e,n;for(t=this.node.options,n=t.length,e=0;n>e;e+=1)if(t[e].selected)return t[e]._ractive.value},update:function(){var t=this.value();return this.attr.receiving=!0,this.attr.value=t,this.root.set(this.keypath,t),this.attr.receiving=!1,this},deferUpdate:function(){this.deferred!==!0&&(this.root._deferred.attrs.push(this),this.deferred=!0)},teardown:function(){this.node.removeEventListener("change",s,!1)}},f=function(t,e){var n;this.radioName=!0,l(this,t,e),e.name="{{"+t.keypath+"}}",e.addEventListener("change",s,!1),e.attachEvent&&e.addEventListener("click",s,!1),n=this.root.get(this.keypath),void 0!==n?e.checked=n==e._ractive.value:this.root._deferred.radios.push(this);
},f.prototype={value:function(){return this.node._ractive?this.node._ractive.value:this.node.value},update:function(){var t=this.node;t.checked&&(this.attr.receiving=!0,this.root.set(this.keypath,this.value()),this.attr.receiving=!1)},teardown:function(){this.node.removeEventListener("change",s,!1),this.node.removeEventListener("click",s,!1)}},d=function(t,e){var n,i;this.checkboxName=!0,l(this,t,e),e.name="{{"+this.keypath+"}}",e.addEventListener("change",s,!1),e.attachEvent&&e.addEventListener("click",s,!1),n=this.root.get(this.keypath),void 0!==n?(i=-1!==n.indexOf(e._ractive.value),e.checked=i):-1===this.root._deferred.checkboxes.indexOf(this.keypath)&&this.root._deferred.checkboxes.push(this.keypath)},d.prototype={changed:function(){return this.node.checked!==!!this.checked},update:function(){this.checked=this.node.checked,this.attr.receiving=!0,this.root.set(this.keypath,i(this.root,this.keypath)),this.attr.receiving=!1},teardown:function(){this.node.removeEventListener("change",s,!1),this.node.removeEventListener("click",s,!1)}},p=function(t,e){l(this,t,e),e.addEventListener("change",s,!1),e.attachEvent&&e.addEventListener("click",s,!1)},p.prototype={value:function(){return this.node.checked},update:function(){this.attr.receiving=!0,this.root.set(this.keypath,this.value()),this.attr.receiving=!1},teardown:function(){this.node.removeEventListener("change",s,!1),this.node.removeEventListener("click",s,!1)}},g=function(t,e){l(this,t,e),e.addEventListener("change",s,!1)},g.prototype={value:function(){return this.attr.pNode.files},update:function(){this.attr.root.set(this.attr.keypath,this.value())},teardown:function(){this.node.removeEventListener("change",s,!1)}},T=function(t,e){l(this,t,e),e.addEventListener("change",s,!1),this.root.lazy||(e.addEventListener("input",s,!1),e.attachEvent&&e.addEventListener("keyup",s,!1))},T.prototype={update:function(){this.attr.receiving=!0,this.root.set(this.keypath,this.node.innerHTML),this.attr.receiving=!1},teardown:function(){this.node.removeEventListener("change",s,!1),this.node.removeEventListener("input",s,!1),this.node.removeEventListener("keyup",s,!1)}},m=function(t,e){l(this,t,e),e.addEventListener("change",s,!1),this.root.lazy||(e.addEventListener("input",s,!1),e.attachEvent&&e.addEventListener("keyup",s,!1)),this.node.addEventListener("blur",a,!1)},m.prototype={value:function(){var t=this.attr.pNode.value;return+t+""===t&&-1===t.indexOf("e")&&(t=+t),t},update:function(){var t=this.attr,e=this.value();t.receiving=!0,t.root.set(t.keypath,e),t.receiving=!1},teardown:function(){this.node.removeEventListener("change",s,!1),this.node.removeEventListener("input",s,!1),this.node.removeEventListener("keyup",s,!1),this.node.removeEventListener("blur",a,!1)}},l=function(t,e,n){t.attr=e,t.node=n,t.root=e.root,t.keypath=e.keypath},r}(c,R,B,p),Ft=function(t,e){var n,i,r,o,s,a,u,l,h,c,f,d;return n=function(){var t;if(!this.ready)return this;if(t=this.pNode,"SELECT"===t.tagName&&"value"===this.lcName)return this.update=r,this.deferredUpdate=o,this.update();if(this.isFileInputValue)return this.update=i,this;if(this.twoway&&"name"===this.lcName){if("radio"===t.type)return this.update=u,this.update();if("checkbox"===t.type)return this.update=l,this.update()}return"style"===this.lcName&&t.style.setAttribute?(this.update=h,this.update()):"class"!==this.lcName||t.namespaceURI&&t.namespaceURI!==e.html?t.getAttribute("contenteditable")&&"value"===this.lcName?(this.update=f,this.update()):(this.update=d,this.update()):(this.update=c,this.update())},i=function(){return this},o=function(){this.deferredUpdate=this.pNode.multiple?a:s,this.deferredUpdate()},r=function(){return this.root._deferred.selectValues.push(this),this},s=function(){var t,e,n,i=this.fragment.getValue();for(this.value=this.pNode._ractive.value=i,t=this.pNode.options,n=t.length;n--;)if(e=t[n],e._ractive.value==i)return e.selected=!0,this;return this},a=function(){var e,n,i=this.fragment.getValue();for(t(i)||(i=[i]),e=this.pNode.options,n=e.length;n--;)e[n].selected=-1!==i.indexOf(e[n]._ractive.value);return this.value=i,this},u=function(){var t,e;return t=this.pNode,e=this.fragment.getValue(),t.checked=e==t._ractive.value,this},l=function(){var e,n;return e=this.pNode,n=this.fragment.getValue(),t(n)?(e.checked=-1!==n.indexOf(e._ractive.value),this):(e.checked=n==e._ractive.value,this)},h=function(){var t,e;return t=this.pNode,e=this.fragment.getValue(),void 0===e&&(e=""),e!==this.value&&(t.style.setAttribute("cssText",e),this.value=e),this},c=function(){var t,e;return t=this.pNode,e=this.fragment.getValue(),void 0===e&&(e=""),e!==this.value&&(t.className=e,this.value=e),this},f=function(){var t,e;return t=this.pNode,e=this.fragment.getValue(),void 0===e&&(e=""),e!==this.value&&(this.receiving||(t.innerHTML=e),this.value=e),this},d=function(){var t,e;if(t=this.pNode,e=this.fragment.getValue(),this.isValueAttribute&&(t._ractive.value=e),void 0===e&&(e=""),e!==this.value){if(this.useProperty)return this.receiving||(t[this.propertyName]=e),this.value=e,this;if(this.namespace)return t.setAttributeNS(this.namespace,this.name,e),this.value=e,this;"id"===this.lcName&&(void 0!==this.value&&(this.root.nodes[this.value]=void 0),this.root.nodes[e]=t),t.setAttribute(this.name,e),this.value=e}return this},n}(f,r),Vt=function(){return function(t){var e;return e=this.str.substr(this.pos,t.length),e===t?(this.pos+=t.length,t):null}}(),Xt=function(){var t=/^\s+/;return function(){var e=t.exec(this.remaining());return e?(this.pos+=e[0].length,e[0]):null}}(),Wt=function(){return function(t){return function(e){var n=t.exec(e.str.substring(e.pos));return n?(e.pos+=n[0].length,n[1]||n[0]):null}}}(),Ut=function(){function t(t){var e;return t.getStringMatch("\\")?(e=t.str.charAt(t.pos),t.pos+=1,e):null}return function(e){var n,i="";for(n=t(e);n;)i+=n,n=t(e);return i||null}}(),Kt=function(t,e){var n=t(/^[^\\"]+/),i=t(/^[^\\']+/);return function r(t,o){var s,a,u,l,h,c;if(s=t.pos,a="",c=o?i:n,u=e(t),u&&(a+=u),l=c(t),l&&(a+=l),!a)return"";for(h=r(t,o);""!==h;)a+=h;return a}}(Wt,Ut),jt=function(t,e){return function(n){var i,r;return i=n.pos,n.getStringMatch('"')?(r=e(n,!1),n.getStringMatch('"')?{t:t.STRING_LITERAL,v:r}:(n.pos=i,null)):n.getStringMatch("'")?(r=e(n,!0),n.getStringMatch("'")?{t:t.STRING_LITERAL,v:r}:(n.pos=i,null)):null}}(c,Kt),Qt=function(t,e){var n=e(/^(?:[+-]?)(?:(?:(?:0|[1-9]\d*)?\.\d+)|(?:(?:0|[1-9]\d*)\.)|(?:0|[1-9]\d*))(?:[eE][+-]?\d+)?/);return function(e){var i;return(i=n(e))?{t:t.NUMBER_LITERAL,v:i}:null}}(c,Wt),zt=function(t){return t(/^[a-zA-Z_$][a-zA-Z_$0-9]*/)}(Wt),qt=function(t,e,n){var i=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;return function(r){var o;return(o=t(r))?i.test(o.v)?o.v:'"'+o.v.replace(/"/g,'\\"')+'"':(o=e(r))?o.v:(o=n(r))?o:void 0}}(jt,Qt,zt),Jt=function(t,e,n,i){function r(t){var e,n,r;return t.allowWhitespace(),(e=i(t))?(r={key:e},t.allowWhitespace(),t.getStringMatch(":")?(t.allowWhitespace(),(n=t.getToken())?(r.value=n.v,r):null):null):null}var o,s,a,u,l,h;return s={"true":!0,"false":!1,undefined:void 0,"null":null},a=new RegExp("^(?:"+Object.keys(s).join("|")+")"),u=/^(?:[+-]?)(?:(?:(?:0|[1-9]\d*)?\.\d+)|(?:(?:0|[1-9]\d*)\.)|(?:0|[1-9]\d*))(?:[eE][+-]?\d+)?/,l=/\$\{([^\}]+)\}/g,h=/^\$\{([^\}]+)\}/,o=function(t,e){this.str=t,this.values=e,this.pos=0,this.result=this.getToken()},o.prototype={remaining:function(){return this.str.substring(this.pos)},getStringMatch:t,getToken:function(){return this.allowWhitespace(),this.getPlaceholder()||this.getSpecial()||this.getNumber()||this.getString()||this.getObject()||this.getArray()},getPlaceholder:function(){var t;return this.values?(t=h.exec(this.remaining()))&&this.values.hasOwnProperty(t[1])?(this.pos+=t[0].length,{v:this.values[t[1]]}):void 0:null},getSpecial:function(){var t;return(t=a.exec(this.remaining()))?(this.pos+=t[0].length,{v:s[t[0]]}):void 0},getNumber:function(){var t;return(t=u.exec(this.remaining()))?(this.pos+=t[0].length,{v:+t[0]}):void 0},getString:function(){var t,e=n(this);return e&&(t=this.values)?{v:e.v.replace(l,function(e,n){return t[n]||n})}:e},getObject:function(){var t,e;if(!this.getStringMatch("{"))return null;for(t={};e=r(this);){if(t[e.key]=e.value,this.allowWhitespace(),this.getStringMatch("}"))return{v:t};if(!this.getStringMatch(","))return null}return null},getArray:function(){var t,e;if(!this.getStringMatch("["))return null;for(t=[];e=this.getToken();){if(t.push(e.v),this.getStringMatch("]"))return{v:t};if(!this.getStringMatch(","))return null}return null},allowWhitespace:e},function(t,e){var n=new o(t,e);return n.result?{value:n.result.v,remaining:n.remaining()}:null}}(Vt,Xt,jt,qt),Zt=function(t,e,n,i,r){function o(t){return"string"==typeof t?t:JSON.stringify(t)}var s=function(e){this.type=t.INTERPOLATOR,n(this,e)};return s.prototype={update:i,resolve:r,render:function(t){this.value=t,this.parentFragment.bubble()},teardown:function(){e(this)},toString:function(){return void 0==this.value?"":o(this.value)}},s}(c,pt,yt,wt,Pt),Yt=function(t,e,n,i,r,o,s){var a,u;return s.push(function(){u=s.StringFragment}),a=function(n){this.type=t.SECTION,this.fragments=[],this.length=0,e(this,n)},a.prototype={update:n,resolve:i,teardown:function(){this.teardownFragments(),o(this)},teardownFragments:function(){for(;this.fragments.length;)this.fragments.shift().teardown();this.length=0},bubble:function(){this.value=this.fragments.join(""),this.parentFragment.bubble()},render:function(t){var e;(e=this.root._wrapped[this.keypath])&&(t=e.get()),r(this,t),this.parentFragment.bubble()},createFragment:function(t){return new u(t)},toString:function(){return this.fragments.join("")}},a}(c,yt,wt,Pt,Gt,pt,Bt),$t=function(t){var e=function(e){this.type=t.TEXT,this.text=e};return e.prototype={toString:function(){return this.text},teardown:function(){}},e}(c),te=function(t,e){return function(){var n,i,r,o,s,a,u;if(!this.argsList||this.dirty){if(n={},i=0,o=this.root._guid,u=function(t){return t.map(function(t){var e,r,s;return t.text?t.text:t.fragments?t.fragments.map(function(t){return u(t.items)}).join(""):(e=o+"-"+i++,s=(r=t.root._wrapped[t.keypath])?r.value:t.value,n[e]=s,"${"+e+"}")}).join("")},r=u(this.items),a=e("["+r+"]",n))this.argsList=a.value;else{if(s="Could not parse directive arguments ("+this.toString()+"). If you think this is a bug, please file an issue at http://github.com/RactiveJS/Ractive/issues",this.root.debug)throw new Error(s);t(s),this.argsList=[r]}this.dirty=!1}return this.argsList}}(R,Jt),ee=function(t,e,n,i,r,o,s,a){var u=function(t){n(this,t)};return u.prototype={createItem:function(e){if("string"==typeof e.descriptor)return new o(e.descriptor);switch(e.descriptor.t){case t.INTERPOLATOR:return new i(e);case t.TRIPLE:return new i(e);case t.SECTION:return new r(e);default:throw"Something went wrong in a rather interesting way"}},bubble:function(){this.dirty=!0,this.owner.bubble()},teardown:function(){var t,e;for(t=this.items.length,e=0;t>e;e+=1)this.items[e].teardown()},getValue:function(){var e;return 1===this.items.length&&this.items[0].type===t.INTERPOLATOR&&(e=this.items[0].value,void 0!==e)?e:this.toString()},isSimple:function(){var e,n,i;if(void 0!==this.simple)return this.simple;for(e=this.items.length;e--;)if(n=this.items[e],n.type!==t.TEXT){if(n.type!==t.INTERPOLATOR)return this.simple=!1;if(i)return!1;i=!0}return this.simple=!0},toString:function(){return this.items.join("")},toJSON:function(){var t,n=this.getValue();return"string"==typeof n&&(t=e(n),n=t?t.value:n),n},toArgsList:s},a.StringFragment=u,u}(c,Jt,ct,Zt,Yt,$t,te,Bt),ne=function(t,e,n,i,r,o,s){var a=function(r){return this.type=t.ATTRIBUTE,this.element=r.element,e(this,r.name),null===r.value||"string"==typeof r.value?void n(this,r):(this.root=r.root,this.pNode=r.pNode,this.parentFragment=this.element.parentFragment,this.fragment=new s({descriptor:r.value,root:this.root,owner:this,contextStack:r.contextStack}),void(this.pNode&&("value"===this.name&&(this.isValueAttribute=!0,"INPUT"===this.pNode.tagName&&"file"===this.pNode.type&&(this.isFileInputValue=!0)),i(this,r),this.selfUpdating=this.fragment.isSimple(),this.ready=!0)))};return a.prototype={bind:r,update:o,updateBindings:function(){this.keypath=this.interpolator.keypath||this.interpolator.ref,"name"===this.propertyName&&(this.pNode.name="{{"+this.keypath+"}}")},teardown:function(){var t;if(this.boundEvents)for(t=this.boundEvents.length;t--;)this.pNode.removeEventListener(this.boundEvents[t],this.updateModel,!1);this.fragment&&this.fragment.teardown()},bubble:function(){this.selfUpdating?this.update():!this.deferred&&this.ready&&(this.root._deferred.attrs.push(this),this.deferred=!0)},toString:function(){var t;return null===this.value?this.name:this.fragment?(t=this.fragment.toString(),this.name+"="+JSON.stringify(t)):this.name+"="+JSON.stringify(this.value)}},a}(c,Lt,_t,kt,Dt,Ft,ee),ie=function(t){return function(e,n){var i,r,o;e.attributes=[];for(i in n)n.hasOwnProperty(i)&&(r=n[i],o=new t({element:e,name:i,value:r,root:e.root,pNode:e.node,contextStack:e.parentFragment.contextStack}),e.attributes[e.attributes.length]=e.attributes[i]=o,"name"!==i&&o.update());return e.attributes}}(ne),re=function(t,e,n,i){var r,o,s;return i.push(function(){r=i.DomFragment}),o=function(){var t=this.node,e=this.fragment.toString();t.styleSheet&&(t.styleSheet.cssText=e),t.innerHTML=e},s=function(){this.node.type&&"text/javascript"!==this.node.type||t("Script tag was updated. This does not cause the code to be re-evaluated!"),this.node.innerHTML=this.fragment.toString()},function(t,i,a,u){var l,h,c,f,d;if("script"===t.lcName||"style"===t.lcName)return t.fragment=new n({descriptor:a.f,root:t.root,contextStack:t.parentFragment.contextStack,owner:t}),void(u&&("script"===t.lcName?(t.bubble=s,t.node.innerHTML=t.fragment.toString()):(t.bubble=o,t.bubble())));if("string"!=typeof a.f||i&&i.namespaceURI&&i.namespaceURI!==e.html)t.fragment=new r({descriptor:a.f,root:t.root,pNode:i,contextStack:t.parentFragment.contextStack,owner:t}),u&&i.appendChild(t.fragment.docFrag);else if(t.html=a.f,u)for(i.innerHTML=t.html,l=t.root._liveQueries,h=l.length;h--;)if(c=l[h],(f=i.querySelectorAll(c))&&(d=f.length))for((t.liveQueries||(t.liveQueries=[])).push(c),t.liveQueries[c]=[];d--;)t.liveQueries[c][d]=f[d]}}(R,r,ee,Bt),oe=function(t,e){var n=function(n,i,r,o){var s,a,u;if(this.root=i,this.node=r.node,s=n.n||n,"string"!=typeof s&&(a=new e({descriptor:s,root:this.root,owner:r,contextStack:o}),s=a.toString(),a.teardown()),n.a?this.params=n.a:n.d&&(a=new e({descriptor:n.d,root:this.root,owner:r,contextStack:o}),this.params=a.toArgsList(),a.teardown()),this.fn=i.decorators[s],!this.fn){if(u='Missing "'+s+'" decorator. You may need to download a plugin via https://github.com/RactiveJS/Ractive/wiki/Plugins#decorators',i.debug)throw new Error(u);t(u)}};return n.prototype={init:function(){var t,e;if(this.params?(e=[this.node].concat(this.params),t=this.fn.apply(this.root,e)):t=this.fn.call(this.root,this.node),!t||!t.teardown)throw new Error("Decorator definition must return an object with a teardown method");this.teardown=t.teardown}},n}(R,ee),se=function(t){return function(e,n,i,r){i.decorator=new t(e,n,i,r),i.decorator.fn&&n._deferred.decorators.push(i.decorator)}}(oe),ae=function(t,e){var n,i,r,o,s,a,u,l,h;return n=function(t,e,n,r,o){var s,a;s=t.node._ractive.events,a=s[e]||(s[e]=new i(t,e,r,o)),a.add(n)},i=function(e,n,i){var r;this.element=e,this.root=e.root,this.node=e.node,this.name=n,this.contextStack=i,this.proxies=[],(r=this.root.events[n])?this.custom=r(this.node,h(n)):("on"+n in this.node||t('Missing "'+this.name+'" event. You may need to download a plugin via https://github.com/RactiveJS/Ractive/wiki/Plugins#events'),this.node.addEventListener(n,l,!1))},i.prototype={add:function(t){this.proxies[this.proxies.length]=new r(this.element,this.root,t,this.contextStack)},teardown:function(){var t;for(this.custom?this.custom.teardown():this.node.removeEventListener(this.name,l,!1),t=this.proxies.length;t--;)this.proxies[t].teardown()},fire:function(t){for(var e=this.proxies.length;e--;)this.proxies[e].fire(t)}},r=function(t,n,i,r){var u;return this.root=n,u=i.n||i,"string"==typeof u?this.n=u:this.n=new e({descriptor:i.n,root:this.root,owner:t,contextStack:r}),i.a?(this.a=i.a,void(this.fire=s)):i.d?(this.d=new e({descriptor:i.d,root:this.root,owner:t,contextStack:r}),void(this.fire=a)):void(this.fire=o)},r.prototype={teardown:function(){this.n.teardown&&this.n.teardown(),this.d&&this.d.teardown()},bubble:function(){}},o=function(t){this.root.fire(this.n.toString(),t)},s=function(t){this.root.fire.apply(this.root,[this.n.toString(),t].concat(this.a))},a=function(t){var e=this.d.toArgsList();"string"==typeof e&&(e=e.substr(1,e.length-2)),this.root.fire.apply(this.root,[this.n.toString(),t].concat(e))},l=function(t){var e=this._ractive;e.events[t.type].fire({node:this,original:t,index:e.index,keypath:e.keypath,context:e.root.get(e.keypath)})},u={},h=function(t){return u[t]?u[t]:u[t]=function(e){var n=e.node._ractive;e.index=n.index,e.keypath=n.keypath,e.context=n.root.get(n.keypath),n.events[t].fire(e)}},n}(R,ee),ue=function(t){return function(e,n){var i,r,o;for(r in n)if(n.hasOwnProperty(r))for(o=r.split("-"),i=o.length;i--;)t(e,o[i],n[r],e.parentFragment.contextStack)}}(ae),le=function(){return function(t){var e,n,i,r,o;for(e=t.root,n=e._liveQueries,i=n.length;i--;)r=n[i],o=n[r],o._test(t)&&((t.liveQueries||(t.liveQueries=[])).push(r),t.liveQueries[r]=[t.node])}}(),he=function(){return function(t){return t.replace(/-([a-zA-Z])/g,function(t,e){return e.toUpperCase()})}}(),ce=function(){return function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}}(),fe=function(t,e,n,i,r,o,s,a){function u(t){var e,n,i;if(!T[t])if(void 0!==f[t])T[t]=t;else for(i=t.charAt(0).toUpperCase()+t.substring(1),e=d.length;e--;)if(n=d[e],void 0!==f[n+i]){T[t]=n+i;break}return T[t]}function l(t){return t.replace(g,"")}function h(t){var e;return p.test(t)&&(t="-"+t),e=t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}var c,f,d,p,g,T,m,v,b,S,A,M;if(t)return f=e("div").style,function(){void 0!==f.transition?(v="transition",M="transitionend",m=!0):void 0!==f.webkitTransition?(v="webkitTransition",M="webkitTransitionEnd",m=!0):m=!1}(),v&&(b=v+"Duration",S=v+"Property",A=v+"TimingFunction"),c=function(t,e,i,r,o){var s,u,l,h=this;if(this.root=e,this.node=i.node,this.isIntro=o,this.originalStyle=this.node.getAttribute("style"),this.complete=function(t){!t&&h.isIntro&&h.resetStyle(),h._manager.pop(h.node),h.node._ractive.transition=null},s=t.n||t,"string"!=typeof s&&(u=new a({descriptor:s,root:this.root,owner:i,contextStack:r}),s=u.toString(),u.teardown()),this.name=s,t.a?this.params=t.a:t.d&&(u=new a({descriptor:t.d,root:this.root,owner:i,contextStack:r}),this.params=u.toArgsList(),u.teardown()),this._fn=e.transitions[s],!this._fn){if(l='Missing "'+s+'" transition. You may need to download a plugin via https://github.com/RactiveJS/Ractive/wiki/Plugins#transitions',e.debug)throw new Error(l);return void n(l)}},c.prototype={init:function(){if(this._inited)throw new Error("Cannot initialize a transition more than once");this._inited=!0,this._fn.apply(this.root,[this].concat(this.params))},getStyle:function(t){var e,n,i,o,s;if(e=window.getComputedStyle(this.node),"string"==typeof t)return s=e[u(t)],"0px"===s&&(s=0),s;if(!r(t))throw new Error("Transition#getStyle must be passed a string, or an array of strings representing CSS properties");for(n={},i=t.length;i--;)o=t[i],s=e[u(o)],"0px"===s&&(s=0),n[o]=s;return n},setStyle:function(t,e){var n;if("string"==typeof t)this.node.style[u(t)]=e;else for(n in t)t.hasOwnProperty(n)&&(this.node.style[u(n)]=t[n]);return this},animateStyle:function(t,e,i,r){var s,a,c,f,d,p,g,T,m,v=this;for("string"==typeof t?(d={},d[t]=e):(d=t,r=i,i=e),i||(n('The "'+v.name+'" transition does not supply an options object to `t.animateStyle()`. This will break in a future version of Ractive. For more info see https://github.com/RactiveJS/Ractive/issues/340'),i=v,r=v.complete),i.duration||(v.setStyle(d),r&&r()),s=Object.keys(d),a=[],c=window.getComputedStyle(v.node),p={},T=s.length;T--;)m=s[T],f=c[u(m)],"0px"===f&&(f=0),f!=d[m]&&(a[a.length]=m,v.node.style[u(m)]=f);return a.length?void setTimeout(function(){v.node.style[S]=s.map(u).map(h).join(","),v.node.style[A]=h(i.easing||"linear"),v.node.style[b]=i.duration/1e3+"s",g=function(t){var e;e=a.indexOf(o(l(t.propertyName))),-1!==e&&a.splice(e,1),a.length||(v.root.fire(v.name+":end"),v.node.removeEventListener(M,g,!1),r&&r())},v.node.addEventListener(M,g,!1),setTimeout(function(){for(var t=a.length;t--;)m=a[t],v.node.style[u(m)]=d[m]},0)},i.delay||0):void(r&&r())},resetStyle:function(){this.originalStyle?this.node.setAttribute("style",this.originalStyle):(this.node.getAttribute("style"),this.node.removeAttribute("style"))},processParams:function(t,e){return"number"==typeof t?t={duration:t}:"string"==typeof t?t="slow"===t?{duration:600}:"fast"===t?{duration:200}:{duration:400}:t||(t={}),s(t,e)}},d=["o","ms","moz","webkit"],p=new RegExp("^(?:"+d.join("|")+")([A-Z])"),g=new RegExp("^-(?:"+d.join("|")+")-"),T={},c}(s,o,R,L,f,he,ce,ee),de=function(t,e){return function(t,n,i,r,o){var s,a,u;!n.transitionsEnabled||n._parent&&!n._parent.transitionsEnabled||(s=new e(t,n,i,r,o),s._fn&&(a=s.node,s._manager=n._transitionManager,(u=a._ractive.transition)&&u.complete(),a._ractive.transition=s,s._manager.push(a),o?n._deferred.transitions.push(s):s.init()))}}(R,fe),pe=function(t,e,n,i,r,o,s,a,u,l,h,c,f,d,p){return function(r,g,T){var m,v,b,S,A,M,y,P,w,E,G,C,x;if(r.type=t.ELEMENT,m=r.parentFragment=g.parentFragment,v=m.pNode,b=m.contextStack,S=r.descriptor=g.descriptor,r.root=G=m.root,r.index=g.index,r.lcName=S.e.toLowerCase(),r.eventListeners=[],r.customEventListeners=[],v&&(A=r.namespace=a(S,v),M=A!==e.html?p(S.e):S.e,r.node=s(M,A),i(r.node,"_ractive",{value:{proxy:r,keypath:b.length?b[b.length-1]:"",index:m.indexRefs,events:n(null),root:G}})),y=u(r,S.a),S.f){if(r.node&&r.node.getAttribute("contenteditable")&&r.node.innerHTML){if(x="A pre-populated contenteditable element should not have children",G.debug)throw new Error(x);o(x)}l(r,r.node,S,T)}T&&S.v&&c(r,S.v),T&&(G.twoway&&(r.bind(),r.node.getAttribute("contenteditable")&&r.node._ractive.binding&&r.node._ractive.binding.update()),y.name&&!y.name.twoway&&y.name.update(),"IMG"===r.node.tagName&&((P=r.attributes.width)||(w=r.attributes.height))&&r.node.addEventListener("load",E=function(){P&&(r.node.width=P.value),w&&(r.node.height=w.value),r.node.removeEventListener("load",E,!1)},!1),T.appendChild(r.node),S.o&&h(S.o,G,r,b),S.t1&&d(S.t1,G,r,b,!0),"OPTION"===r.node.tagName&&("SELECT"===v.tagName&&(C=v._ractive.binding)&&C.deferUpdate(),r.node._ractive.value==v._ractive.value&&(r.node.selected=!0)),r.node.autofocus&&(G._deferred.focusable=r.node)),f(r)}}(c,r,i,a,Y,R,o,Ot,ie,re,se,ue,le,de,Rt),ge=function(t){return function(e){var n,i,r,o,s,a,u,l,h;for(this.fragment&&this.fragment.teardown(!1);this.attributes.length;)this.attributes.pop().teardown();if(this.node){for(n in this.node._ractive.events)this.node._ractive.events[n].teardown();(i=this.node._ractive.binding)&&(i.teardown(),r=this.root._twowayBindings[i.attr.keypath],r.splice(r.indexOf(i),1))}if(this.decorator&&this.decorator.teardown(),this.descriptor.t2&&t(this.descriptor.t2,this.root,this,this.parentFragment.contextStack,!1),e&&this.root._transitionManager.detachWhenReady(this),s=this.liveQueries)for(o=s.length;o--;)if(a=s[o],l=this.liveQueries[a])for(h=l.length,u=this.root._liveQueries[a];h--;)u._remove(l[h])}}(de),Te=function(){return"area base br col command doctype embed hr img input keygen link meta param source track wbr".split(" ")}(),me=function(t){return function(){var e,n,i;for(e="<"+(this.descriptor.y?"!doctype":this.descriptor.e),i=this.attributes.length,n=0;i>n;n+=1)e+=" "+this.attributes[n].toString();return e+=">",this.html?e+=this.html:this.fragment&&(e+=this.fragment.toString()),-1===t.indexOf(this.descriptor.e)&&(e+="</"+this.descriptor.e+">"),e}}(Te),ve=function(t){return function(e){var n;return t(this.node,e)?this.node:this.html&&(n=this.node.querySelector(e))?n:this.fragment&&this.fragment.find?this.fragment.find(e):void 0}}(Y),be=function(){return function(t,e){var n,i,r,o,s;if(e._test(this,!0)&&e.live&&((this.liveQueries||(this.liveQueries=[])).push(t),this.liveQueries[t]=[this.node]),this.html&&(n=this.node.querySelectorAll(t))&&(r=n.length))for(e.live&&(this.liveQueries[t]||((this.liveQueries||(this.liveQueries=[])).push(t),this.liveQueries[t]=[]),s=this.liveQueries[t]),i=0;r>i;i+=1)o=n[i],e.push(o),e.live&&s.push(o);this.fragment&&this.fragment.findAll(t,e)}}(),Se=function(){return function(t){return this.fragment?this.fragment.findComponent(t):void 0}}(),Ae=function(){return function(t,e){this.fragment&&this.fragment.findAllComponents(t,e)}}(),Me=function(){return function(){var t=this.attributes;if(this.node&&(this.binding&&(this.binding.teardown(),this.binding=null),!(this.node.getAttribute("contenteditable")&&t.value&&t.value.bind())))switch(this.descriptor.e){case"select":case"textarea":return void(t.value&&t.value.bind());case"input":if("radio"===this.node.type||"checkbox"===this.node.type){if(t.name&&t.name.bind())return;if(t.checked&&t.checked.bind())return}if(t.value&&t.value.bind())return}}}(),ye=function(t,e,n,i,r,o,s,a){var u=function(e,n){t(this,e,n)};return u.prototype={detach:function(){return this.node?(this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node):void 0},teardown:e,firstNode:function(){return this.node},findNextNode:function(){return null},bubble:function(){},toString:n,find:i,findAll:r,findComponent:o,findAllComponents:s,bind:a},u}(pe,ge,me,ve,be,Se,Ae,Me),Pe={missingParser:"Missing Ractive.parse - cannot parse template. Either preparse or use the version that includes the parser"},we={},Ee=function(){return function(t){var e,n,i;for(i="";t.length;){if(e=t.indexOf("<!--"),n=t.indexOf("-->"),-1===e&&-1===n){i+=t;break}if(-1!==e&&-1===n)throw"Illegal HTML - expected closing comment sequence ('-->')";if(-1!==n&&-1===e||e>n)throw"Illegal HTML - unexpected closing comment sequence ('-->')";i+=t.substr(0,e),t=t.substring(n+3)}return i}}(),Ge=function(t){return function(e){var n,i,r,o,s,a;for(s=/^\s*\r?\n/,a=/\r?\n\s*$/,n=2;n<e.length;n+=1)i=e[n],r=e[n-1],o=e[n-2],i.type===t.TEXT&&r.type===t.MUSTACHE&&o.type===t.TEXT&&a.test(o.value)&&s.test(i.value)&&(r.mustacheType!==t.INTERPOLATOR&&r.mustacheType!==t.TRIPLE&&(o.value=o.value.replace(a,"\n")),i.value=i.value.replace(s,""),""===i.value&&e.splice(n--,1));return e}}(c),Ce=function(t){return function(e){var n,i,r,o;for(n=0;n<e.length;n+=1)i=e[n],r=e[n-1],o=e[n+1],(i.mustacheType===t.COMMENT||i.mustacheType===t.DELIMCHANGE)&&(e.splice(n,1),r&&o&&r.type===t.TEXT&&o.type===t.TEXT&&(r.value+=o.value,e.splice(n,1)),n-=1);return e}}(c),xe=function(t){var e=t(/^[^\s=]+/);return function(t){var n,i,r;return t.getStringMatch("=")?(n=t.pos,t.allowWhitespace(),(i=e(t))?(t.allowWhitespace(),(r=e(t))?(t.allowWhitespace(),t.getStringMatch("=")?[i,r]:(t.pos=n,null)):(t.pos=n,null)):(t.pos=n,null)):null}}(Wt),Ie=function(t){var e={"#":t.SECTION,"^":t.INVERTED,"/":t.CLOSING,">":t.PARTIAL,"!":t.COMMENT,"&":t.TRIPLE};return function(t){var n=e[t.str.charAt(t.pos)];return n?(t.pos+=1,n):null}}(c),Be=function(t,e,n){var i=e(/^\s*:\s*([a-zA-Z_$][a-zA-Z_$0-9]*)/),r=/^[0-9][1-9]*$/;return function(e,o){var s,a,u,l,h,c,f;if(s=e.pos,a={type:o?t.TRIPLE:t.MUSTACHE},!(o||((l=e.getExpression())&&(a.mustacheType=t.INTERPOLATOR,e.allowWhitespace(),e.getStringMatch(e.delimiters[1])?e.pos-=e.delimiters[1].length:(e.pos=s,l=null)),l||(u=n(e),u===t.TRIPLE?a={type:t.TRIPLE}:a.mustacheType=u||t.INTERPOLATOR,u!==t.COMMENT&&u!==t.CLOSING||(c=e.remaining(),f=c.indexOf(e.delimiters[1]),-1===f)))))return a.ref=c.substr(0,f),e.pos+=f,a;for(l||(e.allowWhitespace(),l=e.getExpression());l.t===t.BRACKETED&&l.x;)l=l.x;return l.t===t.REFERENCE?a.ref=l.n:l.t===t.NUMBER_LITERAL&&r.test(l.v)?a.ref=l.v:a.expression=l,h=i(e),null!==h&&(a.indexRef=h),a}}(c,Wt,Ie),Ne=function(t,e,n){function i(i,r){var o,s,a=i.pos;return s=r?i.tripleDelimiters:i.delimiters,i.getStringMatch(s[0])?(o=e(i))?i.getStringMatch(s[1])?(i[r?"tripleDelimiters":"delimiters"]=o,{type:t.MUSTACHE,mustacheType:t.DELIMCHANGE}):(i.pos=a,null):(i.allowWhitespace(),o=n(i,r),null===o?(i.pos=a,null):(i.allowWhitespace(),i.getStringMatch(s[1])?o:(i.pos=a,null))):null}return function(){var t=this.tripleDelimiters[0].length>this.delimiters[0].length;return i(this,t)||i(this,!t)}}(c,xe,Be),He=function(t){return function(){var e,n,i;if(!this.getStringMatch("<!--"))return null;if(n=this.remaining(),i=n.indexOf("-->"),-1===i)throw new Error('Unexpected end of input (expected "-->" to close comment)');return e=n.substr(0,i),this.pos+=i+3,{type:t.COMMENT,content:e}}}(c),Oe=function(){return function(t,e){var n,i,r;for(n=e.length;n--;){if(i=t.indexOf(e[n]),!i)return 0;-1!==i&&(!r||r>i)&&(r=i)}return r||-1}}(),Re=function(t,e,n){var i,r,o,s,a,u,l,h,c,f,d,p,g;return i=function(){return r(this)||o(this)},r=function(e){var n,i,r,o;return n=e.pos,e.inside?null:e.getStringMatch("<")?(i={type:t.TAG},e.getStringMatch("!")&&(i.doctype=!0),i.name=s(e),i.name?(r=a(e),r&&(i.attrs=r),e.allowWhitespace(),e.getStringMatch("/")&&(i.selfClosing=!0),e.getStringMatch(">")?(o=i.name.toLowerCase(),("script"===o||"style"===o)&&(e.inside=o),i):(e.pos=n,null)):(e.pos=n,null)):null},o=function(e){var n,i,r;if(n=e.pos,r=function(t){throw new Error("Unexpected character "+e.remaining().charAt(0)+" (expected "+t+")")},!e.getStringMatch("<"))return null;if(i={type:t.TAG,closing:!0},e.getStringMatch("/")||r('"/"'),i.name=s(e),i.name||r("tag name"),e.getStringMatch(">")||r('">"'),e.inside){if(i.name.toLowerCase()!==e.inside)return e.pos=n,null;e.inside=null}return i},s=e(/^[a-zA-Z]{1,}:?[a-zA-Z0-9\-]*/),a=function(t){var e,n,i;if(e=t.pos,t.allowWhitespace(),i=u(t),!i)return t.pos=e,null;for(n=[];null!==i;)n[n.length]=i,t.allowWhitespace(),i=u(t);return n},u=function(t){var e,n,i;return(n=l(t))?(e={name:n},i=h(t),i&&(e.value=i),e):null},l=e(/^[^\s"'>\/=]+/),h=function(t){var e,n;return e=t.pos,t.allowWhitespace(),t.getStringMatch("=")?(t.allowWhitespace(),n=g(t,"'")||g(t,'"')||c(t),null===n?(t.pos=e,null):n):(t.pos=e,null)},d=e(/^[^\s"'=<>`]+/),f=function(e){var n,i,r;return n=e.pos,(i=d(e))?(-1!==(r=i.indexOf(e.delimiters[0]))&&(i=i.substr(0,r),e.pos=n+i.length),{type:t.TEXT,value:i}):null},c=function(t){var e,n;for(e=[],n=t.getMustache()||f(t);null!==n;)e[e.length]=n,n=t.getMustache()||f(t);return e.length?e:null},g=function(t,e){var n,i,r;if(n=t.pos,!t.getStringMatch(e))return null;for(i=[],r=t.getMustache()||p(t,e);null!==r;)i[i.length]=r,r=t.getMustache()||p(t,e);return t.getStringMatch(e)?i:(t.pos=n,null)},p=function(e,i){var r,o,s;if(r=e.pos,s=e.remaining(),o=n(s,[i,e.delimiters[0],e.delimiters[1]]),-1===o)throw new Error("Quoted attribute value must have a closing quote");return o?(e.pos+=o,{type:t.TEXT,value:s.substr(0,o)}):null},i}(c,Wt,Oe),Le=function(t,e){return function(){var n,i,r;return i=this.remaining(),r=this.inside?"</"+this.inside:"<",(n=e(i,[r,this.delimiters[0],this.tripleDelimiters[0]]))?(-1===n&&(n=i.length),this.pos+=n,{type:t.TEXT,value:i.substr(0,n)}):null}}(c,Oe),_e=function(t){return function(e){var n=e.remaining();return"true"===n.substr(0,4)?(e.pos+=4,{t:t.BOOLEAN_LITERAL,v:"true"}):"false"===n.substr(0,5)?(e.pos+=5,{t:t.BOOLEAN_LITERAL,v:"false"}):null}}(c),ke=function(t,e){return function(n){var i,r,o;return i=n.pos,n.allowWhitespace(),r=e(n),null===r?(n.pos=i,null):(n.allowWhitespace(),n.getStringMatch(":")?(n.allowWhitespace(),o=n.getExpression(),null===o?(n.pos=i,null):{t:t.KEY_VALUE_PAIR,k:r,v:o}):(n.pos=i,null))}}(c,qt),De=function(t){return function e(n){var i,r,o,s;return i=n.pos,o=t(n),null===o?null:(r=[o],n.getStringMatch(",")?(s=e(n),s?r.concat(s):(n.pos=i,null)):r)}}(ke),Fe=function(t,e){return function(n){var i,r;return i=n.pos,n.allowWhitespace(),
n.getStringMatch("{")?(r=e(n),n.allowWhitespace(),n.getStringMatch("}")?{t:t.OBJECT_LITERAL,m:r}:(n.pos=i,null)):(n.pos=i,null)}}(c,De),Ve=function(){return function t(e){var n,i,r,o;if(n=e.pos,e.allowWhitespace(),r=e.getExpression(),null===r)return null;if(i=[r],e.allowWhitespace(),e.getStringMatch(",")){if(o=t(e),null===o)return e.pos=n,null;i=i.concat(o)}return i}}(),Xe=function(t,e){return function(n){var i,r;return i=n.pos,n.allowWhitespace(),n.getStringMatch("[")?(r=e(n),n.getStringMatch("]")?{t:t.ARRAY_LITERAL,m:r}:(n.pos=i,null)):(n.pos=i,null)}}(c,Ve),We=function(t,e,n,i,r){return function(o){var s=t(o)||e(o)||n(o)||i(o)||r(o);return s}}(Qt,_e,jt,Fe,Xe),Ue=function(t,e,n){var i,r,o,s;return i=e(/^\.[a-zA-Z_$0-9]+/),r=function(t){var e=o(t);return e?"."+e:null},o=e(/^\[(0|[1-9][0-9]*)\]/),s=/^(?:Array|Date|RegExp|decodeURIComponent|decodeURI|encodeURIComponent|encodeURI|isFinite|isNaN|parseFloat|parseInt|JSON|Math|NaN|undefined|null)$/,function(e){var o,a,u,l,h,c,f;for(o=e.pos,a="";e.getStringMatch("../");)a+="../";if(a||(l=e.getStringMatch(".")||""),u=n(e)||"",!a&&!l&&s.test(u))return{t:t.GLOBAL,v:u};if("this"!==u||a||l||(u=".",o+=3),h=(a||l)+u,!h)return null;for(;c=i(e)||r(e);)h+=c;return e.getStringMatch("(")&&(f=h.lastIndexOf("."),-1!==f?(h=h.substr(0,f),e.pos=o+h.length):e.pos-=1),{t:t.REFERENCE,n:h}}}(c,Wt,zt),Ke=function(t){return function(e){var n,i;return n=e.pos,e.getStringMatch("(")?(e.allowWhitespace(),(i=e.getExpression())?(e.allowWhitespace(),e.getStringMatch(")")?{t:t.BRACKETED,x:i}:(e.pos=n,null)):(e.pos=n,null)):null}}(c),je=function(t,e,n){return function(i){return t(i)||e(i)||n(i)}}(We,Ue,Ke),Qe=function(t,e){return function(n){var i,r,o;if(i=n.pos,n.allowWhitespace(),n.getStringMatch(".")){if(n.allowWhitespace(),r=e(n))return{t:t.REFINEMENT,n:r};n.expected("a property name")}return n.getStringMatch("[")?(n.allowWhitespace(),o=n.getExpression(),o||n.expected("an expression"),n.allowWhitespace(),n.getStringMatch("]")||n.expected('"]"'),{t:t.REFINEMENT,x:o}):null}}(c,zt),ze=function(t,e,n,i){return function(r){var o,s,a,u;if(s=e(r),!s)return null;for(;s;)if(o=r.pos,a=i(r))s={t:t.MEMBER,x:s,r:a};else{if(!r.getStringMatch("("))break;if(r.allowWhitespace(),u=n(r),r.allowWhitespace(),!r.getStringMatch(")")){r.pos=o;break}s={t:t.INVOCATION,x:s},u&&(s.o=u)}return s}}(c,je,Ve,Qe),qe=function(t,e){var n,i;return i=function(e,n){return function(i){var r,o;return i.getStringMatch(e)?(r=i.pos,i.allowWhitespace(),o=i.getExpression(),o||i.expected("an expression"),{s:e,o:o,t:t.PREFIX_OPERATOR}):n(i)}},function(){var t,r,o,s,a;for(s="! ~ + - typeof".split(" "),a=e,t=0,r=s.length;r>t;t+=1)o=i(s[t],a),a=o;n=a}(),n}(c,ze),Je=function(t,e){var n,i;return i=function(e,n){return function(i){var r,o,s;return(o=n(i))?(r=i.pos,i.allowWhitespace(),i.getStringMatch(e)?"in"===e&&/[a-zA-Z_$0-9]/.test(i.remaining().charAt(0))?(i.pos=r,o):(i.allowWhitespace(),s=i.getExpression(),s?{t:t.INFIX_OPERATOR,s:e,o:[o,s]}:(i.pos=r,o)):(i.pos=r,o)):null}},function(){var t,r,o,s,a;for(s="* / % + - << >> >>> < <= > >= in instanceof == != === !== & ^ | && ||".split(" "),a=e,t=0,r=s.length;r>t;t+=1)o=i(s[t],a),a=o;n=a}(),n}(c,qe),Ze=function(t,e){return function(n){var i,r,o,s;return(r=e(n))?(i=n.pos,n.allowWhitespace(),n.getStringMatch("?")?(n.allowWhitespace(),(o=n.getExpression())?(n.allowWhitespace(),n.getStringMatch(":")?(n.allowWhitespace(),s=n.getExpression(),s?{t:t.CONDITIONAL,o:[r,o,s]}:(n.pos=i,r)):(n.pos=i,r)):(n.pos=i,r)):(n.pos=i,r)):null}}(c,Je),Ye=function(t){return function(){return t(this)}}(Ze),$e=function(t,e,n,i,r,o,s){var a;return a=function(t,e){var n;for(this.str=t,this.pos=0,this.delimiters=e.delimiters,this.tripleDelimiters=e.tripleDelimiters,this.tokens=[];this.pos<this.str.length;)n=this.getToken(),null===n&&this.remaining()&&this.fail(),this.tokens.push(n)},a.prototype={getToken:function(){var t=this.getMustache()||this.getComment()||this.getTag()||this.getText();return t},getMustache:t,getComment:e,getTag:n,getText:i,getExpression:r,allowWhitespace:o,getStringMatch:s,remaining:function(){return this.str.substring(this.pos)},fail:function(){var t,e;throw t=this.str.substr(0,this.pos).substr(-20),20===t.length&&(t="..."+t),e=this.remaining().substr(0,20),20===e.length&&(e+="..."),new Error("Could not parse template: "+(t?t+"<- ":"")+"failed at character "+this.pos+" ->"+e)},expected:function(t){var e=this.remaining().substr(0,40);throw 40===e.length&&(e+="..."),new Error('Tokenizer failed: unexpected string "'+e+'" (expected '+t+")")}},a}(Ne,He,Re,Le,Ye,Xt,Vt),tn=function(t,e,n,i,r){var o,s;return r.push(function(){s=r.Ractive}),o=function(r,o){var a,u;return o=o||{},o.stripComments!==!1&&(r=t(r)),a=new i(r,{delimiters:o.delimiters||(s?s.delimiters:["{{","}}"]),tripleDelimiters:o.tripleDelimiters||(s?s.tripleDelimiters:["{{{","}}}"])}),u=a.tokens,e(u),n(u),u}}(Ee,Ge,Ce,$e,Bt),en=function(t){var e,n,i,r,o,s,a,u,l;return e=function(t,e){this.text=e?t.value:t.value.replace(l," ")},e.prototype={type:t.TEXT,toJSON:function(){return this.decoded||(this.decoded=u(this.text))},toString:function(){return this.text}},n={quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},i=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376],r=new RegExp("&("+Object.keys(n).join("|")+");?","g"),o=/&#x([0-9]+);?/g,s=/&#([0-9]+);?/g,a=function(t){return t?10===t?32:128>t?t:159>=t?i[t-128]:55296>t?t:57343>=t?65533:65535>=t?t:65533:65533},u=function(t){var e;return e=t.replace(r,function(t,e){return n[e]?String.fromCharCode(n[e]):t}),e=e.replace(o,function(t,e){return String.fromCharCode(a(parseInt(e,16)))}),e=e.replace(s,function(t,e){return String.fromCharCode(a(e))})},l=/\s+/g,e}(c),nn=function(t,e){return function(n){return n.type===t.TEXT?(this.pos+=1,new e(n,this.preserveWhitespace)):null}}(c,en),rn=function(t){var e;return e=function(t){this.content=t.content},e.prototype={toJSON:function(){return{t:t.COMMENT,f:this.content}},toString:function(){return"<!--"+this.content+"-->"}},e}(c),on=function(t,e){return function(n){return n.type===t.COMMENT?(this.pos+=1,new e(n,this.preserveWhitespace)):null}}(c,rn),sn=function(t,e){var n,i,r;return n=function(t){this.refs=[],i(t,this.refs),this.str=r(t,this.refs)},n.prototype={toJSON:function(){return this.json?this.json:(this.json={r:this.refs,s:this.str},this.json)}},i=function(n,r){var o,s;if(n.t===t.REFERENCE&&-1===r.indexOf(n.n)&&r.unshift(n.n),s=n.o||n.m)if(e(s))i(s,r);else for(o=s.length;o--;)i(s[o],r);n.x&&i(n.x,r),n.r&&i(n.r,r),n.v&&i(n.v,r)},r=function(e,n){var i=function(t){return r(t,n)};switch(e.t){case t.BOOLEAN_LITERAL:case t.GLOBAL:case t.NUMBER_LITERAL:return e.v;case t.STRING_LITERAL:return"'"+e.v.replace(/'/g,"\\'")+"'";case t.ARRAY_LITERAL:return"["+(e.m?e.m.map(i).join(","):"")+"]";case t.OBJECT_LITERAL:return"{"+(e.m?e.m.map(i).join(","):"")+"}";case t.KEY_VALUE_PAIR:return e.k+":"+r(e.v,n);case t.PREFIX_OPERATOR:return("typeof"===e.s?"typeof ":e.s)+r(e.o,n);case t.INFIX_OPERATOR:return r(e.o[0],n)+("in"===e.s.substr(0,2)?" "+e.s+" ":e.s)+r(e.o[1],n);case t.INVOCATION:return r(e.x,n)+"("+(e.o?e.o.map(i).join(","):"")+")";case t.BRACKETED:return"("+r(e.x,n)+")";case t.MEMBER:return r(e.x,n)+r(e.r,n);case t.REFINEMENT:return e.n?"."+e.n:"["+r(e.x,n)+"]";case t.CONDITIONAL:return r(e.o[0],n)+"?"+r(e.o[1],n)+":"+r(e.o[2],n);case t.REFERENCE:return"${"+n.indexOf(e.n)+"}";default:throw new Error("Could not stringify expression token. This error is unexpected")}},n}(c,y),an=function(t,e){var n=function(n,i){this.type=n.type===t.TRIPLE?t.TRIPLE:n.mustacheType,n.ref&&(this.ref=n.ref),n.expression&&(this.expr=new e(n.expression)),i.pos+=1};return n.prototype={toJSON:function(){var t;return this.json?this.json:(t={t:this.type},this.ref&&(t.r=this.ref),this.expr&&(t.x=this.expr.toJSON()),this.json=t,t)},toString:function(){return!1}},n}(c,sn),un=function(){return function(t){var e,n,i,r="";if(!t)return"";for(n=0,i=t.length;i>n;n+=1){if(e=t[n].toString(),e===!1)return!1;r+=e}return r}}(),ln=function(t){return function(e,n){var i,r;return n||(i=t(e),i===!1)?r=e.map(function(t){return t.toJSON(n)}):i}}(un),hn=function(t,e,n){var i=function(e,i){var r;for(this.ref=e.ref,this.indexRef=e.indexRef,this.inverted=e.mustacheType===t.INVERTED,e.expression&&(this.expr=new n(e.expression)),i.pos+=1,this.items=[],r=i.next();r;){if(r.mustacheType===t.CLOSING){if(r.ref.trim()===this.ref||this.expr){i.pos+=1;break}throw new Error("Could not parse template: Illegal closing section")}this.items[this.items.length]=i.getStub(),r=i.next()}};return i.prototype={toJSON:function(n){var i;return this.json?this.json:(i={t:t.SECTION},this.ref&&(i.r=this.ref),this.indexRef&&(i.i=this.indexRef),this.inverted&&(i.n=!0),this.expr&&(i.x=this.expr.toJSON()),this.items.length&&(i.f=e(this.items,n)),this.json=i,i)},toString:function(){return!1}},i}(c,ln,sn),cn=function(t,e,n){return function(i){return i.type===t.MUSTACHE||i.type===t.TRIPLE?i.mustacheType===t.SECTION||i.mustacheType===t.INVERTED?new n(i,this):new e(i,this):void 0}}(c,an,hn),fn=function(){return{li:["li"],dt:["dt","dd"],dd:["dt","dd"],p:"address article aside blockquote dir div dl fieldset footer form h1 h2 h3 h4 h5 h6 header hgroup hr menu nav ol p pre section table ul".split(" "),rt:["rt","rp"],rp:["rp","rt"],optgroup:["optgroup"],option:["option","optgroup"],thead:["tbody","tfoot"],tbody:["tbody","tfoot"],tr:["tr"],td:["td","th"],th:["td","th"]}}(),dn=function(t){function e(n){var i,r;if("object"!=typeof n)return n;if(t(n))return n.map(e);i={};for(r in n)n.hasOwnProperty(r)&&(i[r]=e(n[r]));return i}return function(t){var n,i,r,o,s,a;for(r={},n=[],i=[],s=t.length,o=0;s>o;o+=1)if(a=t[o],"intro"===a.name){if(r.intro)throw new Error("An element can only have one intro transition");r.intro=a}else if("outro"===a.name){if(r.outro)throw new Error("An element can only have one outro transition");r.outro=a}else if("intro-outro"===a.name){if(r.intro||r.outro)throw new Error("An element can only have one intro and one outro transition");r.intro=a,r.outro=e(a)}else"proxy-"===a.name.substr(0,6)?(a.name=a.name.substring(6),i[i.length]=a):"on-"===a.name.substr(0,3)?(a.name=a.name.substring(3),i[i.length]=a):"decorator"===a.name?r.decorator=a:n[n.length]=a;return r.attrs=n,r.proxies=i,r}}(f),pn=function(t,e){return function(n){var i,r,o,s,a,u,l,h;for(a=function(){throw new Error("Illegal directive")},n.name&&n.value||a(),i={directiveType:n.name},r=n.value,u=[],l=[];r.length;)if(o=r.shift(),o.type===t.TEXT){if(s=o.value.indexOf(":"),-1!==s){s&&(u[u.length]={type:t.TEXT,value:o.value.substr(0,s)}),o.value.length>s+1&&(l[0]={type:t.TEXT,value:o.value.substring(s+1)});break}u[u.length]=o}else u[u.length]=o;return l=l.concat(r),1===u.length&&u[0].type===t.TEXT?i.name=u[0].value:i.name=u,l.length&&(1===l.length&&l[0].type===t.TEXT?(h=e("["+l[0].value+"]"),i.args=h?h.value:l[0].value):i.dynamicArgs=l),i}}(c,Jt),gn=function(t,e){var n;return n=function(t,e){var n;for(this.tokens=t||[],this.pos=0,this.options=e,this.result=[];n=this.getStub();)this.result.push(n)},n.prototype={getStub:function(){var t=this.next();return t?this.getText(t)||this.getMustache(t):null},getText:t,getMustache:e,next:function(){return this.tokens[this.pos]}},n}(nn,cn),Tn=function(t,e,n){var i;return i=function(e){var n=new t(e);this.stubs=n.result},i.prototype={toJSON:function(t){var e;return this["json_"+t]?this["json_"+t]:e=this["json_"+t]=n(this.stubs,t)},toString:function(){return void 0!==this.str?this.str:(this.str=e(this.stubs),this.str)}},i}(gn,un,ln),mn=function(t){return function(e){var n,i;if("string"==typeof e.name){if(!e.args&&!e.dynamicArgs)return e.name;i=e.name}else i=new t(e.name).toJSON();return n={n:i},e.args?(n.a=e.args,n):(e.dynamicArgs&&(n.d=new t(e.dynamicArgs).toJSON()),n)}}(Tn),vn=function(t,e,n){return function(i){var r,o,s,a,u,l,h;if(this["json_"+i])return this["json_"+i];if(r=this.component?{t:t.COMPONENT,e:this.component}:{t:t.ELEMENT,e:this.tag},this.doctype&&(r.y=1),this.attributes&&this.attributes.length)for(r.a={},l=this.attributes.length,u=0;l>u;u+=1){if(h=this.attributes[u],o=h.name,r.a[o])throw new Error("You cannot have multiple attributes with the same name");s=null===h.value?null:h.value.toJSON(i),r.a[o]=s}if(this.items&&this.items.length&&(r.f=e(this.items,i)),this.proxies&&this.proxies.length)for(r.v={},l=this.proxies.length,u=0;l>u;u+=1)a=this.proxies[u],r.v[a.directiveType]=n(a);return this.intro&&(r.t1=n(this.intro)),this.outro&&(r.t2=n(this.outro)),this.decorator&&(r.o=n(this.decorator)),this["json_"+i]=r,r}}(c,ln,mn),bn=function(t,e){var n;return n="a abbr acronym address applet area b base basefont bdo big blockquote body br button caption center cite code col colgroup dd del dfn dir div dl dt em fieldset font form frame frameset h1 h2 h3 h4 h5 h6 head hr html i iframe img input ins isindex kbd label legend li link map menu meta noframes noscript object ol p param pre q s samp script select small span strike strong style sub sup textarea title tt u ul var article aside audio bdi canvas command data datagrid datalist details embed eventsource figcaption figure footer header hgroup keygen mark meter nav output progress ruby rp rt section source summary time track video wbr".split(" "),function(){var i,r,o,s,a,u,l,h;if(void 0!==this.str)return this.str;if(this.component)return this.str=!1;if(-1===n.indexOf(this.tag.toLowerCase()))return this.str=!1;if(this.proxies||this.intro||this.outro||this.decorator)return this.str=!1;if(l=t(this.items),l===!1)return this.str=!1;if(h=-1!==e.indexOf(this.tag.toLowerCase()),i="<"+this.tag,this.attributes)for(r=0,o=this.attributes.length;o>r;r+=1){if(a=this.attributes[r].name,-1!==a.indexOf(":"))return this.str=!1;if("id"===a||"intro"===a||"outro"===a)return this.str=!1;if(s=" "+a,null!==this.attributes[r].value){if(u=this.attributes[r].value.toString(),u===!1)return this.str=!1;""!==u&&(s+="=",s+=/[\s"'=<>`]/.test(u)?'"'+u.replace(/"/g,"&quot;")+'"':u)}i+=s}return this.selfClosing&&!h?(i+="/>",this.str=i):(i+=">",h?this.str=i:(i+=l,i+="</"+this.tag+">",this.str=i))}}(un,Te),Sn=function(t,e,n,i,r,o,s,a,u,l,h){var c,f,d,p,g,T=/^\s+/,m=/\s+$/;return c=function(i,r,u){var l,c,f,d,p,v,b;if(r.pos+=1,v=function(t){return{name:t.name,value:t.value?new h(t.value):null}},this.tag=i.name,b=i.name.toLowerCase(),"rv-"===b.substr(0,3)&&(n('The "rv-" prefix for components has been deprecated. Support will be removed in a future version'),this.tag=this.tag.substring(3)),u=u||"pre"===b,i.attrs&&(f=s(i.attrs),c=f.attrs,d=f.proxies,r.options.sanitize&&r.options.sanitize.eventAttributes&&(c=c.filter(g)),c.length&&(this.attributes=c.map(v)),d.length&&(this.proxies=d.map(a)),f.intro&&(this.intro=a(f.intro)),f.outro&&(this.outro=a(f.outro)),f.decorator&&(this.decorator=a(f.decorator))),i.doctype&&(this.doctype=!0),i.selfClosing&&(this.selfClosing=!0),-1!==e.indexOf(b)&&(this.isVoid=!0),!this.selfClosing&&!this.isVoid){for(this.siblings=o[b],this.items=[],l=r.next();l&&l.mustacheType!==t.CLOSING;){if(l.type===t.TAG){if(l.closing){l.name.toLowerCase()===b&&(r.pos+=1);break}if(this.siblings&&-1!==this.siblings.indexOf(l.name.toLowerCase()))break}this.items[this.items.length]=r.getStub(),l=r.next()}u||(p=this.items[0],p&&p.type===t.TEXT&&(p.text=p.text.replace(T,""),p.text||this.items.shift()),p=this.items[this.items.length-1],p&&p.type===t.TEXT&&(p.text=p.text.replace(m,""),p.text||this.items.pop()))}},c.prototype={toJSON:u,toString:l},f="a abbr acronym address applet area b base basefont bdo big blockquote body br button caption center cite code col colgroup dd del dfn dir div dl dt em fieldset font form frame frameset h1 h2 h3 h4 h5 h6 head hr html i iframe img input ins isindex kbd label legend li link map menu meta noframes noscript object ol p param pre q s samp script select small span strike strong style sub sup textarea title tt u ul var article aside audio bdi canvas command data datagrid datalist details embed eventsource figcaption figure footer header hgroup keygen mark meter nav output progress ruby rp rt section source summary time track video wbr".split(" "),d="li dd rt rp optgroup option tbody tfoot tr td th".split(" "),p=/^on[a-zA-Z]/,g=function(t){var e=!p.test(t.name);return e},c}(c,Te,R,he,un,fn,dn,pn,vn,bn,Tn),An=function(t,e){return function(t){return this.options.sanitize&&this.options.sanitize.elements&&-1!==this.options.sanitize.elements.indexOf(t.name.toLowerCase())?null:new e(t,this)}}(c,Sn),Mn=function(t,e,n,i,r){var o;return o=function(t,e){var n,i;for(this.tokens=t||[],this.pos=0,this.options=e,this.preserveWhitespace=e.preserveWhitespace,i=[];n=this.getStub();)i.push(n);this.result=r(i)},o.prototype={getStub:function(){var t=this.next();return t?this.getText(t)||this.getComment(t)||this.getMustache(t)||this.getElement(t):null},getText:t,getComment:e,getMustache:n,getElement:i,next:function(){return this.tokens[this.pos]}},o}(nn,on,cn,An,ln),yn=function(t,e,n){var i,r,o,s,a;return r=/^\s*$/,o=/<!--\s*\{\{\s*>\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*}\}\s*-->/,s=/<!--\s*\{\{\s*\/\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*}\}\s*-->/,i=function(i,s){var u,l,h;return s=s||{},o.test(i)?a(i,s):(s.sanitize===!0&&(s.sanitize={elements:"applet base basefont body frame frameset head html isindex link meta noframes noscript object param script style title".split(" "),eventAttributes:!0}),u=t(i,s),s.preserveWhitespace||(h=u[0],h&&h.type===e.TEXT&&r.test(h.value)&&u.shift(),h=u[u.length-1],h&&h.type===e.TEXT&&r.test(h.value)&&u.pop()),l=new n(u,s).result,"string"==typeof l?[l]:l)},a=function(t,e){var n,r,a,u,l,h;for(a={},n="",r=t;l=o.exec(r);){if(u=l[1],n+=r.substr(0,l.index),r=r.substring(l.index+l[0].length),h=s.exec(r),!h||h[1]!==u)throw new Error("Inline partials must have a closing delimiter, and cannot be nested");a[u]=i(r.substr(0,h.index),e),r=r.substring(h.index+h[0].length)}return{main:i(n,e),partials:a}},i}(tn,c,Mn),Pn=function(t,e,n,i,r,o){var s,a,u,l;return s=function(i,s){var h,c,f;if(c=u(i,s))return c;if(e&&(h=document.getElementById(s),h&&"SCRIPT"===h.tagName)){if(!o)throw new Error(t.missingParser);a(o(h.innerHTML),s,r)}if(c=r[s],!c){if(f='Could not find descriptor for partial "'+s+'"',i.debug)throw new Error(f);return n(f),[]}return l(c)},u=function(e,n){var i;if(e.partials[n]){if("string"==typeof e.partials[n]){if(!o)throw new Error(t.missingParser);i=o(e.partials[n],e.parseOptions),a(i,n,e.partials)}return l(e.partials[n])}},a=function(t,e,n){var r;if(i(t)){n[e]=t.main;for(r in t.partials)t.partials.hasOwnProperty(r)&&(n[r]=t.partials[r])}else n[e]=t},l=function(t){return 1===t.length&&"string"==typeof t[0]?t[0]:t},s}(Pe,s,R,y,we,yn),wn=function(t,e,n){var i,r;return n.push(function(){r=n.DomFragment}),i=function(n,i){var o,s=this.parentFragment=n.parentFragment;if(this.type=t.PARTIAL,this.name=n.descriptor.r,this.index=n.index,!n.descriptor.r)throw new Error("Partials must have a static reference (no expressions). This may change in a future version of Ractive.");o=e(s.root,n.descriptor.r),this.fragment=new r({descriptor:o,root:s.root,pNode:s.pNode,contextStack:s.contextStack,owner:this}),i&&i.appendChild(this.fragment.docFrag)},i.prototype={firstNode:function(){return this.fragment.firstNode()},findNextNode:function(){return this.parentFragment.findNextNode(this)},detach:function(){return this.fragment.detach()},teardown:function(t){this.fragment.teardown(t)},toString:function(){return this.fragment.toString()},find:function(t){return this.fragment.find(t)},findAll:function(t,e){return this.fragment.findAll(t,e)},findComponent:function(t){return this.fragment.findComponent(t)},findAllComponents:function(t,e){return this.fragment.findAllComponents(t,e)}},i}(c,Pn,Bt),En=function(t){var e=function(e,n,i){this.parentFragment=e.parentFragment,this.component=e,this.key=n,this.fragment=new t({descriptor:i,root:e.root,owner:this,contextStack:e.parentFragment.contextStack}),this.selfUpdating=this.fragment.isSimple(),this.value=this.fragment.getValue()};return e.prototype={bubble:function(){this.selfUpdating?this.update():!this.deferred&&this.ready&&(this.root._deferred.attrs.push(this),this.deferred=!0)},update:function(){var t=this.fragment.getValue();this.component.instance.set(this.key,t),this.value=t},teardown:function(){this.fragment.teardown()}},e}(ee),Gn=function(t,e,n,i){function r(r,o,s,a){var u,l,h,c,f;return h=r.root,c=r.parentFragment,"string"==typeof s?(l=e(s),l?l.value:s):null===s?!0:1===s.length&&s[0].t===t.INTERPOLATOR&&s[0].r?c.indexRefs&&void 0!==c.indexRefs[s[0].r]?c.indexRefs[s[0].r]:(f=n(h,s[0].r,c.contextStack)||s[0].r,a.push({childKeypath:o,parentKeypath:f}),h.get(f)):(u=new i(r,o,s),r.complexParameters.push(u),u.value)}return function(t,e,n){var i,o,s;i={},t.complexParameters=[];for(o in e)e.hasOwnProperty(o)&&(s=r(t,o,e[o],n),void 0!==s&&(i[o]=s));return i}}(c,Jt,w,En),Cn=function(){return function(t,e,n,i,r){var o,s,a,u;return s=t.parentFragment,u=t.root,a={content:r||[]},o=new e({el:s.pNode.cloneNode(!1),data:n,partials:a,_parent:u,adaptors:u.adaptors}),o.component=t,t.instance=o,o.insert(i),o.fragment.pNode=s.pNode,o}}(),xn=function(){function t(t,n,i){var r,o,s,a,u,l,h;r=t.root,o=t.instance,u=t.observers,l=r.observe(n,function(t){s||r._wrapped[n]||(a=!0,o.set(i,t),a=!1)},e),u.push(l),o.twoway&&(l=o.observe(i,function(t){a||(s=!0,r.set(n,t),s=!1)},e),u.push(l),h=o.get(i),void 0!==h&&r.set(n,h))}var e={init:!1,debug:!0};return function(e,n){var i,r;for(e.observers=[],r=n.length;r--;)i=n[r],t(e,i.parentKeypath,i.childKeypath)}}(),In=function(t){function e(e,i,r,o){if("string"!=typeof o){if(i.debug)throw new Error(n);return void t(n)}e.on(r,function(){var t=Array.prototype.slice.call(arguments);t.unshift(o),i.fire.apply(i,t)})}var n="Components currently only support simple events - you cannot include arguments. Sorry!";return function(t,n){var i;for(i in n)n.hasOwnProperty(i)&&e(t.instance,t.root,i,n[i])}}(R),Bn=function(){return function(t){var e,n;for(e=t.root;e;)(n=e._liveComponentQueries[t.name])&&n.push(t.instance),e=e._parent}}(),Nn=function(t,e,n,i,r,o,s){return function(a,u,l){var h,c,f,d,p;if(h=a.parentFragment=u.parentFragment,c=h.root,a.root=c,a.type=t.COMPONENT,a.name=u.descriptor.e,a.index=u.index,a.observers=[],f=c.components[u.descriptor.e],!f)throw new Error('Component "'+u.descriptor.e+'" not found');p=[],d=n(a,u.descriptor.a,p),i(a,f,d,l,u.descriptor.f),r(a,p),o(a,u.descriptor.v),(u.descriptor.t1||u.descriptor.t2||u.descriptor.o)&&e('The "intro", "outro" and "decorator" directives have no effect on components'),s(a)}}(c,R,Gn,Cn,xn,In,Bn),Hn=function(t){var e=function(e,n){t(this,e,n)};return e.prototype={firstNode:function(){return this.instance.fragment.firstNode()},findNextNode:function(){return this.parentFragment.findNextNode(this)},detach:function(){return this.instance.fragment.detach()},teardown:function(){for(var t;this.complexParameters.length;)this.complexParameters.pop().teardown();for(;this.observers.length;)this.observers.pop().cancel();(t=this.root._liveComponentQueries[this.name])&&t._remove(this),this.instance.teardown()},toString:function(){return this.instance.fragment.toString()},find:function(t){return this.instance.fragment.find(t)},findAll:function(t,e){return this.instance.fragment.findAll(t,e)},findComponent:function(t){return t&&t!==this.name?null:this.instance},findAllComponents:function(t,e){e._test(this,!0),this.instance.fragment&&this.instance.fragment.findAllComponents(t,e)}},e}(Nn),On=function(t){var e=function(e,n){this.type=t.COMMENT,this.descriptor=e.descriptor,n&&(this.node=document.createComment(e.descriptor.f),n.appendChild(this.node))};return e.prototype={detach:function(){return this.node.parentNode.removeChild(this.node),this.node},teardown:function(t){t&&this.detach()},firstNode:function(){return this.node},toString:function(){return"<!--"+this.descriptor.f+"-->"}},e}(c),Rn=function(t,e,n,i,r,o,s,a,u,l,h,c,f){var d=function(t){t.pNode&&(this.docFrag=document.createDocumentFragment()),"string"==typeof t.descriptor?(this.html=t.descriptor,this.docFrag&&(this.nodes=i(this.html,t.pNode.tagName,this.docFrag))):n(this,t)};return d.prototype={detach:function(){var t,e;if(this.nodes)for(e=this.nodes.length;e--;)this.docFrag.appendChild(this.nodes[e]);else if(this.items)for(t=this.items.length,e=0;t>e;e+=1)this.docFrag.appendChild(this.items[e].detach());return this.docFrag},createItem:function(e){if("string"==typeof e.descriptor)return new r(e,this.docFrag);switch(e.descriptor.t){case t.INTERPOLATOR:return new o(e,this.docFrag);case t.SECTION:return new s(e,this.docFrag);case t.TRIPLE:return new a(e,this.docFrag);case t.ELEMENT:return this.root.components[e.descriptor.e]?new h(e,this.docFrag):new u(e,this.docFrag);case t.PARTIAL:return new l(e,this.docFrag);case t.COMMENT:return new c(e,this.docFrag);default:throw new Error("Something very strange happened. Please file an issue at https://github.com/RactiveJS/Ractive/issues. Thanks!")}},teardown:function(t){var e;if(this.nodes&&t)for(;e=this.nodes.pop();)e.parentNode.removeChild(e);else if(this.items)for(;this.items.length;)this.items.pop().teardown(t);this.nodes=this.items=this.docFrag=null},firstNode:function(){return this.items&&this.items[0]?this.items[0].firstNode():this.nodes?this.nodes[0]||null:null},findNextNode:function(t){var e=t.index;return this.items[e+1]?this.items[e+1].firstNode():this.owner===this.root?this.owner.component?this.owner.component.findNextNode():null:this.owner.findNextNode(this)},toString:function(){var t,e,n,i;if(this.html)return this.html;if(t="",!this.items)return t;for(n=this.items.length,e=0;n>e;e+=1)i=this.items[e],t+=i.toString();return t},find:function(t){var n,i,r,o,s;if(this.nodes){for(i=this.nodes.length,n=0;i>n;n+=1)if(o=this.nodes[n],1===o.nodeType){if(e(o,t))return o;if(s=o.querySelector(t))return s}return null}if(this.items){for(i=this.items.length,n=0;i>n;n+=1)if(r=this.items[n],r.find&&(s=r.find(t)))return s;return null}},findAll:function(t,n){var i,r,o,s,a,u,l;if(this.nodes){for(r=this.nodes.length,i=0;r>i;i+=1)if(s=this.nodes[i],1===s.nodeType&&(e(s,t)&&n.push(s),a=s.querySelectorAll(t)))for(u=a.length,l=0;u>l;l+=1)n.push(a[l])}else if(this.items)for(r=this.items.length,i=0;r>i;i+=1)o=this.items[i],o.findAll&&o.findAll(t,n);return n},findComponent:function(t){var e,n,i,r;if(this.items){for(e=this.items.length,n=0;e>n;n+=1)if(i=this.items[n],i.findComponent&&(r=i.findComponent(t)))return r;return null}},findAllComponents:function(t,e){var n,i,r;if(this.items)for(i=this.items.length,n=0;i>n;n+=1)r=this.items[n],r.findAllComponents&&r.findAllComponents(t,e);return e}},f.DomFragment=d,d}(c,Y,ct,ft,dt,Et,Nt,Ht,ye,wn,Hn,On,Bt),Ln=function(t,e,n,i,r){return function(t,o){var s;if(!this._initing)throw new Error("You cannot call ractive.render() directly!");this._transitionManager=s=e(this,o),this.fragment=new r({descriptor:this.template,root:this,owner:this,pNode:t}),n(this),t&&t.appendChild(this.fragment.docFrag),i(this),this._transitionManager=null,s.ready(),this.rendered=!0}}(ht,m,g,T,Rn),_n=function(t){return function(){return t("renderHTML() has been deprecated and will be removed in a future version. Please use toHTML() instead"),this.toHTML()}}(R),kn=function(){return function(){return this.fragment.toString()}}(),Dn=function(t,e){return function(n){var i,r,o;for(this.fire("teardown"),o=this._transitionManager,this._transitionManager=r=t(this,n),this.fragment.teardown(!0);this._animations[0];)this._animations[0].stop();for(i in this._cache)e(this,i);this._transitionManager=o,r.ready()}}(m,d),Fn=function(t){return function(e,n,i){var r;if("string"==typeof n&&t(i)){if(r=e.get(n),void 0===r&&(r=0),t(r))e.set(n,r+i);else if(e.debug)throw new Error("Cannot add to a non-numeric value")}else if(e.debug)throw new Error("Bad arguments")}}(L),Vn=function(t){return function(e,n){t(this,e,void 0===n?1:n)}}(Fn),Xn=function(t){return function(e,n){t(this,e,void 0===n?-1:-n)}}(Fn),Wn=function(){return function(t){var e;if("string"==typeof t)e=this.get(t),this.set(t,!e);else if(this.debug)throw new Error("Bad arguments")}}(),Un=function(){return function(t,e){var n,i,r,o,s;return n={},r=0,i=function(t,i){var o,a,u;a=r,u=e.length;do{if(o=e.indexOf(t,a),-1===o)return s=!0,-1;a=o+1}while(n[o]&&u>a);return o===r&&(r+=1),o!==i&&(s=!0),n[o]=!0,o},o=t.map(i),o.unchanged=!s,o}}(),Kn=function(t){return function(e,n,i,r){var o,s;for(o=n.length;o--;)s=n[o],s.type===t.REFERENCE?s.update():s.keypath===e&&s.type===t.SECTION&&!s.inverted&&s.docFrag?i[i.length]=s:r[r.length]=s}}(c),jn=function(t,e,n,i,r,o,s,a,u,l){function h(t){return JSON.stringify(t)}function c(t){return f[t]||(f[t]=function(e){return e[t]}),f[t]}var f={};return function(f,d,p){var g,T,m,v,b,S,A,M,y,P,w,E,G,C,x;if(g=this.get(f),!e(g)||!e(d))return this.set(f,d,p&&p.complete);if(b=g.length===d.length,p&&p.compare){if(p.compare===!0)v=h;else if("string"==typeof p.compare)v=c(p.compare);else{if("function"!=typeof p.compare)throw new Error("The `compare` option must be a function, or a string representing an identifying field (or `true` to use JSON.stringify)");v=p.compare}try{T=g.map(v),m=d.map(v)}catch(I){if(this.debug)throw I;t("Merge operation: comparison failed. Falling back to identity checking"),T=g,m=d}}else T=g,m=d;if(A=u(T,m),n(this,f),a(this,f,d),!A.unchanged||!b){for(G=this._transitionManager,this._transitionManager=E=o(this,p&&p.complete),M=[],y=[],S=0;S<this._deps.length;S+=1)if(P=this._deps[S],P&&(w=P[f])){for(l(f,w,M,y),i(this);M.length;)M.pop().merge(A);for(;y.length;)y.pop().update();
}for(r(this),C=[],x=f.split(".");x.length;)x.pop(),C[C.length]=x.join(".");s.multiple(this,C,!0),T.length!==m.length&&s(this,f+".length",!0),this._transitionManager=G,E.ready()}}}(R,f,d,g,G,m,v,C,Un,Kn),Qn=function(){return function(){return this.fragment.detach()}}(),zn=function(t){return function(e,n){if(e=t(e),n=t(n)||null,!e)throw new Error("You must specify a valid target to insert into");e.insertBefore(this.detach(),n),this.fragment.pNode=e}}(ht),qn=function(t,e,n,i,r,o,s,a,u,l,h,c,f,d,p,g,T,m,v,b,S,A,M){return{get:t,set:e,update:n,updateModel:i,animate:r,on:o,off:s,observe:a,fire:u,find:l,findAll:h,findComponent:c,findAllComponents:f,renderHTML:p,toHTML:g,render:d,teardown:T,add:m,subtract:v,toggle:b,merge:S,detach:A,insert:M}}(M,x,I,N,F,V,X,q,J,Z,at,ut,lt,Ln,_n,kn,Dn,Vn,Xn,Wn,jn,Qn,zn),Jn=function(){return["partials","transitions","events","components","decorators","data"]}(),Zn=function(){return["el","template","complete","modifyArrays","magic","twoway","lazy","append","preserveWhitespace","sanitize","stripComments","noIntro","transitionsEnabled","adaptors"]}(),Yn=function(t,e,n){return function(i,r){t.forEach(function(t){r[t]&&(i[t]=n(r[t]))}),e.forEach(function(t){i[t]=r[t]})}}(Jn,Zn,i),$n=function(){return function(t,e){return/_super/.test(t)?function(){var n,i=this._super;return this._super=e,n=t.apply(this,arguments),this._super=i,n}:t}}(),ti=function(){return function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}}(),ei=function(t,e,n,i){var r,o;return r=t.concat(e),o={},r.forEach(function(t){o[t]=!0}),function(r,s){var a,u;t.forEach(function(t){var e=s[t];e&&(r[t]?i(r[t],e):r[t]=e)}),e.forEach(function(t){var e=s[t];void 0!==e&&("function"==typeof e&&"function"==typeof r[t]?r[t]=n(e,r[t]):r[t]=s[t])});for(a in s)s.hasOwnProperty(a)&&!o[a]&&(u=s[a],"function"==typeof u&&"function"==typeof r.prototype[a]?r.prototype[a]=n(u,r.prototype[a]):r.prototype[a]=u)}}(Jn,Zn,$n,ti),ni=function(t,e){return function(n,i){t(n.template)&&(n.partials||(n.partials={}),e(n.partials,n.template.partials),i.partials&&e(n.partials,i.partials),n.template=n.template.main)}}(y,ti),ii=function(t,e,n){return function(i){var r;if("string"==typeof i.template){if(!n)throw new Error(t.missingParser);if("#"===i.template.charAt(0)&&e){if(r=document.getElementById(i.template.substring(1)),!r||"SCRIPT"!==r.tagName)throw new Error("Could not find template element ("+i.template+")");i.template=n(r.innerHTML,i)}else i.template=n(i.template,i)}}}(Pe,s,yn),ri=function(t,e){return function(n){var i;if(n.partials)for(i in n.partials)if(n.partials.hasOwnProperty(i)&&"string"==typeof n.partials[i]){if(!e)throw new Error(t.missingParser);n.partials[i]=e(n.partials[i],n)}}}(Pe,yn),oi=function(){return function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}}(),si=function(){return function(t){for(var e,n,i=Array.prototype.slice.call(arguments,1);n=i.shift();)for(e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}}(),ai=function(t,e,n,i,r,o,s,a,u,l,h){var c,f,d,p;return c=function(){return{}},f=function(){return[]},d=i(null),s(d,{preserveWhitespace:{enumerable:!0,value:!1},append:{enumerable:!0,value:!1},twoway:{enumerable:!0,value:!0},modifyArrays:{enumerable:!0,value:!0},data:{enumerable:!0,value:c},lazy:{enumerable:!0,value:!1},debug:{enumerable:!0,value:!1},transitions:{enumerable:!0,value:c},decorators:{enumerable:!0,value:c},events:{enumerable:!0,value:c},noIntro:{enumerable:!0,value:!1},transitionsEnabled:{enumerable:!0,value:!0},magic:{enumerable:!0,value:!1},adaptors:{enumerable:!0,value:f}}),p=["components","decorators","events","partials","transitions","data"],function(c,f){var g,T,m,v;for(g in d)void 0===f[g]&&(f[g]="function"==typeof d[g]?d[g]():d[g]);if(s(c,{_initing:{value:!0,writable:!0},_guid:{value:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e,n;return e=16*Math.random()|0,n="x"==t?e:3&e|8,n.toString(16)})},_subs:{value:i(null),configurable:!0},_cache:{value:{}},_cacheMap:{value:i(null)},_deps:{value:[]},_depsMap:{value:i(null)},_patternObservers:{value:[]},_pendingResolution:{value:[]},_deferred:{value:{}},_evaluators:{value:i(null)},_twowayBindings:{value:{}},_transitionManager:{value:null,writable:!0},_animations:{value:[]},nodes:{value:{}},_wrapped:{value:i(null)},_liveQueries:{value:[]},_liveComponentQueries:{value:[]}}),s(c._deferred,{attrs:{value:[]},evals:{value:[]},selectValues:{value:[]},checkboxes:{value:[]},radios:{value:[]},observers:{value:[]},transitions:{value:[]},liveQueries:{value:[]},decorators:{value:[]},focusable:{value:null,writable:!0}}),c.adaptors=f.adaptors,c.modifyArrays=f.modifyArrays,c.magic=f.magic,c.twoway=f.twoway,c.lazy=f.lazy,c.debug=f.debug,c.magic&&!l)throw new Error("Getters and setters (magic mode) are not supported in this browser");if(f._parent&&o(c,"_parent",{value:f._parent}),f.el&&(c.el=a(f.el),!c.el&&c.debug))throw new Error("Could not find container element");if(f.eventDefinitions&&(n("ractive.eventDefinitions has been deprecated in favour of ractive.events. Support will be removed in future versions"),f.events=f.eventDefinitions),p.forEach(function(t){c.constructor[t]?c[t]=r(i(c.constructor[t]||{}),f[t]):f[t]&&(c[t]=f[t])}),T=f.template,"string"==typeof T){if(!h)throw new Error(e.missingParser);if("#"===T.charAt(0)&&t){if(m=document.getElementById(T.substring(1)),!m)throw new Error("Could not find template element ("+T+")");v=h(m.innerHTML,f)}else v=h(T,f)}else v=T;u(v)&&(r(c.partials,v.partials),v=v.main),v&&1===v.length&&"string"==typeof v[0]&&(v=v[0]),c.template=v,r(c.partials,f.partials),c.parseOptions={preserveWhitespace:f.preserveWhitespace,sanitize:f.sanitize,stripComments:f.stripComments},c.transitionsEnabled=f.noIntro?!1:f.transitionsEnabled,t&&!c.el&&(c.el=document.createDocumentFragment()),c.el&&!f.append&&(c.el.innerHTML=""),c.render(c.el,f.complete),c.transitionsEnabled=f.transitionsEnabled,c._initing=!1}}(s,Pe,R,i,si,a,u,ht,y,S,yn),ui=function(t,e,n,i,r){return function(t,n,o){e.forEach(function(t){var e=o[t],r=n[t];"function"==typeof e&&"function"==typeof r?o[t]=i(e,r):void 0===e&&void 0!==r&&(o[t]=r)}),t.beforeInit&&t.beforeInit(o),r(t,o),t.init&&t.init(o)}}(ce,Zn,oi,$n,ai),li=function(t,e,n,i,r,o,s,a){var u;return a.push(function(){u=a.Ractive}),function(a){var u,l=this;return u=function(t){s(this,u,t||{})},u.prototype=t(l.prototype),u.prototype.constructor=u,e(u,l),n(u,a),r(u),i(u,a),o(u),u.extend=l.extend,u}}(i,Yn,ei,ni,ii,ri,ui,Bt),hi=function(t,e,n,i,r,o,s,a,u,l,h){var c=function(t){l(this,t)};return n(c,{prototype:{value:i},partials:{value:r},adaptors:{value:o},easing:{value:s},transitions:{value:{}},events:{value:{}},components:{value:{}},decorators:{value:{}},svg:{value:t},VERSION:{value:"0.3.9"}}),c.eventDefinitions=c.events,c.prototype.constructor=c,c.delimiters=["{{","}}"],c.tripleDelimiters=["{{{","}}}"],c.extend=a,c.parse=u,h.Ractive=c,c}(n,i,u,qn,we,h,D,li,yn,ai,Bt),ci=function(t,e){for("undefined"!=typeof window&&window.Node&&!window.Node.prototype.contains&&window.HTMLElement&&window.HTMLElement.prototype.contains&&(window.Node.prototype.contains=window.HTMLElement.prototype.contains);e.length;)e.pop()();return t}(hi,Bt);"undefined"!=typeof module&&module.exports?module.exports=ci:"function"==typeof e&&e.amd?e("Ractive",[],function(){return ci}):t.Ractive=ci}("undefined"!=typeof window?window:this),e("rv",["amd-loader","Ractive"],function(t,e){return t("rv","html",function(t,n,i,r,o,s){var a=e.parse(n);r(s.isBuild?'define("rv!'+t+'",function(){return '+JSON.stringify(a)+";})":a)})}),e("rv!templates/index",[],function(){return[{t:7,e:"div",a:{"class":"numberai-text-form",id:[{t:2,r:"formId"}],style:"display: none; position: fixed;bottom: 0;right: 10%"},f:[{t:7,e:"button",a:{id:[{t:2,r:"closeBtnId"}]},f:"Close"}," ",{t:7,e:"div",a:{"class":"numberai-title"},f:"Message Us"}," ",{t:7,e:"div",a:{"class":"numberai-text-note"},f:'Enter your mobile phone number below and we will get back to you right away.'}," ",{t:7,e:"form",f:[{t:7,e:"label",a:{"for":["tel-",{t:2,r:"formId"}]},f:"Your Mobile Number"}," ",{t:7,e:"input",a:{type:"tel",id:["tel-",{t:2,r:"formId"}],name:"number",placeholder:"555-555-0123"}}," ",{t:7,e:"span",a:{"class":"numberai-text-nospam"},f:'Don&#x27;t worry. We will only respond to your questions and you can always text STOP.'}," ",{t:7,e:"label",a:{"for":["msg-",{t:2,r:"formId"}]},f:"What can we do for you?"}," ",{t:7,e:"textarea",a:{id:["msg-",{t:2,r:"formId"}],name:"message",placeholder:"Your message or question",cols:"47",rows:"3"}}," ",{t:7,e:"input",a:{type:"submit",value:"Send"}}]}]}," ",{t:7,e:"div",a:{"class":["numberai-text-widget ",{t:2,r:"deviceClass"}],id:[{t:2,r:"widgetId"}],"data-numberai-number":[{t:2,r:"number"}]},f:[{t:7,e:"span",a:{"class":"numberai-number"},f:["Text Us"]}]}," ",{t:7,e:"script",f:["(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-96091564-3', 'auto', 'gaNumbox'); ga('gaNumbox.send', 'pageview'); ga('gaNumbox.set', 'dimension1', '",{t:2,r:"number"},"')"]}]}),e("main",["require","./helpers","mobile-detect","i18n!./nls/strings","text!compiled/css/main.css","rv!templates/index"],function(t,e,n,i,r,o){var s=new n(window.navigator.userAgent);const a=s.phone();var u=t("Ractive");return r&&e.addCssToDocument(r),function(t){function e(t){if(ga("gaNumbox.send","event","widget","start message"),a){const e=document.getElementById(s);return window.location="sms:"+e.dataset.numberaiNumber,void t.preventDefault()}const n=document.getElementById(l);n.style.display="block"}function n(t){document.getElementById(l).style.display="none"}function r(e){ga("gaNumbox.send","event","widget","submit message");const i=document.getElementById(l).querySelector("form");for(var r={},o=0;o<i.length;o++){var s=i[o];s.name&&(r[s.name]=s.value)}var a=new XMLHttpRequest;a.open("POST",t.url.stringify()),a.setRequestHeader("Content-Type","application/json; charset=UTF-8"),a.onloadend=n,a.send(JSON.stringify(r)),e.preventDefault()}var s=t.id.replace("sqwidget","numberai"),l=s+"-form",h=s+"-closebtn",c=new u({el:t.el,template:o,data:{deviceClass:a?"numberai-phone":"numberai-nonphone",widgetId:s,closeBtnId:h,formId:l,text_us:i.text_us,number:"+18449153366"}});return document.getElementById(s).onclick=e,document.getElementById(l).onsubmit=r,document.getElementById(h).onclick=n,c}}),n});
//# sourceMappingURL=text-us.js.map