react-moment
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -1,3 +0,3 @@ | ||
{"/media/sean/work2/www/react-moment/src/index.jsx": {"path":"/media/sean/work2/www/react-moment/src/index.jsx","statementMap":{"0":{"start":{"line":7,"column":18},"end":{"line":12,"column":1}},"1":{"start":{"line":14,"column":19},"end":{"line":17,"column":1}},"2":{"start":{"line":19,"column":22},"end":{"line":22,"column":1}},"3":{"start":{"line":70,"column":26},"end":{"line":70,"column":35}},"4":{"start":{"line":100,"column":4},"end":{"line":100,"column":30}},"5":{"start":{"line":101,"column":4},"end":{"line":107,"column":17}},"6":{"start":{"line":102,"column":6},"end":{"line":106,"column":9}},"7":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"8":{"start":{"line":104,"column":10},"end":{"line":104,"column":27}},"9":{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},"10":{"start":{"line":115,"column":6},"end":{"line":115,"column":40}},"11":{"start":{"line":116,"column":6},"end":{"line":116,"column":35}},"12":{"start":{"line":117,"column":6},"end":{"line":117,"column":33}},"13":{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},"14":{"start":{"line":128,"column":6},"end":{"line":128,"column":58}},"15":{"start":{"line":129,"column":6},"end":{"line":129,"column":13}},"16":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"17":{"start":{"line":132,"column":6},"end":{"line":132,"column":42}},"18":{"start":{"line":142,"column":18},"end":{"line":142,"column":56}},"19":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"20":{"start":{"line":144,"column":6},"end":{"line":144,"column":45}},"21":{"start":{"line":155,"column":26},"end":{"line":155,"column":31}},"22":{"start":{"line":156,"column":45},"end":{"line":156,"column":50}},"23":{"start":{"line":158,"column":4},"end":{"line":158,"column":34}},"24":{"start":{"line":159,"column":4},"end":{"line":159,"column":40}},"25":{"start":{"line":160,"column":4},"end":{"line":160,"column":40}},"26":{"start":{"line":161,"column":4},"end":{"line":161,"column":37}},"27":{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},"28":{"start":{"line":163,"column":6},"end":{"line":163,"column":35}},"29":{"start":{"line":165,"column":6},"end":{"line":165,"column":54}},"30":{"start":{"line":168,"column":19},"end":{"line":168,"column":23}},"31":{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},"32":{"start":{"line":170,"column":6},"end":{"line":170,"column":62}},"33":{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},"34":{"start":{"line":175,"column":6},"end":{"line":175,"column":65}},"35":{"start":{"line":177,"column":6},"end":{"line":177,"column":58}},"36":{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},"37":{"start":{"line":180,"column":6},"end":{"line":180,"column":33}},"38":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"39":{"start":{"line":182,"column":6},"end":{"line":182,"column":34}},"40":{"start":{"line":185,"column":4},"end":{"line":185,"column":20}},"41":{"start":{"line":198,"column":8},"end":{"line":198,"column":13}},"42":{"start":{"line":200,"column":21},"end":{"line":200,"column":26}},"43":{"start":{"line":202,"column":4},"end":{"line":202,"column":43}},"44":{"start":{"line":203,"column":21},"end":{"line":203,"column":46}},"45":{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},"46":{"start":{"line":205,"column":6},"end":{"line":205,"column":24}},"47":{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},"48":{"start":{"line":208,"column":6},"end":{"line":208,"column":34}},"49":{"start":{"line":211,"column":26},"end":{"line":211,"column":92}},"50":{"start":{"line":212,"column":19},"end":{"line":212,"column":21}},"51":{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},"52":{"start":{"line":214,"column":6},"end":{"line":214,"column":40}},"53":{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},"54":{"start":{"line":216,"column":6},"end":{"line":216,"column":41}},"55":{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},"56":{"start":{"line":218,"column":6},"end":{"line":218,"column":38}},"57":{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},"58":{"start":{"line":220,"column":6},"end":{"line":220,"column":37}},"59":{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},"60":{"start":{"line":222,"column":6},"end":{"line":222,"column":36}},"61":{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},"62":{"start":{"line":224,"column":6},"end":{"line":224,"column":50}},"63":{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},"64":{"start":{"line":226,"column":6},"end":{"line":226,"column":51}},"65":{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},"66":{"start":{"line":228,"column":6},"end":{"line":228,"column":40}},"67":{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},"68":{"start":{"line":230,"column":6},"end":{"line":230,"column":40}},"69":{"start":{"line":232,"column":6},"end":{"line":232,"column":36}},"70":{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},"71":{"start":{"line":236,"column":6},"end":{"line":236,"column":41}},"72":{"start":{"line":237,"column":6},"end":{"line":237,"column":39}},"73":{"start":{"line":240,"column":19},"end":{"line":240,"column":54}},"74":{"start":{"line":241,"column":4},"end":{"line":241,"column":30}},"75":{"start":{"line":243,"column":4},"end":{"line":243,"column":19}},"76":{"start":{"line":252,"column":4},"end":{"line":252,"column":17}},"77":{"start":{"line":254,"column":4},"end":{"line":256,"column":5}},"78":{"start":{"line":255,"column":6},"end":{"line":255,"column":35}},"79":{"start":{"line":257,"column":4},"end":{"line":259,"column":6}},"80":{"start":{"line":260,"column":4},"end":{"line":260,"column":22}},"81":{"start":{"line":267,"column":4},"end":{"line":267,"column":20}},"82":{"start":{"line":268,"column":4},"end":{"line":270,"column":5}},"83":{"start":{"line":269,"column":6},"end":{"line":269,"column":37}},"84":{"start":{"line":279,"column":25},"end":{"line":279,"column":35}},"85":{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},"86":{"start":{"line":282,"column":6},"end":{"line":282,"column":22}},"87":{"start":{"line":290,"column":4},"end":{"line":290,"column":22}},"88":{"start":{"line":301,"column":20},"end":{"line":301,"column":48}},"89":{"start":{"line":302,"column":4},"end":{"line":302,"column":23}},"90":{"start":{"line":309,"column":25},"end":{"line":309,"column":35}},"91":{"start":{"line":311,"column":4},"end":{"line":311,"column":22}},"92":{"start":{"line":312,"column":4},"end":{"line":316,"column":5}},"93":{"start":{"line":313,"column":6},"end":{"line":315,"column":19}},"94":{"start":{"line":314,"column":8},"end":{"line":314,"column":32}},"95":{"start":{"line":323,"column":28},"end":{"line":323,"column":38}},"96":{"start":{"line":325,"column":21},"end":{"line":325,"column":51}},"97":{"start":{"line":326,"column":19},"end":{"line":326,"column":53}},"98":{"start":{"line":328,"column":4},"end":{"line":328,"column":35}},"99":{"start":{"line":336,"column":4},"end":{"line":339,"column":5}},"100":{"start":{"line":337,"column":6},"end":{"line":337,"column":32}},"101":{"start":{"line":338,"column":6},"end":{"line":338,"column":24}},"102":{"start":{"line":340,"column":4},"end":{"line":342,"column":5}},"103":{"start":{"line":341,"column":6},"end":{"line":341,"column":39}},"104":{"start":{"line":351,"column":26},"end":{"line":351,"column":45}},"105":{"start":{"line":353,"column":20},"end":{"line":353,"column":44}},"106":{"start":{"line":354,"column":4},"end":{"line":356,"column":7}},"107":{"start":{"line":355,"column":6},"end":{"line":355,"column":24}},"108":{"start":{"line":363,"column":49},"end":{"line":363,"column":59}},"109":{"start":{"line":364,"column":24},"end":{"line":364,"column":34}},"110":{"start":{"line":366,"column":18},"end":{"line":366,"column":62}},"111":{"start":{"line":367,"column":4},"end":{"line":369,"column":5}},"112":{"start":{"line":368,"column":6},"end":{"line":368,"column":36}},"113":{"start":{"line":371,"column":4},"end":{"line":378,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":70,"column":17},"end":{"line":70,"column":18}},"loc":{"start":{"line":70,"column":24},"end":{"line":70,"column":37}},"line":70},"1":{"name":"(anonymous_1)","decl":{"start":{"line":71,"column":17},"end":{"line":71,"column":18}},"loc":{"start":{"line":71,"column":23},"end":{"line":71,"column":25}},"line":71},"2":{"name":"(anonymous_2)","decl":{"start":{"line":99,"column":2},"end":{"line":99,"column":3}},"loc":{"start":{"line":99,"column":44},"end":{"line":108,"column":3}},"line":99},"3":{"name":"(anonymous_3)","decl":{"start":{"line":101,"column":37},"end":{"line":101,"column":38}},"loc":{"start":{"line":101,"column":43},"end":{"line":107,"column":5}},"line":101},"4":{"name":"(anonymous_4)","decl":{"start":{"line":102,"column":36},"end":{"line":102,"column":37}},"loc":{"start":{"line":102,"column":49},"end":{"line":106,"column":7}},"line":102},"5":{"name":"(anonymous_5)","decl":{"start":{"line":113,"column":2},"end":{"line":113,"column":3}},"loc":{"start":{"line":113,"column":28},"end":{"line":119,"column":3}},"line":113},"6":{"name":"(anonymous_6)","decl":{"start":{"line":126,"column":2},"end":{"line":126,"column":3}},"loc":{"start":{"line":126,"column":36},"end":{"line":134,"column":3}},"line":126},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":2},"end":{"line":141,"column":3}},"loc":{"start":{"line":141,"column":38},"end":{"line":146,"column":3}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":154,"column":2},"end":{"line":154,"column":3}},"loc":{"start":{"line":154,"column":28},"end":{"line":186,"column":3}},"line":154},"9":{"name":"(anonymous_9)","decl":{"start":{"line":194,"column":2},"end":{"line":194,"column":3}},"loc":{"start":{"line":194,"column":27},"end":{"line":244,"column":3}},"line":194},"10":{"name":"(anonymous_10)","decl":{"start":{"line":251,"column":2},"end":{"line":251,"column":3}},"loc":{"start":{"line":251,"column":21},"end":{"line":261,"column":3}},"line":251},"11":{"name":"(anonymous_11)","decl":{"start":{"line":266,"column":2},"end":{"line":266,"column":3}},"loc":{"start":{"line":266,"column":22},"end":{"line":271,"column":3}},"line":266},"12":{"name":"(anonymous_12)","decl":{"start":{"line":278,"column":2},"end":{"line":278,"column":3}},"loc":{"start":{"line":278,"column":32},"end":{"line":284,"column":3}},"line":278},"13":{"name":"(anonymous_13)","decl":{"start":{"line":289,"column":2},"end":{"line":289,"column":3}},"loc":{"start":{"line":289,"column":25},"end":{"line":291,"column":3}},"line":289},"14":{"name":"(anonymous_14)","decl":{"start":{"line":300,"column":2},"end":{"line":300,"column":3}},"loc":{"start":{"line":300,"column":45},"end":{"line":303,"column":3}},"line":300},"15":{"name":"(anonymous_15)","decl":{"start":{"line":308,"column":13},"end":{"line":308,"column":14}},"loc":{"start":{"line":308,"column":19},"end":{"line":317,"column":3}},"line":308},"16":{"name":"(anonymous_16)","decl":{"start":{"line":313,"column":31},"end":{"line":313,"column":32}},"loc":{"start":{"line":313,"column":37},"end":{"line":315,"column":7}},"line":313},"17":{"name":"(anonymous_17)","decl":{"start":{"line":322,"column":13},"end":{"line":322,"column":14}},"loc":{"start":{"line":322,"column":19},"end":{"line":329,"column":3}},"line":322},"18":{"name":"(anonymous_18)","decl":{"start":{"line":335,"column":15},"end":{"line":335,"column":16}},"loc":{"start":{"line":335,"column":21},"end":{"line":343,"column":3}},"line":335},"19":{"name":"(anonymous_19)","decl":{"start":{"line":350,"column":2},"end":{"line":350,"column":3}},"loc":{"start":{"line":350,"column":16},"end":{"line":357,"column":3}},"line":350},"20":{"name":"(anonymous_20)","decl":{"start":{"line":354,"column":31},"end":{"line":354,"column":32}},"loc":{"start":{"line":354,"column":37},"end":{"line":356,"column":5}},"line":354},"21":{"name":"(anonymous_21)","decl":{"start":{"line":362,"column":2},"end":{"line":362,"column":3}},"loc":{"start":{"line":362,"column":11},"end":{"line":379,"column":3}},"line":362}},"branchMap":{"0":{"loc":{"start":{"line":99,"column":26},"end":{"line":99,"column":42}},"type":"default-arg","locations":[{"start":{"line":99,"column":37},"end":{"line":99,"column":42}}],"line":99},"1":{"loc":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"type":"if","locations":[{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},{"start":{"line":103,"column":8},"end":{"line":105,"column":9}}],"line":103},"2":{"loc":{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},{"start":{"line":114,"column":4},"end":{"line":118,"column":5}}],"line":114},"3":{"loc":{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},{"start":{"line":127,"column":4},"end":{"line":130,"column":5}}],"line":127},"4":{"loc":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},{"start":{"line":131,"column":4},"end":{"line":133,"column":5}}],"line":131},"5":{"loc":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},{"start":{"line":143,"column":4},"end":{"line":145,"column":5}}],"line":143},"6":{"loc":{"start":{"line":158,"column":11},"end":{"line":158,"column":33}},"type":"binary-expr","locations":[{"start":{"line":158,"column":11},"end":{"line":158,"column":15}},{"start":{"line":158,"column":19},"end":{"line":158,"column":33}}],"line":158},"7":{"loc":{"start":{"line":159,"column":12},"end":{"line":159,"column":39}},"type":"binary-expr","locations":[{"start":{"line":159,"column":12},"end":{"line":159,"column":17}},{"start":{"line":159,"column":21},"end":{"line":159,"column":39}}],"line":159},"8":{"loc":{"start":{"line":160,"column":12},"end":{"line":160,"column":39}},"type":"binary-expr","locations":[{"start":{"line":160,"column":12},"end":{"line":160,"column":17}},{"start":{"line":160,"column":21},"end":{"line":160,"column":39}}],"line":160},"9":{"loc":{"start":{"line":161,"column":9},"end":{"line":161,"column":36}},"type":"binary-expr","locations":[{"start":{"line":161,"column":9},"end":{"line":161,"column":11}},{"start":{"line":161,"column":15},"end":{"line":161,"column":36}}],"line":161},"10":{"loc":{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},{"start":{"line":162,"column":4},"end":{"line":166,"column":5}}],"line":162},"11":{"loc":{"start":{"line":165,"column":15},"end":{"line":165,"column":53}},"type":"binary-expr","locations":[{"start":{"line":165,"column":15},"end":{"line":165,"column":21}},{"start":{"line":165,"column":25},"end":{"line":165,"column":53}}],"line":165},"12":{"loc":{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},"type":"if","locations":[{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},{"start":{"line":169,"column":4},"end":{"line":178,"column":5}}],"line":169},"13":{"loc":{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},"type":"if","locations":[{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},{"start":{"line":171,"column":11},"end":{"line":178,"column":5}}],"line":171},"14":{"loc":{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},"type":"if","locations":[{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},{"start":{"line":179,"column":4},"end":{"line":183,"column":5}}],"line":179},"15":{"loc":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"type":"if","locations":[{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},{"start":{"line":181,"column":11},"end":{"line":183,"column":5}}],"line":181},"16":{"loc":{"start":{"line":202,"column":13},"end":{"line":202,"column":42}},"type":"binary-expr","locations":[{"start":{"line":202,"column":13},"end":{"line":202,"column":19}},{"start":{"line":202,"column":23},"end":{"line":202,"column":42}}],"line":202},"17":{"loc":{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},{"start":{"line":204,"column":4},"end":{"line":206,"column":5}}],"line":204},"18":{"loc":{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},"type":"if","locations":[{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},{"start":{"line":207,"column":4},"end":{"line":209,"column":5}}],"line":207},"19":{"loc":{"start":{"line":211,"column":26},"end":{"line":211,"column":92}},"type":"binary-expr","locations":[{"start":{"line":211,"column":26},"end":{"line":211,"column":48}},{"start":{"line":211,"column":52},"end":{"line":211,"column":92}}],"line":211},"20":{"loc":{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},{"start":{"line":213,"column":4},"end":{"line":233,"column":5}}],"line":213},"21":{"loc":{"start":{"line":213,"column":8},"end":{"line":213,"column":32}},"type":"binary-expr","locations":[{"start":{"line":213,"column":8},"end":{"line":213,"column":14}},{"start":{"line":213,"column":18},"end":{"line":213,"column":32}}],"line":213},"22":{"loc":{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},{"start":{"line":215,"column":11},"end":{"line":233,"column":5}}],"line":215},"23":{"loc":{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},{"start":{"line":217,"column":11},"end":{"line":233,"column":5}}],"line":217},"24":{"loc":{"start":{"line":217,"column":15},"end":{"line":217,"column":39}},"type":"binary-expr","locations":[{"start":{"line":217,"column":15},"end":{"line":217,"column":22}},{"start":{"line":217,"column":26},"end":{"line":217,"column":39}}],"line":217},"25":{"loc":{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},{"start":{"line":219,"column":11},"end":{"line":233,"column":5}}],"line":219},"26":{"loc":{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},{"start":{"line":221,"column":11},"end":{"line":233,"column":5}}],"line":221},"27":{"loc":{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},{"start":{"line":223,"column":11},"end":{"line":233,"column":5}}],"line":223},"28":{"loc":{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},{"start":{"line":225,"column":11},"end":{"line":233,"column":5}}],"line":225},"29":{"loc":{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},{"start":{"line":227,"column":11},"end":{"line":233,"column":5}}],"line":227},"30":{"loc":{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},{"start":{"line":229,"column":11},"end":{"line":233,"column":5}}],"line":229},"31":{"loc":{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},"type":"if","locations":[{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},{"start":{"line":235,"column":4},"end":{"line":238,"column":5}}],"line":235},"32":{"loc":{"start":{"line":235,"column":8},"end":{"line":235,"column":35}},"type":"binary-expr","locations":[{"start":{"line":235,"column":8},"end":{"line":235,"column":16}},{"start":{"line":235,"column":20},"end":{"line":235,"column":35}}],"line":235},"33":{"loc":{"start":{"line":240,"column":19},"end":{"line":240,"column":54}},"type":"binary-expr","locations":[{"start":{"line":240,"column":19},"end":{"line":240,"column":38}},{"start":{"line":240,"column":42},"end":{"line":240,"column":54}}],"line":240},"34":{"loc":{"start":{"line":254,"column":4},"end":{"line":256,"column":5}},"type":"if","locations":[{"start":{"line":254,"column":4},"end":{"line":256,"column":5}},{"start":{"line":254,"column":4},"end":{"line":256,"column":5}}],"line":254},"35":{"loc":{"start":{"line":268,"column":4},"end":{"line":270,"column":5}},"type":"if","locations":[{"start":{"line":268,"column":4},"end":{"line":270,"column":5}},{"start":{"line":268,"column":4},"end":{"line":270,"column":5}}],"line":268},"36":{"loc":{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},"type":"if","locations":[{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},{"start":{"line":281,"column":4},"end":{"line":283,"column":5}}],"line":281},"37":{"loc":{"start":{"line":312,"column":4},"end":{"line":316,"column":5}},"type":"if","locations":[{"start":{"line":312,"column":4},"end":{"line":316,"column":5}},{"start":{"line":312,"column":4},"end":{"line":316,"column":5}}],"line":312},"38":{"loc":{"start":{"line":312,"column":8},"end":{"line":312,"column":45}},"type":"binary-expr","locations":[{"start":{"line":312,"column":8},"end":{"line":312,"column":27}},{"start":{"line":312,"column":31},"end":{"line":312,"column":45}}],"line":312},"39":{"loc":{"start":{"line":326,"column":19},"end":{"line":326,"column":53}},"type":"binary-expr","locations":[{"start":{"line":326,"column":19},"end":{"line":326,"column":30}},{"start":{"line":326,"column":34},"end":{"line":326,"column":53}}],"line":326},"40":{"loc":{"start":{"line":336,"column":4},"end":{"line":339,"column":5}},"type":"if","locations":[{"start":{"line":336,"column":4},"end":{"line":339,"column":5}},{"start":{"line":336,"column":4},"end":{"line":339,"column":5}}],"line":336},"41":{"loc":{"start":{"line":336,"column":8},"end":{"line":336,"column":41}},"type":"binary-expr","locations":[{"start":{"line":336,"column":8},"end":{"line":336,"column":27}},{"start":{"line":336,"column":31},"end":{"line":336,"column":41}}],"line":336},"42":{"loc":{"start":{"line":340,"column":4},"end":{"line":342,"column":5}},"type":"if","locations":[{"start":{"line":340,"column":4},"end":{"line":342,"column":5}},{"start":{"line":340,"column":4},"end":{"line":342,"column":5}}],"line":340},"43":{"loc":{"start":{"line":340,"column":8},"end":{"line":340,"column":41}},"type":"binary-expr","locations":[{"start":{"line":340,"column":8},"end":{"line":340,"column":26}},{"start":{"line":340,"column":30},"end":{"line":340,"column":41}}],"line":340},"44":{"loc":{"start":{"line":351,"column":26},"end":{"line":351,"column":45}},"type":"binary-expr","locations":[{"start":{"line":351,"column":26},"end":{"line":351,"column":31}},{"start":{"line":351,"column":35},"end":{"line":351,"column":45}}],"line":351},"45":{"loc":{"start":{"line":367,"column":4},"end":{"line":369,"column":5}},"type":"if","locations":[{"start":{"line":367,"column":4},"end":{"line":369,"column":5}},{"start":{"line":367,"column":4},"end":{"line":369,"column":5}}],"line":367},"46":{"loc":{"start":{"line":372,"column":6},"end":{"line":372,"column":37}},"type":"binary-expr","locations":[{"start":{"line":372,"column":6},"end":{"line":372,"column":13}},{"start":{"line":372,"column":17},"end":{"line":372,"column":37}}],"line":372}},"s":{"0":1,"1":1,"2":1,"3":42,"4":1,"5":1,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":0,"13":1,"14":0,"15":0,"16":1,"17":1,"18":2,"19":2,"20":1,"21":86,"22":86,"23":86,"24":86,"25":86,"26":86,"27":86,"28":2,"29":84,"30":86,"31":86,"32":4,"33":82,"34":6,"35":76,"36":86,"37":4,"38":82,"39":6,"40":86,"41":43,"42":43,"43":43,"44":43,"45":43,"46":1,"47":43,"48":1,"49":43,"50":43,"51":43,"52":4,"53":39,"54":2,"55":37,"56":5,"57":32,"58":2,"59":30,"60":2,"61":28,"62":2,"63":26,"64":4,"65":22,"66":0,"67":22,"68":0,"69":22,"70":43,"71":0,"72":0,"73":43,"74":43,"75":43,"76":42,"77":42,"78":28,"79":42,"80":42,"81":42,"82":42,"83":1,"84":1,"85":1,"86":0,"87":1,"88":43,"89":43,"90":42,"91":42,"92":42,"93":41,"94":0,"95":0,"96":0,"97":0,"98":0,"99":43,"100":0,"101":0,"102":43,"103":2,"104":0,"105":0,"106":0,"107":0,"108":43,"109":43,"110":43,"111":43,"112":0,"113":43},"f":{"0":42,"1":0,"2":1,"3":0,"4":0,"5":1,"6":1,"7":2,"8":86,"9":43,"10":42,"11":42,"12":1,"13":1,"14":43,"15":42,"16":0,"17":0,"18":43,"19":0,"20":0,"21":43},"b":{"0":[0],"1":[0,0],"2":[0,1],"3":[0,1],"4":[1,0],"5":[1,1],"6":[86,78],"7":[86,76],"8":[86,82],"9":[86,84],"10":[2,84],"11":[84,84],"12":[4,82],"13":[6,76],"14":[4,82],"15":[6,76],"16":[43,38],"17":[1,42],"18":[1,42],"19":[43,2],"20":[4,39],"21":[43,5],"22":[2,37],"23":[5,32],"24":[37,33],"25":[2,30],"26":[2,28],"27":[2,26],"28":[4,22],"29":[0,22],"30":[0,22],"31":[0,43],"32":[43,43],"33":[43,43],"34":[28,14],"35":[1,41],"36":[0,1],"37":[41,1],"38":[42,41],"39":[0,0],"40":[0,43],"41":[43,41],"42":[2,41],"43":[43,2],"44":[0,0],"45":[0,43],"46":[43,41]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"dad9d9e1a022637b09cc97830d5da585108018e7"} | ||
{"/media/sean/work2/www/react-moment/src/index.jsx": {"path":"/media/sean/work2/www/react-moment/src/index.jsx","statementMap":{"0":{"start":{"line":7,"column":18},"end":{"line":12,"column":1}},"1":{"start":{"line":14,"column":19},"end":{"line":17,"column":1}},"2":{"start":{"line":19,"column":22},"end":{"line":22,"column":1}},"3":{"start":{"line":70,"column":26},"end":{"line":70,"column":35}},"4":{"start":{"line":100,"column":4},"end":{"line":100,"column":30}},"5":{"start":{"line":101,"column":4},"end":{"line":107,"column":17}},"6":{"start":{"line":102,"column":6},"end":{"line":106,"column":9}},"7":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"8":{"start":{"line":104,"column":10},"end":{"line":104,"column":27}},"9":{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},"10":{"start":{"line":115,"column":6},"end":{"line":115,"column":40}},"11":{"start":{"line":116,"column":6},"end":{"line":116,"column":35}},"12":{"start":{"line":117,"column":6},"end":{"line":117,"column":33}},"13":{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},"14":{"start":{"line":128,"column":6},"end":{"line":128,"column":58}},"15":{"start":{"line":129,"column":6},"end":{"line":129,"column":13}},"16":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"17":{"start":{"line":132,"column":6},"end":{"line":132,"column":42}},"18":{"start":{"line":142,"column":18},"end":{"line":142,"column":56}},"19":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"20":{"start":{"line":144,"column":6},"end":{"line":144,"column":45}},"21":{"start":{"line":155,"column":26},"end":{"line":155,"column":31}},"22":{"start":{"line":156,"column":45},"end":{"line":156,"column":50}},"23":{"start":{"line":158,"column":4},"end":{"line":158,"column":34}},"24":{"start":{"line":159,"column":4},"end":{"line":159,"column":40}},"25":{"start":{"line":160,"column":4},"end":{"line":160,"column":40}},"26":{"start":{"line":161,"column":4},"end":{"line":161,"column":37}},"27":{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},"28":{"start":{"line":163,"column":6},"end":{"line":163,"column":35}},"29":{"start":{"line":165,"column":6},"end":{"line":165,"column":54}},"30":{"start":{"line":168,"column":19},"end":{"line":168,"column":23}},"31":{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},"32":{"start":{"line":170,"column":6},"end":{"line":170,"column":62}},"33":{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},"34":{"start":{"line":175,"column":6},"end":{"line":175,"column":65}},"35":{"start":{"line":177,"column":6},"end":{"line":177,"column":58}},"36":{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},"37":{"start":{"line":180,"column":6},"end":{"line":180,"column":33}},"38":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"39":{"start":{"line":182,"column":6},"end":{"line":182,"column":34}},"40":{"start":{"line":185,"column":4},"end":{"line":185,"column":20}},"41":{"start":{"line":198,"column":8},"end":{"line":198,"column":13}},"42":{"start":{"line":200,"column":21},"end":{"line":200,"column":26}},"43":{"start":{"line":202,"column":4},"end":{"line":202,"column":43}},"44":{"start":{"line":203,"column":21},"end":{"line":203,"column":46}},"45":{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},"46":{"start":{"line":205,"column":6},"end":{"line":205,"column":24}},"47":{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},"48":{"start":{"line":208,"column":6},"end":{"line":208,"column":34}},"49":{"start":{"line":211,"column":26},"end":{"line":211,"column":92}},"50":{"start":{"line":212,"column":19},"end":{"line":212,"column":21}},"51":{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},"52":{"start":{"line":214,"column":6},"end":{"line":214,"column":40}},"53":{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},"54":{"start":{"line":216,"column":6},"end":{"line":216,"column":41}},"55":{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},"56":{"start":{"line":218,"column":6},"end":{"line":218,"column":38}},"57":{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},"58":{"start":{"line":220,"column":6},"end":{"line":220,"column":37}},"59":{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},"60":{"start":{"line":222,"column":6},"end":{"line":222,"column":36}},"61":{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},"62":{"start":{"line":224,"column":6},"end":{"line":224,"column":50}},"63":{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},"64":{"start":{"line":226,"column":6},"end":{"line":226,"column":51}},"65":{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},"66":{"start":{"line":228,"column":6},"end":{"line":228,"column":40}},"67":{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},"68":{"start":{"line":230,"column":6},"end":{"line":230,"column":40}},"69":{"start":{"line":232,"column":6},"end":{"line":232,"column":36}},"70":{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},"71":{"start":{"line":236,"column":6},"end":{"line":236,"column":41}},"72":{"start":{"line":237,"column":6},"end":{"line":237,"column":39}},"73":{"start":{"line":240,"column":19},"end":{"line":240,"column":54}},"74":{"start":{"line":241,"column":4},"end":{"line":241,"column":30}},"75":{"start":{"line":243,"column":4},"end":{"line":243,"column":19}},"76":{"start":{"line":252,"column":4},"end":{"line":252,"column":17}},"77":{"start":{"line":254,"column":4},"end":{"line":256,"column":5}},"78":{"start":{"line":255,"column":6},"end":{"line":255,"column":35}},"79":{"start":{"line":257,"column":4},"end":{"line":259,"column":6}},"80":{"start":{"line":260,"column":4},"end":{"line":260,"column":22}},"81":{"start":{"line":267,"column":4},"end":{"line":267,"column":20}},"82":{"start":{"line":268,"column":4},"end":{"line":270,"column":5}},"83":{"start":{"line":269,"column":6},"end":{"line":269,"column":37}},"84":{"start":{"line":279,"column":25},"end":{"line":279,"column":35}},"85":{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},"86":{"start":{"line":282,"column":6},"end":{"line":282,"column":22}},"87":{"start":{"line":290,"column":4},"end":{"line":290,"column":22}},"88":{"start":{"line":301,"column":20},"end":{"line":301,"column":48}},"89":{"start":{"line":302,"column":4},"end":{"line":302,"column":23}},"90":{"start":{"line":309,"column":25},"end":{"line":309,"column":35}},"91":{"start":{"line":311,"column":4},"end":{"line":311,"column":22}},"92":{"start":{"line":312,"column":4},"end":{"line":316,"column":5}},"93":{"start":{"line":313,"column":6},"end":{"line":315,"column":19}},"94":{"start":{"line":314,"column":8},"end":{"line":314,"column":32}},"95":{"start":{"line":323,"column":28},"end":{"line":323,"column":38}},"96":{"start":{"line":325,"column":21},"end":{"line":325,"column":51}},"97":{"start":{"line":326,"column":19},"end":{"line":326,"column":53}},"98":{"start":{"line":328,"column":4},"end":{"line":328,"column":35}},"99":{"start":{"line":336,"column":4},"end":{"line":339,"column":5}},"100":{"start":{"line":337,"column":6},"end":{"line":337,"column":32}},"101":{"start":{"line":338,"column":6},"end":{"line":338,"column":24}},"102":{"start":{"line":340,"column":4},"end":{"line":342,"column":5}},"103":{"start":{"line":341,"column":6},"end":{"line":341,"column":39}},"104":{"start":{"line":351,"column":26},"end":{"line":351,"column":45}},"105":{"start":{"line":352,"column":25},"end":{"line":352,"column":37}},"106":{"start":{"line":354,"column":20},"end":{"line":354,"column":51}},"107":{"start":{"line":355,"column":4},"end":{"line":357,"column":7}},"108":{"start":{"line":356,"column":6},"end":{"line":356,"column":24}},"109":{"start":{"line":364,"column":49},"end":{"line":364,"column":59}},"110":{"start":{"line":365,"column":24},"end":{"line":365,"column":34}},"111":{"start":{"line":367,"column":18},"end":{"line":367,"column":62}},"112":{"start":{"line":368,"column":4},"end":{"line":370,"column":5}},"113":{"start":{"line":369,"column":6},"end":{"line":369,"column":36}},"114":{"start":{"line":372,"column":4},"end":{"line":379,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":70,"column":17},"end":{"line":70,"column":18}},"loc":{"start":{"line":70,"column":24},"end":{"line":70,"column":37}},"line":70},"1":{"name":"(anonymous_1)","decl":{"start":{"line":71,"column":17},"end":{"line":71,"column":18}},"loc":{"start":{"line":71,"column":23},"end":{"line":71,"column":25}},"line":71},"2":{"name":"(anonymous_2)","decl":{"start":{"line":99,"column":2},"end":{"line":99,"column":3}},"loc":{"start":{"line":99,"column":44},"end":{"line":108,"column":3}},"line":99},"3":{"name":"(anonymous_3)","decl":{"start":{"line":101,"column":37},"end":{"line":101,"column":38}},"loc":{"start":{"line":101,"column":43},"end":{"line":107,"column":5}},"line":101},"4":{"name":"(anonymous_4)","decl":{"start":{"line":102,"column":36},"end":{"line":102,"column":37}},"loc":{"start":{"line":102,"column":49},"end":{"line":106,"column":7}},"line":102},"5":{"name":"(anonymous_5)","decl":{"start":{"line":113,"column":2},"end":{"line":113,"column":3}},"loc":{"start":{"line":113,"column":28},"end":{"line":119,"column":3}},"line":113},"6":{"name":"(anonymous_6)","decl":{"start":{"line":126,"column":2},"end":{"line":126,"column":3}},"loc":{"start":{"line":126,"column":36},"end":{"line":134,"column":3}},"line":126},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":2},"end":{"line":141,"column":3}},"loc":{"start":{"line":141,"column":38},"end":{"line":146,"column":3}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":154,"column":2},"end":{"line":154,"column":3}},"loc":{"start":{"line":154,"column":28},"end":{"line":186,"column":3}},"line":154},"9":{"name":"(anonymous_9)","decl":{"start":{"line":194,"column":2},"end":{"line":194,"column":3}},"loc":{"start":{"line":194,"column":27},"end":{"line":244,"column":3}},"line":194},"10":{"name":"(anonymous_10)","decl":{"start":{"line":251,"column":2},"end":{"line":251,"column":3}},"loc":{"start":{"line":251,"column":21},"end":{"line":261,"column":3}},"line":251},"11":{"name":"(anonymous_11)","decl":{"start":{"line":266,"column":2},"end":{"line":266,"column":3}},"loc":{"start":{"line":266,"column":22},"end":{"line":271,"column":3}},"line":266},"12":{"name":"(anonymous_12)","decl":{"start":{"line":278,"column":2},"end":{"line":278,"column":3}},"loc":{"start":{"line":278,"column":32},"end":{"line":284,"column":3}},"line":278},"13":{"name":"(anonymous_13)","decl":{"start":{"line":289,"column":2},"end":{"line":289,"column":3}},"loc":{"start":{"line":289,"column":25},"end":{"line":291,"column":3}},"line":289},"14":{"name":"(anonymous_14)","decl":{"start":{"line":300,"column":2},"end":{"line":300,"column":3}},"loc":{"start":{"line":300,"column":45},"end":{"line":303,"column":3}},"line":300},"15":{"name":"(anonymous_15)","decl":{"start":{"line":308,"column":13},"end":{"line":308,"column":14}},"loc":{"start":{"line":308,"column":19},"end":{"line":317,"column":3}},"line":308},"16":{"name":"(anonymous_16)","decl":{"start":{"line":313,"column":31},"end":{"line":313,"column":32}},"loc":{"start":{"line":313,"column":37},"end":{"line":315,"column":7}},"line":313},"17":{"name":"(anonymous_17)","decl":{"start":{"line":322,"column":13},"end":{"line":322,"column":14}},"loc":{"start":{"line":322,"column":19},"end":{"line":329,"column":3}},"line":322},"18":{"name":"(anonymous_18)","decl":{"start":{"line":335,"column":15},"end":{"line":335,"column":16}},"loc":{"start":{"line":335,"column":21},"end":{"line":343,"column":3}},"line":335},"19":{"name":"(anonymous_19)","decl":{"start":{"line":350,"column":2},"end":{"line":350,"column":3}},"loc":{"start":{"line":350,"column":16},"end":{"line":358,"column":3}},"line":350},"20":{"name":"(anonymous_20)","decl":{"start":{"line":355,"column":31},"end":{"line":355,"column":32}},"loc":{"start":{"line":355,"column":37},"end":{"line":357,"column":5}},"line":355},"21":{"name":"(anonymous_21)","decl":{"start":{"line":363,"column":2},"end":{"line":363,"column":3}},"loc":{"start":{"line":363,"column":11},"end":{"line":380,"column":3}},"line":363}},"branchMap":{"0":{"loc":{"start":{"line":99,"column":26},"end":{"line":99,"column":42}},"type":"default-arg","locations":[{"start":{"line":99,"column":37},"end":{"line":99,"column":42}}],"line":99},"1":{"loc":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"type":"if","locations":[{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},{"start":{"line":103,"column":8},"end":{"line":105,"column":9}}],"line":103},"2":{"loc":{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},{"start":{"line":114,"column":4},"end":{"line":118,"column":5}}],"line":114},"3":{"loc":{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},{"start":{"line":127,"column":4},"end":{"line":130,"column":5}}],"line":127},"4":{"loc":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},{"start":{"line":131,"column":4},"end":{"line":133,"column":5}}],"line":131},"5":{"loc":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},{"start":{"line":143,"column":4},"end":{"line":145,"column":5}}],"line":143},"6":{"loc":{"start":{"line":158,"column":11},"end":{"line":158,"column":33}},"type":"binary-expr","locations":[{"start":{"line":158,"column":11},"end":{"line":158,"column":15}},{"start":{"line":158,"column":19},"end":{"line":158,"column":33}}],"line":158},"7":{"loc":{"start":{"line":159,"column":12},"end":{"line":159,"column":39}},"type":"binary-expr","locations":[{"start":{"line":159,"column":12},"end":{"line":159,"column":17}},{"start":{"line":159,"column":21},"end":{"line":159,"column":39}}],"line":159},"8":{"loc":{"start":{"line":160,"column":12},"end":{"line":160,"column":39}},"type":"binary-expr","locations":[{"start":{"line":160,"column":12},"end":{"line":160,"column":17}},{"start":{"line":160,"column":21},"end":{"line":160,"column":39}}],"line":160},"9":{"loc":{"start":{"line":161,"column":9},"end":{"line":161,"column":36}},"type":"binary-expr","locations":[{"start":{"line":161,"column":9},"end":{"line":161,"column":11}},{"start":{"line":161,"column":15},"end":{"line":161,"column":36}}],"line":161},"10":{"loc":{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},{"start":{"line":162,"column":4},"end":{"line":166,"column":5}}],"line":162},"11":{"loc":{"start":{"line":165,"column":15},"end":{"line":165,"column":53}},"type":"binary-expr","locations":[{"start":{"line":165,"column":15},"end":{"line":165,"column":21}},{"start":{"line":165,"column":25},"end":{"line":165,"column":53}}],"line":165},"12":{"loc":{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},"type":"if","locations":[{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},{"start":{"line":169,"column":4},"end":{"line":178,"column":5}}],"line":169},"13":{"loc":{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},"type":"if","locations":[{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},{"start":{"line":171,"column":11},"end":{"line":178,"column":5}}],"line":171},"14":{"loc":{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},"type":"if","locations":[{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},{"start":{"line":179,"column":4},"end":{"line":183,"column":5}}],"line":179},"15":{"loc":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"type":"if","locations":[{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},{"start":{"line":181,"column":11},"end":{"line":183,"column":5}}],"line":181},"16":{"loc":{"start":{"line":202,"column":13},"end":{"line":202,"column":42}},"type":"binary-expr","locations":[{"start":{"line":202,"column":13},"end":{"line":202,"column":19}},{"start":{"line":202,"column":23},"end":{"line":202,"column":42}}],"line":202},"17":{"loc":{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},{"start":{"line":204,"column":4},"end":{"line":206,"column":5}}],"line":204},"18":{"loc":{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},"type":"if","locations":[{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},{"start":{"line":207,"column":4},"end":{"line":209,"column":5}}],"line":207},"19":{"loc":{"start":{"line":211,"column":26},"end":{"line":211,"column":92}},"type":"binary-expr","locations":[{"start":{"line":211,"column":26},"end":{"line":211,"column":48}},{"start":{"line":211,"column":52},"end":{"line":211,"column":92}}],"line":211},"20":{"loc":{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},{"start":{"line":213,"column":4},"end":{"line":233,"column":5}}],"line":213},"21":{"loc":{"start":{"line":213,"column":8},"end":{"line":213,"column":32}},"type":"binary-expr","locations":[{"start":{"line":213,"column":8},"end":{"line":213,"column":14}},{"start":{"line":213,"column":18},"end":{"line":213,"column":32}}],"line":213},"22":{"loc":{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},{"start":{"line":215,"column":11},"end":{"line":233,"column":5}}],"line":215},"23":{"loc":{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},{"start":{"line":217,"column":11},"end":{"line":233,"column":5}}],"line":217},"24":{"loc":{"start":{"line":217,"column":15},"end":{"line":217,"column":39}},"type":"binary-expr","locations":[{"start":{"line":217,"column":15},"end":{"line":217,"column":22}},{"start":{"line":217,"column":26},"end":{"line":217,"column":39}}],"line":217},"25":{"loc":{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},{"start":{"line":219,"column":11},"end":{"line":233,"column":5}}],"line":219},"26":{"loc":{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},{"start":{"line":221,"column":11},"end":{"line":233,"column":5}}],"line":221},"27":{"loc":{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},{"start":{"line":223,"column":11},"end":{"line":233,"column":5}}],"line":223},"28":{"loc":{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},{"start":{"line":225,"column":11},"end":{"line":233,"column":5}}],"line":225},"29":{"loc":{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},{"start":{"line":227,"column":11},"end":{"line":233,"column":5}}],"line":227},"30":{"loc":{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},{"start":{"line":229,"column":11},"end":{"line":233,"column":5}}],"line":229},"31":{"loc":{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},"type":"if","locations":[{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},{"start":{"line":235,"column":4},"end":{"line":238,"column":5}}],"line":235},"32":{"loc":{"start":{"line":235,"column":8},"end":{"line":235,"column":35}},"type":"binary-expr","locations":[{"start":{"line":235,"column":8},"end":{"line":235,"column":16}},{"start":{"line":235,"column":20},"end":{"line":235,"column":35}}],"line":235},"33":{"loc":{"start":{"line":240,"column":19},"end":{"line":240,"column":54}},"type":"binary-expr","locations":[{"start":{"line":240,"column":19},"end":{"line":240,"column":38}},{"start":{"line":240,"column":42},"end":{"line":240,"column":54}}],"line":240},"34":{"loc":{"start":{"line":254,"column":4},"end":{"line":256,"column":5}},"type":"if","locations":[{"start":{"line":254,"column":4},"end":{"line":256,"column":5}},{"start":{"line":254,"column":4},"end":{"line":256,"column":5}}],"line":254},"35":{"loc":{"start":{"line":268,"column":4},"end":{"line":270,"column":5}},"type":"if","locations":[{"start":{"line":268,"column":4},"end":{"line":270,"column":5}},{"start":{"line":268,"column":4},"end":{"line":270,"column":5}}],"line":268},"36":{"loc":{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},"type":"if","locations":[{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},{"start":{"line":281,"column":4},"end":{"line":283,"column":5}}],"line":281},"37":{"loc":{"start":{"line":312,"column":4},"end":{"line":316,"column":5}},"type":"if","locations":[{"start":{"line":312,"column":4},"end":{"line":316,"column":5}},{"start":{"line":312,"column":4},"end":{"line":316,"column":5}}],"line":312},"38":{"loc":{"start":{"line":312,"column":8},"end":{"line":312,"column":45}},"type":"binary-expr","locations":[{"start":{"line":312,"column":8},"end":{"line":312,"column":27}},{"start":{"line":312,"column":31},"end":{"line":312,"column":45}}],"line":312},"39":{"loc":{"start":{"line":326,"column":19},"end":{"line":326,"column":53}},"type":"binary-expr","locations":[{"start":{"line":326,"column":19},"end":{"line":326,"column":30}},{"start":{"line":326,"column":34},"end":{"line":326,"column":53}}],"line":326},"40":{"loc":{"start":{"line":336,"column":4},"end":{"line":339,"column":5}},"type":"if","locations":[{"start":{"line":336,"column":4},"end":{"line":339,"column":5}},{"start":{"line":336,"column":4},"end":{"line":339,"column":5}}],"line":336},"41":{"loc":{"start":{"line":336,"column":8},"end":{"line":336,"column":41}},"type":"binary-expr","locations":[{"start":{"line":336,"column":8},"end":{"line":336,"column":27}},{"start":{"line":336,"column":31},"end":{"line":336,"column":41}}],"line":336},"42":{"loc":{"start":{"line":340,"column":4},"end":{"line":342,"column":5}},"type":"if","locations":[{"start":{"line":340,"column":4},"end":{"line":342,"column":5}},{"start":{"line":340,"column":4},"end":{"line":342,"column":5}}],"line":340},"43":{"loc":{"start":{"line":340,"column":8},"end":{"line":340,"column":41}},"type":"binary-expr","locations":[{"start":{"line":340,"column":8},"end":{"line":340,"column":26}},{"start":{"line":340,"column":30},"end":{"line":340,"column":41}}],"line":340},"44":{"loc":{"start":{"line":351,"column":26},"end":{"line":351,"column":45}},"type":"binary-expr","locations":[{"start":{"line":351,"column":26},"end":{"line":351,"column":31}},{"start":{"line":351,"column":35},"end":{"line":351,"column":45}}],"line":351},"45":{"loc":{"start":{"line":368,"column":4},"end":{"line":370,"column":5}},"type":"if","locations":[{"start":{"line":368,"column":4},"end":{"line":370,"column":5}},{"start":{"line":368,"column":4},"end":{"line":370,"column":5}}],"line":368},"46":{"loc":{"start":{"line":373,"column":6},"end":{"line":373,"column":37}},"type":"binary-expr","locations":[{"start":{"line":373,"column":6},"end":{"line":373,"column":13}},{"start":{"line":373,"column":17},"end":{"line":373,"column":37}}],"line":373}},"s":{"0":1,"1":1,"2":1,"3":42,"4":1,"5":1,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":0,"13":1,"14":0,"15":0,"16":1,"17":1,"18":2,"19":2,"20":1,"21":86,"22":86,"23":86,"24":86,"25":86,"26":86,"27":86,"28":2,"29":84,"30":86,"31":86,"32":4,"33":82,"34":6,"35":76,"36":86,"37":4,"38":82,"39":6,"40":86,"41":43,"42":43,"43":43,"44":43,"45":43,"46":1,"47":43,"48":1,"49":43,"50":43,"51":43,"52":4,"53":39,"54":2,"55":37,"56":5,"57":32,"58":2,"59":30,"60":2,"61":28,"62":2,"63":26,"64":4,"65":22,"66":0,"67":22,"68":0,"69":22,"70":43,"71":0,"72":0,"73":43,"74":43,"75":43,"76":42,"77":42,"78":28,"79":42,"80":42,"81":42,"82":42,"83":1,"84":1,"85":1,"86":0,"87":1,"88":43,"89":43,"90":42,"91":42,"92":42,"93":41,"94":0,"95":0,"96":0,"97":0,"98":0,"99":43,"100":0,"101":0,"102":43,"103":2,"104":0,"105":0,"106":0,"107":0,"108":0,"109":43,"110":43,"111":43,"112":43,"113":0,"114":43},"f":{"0":42,"1":0,"2":1,"3":0,"4":0,"5":1,"6":1,"7":2,"8":86,"9":43,"10":42,"11":42,"12":1,"13":1,"14":43,"15":42,"16":0,"17":0,"18":43,"19":0,"20":0,"21":43},"b":{"0":[0],"1":[0,0],"2":[0,1],"3":[0,1],"4":[1,0],"5":[1,1],"6":[86,78],"7":[86,76],"8":[86,82],"9":[86,84],"10":[2,84],"11":[84,84],"12":[4,82],"13":[6,76],"14":[4,82],"15":[6,76],"16":[43,38],"17":[1,42],"18":[1,42],"19":[43,2],"20":[4,39],"21":[43,5],"22":[2,37],"23":[5,32],"24":[37,33],"25":[2,30],"26":[2,28],"27":[2,26],"28":[4,22],"29":[0,22],"30":[0,22],"31":[0,43],"32":[43,43],"33":[43,43],"34":[28,14],"35":[1,41],"36":[0,1],"37":[41,1],"38":[42,41],"39":[0,0],"40":[0,43],"41":[43,41],"42":[2,41],"43":[43,2],"44":[0,0],"45":[0,43],"46":[43,41]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"6f4b3fd12d675d3b21c3003af684baf6fe62a5b5"} | ||
,"/media/sean/work2/www/react-moment/src/objects.js": {"path":"/media/sean/work2/www/react-moment/src/objects.js","statementMap":{"0":{"start":{"line":27,"column":19},"end":{"line":27,"column":36}},"1":{"start":{"line":28,"column":19},"end":{"line":28,"column":42}},"2":{"start":{"line":29,"column":2},"end":{"line":31,"column":42}},"3":{"start":{"line":30,"column":19},"end":{"line":30,"column":47}},"4":{"start":{"line":31,"column":20},"end":{"line":31,"column":40}},"5":{"start":{"line":33,"column":2},"end":{"line":33,"column":18}}},"fnMap":{"0":{"name":"objectKeyFilter","decl":{"start":{"line":26,"column":16},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":44},"end":{"line":34,"column":1}},"line":26},"1":{"name":"(anonymous_1)","decl":{"start":{"line":30,"column":12},"end":{"line":30,"column":13}},"loc":{"start":{"line":30,"column":19},"end":{"line":30,"column":47}},"line":30},"2":{"name":"(anonymous_2)","decl":{"start":{"line":31,"column":13},"end":{"line":31,"column":14}},"loc":{"start":{"line":31,"column":20},"end":{"line":31,"column":40}},"line":31}},"branchMap":{},"s":{"0":44,"1":44,"2":44,"3":626,"4":587,"5":44},"f":{"0":44,"1":626,"2":587},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"85bd948993fced7c0079bb5c6377263d615a4b96"} | ||
} |
@@ -22,2 +22,2 @@ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("react")):"function"==typeof define&&define.amd?define(["moment","react"],t):"object"==typeof exports?exports["react-moment"]=t(require("moment"),require("react")):e["react-moment"]=t(e.moment,e.react)}(this,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){e.exports=n(3)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(4);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,o,i,a,l; | ||
*/ | ||
a=this,l=function(e){var t=!1,n=!1,r="escape years months weeks days hours minutes seconds milliseconds general".split(" "),o=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function i(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function a(e){for(var t="";e;)t+="0",e-=1;return t}function l(e,t,r){var o,i,u,s=t.useToLocaleString,c=t.useGrouping,m=c&&t.grouping.slice(),f=t.maximumSignificantDigits,p=t.minimumIntegerDigits||1,g=t.fractionDigits||0,y=t.groupingSeparator,h=t.decimalSeparator;if(s&&r){var d={minimumIntegerDigits:p,useGrouping:c};if(g&&(d.maximumFractionDigits=g,d.minimumFractionDigits=g),f&&e>0&&(d.maximumSignificantDigits=f),!n){var v=w({},t);v.useGrouping=!1,v.decimalSeparator=".",e=parseFloat(l(e,v),10)}return e.toLocaleString(r,d)}var b=(f?e.toPrecision(f+1):e.toFixed(g+1)).split("e");u=b[1]||"",i=(b=b[0].split("."))[1]||"";var S=(o=b[0]||"").length,T=i.length,_=S+T,x=o+i;(f&&_===f+1||!f&&T===g+1)&&((x=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n<t.length;)n?"9"===t[n]?t[n]="0":(t[n]=(parseInt(t[n],10)+1).toString(),r=!1):(parseInt(t[n],10)<5&&(r=!1),t[n]="0"),n+=1;return r&&t.push("1"),t.reverse().join("")}(x)).length===_+1&&(S+=1),T&&(x=x.slice(0,-1)),o=x.slice(0,S),i=x.slice(S)),f&&(i=i.replace(/0*$/,""));var O=parseInt(u,10);O>0?i.length<=O?(o+=i+=a(O-i.length),i=""):(o+=i.slice(0,O),i=i.slice(O)):O<0&&(i=a(Math.abs(O)-o.length)+o+i,o="0"),f||((i=i.slice(0,g)).length<g&&(i+=a(g-i.length)),o.length<p&&(o=a(p-o.length)+o));var V,D="";if(c)for(b=o;b.length;)m.length&&(V=m.shift()),D&&(D=y+D),D=b.slice(-V)+D,b=b.slice(0,-V);else D=o;return i&&(D=D+h+i),D}function u(e,t){return e.label.length>t.label.length?-1:e.label.length<t.label.length?1:0}var s,c={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:function(e,t,n){return 1===t&&null===n?e:e+e}};function m(e){return"[object Array]"===Object.prototype.toString.call(e)}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=0,o=e&&e.length||0;for("function"!=typeof t&&(n=t,t=function(e){return e===n});r<o;){if(t(e[r]))return e[r];r+=1}}function g(e,t){var n=0,r=e.length;if(e&&r)for(;n<r;){if(!1===t(e[n],n))return;n+=1}}function y(e,t){var n=0,r=e.length,o=[];if(!e||!r)return o;for(;n<r;)o[n]=t(e[n],n),n+=1;return o}function h(e,t){return y(e,function(e){return e[t]})}function d(e){var t=[];return g(e,function(e){e&&t.push(e)}),t}function v(e){var t=[];return g(e,function(e){p(t,e)||t.push(e)}),t}function b(e,t){var n=[];return g(e,function(e){g(t,function(t){e===t&&n.push(e)})}),v(n)}function S(e,t){var n=[];return g(e,function(r,o){if(!t(r))return n=e.slice(o),!1}),n}function w(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function T(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function _(e,t){var n=0,r=e.length;if(!e||!r)return!1;for(;n<r;){if(!0===t(e[n],n))return!0;n+=1}return!1}function x(){var e,t=[].slice.call(arguments),n={};if(g(t,function(t,r){if(!r){if(!m(t))throw"Expected array as the first argument to durationsFormat.";e=t}"string"!=typeof t&&"function"!=typeof t?"number"!=typeof t?f(t)&&w(n,t):n.precision=t:n.template=t}),!e||!e.length)return[];n.returnMomentTypes=!0;var o,i=y(e,function(e){return e.format(n)}),a=b(r,v(h((o=[],g(i,function(e){o=o.concat(e)}),o),"type"))),l=n.largest;return l&&(a=a.slice(0,l)),n.returnMomentTypes=!1,n.outputTypes=a,y(e,function(e){return e.format(n)})}function O(){var n=[].slice.call(arguments),a=w({},this.format.defaults),s=this.asMilliseconds(),x=this.asMonths();"function"==typeof this.isValid&&!1===this.isValid()&&(s=0,x=0);var O=s<0,V=e.duration(Math.abs(s),"milliseconds"),D=e.duration(Math.abs(x),"months");g(n,function(e){"string"!=typeof e&&"function"!=typeof e?"number"!=typeof e?f(e)&&w(a,e):a.precision=e:a.template=e});var L={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},j={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};a.types=r;var M=function(e){return p(r,function(t){return j[t].test(e)})},k=new RegExp(y(r,function(e){return j[e].source}).join("|"),"g");a.duration=this;var P="function"==typeof a.template?a.template.apply(a):a.template,E=a.outputTypes,F=a.returnMomentTypes,I=a.largest,C=[];E||(m(a.stopTrim)&&(a.stopTrim=a.stopTrim.join("")),a.stopTrim&&g(a.stopTrim.match(k),function(e){var t=M(e);"escape"!==t&&"general"!==t&&C.push(t)}));var N=e.localeData();N||(N={}),g(T(c),function(e){"function"!=typeof c[e]?N["_"+e]||(N["_"+e]=c[e]):N[e]||(N[e]=c[e])}),g(T(N._durationTimeTemplates),function(e){P=P.replace("_"+e+"_",N._durationTimeTemplates[e])});var G=a.userLocale||e.locale(),R=a.useLeftUnits,U=a.usePlural,q=a.precision,z=a.forceLength,H=a.useGrouping,W=a.trunc,$=a.useSignificantDigits&&q>0,A=$?a.precision:0,B=A,K=a.minValue,Y=!1,J=a.maxValue,Q=!1,X=a.useToLocaleString,Z=a.groupingSeparator,ee=a.decimalSeparator,te=a.grouping;X=X&&t;var ne=a.trim;m(ne)&&(ne=ne.join(" ")),null===ne&&(I||J||$)&&(ne="all"),null!==ne&&!0!==ne&&"left"!==ne&&"right"!==ne||(ne="large"),!1===ne&&(ne="");var re=function(e){return e.test(ne)},oe=/both/,ie=/^all|[^sm]all/,ae=I>0||_([/large/,oe,ie],re),le=_([/small/,oe,ie],re),ue=_([/mid/,ie],re),se=_([/final/,ie],re),ce=y(P.match(k),function(e,t){var n=M(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&C.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(j.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}}),me={index:0,length:0,token:"",text:"",type:null},fe=[];R&&ce.reverse(),g(ce,function(e){if(e.type)return(me.type||me.text)&&fe.push(me),void(me=e);R?me.text=e.token+me.text:me.text+=e.token}),(me.type||me.text)&&fe.push(me),R&&fe.reverse();var pe=b(r,v(d(h(fe,"type"))));if(!pe.length)return h(fe,"text").join("");pe=y(pe,function(e,t){var n,r=t+1===pe.length,o=!t;n="years"===e||"months"===e?D.as(e):V.as(e);var i=Math.floor(n),l=n-i,u=p(fe,function(t){return e===t.type});return o&&J&&n>J&&(Q=!0),r&&K&&Math.abs(a.duration.as(e))<K&&(Y=!0),o&&null===z&&u.length>1&&(z=!0),V.subtract(i,e),D.subtract(i,e),{rawValue:n,wholeValue:i,decimalValue:r?l:0,isSmallest:r,isLargest:o,type:e,tokenLength:u.length}});var ge,ye=W?Math.floor:Math.round,he=function(e,t){var n=Math.pow(10,t);return ye(e*n)/n},de=!1,ve=!1,be=function(e,t){var n={useGrouping:H,groupingSeparator:Z,decimalSeparator:ee,grouping:te,useToLocaleString:X};return $&&(A<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=A,e.significantDigits=A)),Q&&!ve&&(e.isLargest?(e.wholeValue=J,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),Y&&!ve&&(e.isSmallest?(e.wholeValue=K,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?q<0?e.value=he(e.wholeValue,q):0===q?e.value=ye(e.wholeValue+e.decimalValue):$?(e.value=W?he(e.rawValue,A-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(A-=e.wholeValue.toString().length)):(n.fractionDigits=q,e.value=W?e.wholeValue+he(e.decimalValue,q):e.wholeValue+e.decimalValue):$&&e.wholeValue?(e.value=Math.round(he(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),A-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(z||de)&&(n.minimumIntegerDigits=e.tokenLength,ve&&n.maximumSignificantDigits<e.tokenLength&&delete n.maximumSignificantDigits),!de&&(e.value>0||""===ne||p(C,e.type)||p(E,e.type))&&(de=!0),e.formattedValue=l(e.value,n,G),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=l(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=l(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((pe=d(pe=y(pe,be))).length>1){var Se=function(e){return p(pe,function(t){return t.type===e})};g(o,function(e){var t=Se(e.type);t&&g(e.targets,function(e){var n=Se(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),ve=!0)})})}return ve&&(de=!1,A=B,pe=d(pe=y(pe,be))),!E||Q&&!a.trim?(ae&&(pe=S(pe,function(e){return!e.isSmallest&&!e.wholeValue&&!p(C,e.type)})),I&&pe.length&&(pe=pe.slice(0,I)),le&&pe.length>1&&(ge=function(e){return!e.wholeValue&&!p(C,e.type)&&!e.isLargest},pe=S(pe.slice().reverse(),ge).reverse()),ue&&(pe=d(pe=y(pe,function(e,t){return t>0&&t<pe.length-1&&!e.wholeValue?null:e}))),!se||1!==pe.length||pe[0].wholeValue||!W&&pe[0].isSmallest&&pe[0].rawValue<K||(pe=[])):pe=d(pe=y(pe,function(e){return p(E,function(t){return e.type===t})?e:null})),F?pe:(g(fe,function(e){var t=L[e.type],n=p(pe,function(t){return t.type===e.type});if(t&&n){var r=n.formattedValueEn.split(".");r[0]=parseInt(r[0],10),r[1]?r[1]=parseFloat("0."+r[1],10):r[1]=null;var o=N.durationPluralKey(t,r[0],r[1]),a=function(e,t){var n=[];return g(T(t),function(r){if("_durationLabels"===r.slice(0,15)){var o=r.slice(15).toLowerCase();g(T(t[r]),function(i){i.slice(0,1)===e&&n.push({type:o,key:i,label:t[r][i]})})}}),n}(t,N),l=!1,s={};g(N._durationLabelTypes,function(t){var n=p(a,function(e){return e.type===t.type&&e.key===o});n&&(s[n.type]=n.label,i(e.text,t.string)&&(e.text=e.text.replace(t.string,n.label),l=!0))}),U&&!l&&(a.sort(u),g(a,function(t){return s[t.type]===t.label?!i(e.text,t.label)&&void 0:i(e.text,t.label)?(e.text=e.text.replace(t.label,s[t.type]),!1):void 0}))}}),(fe=y(fe,function(e){if(!e.type)return e.text;var t=p(pe,function(t){return t.type===e.type});if(!t)return"";var n="";return R&&(n+=e.text),(O&&Q||!O&&Y)&&(n+="< ",Q=!1,Y=!1),(O&&Y||!O&&Q)&&(n+="> ",Q=!1,Y=!1),O&&(t.value>0||""===ne||p(C,t.type)||p(E,t.type))&&(n+="-",O=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,R||(n+=e.text),n})).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function V(){var e=this.duration,t=function(t){return e._data[t]},n=p(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function D(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=x,e.duration.fn.format=O,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:V,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",c)}return t=!!((s=(s=!0)&&function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}())&&(s=(s=(s=s&&"1"===1..toLocaleString("en",{minimumIntegerDigits:1}))&&"01"===1..toLocaleString("en",{minimumIntegerDigits:2}))&&"001"===1..toLocaleString("en",{minimumIntegerDigits:3}))&&(s=(s=(s=(s=s&&"100"===99.99.toLocaleString("en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===99.99.toLocaleString("en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===99.99.toLocaleString("en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===99.99.toLocaleString("en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(s=(s=(s=(s=(s=s&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:1}))&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:2}))&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:3}))&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:4}))&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:5}))&&(s=(s=s&&"1,000"===1e3.toLocaleString("en",{useGrouping:!0}))&&"1000"===1e3.toLocaleString("en",{useGrouping:!1}))),n=t&&"3.6"===3.55.toLocaleString("en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1}),D(e),D},o=[n(1)],void 0===(i="function"==typeof(r=l)?r.apply(t,o):r)||(e.exports=i),a&&(a.momentDurationFormatSetup=a.moment?l(a.moment):l)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(0),a=n.n(i),l=n(1),u=n.n(l);n(5);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",function(){return S});var d=[a.a.string,a.a.number,a.a.array,a.a.object],v=[a.a.string,a.a.array],b=[a.a.object,a.a.bool],S=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=m(t).call(this,e),n=!o||"object"!==s(o)&&"function"!=typeof o?f(r):o,h(f(n),"setTimer",function(){var e=n.props.interval;n.clearTimer(),t.pooledTimer||0===e||(n.timer=setInterval(function(){n.update(n.props)},e))}),h(f(n),"getTitle",function(){var e=n.props.titleFormat,r=t.getDatetime(n.props),o=e||t.globalFormat;return r.format(o)}),h(f(n),"clearTimer",function(){!t.pooledTimer&&n.timer&&(clearInterval(n.timer),n.timer=null),t.pooledTimer&&!n.timer&&t.removePooledElement(f(n))}),t.globalMoment||(t.globalMoment=u.a),n.state={content:""},n.timer=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,o.a.Component),g(t,null,[{key:"startPooledTimer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4;t.clearPooledTimer(),t.pooledTimer=setInterval(function(){t.pooledElements.forEach(function(e){0!==e.props.interval&&e.update()})},e)}},{key:"clearPooledTimer",value:function(){t.pooledTimer&&(clearInterval(t.pooledTimer),t.pooledTimer=null,t.pooledElements=[])}},{key:"pushPooledElement",value:function(e){e instanceof t?-1===t.pooledElements.indexOf(e)&&t.pooledElements.push(e):console.error("Element not an instance of Moment.")}},{key:"removePooledElement",value:function(e){var n=t.pooledElements.indexOf(e);-1!==n&&t.pooledElements.splice(n,1)}},{key:"getDatetime",value:function(e){var n=e.utc,r=e.unix,o=e.date,i=e.locale,a=e.parse,l=e.tz,u=e.local;o=o||e.children,a=a||t.globalParse,u=u||t.globalLocal,l=l||t.globalTimezone,i=t.globalLocale?t.globalLocale:i||t.globalMoment.locale();var s=null;return s=n?t.globalMoment.utc(o,a,i):r?t.globalMoment(1e3*o,a,i):t.globalMoment(o,a,i),l?s=s.tz(l):u&&(s=s.local()),s}},{key:"getContent",value:function(e){var n=e.fromNow,r=e.fromNowDuring,o=e.from,i=e.add,a=e.subtract,l=e.toNow,s=e.to,c=e.ago,m=e.calendar,f=e.diff,p=e.duration,g=e.durationFromNow,y=e.unit,h=e.decimal,d=e.format;d=d||t.globalFormat;var v=t.getDatetime(e);i&&v.add(i),a&&v.subtract(a);var b=Boolean(r)&&-v.diff(u()())<r,S="";return S=d&&!b?v.format(d):o?v.from(o,c):n||b?v.fromNow(c):s?v.to(s,c):l?v.toNow(c):m?v.calendar(null,m):f?v.diff(f,y,h):p?v.diff(p):g?u()().diff(v):v.toString(),(p||g)&&(S=(S=u.a.duration(S)).format(d)),S=(t.globalFilter||e.filter)(S)}}]),g(t,[{key:"componentDidMount",value:function(){this.setTimer(),t.pooledTimer&&t.pushPooledElement(this)}},{key:"componentDidUpdate",value:function(e){var t=this.props.interval;e.interval!==t&&this.setTimer()}},{key:"componentWillUnmount",value:function(){this.clearTimer()}},{key:"update",value:function(e){var n=(e||this.props).onChange,r=t.getContent(e);this.setState({content:r},function(){n(r)})}},{key:"render",value:function(){var e,n,r,i,a=this.props,l=a.withTitle,u=a.element,s=c(a,["withTitle","element"]),m=this.state.content,f=(e=s,n=t.propTypes,r=Object.keys(n),i=Object.assign({},e),Object.keys(i).filter(function(e){return-1!==r.indexOf(e)}).forEach(function(e){return delete i[e]}),i);return l&&(f.title=this.getTitle()),o.a.createElement(u||t.globalElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}({dateTime:t.getDatetime(this.props)},f),m)}}],[{key:"getDerivedStateFromProps",value:function(e){return{content:t.getContent(e)}}}]),t}();h(S,"propTypes",{element:a.a.any,date:a.a.oneOfType(d),parse:a.a.oneOfType(v),format:a.a.string,add:a.a.object,subtract:a.a.object,ago:a.a.bool,fromNow:a.a.bool,fromNowDuring:a.a.number,from:a.a.oneOfType(d),toNow:a.a.bool,to:a.a.oneOfType(d),calendar:a.a.oneOfType(b),unix:a.a.bool,utc:a.a.bool,local:a.a.bool,tz:a.a.string,withTitle:a.a.bool,titleFormat:a.a.string,locale:a.a.string,interval:a.a.number,diff:a.a.oneOfType(d),duration:a.a.oneOfType(d),durationFromNow:a.a.bool,unit:a.a.string,decimal:a.a.bool,filter:a.a.func,onChange:a.a.func}),h(S,"defaultProps",{element:null,fromNow:!1,toNow:!1,calendar:!1,ago:!1,unix:!1,utc:!1,local:!1,unit:null,withTitle:!1,decimal:!1,titleFormat:"",interval:6e4,filter:function(e){return e},onChange:function(){}}),h(S,"globalMoment",null),h(S,"globalLocale",null),h(S,"globalLocal",null),h(S,"globalFormat",null),h(S,"globalParse",null),h(S,"globalFilter",null),h(S,"globalElement","time"),h(S,"globalTimezone",null),h(S,"pooledElements",[]),h(S,"pooledTimer",null)}])}); | ||
a=this,l=function(e){var t=!1,n=!1,r="escape years months weeks days hours minutes seconds milliseconds general".split(" "),o=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function i(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function a(e){for(var t="";e;)t+="0",e-=1;return t}function l(e,t,r){var o,i,u,s=t.useToLocaleString,c=t.useGrouping,m=c&&t.grouping.slice(),f=t.maximumSignificantDigits,p=t.minimumIntegerDigits||1,g=t.fractionDigits||0,y=t.groupingSeparator,h=t.decimalSeparator;if(s&&r){var d={minimumIntegerDigits:p,useGrouping:c};if(g&&(d.maximumFractionDigits=g,d.minimumFractionDigits=g),f&&e>0&&(d.maximumSignificantDigits=f),!n){var v=w({},t);v.useGrouping=!1,v.decimalSeparator=".",e=parseFloat(l(e,v),10)}return e.toLocaleString(r,d)}var b=(f?e.toPrecision(f+1):e.toFixed(g+1)).split("e");u=b[1]||"",i=(b=b[0].split("."))[1]||"";var S=(o=b[0]||"").length,T=i.length,_=S+T,x=o+i;(f&&_===f+1||!f&&T===g+1)&&((x=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n<t.length;)n?"9"===t[n]?t[n]="0":(t[n]=(parseInt(t[n],10)+1).toString(),r=!1):(parseInt(t[n],10)<5&&(r=!1),t[n]="0"),n+=1;return r&&t.push("1"),t.reverse().join("")}(x)).length===_+1&&(S+=1),T&&(x=x.slice(0,-1)),o=x.slice(0,S),i=x.slice(S)),f&&(i=i.replace(/0*$/,""));var O=parseInt(u,10);O>0?i.length<=O?(o+=i+=a(O-i.length),i=""):(o+=i.slice(0,O),i=i.slice(O)):O<0&&(i=a(Math.abs(O)-o.length)+o+i,o="0"),f||((i=i.slice(0,g)).length<g&&(i+=a(g-i.length)),o.length<p&&(o=a(p-o.length)+o));var V,D="";if(c)for(b=o;b.length;)m.length&&(V=m.shift()),D&&(D=y+D),D=b.slice(-V)+D,b=b.slice(0,-V);else D=o;return i&&(D=D+h+i),D}function u(e,t){return e.label.length>t.label.length?-1:e.label.length<t.label.length?1:0}var s,c={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:function(e,t,n){return 1===t&&null===n?e:e+e}};function m(e){return"[object Array]"===Object.prototype.toString.call(e)}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=0,o=e&&e.length||0;for("function"!=typeof t&&(n=t,t=function(e){return e===n});r<o;){if(t(e[r]))return e[r];r+=1}}function g(e,t){var n=0,r=e.length;if(e&&r)for(;n<r;){if(!1===t(e[n],n))return;n+=1}}function y(e,t){var n=0,r=e.length,o=[];if(!e||!r)return o;for(;n<r;)o[n]=t(e[n],n),n+=1;return o}function h(e,t){return y(e,function(e){return e[t]})}function d(e){var t=[];return g(e,function(e){e&&t.push(e)}),t}function v(e){var t=[];return g(e,function(e){p(t,e)||t.push(e)}),t}function b(e,t){var n=[];return g(e,function(e){g(t,function(t){e===t&&n.push(e)})}),v(n)}function S(e,t){var n=[];return g(e,function(r,o){if(!t(r))return n=e.slice(o),!1}),n}function w(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function T(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function _(e,t){var n=0,r=e.length;if(!e||!r)return!1;for(;n<r;){if(!0===t(e[n],n))return!0;n+=1}return!1}function x(){var e,t=[].slice.call(arguments),n={};if(g(t,function(t,r){if(!r){if(!m(t))throw"Expected array as the first argument to durationsFormat.";e=t}"string"!=typeof t&&"function"!=typeof t?"number"!=typeof t?f(t)&&w(n,t):n.precision=t:n.template=t}),!e||!e.length)return[];n.returnMomentTypes=!0;var o,i=y(e,function(e){return e.format(n)}),a=b(r,v(h((o=[],g(i,function(e){o=o.concat(e)}),o),"type"))),l=n.largest;return l&&(a=a.slice(0,l)),n.returnMomentTypes=!1,n.outputTypes=a,y(e,function(e){return e.format(n)})}function O(){var n=[].slice.call(arguments),a=w({},this.format.defaults),s=this.asMilliseconds(),x=this.asMonths();"function"==typeof this.isValid&&!1===this.isValid()&&(s=0,x=0);var O=s<0,V=e.duration(Math.abs(s),"milliseconds"),D=e.duration(Math.abs(x),"months");g(n,function(e){"string"!=typeof e&&"function"!=typeof e?"number"!=typeof e?f(e)&&w(a,e):a.precision=e:a.template=e});var L={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},j={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};a.types=r;var M=function(e){return p(r,function(t){return j[t].test(e)})},k=new RegExp(y(r,function(e){return j[e].source}).join("|"),"g");a.duration=this;var P="function"==typeof a.template?a.template.apply(a):a.template,E=a.outputTypes,F=a.returnMomentTypes,I=a.largest,C=[];E||(m(a.stopTrim)&&(a.stopTrim=a.stopTrim.join("")),a.stopTrim&&g(a.stopTrim.match(k),function(e){var t=M(e);"escape"!==t&&"general"!==t&&C.push(t)}));var N=e.localeData();N||(N={}),g(T(c),function(e){"function"!=typeof c[e]?N["_"+e]||(N["_"+e]=c[e]):N[e]||(N[e]=c[e])}),g(T(N._durationTimeTemplates),function(e){P=P.replace("_"+e+"_",N._durationTimeTemplates[e])});var G=a.userLocale||e.locale(),R=a.useLeftUnits,U=a.usePlural,q=a.precision,z=a.forceLength,H=a.useGrouping,W=a.trunc,$=a.useSignificantDigits&&q>0,A=$?a.precision:0,B=A,K=a.minValue,Y=!1,J=a.maxValue,Q=!1,X=a.useToLocaleString,Z=a.groupingSeparator,ee=a.decimalSeparator,te=a.grouping;X=X&&t;var ne=a.trim;m(ne)&&(ne=ne.join(" ")),null===ne&&(I||J||$)&&(ne="all"),null!==ne&&!0!==ne&&"left"!==ne&&"right"!==ne||(ne="large"),!1===ne&&(ne="");var re=function(e){return e.test(ne)},oe=/both/,ie=/^all|[^sm]all/,ae=I>0||_([/large/,oe,ie],re),le=_([/small/,oe,ie],re),ue=_([/mid/,ie],re),se=_([/final/,ie],re),ce=y(P.match(k),function(e,t){var n=M(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&C.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(j.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}}),me={index:0,length:0,token:"",text:"",type:null},fe=[];R&&ce.reverse(),g(ce,function(e){if(e.type)return(me.type||me.text)&&fe.push(me),void(me=e);R?me.text=e.token+me.text:me.text+=e.token}),(me.type||me.text)&&fe.push(me),R&&fe.reverse();var pe=b(r,v(d(h(fe,"type"))));if(!pe.length)return h(fe,"text").join("");pe=y(pe,function(e,t){var n,r=t+1===pe.length,o=!t;n="years"===e||"months"===e?D.as(e):V.as(e);var i=Math.floor(n),l=n-i,u=p(fe,function(t){return e===t.type});return o&&J&&n>J&&(Q=!0),r&&K&&Math.abs(a.duration.as(e))<K&&(Y=!0),o&&null===z&&u.length>1&&(z=!0),V.subtract(i,e),D.subtract(i,e),{rawValue:n,wholeValue:i,decimalValue:r?l:0,isSmallest:r,isLargest:o,type:e,tokenLength:u.length}});var ge,ye=W?Math.floor:Math.round,he=function(e,t){var n=Math.pow(10,t);return ye(e*n)/n},de=!1,ve=!1,be=function(e,t){var n={useGrouping:H,groupingSeparator:Z,decimalSeparator:ee,grouping:te,useToLocaleString:X};return $&&(A<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=A,e.significantDigits=A)),Q&&!ve&&(e.isLargest?(e.wholeValue=J,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),Y&&!ve&&(e.isSmallest?(e.wholeValue=K,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?q<0?e.value=he(e.wholeValue,q):0===q?e.value=ye(e.wholeValue+e.decimalValue):$?(e.value=W?he(e.rawValue,A-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(A-=e.wholeValue.toString().length)):(n.fractionDigits=q,e.value=W?e.wholeValue+he(e.decimalValue,q):e.wholeValue+e.decimalValue):$&&e.wholeValue?(e.value=Math.round(he(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),A-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(z||de)&&(n.minimumIntegerDigits=e.tokenLength,ve&&n.maximumSignificantDigits<e.tokenLength&&delete n.maximumSignificantDigits),!de&&(e.value>0||""===ne||p(C,e.type)||p(E,e.type))&&(de=!0),e.formattedValue=l(e.value,n,G),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=l(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=l(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((pe=d(pe=y(pe,be))).length>1){var Se=function(e){return p(pe,function(t){return t.type===e})};g(o,function(e){var t=Se(e.type);t&&g(e.targets,function(e){var n=Se(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),ve=!0)})})}return ve&&(de=!1,A=B,pe=d(pe=y(pe,be))),!E||Q&&!a.trim?(ae&&(pe=S(pe,function(e){return!e.isSmallest&&!e.wholeValue&&!p(C,e.type)})),I&&pe.length&&(pe=pe.slice(0,I)),le&&pe.length>1&&(ge=function(e){return!e.wholeValue&&!p(C,e.type)&&!e.isLargest},pe=S(pe.slice().reverse(),ge).reverse()),ue&&(pe=d(pe=y(pe,function(e,t){return t>0&&t<pe.length-1&&!e.wholeValue?null:e}))),!se||1!==pe.length||pe[0].wholeValue||!W&&pe[0].isSmallest&&pe[0].rawValue<K||(pe=[])):pe=d(pe=y(pe,function(e){return p(E,function(t){return e.type===t})?e:null})),F?pe:(g(fe,function(e){var t=L[e.type],n=p(pe,function(t){return t.type===e.type});if(t&&n){var r=n.formattedValueEn.split(".");r[0]=parseInt(r[0],10),r[1]?r[1]=parseFloat("0."+r[1],10):r[1]=null;var o=N.durationPluralKey(t,r[0],r[1]),a=function(e,t){var n=[];return g(T(t),function(r){if("_durationLabels"===r.slice(0,15)){var o=r.slice(15).toLowerCase();g(T(t[r]),function(i){i.slice(0,1)===e&&n.push({type:o,key:i,label:t[r][i]})})}}),n}(t,N),l=!1,s={};g(N._durationLabelTypes,function(t){var n=p(a,function(e){return e.type===t.type&&e.key===o});n&&(s[n.type]=n.label,i(e.text,t.string)&&(e.text=e.text.replace(t.string,n.label),l=!0))}),U&&!l&&(a.sort(u),g(a,function(t){return s[t.type]===t.label?!i(e.text,t.label)&&void 0:i(e.text,t.label)?(e.text=e.text.replace(t.label,s[t.type]),!1):void 0}))}}),(fe=y(fe,function(e){if(!e.type)return e.text;var t=p(pe,function(t){return t.type===e.type});if(!t)return"";var n="";return R&&(n+=e.text),(O&&Q||!O&&Y)&&(n+="< ",Q=!1,Y=!1),(O&&Y||!O&&Q)&&(n+="> ",Q=!1,Y=!1),O&&(t.value>0||""===ne||p(C,t.type)||p(E,t.type))&&(n+="-",O=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,R||(n+=e.text),n})).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function V(){var e=this.duration,t=function(t){return e._data[t]},n=p(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function D(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=x,e.duration.fn.format=O,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:V,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",c)}return t=!!((s=(s=!0)&&function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}())&&(s=(s=(s=s&&"1"===1..toLocaleString("en",{minimumIntegerDigits:1}))&&"01"===1..toLocaleString("en",{minimumIntegerDigits:2}))&&"001"===1..toLocaleString("en",{minimumIntegerDigits:3}))&&(s=(s=(s=(s=s&&"100"===99.99.toLocaleString("en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===99.99.toLocaleString("en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===99.99.toLocaleString("en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===99.99.toLocaleString("en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(s=(s=(s=(s=(s=s&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:1}))&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:2}))&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:3}))&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:4}))&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:5}))&&(s=(s=s&&"1,000"===1e3.toLocaleString("en",{useGrouping:!0}))&&"1000"===1e3.toLocaleString("en",{useGrouping:!1}))),n=t&&"3.6"===3.55.toLocaleString("en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1}),D(e),D},o=[n(1)],void 0===(i="function"==typeof(r=l)?r.apply(t,o):r)||(e.exports=i),a&&(a.momentDurationFormatSetup=a.moment?l(a.moment):l)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(0),a=n.n(i),l=n(1),u=n.n(l);n(5);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",function(){return S});var d=[a.a.string,a.a.number,a.a.array,a.a.object],v=[a.a.string,a.a.array],b=[a.a.object,a.a.bool],S=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=m(t).call(this,e),n=!o||"object"!==s(o)&&"function"!=typeof o?f(r):o,h(f(n),"setTimer",function(){var e=n.props.interval;n.clearTimer(),t.pooledTimer||0===e||(n.timer=setInterval(function(){n.update(n.props)},e))}),h(f(n),"getTitle",function(){var e=n.props.titleFormat,r=t.getDatetime(n.props),o=e||t.globalFormat;return r.format(o)}),h(f(n),"clearTimer",function(){!t.pooledTimer&&n.timer&&(clearInterval(n.timer),n.timer=null),t.pooledTimer&&!n.timer&&t.removePooledElement(f(n))}),t.globalMoment||(t.globalMoment=u.a),n.state={content:""},n.timer=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,o.a.Component),g(t,null,[{key:"startPooledTimer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4;t.clearPooledTimer(),t.pooledTimer=setInterval(function(){t.pooledElements.forEach(function(e){0!==e.props.interval&&e.update()})},e)}},{key:"clearPooledTimer",value:function(){t.pooledTimer&&(clearInterval(t.pooledTimer),t.pooledTimer=null,t.pooledElements=[])}},{key:"pushPooledElement",value:function(e){e instanceof t?-1===t.pooledElements.indexOf(e)&&t.pooledElements.push(e):console.error("Element not an instance of Moment.")}},{key:"removePooledElement",value:function(e){var n=t.pooledElements.indexOf(e);-1!==n&&t.pooledElements.splice(n,1)}},{key:"getDatetime",value:function(e){var n=e.utc,r=e.unix,o=e.date,i=e.locale,a=e.parse,l=e.tz,u=e.local;o=o||e.children,a=a||t.globalParse,u=u||t.globalLocal,l=l||t.globalTimezone,i=t.globalLocale?t.globalLocale:i||t.globalMoment.locale();var s=null;return s=n?t.globalMoment.utc(o,a,i):r?t.globalMoment(1e3*o,a,i):t.globalMoment(o,a,i),l?s=s.tz(l):u&&(s=s.local()),s}},{key:"getContent",value:function(e){var n=e.fromNow,r=e.fromNowDuring,o=e.from,i=e.add,a=e.subtract,l=e.toNow,s=e.to,c=e.ago,m=e.calendar,f=e.diff,p=e.duration,g=e.durationFromNow,y=e.unit,h=e.decimal,d=e.format;d=d||t.globalFormat;var v=t.getDatetime(e);i&&v.add(i),a&&v.subtract(a);var b=Boolean(r)&&-v.diff(u()())<r,S="";return S=d&&!b?v.format(d):o?v.from(o,c):n||b?v.fromNow(c):s?v.to(s,c):l?v.toNow(c):m?v.calendar(null,m):f?v.diff(f,y,h):p?v.diff(p):g?u()().diff(v):v.toString(),(p||g)&&(S=(S=u.a.duration(S)).format(d)),S=(t.globalFilter||e.filter)(S)}}]),g(t,[{key:"componentDidMount",value:function(){this.setTimer(),t.pooledTimer&&t.pushPooledElement(this)}},{key:"componentDidUpdate",value:function(e){var t=this.props.interval;e.interval!==t&&this.setTimer()}},{key:"componentWillUnmount",value:function(){this.clearTimer()}},{key:"update",value:function(e){var n=e||this.props,r=n.onChange,o=t.getContent(n);this.setState({content:o},function(){r(o)})}},{key:"render",value:function(){var e,n,r,i,a=this.props,l=a.withTitle,u=a.element,s=c(a,["withTitle","element"]),m=this.state.content,f=(e=s,n=t.propTypes,r=Object.keys(n),i=Object.assign({},e),Object.keys(i).filter(function(e){return-1!==r.indexOf(e)}).forEach(function(e){return delete i[e]}),i);return l&&(f.title=this.getTitle()),o.a.createElement(u||t.globalElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}({dateTime:t.getDatetime(this.props)},f),m)}}],[{key:"getDerivedStateFromProps",value:function(e){return{content:t.getContent(e)}}}]),t}();h(S,"propTypes",{element:a.a.any,date:a.a.oneOfType(d),parse:a.a.oneOfType(v),format:a.a.string,add:a.a.object,subtract:a.a.object,ago:a.a.bool,fromNow:a.a.bool,fromNowDuring:a.a.number,from:a.a.oneOfType(d),toNow:a.a.bool,to:a.a.oneOfType(d),calendar:a.a.oneOfType(b),unix:a.a.bool,utc:a.a.bool,local:a.a.bool,tz:a.a.string,withTitle:a.a.bool,titleFormat:a.a.string,locale:a.a.string,interval:a.a.number,diff:a.a.oneOfType(d),duration:a.a.oneOfType(d),durationFromNow:a.a.bool,unit:a.a.string,decimal:a.a.bool,filter:a.a.func,onChange:a.a.func}),h(S,"defaultProps",{element:null,fromNow:!1,toNow:!1,calendar:!1,ago:!1,unix:!1,utc:!1,local:!1,unit:null,withTitle:!1,decimal:!1,titleFormat:"",interval:6e4,filter:function(e){return e},onChange:function(){}}),h(S,"globalMoment",null),h(S,"globalLocale",null),h(S,"globalLocal",null),h(S,"globalFormat",null),h(S,"globalParse",null),h(S,"globalFilter",null),h(S,"globalElement","time"),h(S,"globalTimezone",null),h(S,"pooledElements",[]),h(S,"pooledTimer",null)}])}); |
{ | ||
"name": "react-moment", | ||
"description": "React component for the moment date library.", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Sean Hickey", |
@@ -351,5 +351,6 @@ import React from 'react'; | ||
update(props) { | ||
const { onChange } = (props || this.props); | ||
const elementProps = (props || this.props); | ||
const { onChange } = elementProps; | ||
const content = Moment.getContent(props); | ||
const content = Moment.getContent(elementProps); | ||
this.setState({ content }, () => { | ||
@@ -356,0 +357,0 @@ onChange(content); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
254331
1448