text: if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
  if (!__coverage__['build/aui-rating-base/aui-rating-base.js']) {
     __coverage__['build/aui-rating-base/aui-rating-base.js'] = {"path":"build/aui-rating-base/aui-rating-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":46}}},"2":{"name":"(anonymous_2)","line":178,"loc":{"start":{"line":178,"column":21},"end":{"line":178,"column":32}}},"3":{"name":"(anonymous_3)","line":219,"loc":{"start":{"line":219,"column":23},"end":{"line":219,"column":35}}},"4":{"name":"(anonymous_4)","line":253,"loc":{"start":{"line":253,"column":18},"end":{"line":253,"column":36}}},"5":{"name":"(anonymous_5)","line":257,"loc":{"start":{"line":257,"column":15},"end":{"line":257,"column":33}}},"6":{"name":"(anonymous_6)","line":278,"loc":{"start":{"line":278,"column":21},"end":{"line":278,"column":32}}},"7":{"name":"(anonymous_7)","line":292,"loc":{"start":{"line":292,"column":18},"end":{"line":292,"column":29}}},"8":{"name":"(anonymous_8)","line":306,"loc":{"start":{"line":306,"column":16},"end":{"line":306,"column":27}}},"9":{"name":"(anonymous_9)","line":325,"loc":{"start":{"line":325,"column":16},"end":{"line":325,"column":27}}},"10":{"name":"(anonymous_10)","line":337,"loc":{"start":{"line":337,"column":24},"end":{"line":337,"column":35}}},"11":{"name":"(anonymous_11)","line":341,"loc":{"start":{"line":341,"column":42},"end":{"line":341,"column":57}}},"12":{"name":"(anonymous_12)","line":354,"loc":{"start":{"line":354,"column":16},"end":{"line":354,"column":32}}},"13":{"name":"(anonymous_13)","line":391,"loc":{"start":{"line":391,"column":16},"end":{"line":391,"column":43}}},"14":{"name":"(anonymous_14)","line":398,"loc":{"start":{"line":398,"column":46},"end":{"line":398,"column":64}}},"15":{"name":"(anonymous_15)","line":413,"loc":{"start":{"line":413,"column":17},"end":{"line":413,"column":32}}},"16":{"name":"(anonymous_16)","line":428,"loc":{"start":{"line":428,"column":29},"end":{"line":428,"column":45}}},"17":{"name":"(anonymous_17)","line":447,"loc":{"start":{"line":447,"column":25},"end":{"line":447,"column":36}}},"18":{"name":"(anonymous_18)","line":474,"loc":{"start":{"line":474,"column":23},"end":{"line":474,"column":34}}},"19":{"name":"(anonymous_19)","line":478,"loc":{"start":{"line":478,"column":26},"end":{"line":478,"column":45}}},"20":{"name":"(anonymous_20)","line":547,"loc":{"start":{"line":547,"column":31},"end":{"line":547,"column":47}}},"21":{"name":"(anonymous_21)","line":565,"loc":{"start":{"line":565,"column":32},"end":{"line":565,"column":48}}},"22":{"name":"(anonymous_22)","line":581,"loc":{"start":{"line":581,"column":29},"end":{"line":581,"column":40}}},"23":{"name":"(anonymous_23)","line":594,"loc":{"start":{"line":594,"column":30},"end":{"line":594,"column":46}}},"24":{"name":"(anonymous_24)","line":610,"loc":{"start":{"line":610,"column":30},"end":{"line":610,"column":46}}},"25":{"name":"(anonymous_25)","line":627,"loc":{"start":{"line":627,"column":29},"end":{"line":627,"column":40}}},"26":{"name":"(anonymous_26)","line":642,"loc":{"start":{"line":642,"column":28},"end":{"line":642,"column":50}}},"27":{"name":"(anonymous_27)","line":683,"loc":{"start":{"line":683,"column":22},"end":{"line":683,"column":33}}},"28":{"name":"(anonymous_28)","line":697,"loc":{"start":{"line":697,"column":25},"end":{"line":697,"column":36}}},"29":{"name":"(anonymous_29)","line":711,"loc":{"start":{"line":711,"column":16},"end":{"line":711,"column":37}}},"30":{"name":"(anonymous_30)","line":737,"loc":{"start":{"line":737,"column":23},"end":{"line":737,"column":34}}},"31":{"name":"(anonymous_31)","line":751,"loc":{"start":{"line":751,"column":22},"end":{"line":751,"column":33}}},"32":{"name":"(anonymous_32)","line":764,"loc":{"start":{"line":764,"column":23},"end":{"line":764,"column":39}}},"33":{"name":"(anonymous_33)","line":777,"loc":{"start":{"line":777,"column":27},"end":{"line":777,"column":43}}},"34":{"name":"(anonymous_34)","line":799,"loc":{"start":{"line":799,"column":30},"end":{"line":799,"column":46}}},"35":{"name":"(anonymous_35)","line":817,"loc":{"start":{"line":817,"column":31},"end":{"line":817,"column":47}}},"36":{"name":"(anonymous_36)","line":836,"loc":{"start":{"line":836,"column":24},"end":{"line":836,"column":35}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":854,"column":3}},"2":{"start":{"line":10,"column":0},"end":{"line":25,"column":65}},"3":{"start":{"line":43,"column":0},"end":{"line":840,"column":3}},"4":{"start":{"line":179,"column":16},"end":{"line":179,"column":48}},"5":{"start":{"line":220,"column":16},"end":{"line":220,"column":46}},"6":{"start":{"line":254,"column":12},"end":{"line":254,"column":36}},"7":{"start":{"line":258,"column":12},"end":{"line":258,"column":64}},"8":{"start":{"line":260,"column":12},"end":{"line":262,"column":13}},"9":{"start":{"line":261,"column":16},"end":{"line":261,"column":40}},"10":{"start":{"line":279,"column":12},"end":{"line":279,"column":32}},"11":{"start":{"line":281,"column":12},"end":{"line":281,"column":44}},"12":{"start":{"line":283,"column":12},"end":{"line":283,"column":63}},"13":{"start":{"line":293,"column":12},"end":{"line":293,"column":32}},"14":{"start":{"line":295,"column":12},"end":{"line":295,"column":43}},"15":{"start":{"line":296,"column":12},"end":{"line":296,"column":36}},"16":{"start":{"line":297,"column":12},"end":{"line":297,"column":39}},"17":{"start":{"line":307,"column":12},"end":{"line":307,"column":32}},"18":{"start":{"line":309,"column":12},"end":{"line":309,"column":37}},"19":{"start":{"line":311,"column":12},"end":{"line":316,"column":15}},"20":{"start":{"line":326,"column":12},"end":{"line":326,"column":32}},"21":{"start":{"line":328,"column":12},"end":{"line":328,"column":37}},"22":{"start":{"line":329,"column":12},"end":{"line":329,"column":36}},"23":{"start":{"line":338,"column":12},"end":{"line":339,"column":56}},"24":{"start":{"line":341,"column":12},"end":{"line":345,"column":15}},"25":{"start":{"line":342,"column":16},"end":{"line":342,"column":48}},"26":{"start":{"line":343,"column":16},"end":{"line":343,"column":51}},"27":{"start":{"line":344,"column":16},"end":{"line":344,"column":50}},"28":{"start":{"line":355,"column":12},"end":{"line":357,"column":52}},"29":{"start":{"line":360,"column":12},"end":{"line":362,"column":13}},"30":{"start":{"line":361,"column":16},"end":{"line":361,"column":27}},"31":{"start":{"line":364,"column":12},"end":{"line":364,"column":49}},"32":{"start":{"line":366,"column":12},"end":{"line":369,"column":71}},"33":{"start":{"line":371,"column":12},"end":{"line":371,"column":43}},"34":{"start":{"line":373,"column":12},"end":{"line":373,"column":41}},"35":{"start":{"line":374,"column":12},"end":{"line":374,"column":41}},"36":{"start":{"line":376,"column":12},"end":{"line":376,"column":58}},"37":{"start":{"line":378,"column":12},"end":{"line":378,"column":53}},"38":{"start":{"line":379,"column":12},"end":{"line":379,"column":53}},"39":{"start":{"line":392,"column":12},"end":{"line":393,"column":56}},"40":{"start":{"line":395,"column":12},"end":{"line":395,"column":38}},"41":{"start":{"line":397,"column":12},"end":{"line":403,"column":13}},"42":{"start":{"line":398,"column":16},"end":{"line":402,"column":19}},"43":{"start":{"line":399,"column":20},"end":{"line":399,"column":62}},"44":{"start":{"line":400,"column":20},"end":{"line":400,"column":57}},"45":{"start":{"line":401,"column":20},"end":{"line":401,"column":53}},"46":{"start":{"line":414,"column":12},"end":{"line":414,"column":32}},"47":{"start":{"line":416,"column":12},"end":{"line":416,"column":58}},"48":{"start":{"line":429,"column":12},"end":{"line":430,"column":50}},"49":{"start":{"line":435,"column":12},"end":{"line":435,"column":68}},"50":{"start":{"line":448,"column":12},"end":{"line":452,"column":40}},"51":{"start":{"line":454,"column":12},"end":{"line":454,"column":48}},"52":{"start":{"line":456,"column":12},"end":{"line":463,"column":13}},"53":{"start":{"line":457,"column":16},"end":{"line":462,"column":18}},"54":{"start":{"line":465,"column":12},"end":{"line":465,"column":56}},"55":{"start":{"line":475,"column":12},"end":{"line":475,"column":32}},"56":{"start":{"line":478,"column":12},"end":{"line":485,"column":14}},"57":{"start":{"line":479,"column":16},"end":{"line":484,"column":19}},"58":{"start":{"line":495,"column":12},"end":{"line":498,"column":14}},"59":{"start":{"line":508,"column":12},"end":{"line":511,"column":14}},"60":{"start":{"line":521,"column":12},"end":{"line":524,"column":14}},"61":{"start":{"line":534,"column":12},"end":{"line":537,"column":14}},"62":{"start":{"line":548,"column":12},"end":{"line":549,"column":42}},"63":{"start":{"line":551,"column":12},"end":{"line":555,"column":15}},"64":{"start":{"line":566,"column":12},"end":{"line":567,"column":50}},"65":{"start":{"line":569,"column":12},"end":{"line":571,"column":14}},"66":{"start":{"line":582,"column":12},"end":{"line":582,"column":32}},"67":{"start":{"line":584,"column":12},"end":{"line":584,"column":59}},"68":{"start":{"line":595,"column":12},"end":{"line":597,"column":64}},"69":{"start":{"line":599,"column":12},"end":{"line":599,"column":53}},"70":{"start":{"line":611,"column":12},"end":{"line":612,"column":25}},"71":{"start":{"line":614,"column":12},"end":{"line":614,"column":38}},"72":{"start":{"line":616,"column":12},"end":{"line":618,"column":13}},"73":{"start":{"line":617,"column":16},"end":{"line":617,"column":50}},"74":{"start":{"line":628,"column":12},"end":{"line":633,"column":71}},"75":{"start":{"line":635,"column":12},"end":{"line":667,"column":13}},"76":{"start":{"line":636,"column":16},"end":{"line":636,"column":77}},"77":{"start":{"line":638,"column":16},"end":{"line":638,"column":43}},"78":{"start":{"line":640,"column":16},"end":{"line":640,"column":71}},"79":{"start":{"line":642,"column":16},"end":{"line":663,"column":19}},"80":{"start":{"line":643,"column":20},"end":{"line":643,"column":44}},"81":{"start":{"line":644,"column":20},"end":{"line":644,"column":35}},"82":{"start":{"line":646,"column":20},"end":{"line":656,"column":21}},"83":{"start":{"line":649,"column":24},"end":{"line":649,"column":74}},"84":{"start":{"line":651,"column":24},"end":{"line":655,"column":25}},"85":{"start":{"line":654,"column":28},"end":{"line":654,"column":59}},"86":{"start":{"line":658,"column":20},"end":{"line":662,"column":22}},"87":{"start":{"line":665,"column":16},"end":{"line":665,"column":36}},"88":{"start":{"line":666,"column":16},"end":{"line":666,"column":36}},"89":{"start":{"line":669,"column":12},"end":{"line":672,"column":13}},"90":{"start":{"line":670,"column":16},"end":{"line":670,"column":60}},"91":{"start":{"line":671,"column":16},"end":{"line":671,"column":53}},"92":{"start":{"line":674,"column":12},"end":{"line":674,"column":53}},"93":{"start":{"line":684,"column":12},"end":{"line":684,"column":32}},"94":{"start":{"line":686,"column":12},"end":{"line":688,"column":14}},"95":{"start":{"line":698,"column":12},"end":{"line":700,"column":52}},"96":{"start":{"line":704,"column":12},"end":{"line":708,"column":13}},"97":{"start":{"line":705,"column":16},"end":{"line":705,"column":54}},"98":{"start":{"line":707,"column":16},"end":{"line":707,"column":51}},"99":{"start":{"line":710,"column":12},"end":{"line":727,"column":14}},"100":{"start":{"line":712,"column":20},"end":{"line":717,"column":79}},"101":{"start":{"line":720,"column":20},"end":{"line":722,"column":21}},"102":{"start":{"line":721,"column":24},"end":{"line":721,"column":61}},"103":{"start":{"line":723,"column":20},"end":{"line":725,"column":21}},"104":{"start":{"line":724,"column":24},"end":{"line":724,"column":73}},"105":{"start":{"line":728,"column":12},"end":{"line":728,"column":49}},"106":{"start":{"line":738,"column":12},"end":{"line":739,"column":68}},"107":{"start":{"line":741,"column":12},"end":{"line":741,"column":57}},"108":{"start":{"line":742,"column":12},"end":{"line":742,"column":30}},"109":{"start":{"line":752,"column":12},"end":{"line":753,"column":50}},"110":{"start":{"line":755,"column":12},"end":{"line":755,"column":54}},"111":{"start":{"line":765,"column":12},"end":{"line":765,"column":32}},"112":{"start":{"line":767,"column":12},"end":{"line":767,"column":59}},"113":{"start":{"line":778,"column":12},"end":{"line":779,"column":42}},"114":{"start":{"line":781,"column":12},"end":{"line":789,"column":13}},"115":{"start":{"line":782,"column":16},"end":{"line":785,"column":19}},"116":{"start":{"line":788,"column":16},"end":{"line":788,"column":42}},"117":{"start":{"line":800,"column":12},"end":{"line":800,"column":32}},"118":{"start":{"line":802,"column":12},"end":{"line":807,"column":13}},"119":{"start":{"line":803,"column":16},"end":{"line":806,"column":19}},"120":{"start":{"line":818,"column":12},"end":{"line":818,"column":32}},"121":{"start":{"line":820,"column":12},"end":{"line":825,"column":13}},"122":{"start":{"line":821,"column":16},"end":{"line":824,"column":19}},"123":{"start":{"line":837,"column":12},"end":{"line":837,"column":32}},"124":{"start":{"line":842,"column":0},"end":{"line":842,"column":18}},"125":{"start":{"line":843,"column":0},"end":{"line":843,"column":22}}},"branchMap":{"1":{"line":220,"type":"binary-expr","locations":[{"start":{"line":220,"column":23},"end":{"line":220,"column":34}},{"start":{"line":220,"column":39},"end":{"line":220,"column":44}}]},"2":{"line":260,"type":"if","locations":[{"start":{"line":260,"column":12},"end":{"line":260,"column":12}},{"start":{"line":260,"column":12},"end":{"line":260,"column":12}}]},"3":{"line":360,"type":"if","locations":[{"start":{"line":360,"column":12},"end":{"line":360,"column":12}},{"start":{"line":360,"column":12},"end":{"line":360,"column":12}}]},"4":{"line":360,"type":"binary-expr","locations":[{"start":{"line":360,"column":16},"end":{"line":360,"column":24}},{"start":{"line":360,"column":29},"end":{"line":360,"column":47}}]},"5":{"line":368,"type":"cond-expr","locations":[{"start":{"line":368,"column":44},"end":{"line":368,"column":54}},{"start":{"line":368,"column":57},"end":{"line":368,"column":59}}]},"6":{"line":369,"type":"cond-expr","locations":[{"start":{"line":369,"column":44},"end":{"line":369,"column":54}},{"start":{"line":369,"column":57},"end":{"line":369,"column":70}}]},"7":{"line":397,"type":"if","locations":[{"start":{"line":397,"column":12},"end":{"line":397,"column":12}},{"start":{"line":397,"column":12},"end":{"line":397,"column":12}}]},"8":{"line":399,"type":"binary-expr","locations":[{"start":{"line":399,"column":34},"end":{"line":399,"column":43}},{"start":{"line":399,"column":47},"end":{"line":399,"column":60}}]},"9":{"line":435,"type":"binary-expr","locations":[{"start":{"line":435,"column":19},"end":{"line":435,"column":44}},{"start":{"line":435,"column":48},"end":{"line":435,"column":67}}]},"10":{"line":460,"type":"cond-expr","locations":[{"start":{"line":460,"column":45},"end":{"line":460,"column":47}},{"start":{"line":460,"column":50},"end":{"line":460,"column":51}}]},"11":{"line":616,"type":"if","locations":[{"start":{"line":616,"column":12},"end":{"line":616,"column":12}},{"start":{"line":616,"column":12},"end":{"line":616,"column":12}}]},"12":{"line":635,"type":"if","locations":[{"start":{"line":635,"column":12},"end":{"line":635,"column":12}},{"start":{"line":635,"column":12},"end":{"line":635,"column":12}}]},"13":{"line":636,"type":"binary-expr","locations":[{"start":{"line":636,"column":28},"end":{"line":636,"column":37}},{"start":{"line":636,"column":41},"end":{"line":636,"column":76}}]},"14":{"line":646,"type":"if","locations":[{"start":{"line":646,"column":20},"end":{"line":646,"column":20}},{"start":{"line":646,"column":20},"end":{"line":646,"column":20}}]},"15":{"line":651,"type":"if","locations":[{"start":{"line":651,"column":24},"end":{"line":651,"column":24}},{"start":{"line":651,"column":24},"end":{"line":651,"column":24}}]},"16":{"line":660,"type":"binary-expr","locations":[{"start":{"line":660,"column":31},"end":{"line":660,"column":57}},{"start":{"line":660,"column":61},"end":{"line":660,"column":66}}]},"17":{"line":669,"type":"if","locations":[{"start":{"line":669,"column":12},"end":{"line":669,"column":12}},{"start":{"line":669,"column":12},"end":{"line":669,"column":12}}]},"18":{"line":704,"type":"if","locations":[{"start":{"line":704,"column":12},"end":{"line":704,"column":12}},{"start":{"line":704,"column":12},"end":{"line":704,"column":12}}]},"19":{"line":704,"type":"binary-expr","locations":[{"start":{"line":704,"column":16},"end":{"line":704,"column":25}},{"start":{"line":704,"column":29},"end":{"line":704,"column":45}}]},"20":{"line":717,"type":"binary-expr","locations":[{"start":{"line":717,"column":32},"end":{"line":717,"column":42}},{"start":{"line":717,"column":46},"end":{"line":717,"column":67}},{"start":{"line":717,"column":71},"end":{"line":717,"column":78}}]},"21":{"line":720,"type":"if","locations":[{"start":{"line":720,"column":20},"end":{"line":720,"column":20}},{"start":{"line":720,"column":20},"end":{"line":720,"column":20}}]},"22":{"line":720,"type":"binary-expr","locations":[{"start":{"line":720,"column":24},"end":{"line":720,"column":29}},{"start":{"line":720,"column":33},"end":{"line":720,"column":58}}]},"23":{"line":723,"type":"if","locations":[{"start":{"line":723,"column":20},"end":{"line":723,"column":20}},{"start":{"line":723,"column":20},"end":{"line":723,"column":20}}]},"24":{"line":723,"type":"binary-expr","locations":[{"start":{"line":723,"column":24},"end":{"line":723,"column":45}},{"start":{"line":723,"column":50},"end":{"line":723,"column":95}}]},"25":{"line":767,"type":"binary-expr","locations":[{"start":{"line":767,"column":19},"end":{"line":767,"column":52}},{"start":{"line":767,"column":56},"end":{"line":767,"column":58}}]},"26":{"line":781,"type":"if","locations":[{"start":{"line":781,"column":12},"end":{"line":781,"column":12}},{"start":{"line":781,"column":12},"end":{"line":781,"column":12}}]},"27":{"line":802,"type":"if","locations":[{"start":{"line":802,"column":12},"end":{"line":802,"column":12}},{"start":{"line":802,"column":12},"end":{"line":802,"column":12}}]},"28":{"line":820,"type":"if","locations":[{"start":{"line":820,"column":12},"end":{"line":820,"column":12}},{"start":{"line":820,"column":12},"end":{"line":820,"column":12}}]}},"code":["(function () { YUI.add('aui-rating-base', function (A, NAME) {","","/**"," * The Rating Utility - The Star Rating creates a non-obstrusive star rating"," * control, could be based on a set of radio input boxes."," *"," * @module aui-rating"," */","","var Lang = A.Lang,","    isBoolean = Lang.isBoolean,","    isNumber = Lang.isNumber,","    isString = Lang.isString,","","    ENTER = 13,","","    getCN = A.getClassName,","","    CSS_ICON = getCN('glyphicon'),","    CSS_STAR = getCN('glyphicon', 'star'),","    CSS_STAR_EMPTY = getCN('glyphicon', 'star', 'empty'),","    CSS_RATING_LABEL = getCN('rating', 'label'),","","    TPL_ELEMENT = '<a class=\"{cssClasses}\" tabindex=\"{tabindex}\"></a>',","    TPL_LABEL = '<span class=\"' + CSS_RATING_LABEL + '\"></span>';","","/**"," * A base class for Rating, providing:"," *"," * - A non-obstrusive star rating control"," * - Could be based on a set of radio input boxes"," *"," * Check the [live demo](http://alloyui.com/examples/rating/)."," *"," * @class A.Rating"," * @extends A.Component"," * @param {Object} config Object literal specifying widget configuration"," *     properties."," * @constructor"," * @include http://alloyui.com/examples/rating/basic-markup.html"," * @include http://alloyui.com/examples/rating/basic.js"," */","var Rating = A.Component.create({","    /**","     * Static property provides a string to identify the class.","     *","     * @property NAME","     * @type String","     * @static","     */","    NAME: 'rating',","","    /**","     * Static property used to define the default attribute","     * configuration for the Rating.","     *","     * @property ATTRS","     * @type Object","     * @static","     */","    ATTRS: {","","        /**","         * Whether the Rating is disabled or not.","         * Disabled Ratings don't allow hover or click,","         * just display selected stars.","         *","         * @attribute disabled","         * @default false","         * @type Boolean","         */","        disabled: {","            value: false,","            validator: isBoolean","        },","","        /**","         * If `true` could be reseted","         * (i.e., have no values selected).","         *","         * @attribute canReset","         * @default true","         * @type Boolean","         */","        canReset: {","            value: true,","            validator: isBoolean","        },","","        /**","         * CSS classes applied on Rating.","         *","         * @attribute cssClasses","         * @type Object","         */","        cssClasses: {","            value: {","                element: [CSS_ICON, CSS_STAR_EMPTY].join(' '),","                hover: [CSS_ICON, CSS_STAR].join(' '),","                off: [CSS_ICON, CSS_STAR_EMPTY].join(' '),","                on: [CSS_ICON, CSS_STAR].join(' ')","            }","        },","","        /**","         * The number of selected starts when the Rating render.","         *","         * @attribute defaultSelected","         * @default 0","         * @writeOnce","         * @type Number","         */","        defaultSelected: {","            value: 0,","            writeOnce: true,","            validator: isNumber","        },","","        /**","         * [NodeList](NodeList.html) of elements used on the","         * Rating. Each element is one Star.","         *","         * @attribute elements","         * @writeOnce","         * @readOnly","         * @type NodeList","         */","        elements: {","            validator: A.Lang.isNodeList","        },","","        /**","         * Hidden input to handle the selected value. This hidden input","         * replace the radio elements and keep the same name.","         *","         * @attribute hiddenInput","         * @type Node","         */","        hiddenInput: {","            validator: A.Lang.isNode","        },","","        /**","         * Name of the [hiddenInput](A.Rating.html#attr_hiddenInput) element. If","         * not specified will use the name of the replaced radio.","         *","         * @attribute inputName","         * @default ''","         * @type String","         */","        inputName: {","            value: '',","            validator: isString","        },","","        /**","         * Label to be displayed with the Rating elements.","         *","         * @attribute label","         * @default ''","         * @type String","         */","        label: {","            value: '',","            validator: isString","        },","","        /**","         * DOM Node to display the text of the StarRating. If not","         * specified try to query using HTML_PARSER an element inside","         * boundingBox which matches `aui-rating-label-element`.","         *","         * @attribute labelNode","         * @default Generated div element.","         * @type String","         */","        labelNode: {","            valueFn: function() {","                return A.Node.create(TPL_LABEL);","            },","            validator: A.Lang.isNode","        },","","        /**","         * Stores the index of the selected element.","         *","         * @attribute selectedIndex","         * @default -1","         * @type Number","         */","        selectedIndex: {","            value: -1,","            validator: isNumber","        },","","        /**","         * If `true` will extract the value of the","         * `title` attribute on the radio, and use it on the","         * generated Rating elements.","         *","         * @attribute showTitle","         * @default true","         * @type boolean","         */","        showTitle: {","            value: true,","            validator: isBoolean","        },","","        /**","         * Number of Rating elements to be displayed.","         *","         * @attribute size","         * @default 5","         * @type Number","         */","        size: {","            value: 5,","            validator: function(v) {","                return isNumber(v) && (v > 0);","            }","        },","","        /**","         * If set, will be used when there is no DOM `title` on the","         * radio elements.","         *","         * @attribute title","         * @default null","         * @type String","         */","        title: null,","","        /**","         * Stores the value of the current selected Rating element.","         *","         * @attribute value","         * @default null","         * @type String","         */","        value: null","    },","","    /**","     * Object hash, defining how attribute values are to be parsed from","     * markup contained in the widget's content box.","     *","     * @property HTML_PARSER","     * @type Object","     * @static","     */","    HTML_PARSER: {","        elements: function(srcNode) {","            return srcNode.all('a');","        },","","        label: function(srcNode) {","            var labelNode = srcNode.one('.' + CSS_RATING_LABEL);","","            if (labelNode) {","                return labelNode.html();","            }","        },","","        labelNode: '.' + CSS_RATING_LABEL","    },","","    prototype: {","        BOUNDING_TEMPLATE: '<span></span>',","        CONTENT_TEMPLATE: '<span></span>',","","        /**","         * Construction logic executed during Rating instantiation. Lifecycle.","         *","         * @method initializer","         * @protected","         */","        initializer: function() {","            var instance = this;","","            instance.inputElementsData = {};","","            instance.after('labelChange', this._afterSetLabel);","        },","","        /**","         * Create the DOM structure for the Rating. Lifecycle.","         *","         * @method renderUI","         * @protected","         */","        renderUI: function() {","            var instance = this;","","            instance._parseInputElements();","            instance._renderLabel();","            instance._renderElements();","        },","","        /**","         * Bind the events on the Rating UI. Lifecycle.","         *","         * @method bindUI","         * @protected","         */","        bindUI: function() {","            var instance = this;","","            instance._createEvents();","","            instance.on({","                click: instance._handleClickEvent,","                keypress: instance._handleKeyPressEvent,","                mouseover: instance._handleMouseOverEvent,","                mouseout: instance._handleMouseOutEvent","            });","        },","","        /**","         * Sync the Rating UI. Lifecycle.","         *","         * @method syncUI","         * @protected","         */","        syncUI: function() {","            var instance = this;","","            instance._syncElements();","            instance._syncLabelUI();","        },","","        /**","         * Clear all selected starts to the default state.","         *","         * @method clearSelection","         */","        clearSelection: function() {","            var instance = this,","                cssClasses = instance.get('cssClasses');","","            instance.get('elements').each(function(node) {","                node.removeClass(cssClasses.on);","                node.removeClass(cssClasses.hover);","                node.addClass(cssClasses.element);","            });","        },","","        /**","         * Select the `index` Rating element.","         *","         * @method select","         * @param {Number} index Index to be selected","         */","        select: function(index) {","            var instance = this,","                oldIndex = instance.get('selectedIndex'),","                canReset = instance.get('canReset');","","            // clear selection when the selected element is clicked","            if (canReset && (oldIndex === index)) {","                index = -1;","            }","","            instance.set('selectedIndex', index);","","            var selectedIndex = instance.get('selectedIndex'),","                data = instance._getInputData(selectedIndex),","                title = ('title' in data) ? data.title : '',","                value = ('value' in data) ? data.value : selectedIndex;","","            instance.fillTo(selectedIndex);","","            instance.set('title', title);","            instance.set('value', value);","","            var hiddenInput = instance.get('hiddenInput');","","            hiddenInput.setAttribute('title', title);","            hiddenInput.setAttribute('value', value);","        },","","        /**","         * Add the `className` on the the `index` element","         * and all the previous Rating elements.","         *","         * @method fillTo","         * @param {Number} index Index to be selected","         * @param {String} className Class name to be applied when fill the","         *     Rating elements","         */","        fillTo: function(index, className) {","            var instance = this,","                cssClasses = instance.get('cssClasses');","","            instance.clearSelection();","","            if (index >= 0) {","                instance.get('elements').some(function(node, i) {","                    node.addClass(className || cssClasses.on);","                    node.removeClass(cssClasses.element);","                    return (i === Math.round(index));","                });","            }","        },","","        /**","         * Find the index of the `elem`.","         *","         * @method indexOf","         * @param {Node} elem Rating element","         * @return {Number}","         */","        indexOf: function(elem) {","            var instance = this;","","            return instance.get('elements').indexOf(elem);","        },","","        /**","         * Check if the Rating element can fire the custom events. Disabled","         * elements won't fire nothing.","         *","         * @method _canFireCustomEvent","         * @param {EventFacade} event","         * @protected","         * @return {Boolean}","         */","        _canFireCustomEvent: function(event) {","            var instance = this,","                domTarget = event.domEvent.target;","","            // checks if the widget is not disabled and if the dom event is","            // firing with a item as target do not fire custom events for other","            // elements into the boundingBox","            return !instance.get('disabled') && domTarget.test('a');","        },","","        /**","         * Create rating elements based on the `size`","         * attribute. It's only invoked when the HTML_PARSER does not find","         * nothing.","         *","         * @method _createElements","         * @protected","         * @return {NodeList}","         */","        _createElements: function() {","            var instance = this,","                cssClasses = instance.get('cssClasses'),","                disabled,","                elements = [],","                size = this.get('size');","","            disabled = instance.get('disabled');","","            for (var i = 0; i < size; i++) {","                elements.push(","                    Lang.sub(TPL_ELEMENT, {","                        cssClasses: cssClasses.element,","                        tabindex: disabled ? -1 : 0","                    })","                );","            }","","            return A.NodeList.create(elements.join(''));","        },","","        /**","         * Create the custom events.","         *","         * @method _createEvents","         * @protected","         */","        _createEvents: function() {","            var instance = this;","","            // create publish function for kweight optimization","            var publish = function(name, fn) {","                instance.publish(name, {","                    defaultFn: fn,","                    queuable: false,","                    emitFacade: true,","                    bubbles: true","                });","            };","","            /**","             * Handle the itemClick event.","             *","             * @event itemClick","             * @preventable _defRatingItemClickFn","             * @param {EventFacade} event The itemClick event.","             * @type {EventCustom}","             */","            publish(","                'itemClick',","                this._defRatingItemClickFn","            );","","            /**","             * Handle the itemSelect event.","             *","             * @event itemSelect","             * @preventable _defRatingItemSelectFn","             * @param {EventFacade} event The itemSelect event.","             * @type {EventCustom}","             */","            publish(","                'itemSelect',","                this._defRatingItemSelectFn","            );","","            /**","             * Handle the itemOver event.","             *","             * @event itemSelect","             * @preventable _defRatingItemOverFn","             * @param {EventFacade} event The itemOver event.","             * @type {EventCustom}","             */","            publish(","                'itemOver',","                this._defRatingItemOverFn","            );","","            /**","             * Handle the itemOut event.","             *","             * @event itemOut","             * @preventable _defRatingItemOutFn","             * @param {EventFacade} event The itemOut event.","             * @type {EventCustom}","             */","            publish(","                'itemOut',","                this._defRatingItemOutFn","            );","        },","","        /**","         * Fire the itemClick event.","         *","         * @method _defRatingItemClickFn","         * @param {EventFacade} event itemClick event facade","         * @protected","         */","        _defRatingItemClickFn: function(event) {","            var instance = this,","                domEvent = event.domEvent;","","            instance.fire('itemSelect', {","                delegateEvent: event,","                domEvent: domEvent,","                ratingItem: domEvent.target","            });","        },","","        /**","         * Fire the itemSelect event.","         *","         * @method _defRatingItemSelectFn","         * @param {EventFacade} event itemSelect event facade","         * @protected","         */","        _defRatingItemSelectFn: function(event) {","            var instance = this,","                domTarget = event.domEvent.target;","","            instance.select(","                instance.indexOf(domTarget)","            );","        },","","        /**","         * Fire the itemOut event.","         *","         * @method _defRatingItemOutFn","         * @param {EventFacade} event itemOut event facade","         * @protected","         */","        _defRatingItemOutFn: function() {","            var instance = this;","","            instance.fillTo(instance.get('selectedIndex'));","        },","","        /**","         * Fire the itemOver event.","         *","         * @method _defRatingItemOverFn","         * @param {EventFacade} event itemOver event facade","         * @protected","         */","        _defRatingItemOverFn: function(event) {","            var instance = this,","                cssClasses = instance.get('cssClasses'),","                index = instance.indexOf(event.domEvent.target);","","            instance.fillTo(index, cssClasses.hover);","        },","","        /**","         * Handle the keypress event. If the pressed key is Enter, fires `itemClick` event,","         * i.e. does the same as if the user has clicked with the mouse.","         *","         * @method _handleKeyPressEvent","         * @param {EventFacade} event","         * @protected","         */","        _handleKeyPressEvent: function(event) {","            var instance = this,","                domEvent;","","            domEvent = event.domEvent;","","            if (domEvent.charCode === ENTER) {","                instance._handleClickEvent(event);","            }","        },","","        /**","         * Parse the HTML radio elements from the markup to be Rating elements.","         *","         * @method _parseInputElements","         * @protected","         */","        _parseInputElements: function() {","            var instance = this,","                boundingBox = instance.get('boundingBox'),","                inputs = boundingBox.all('input'),","                size = inputs.size(),","                inputName = instance.get('inputName'),","                hiddenInput = A.Node.create('<input type=\"hidden\" />');","","            if (size > 0) {","                inputName = inputName || inputs.item(0).getAttribute('name');","","                instance.set('size', size);","","                var labels = boundingBox.getElementsByTagName('label');","","                inputs.each(function(node, index) {","                    var id = node.get('id');","                    var label = '';","","                    if (id) {","                        // for a11y parse the <label> elments information","                        // checking if the node has a <label>","                        var labelEl = labels.filter('[for=\"' + id + '\"]');","","                        if (labelEl.size()) {","                            // if there is, extract the content of the label to","                            // use as content of the anchors...","                            label = labelEl.item(0).html();","                        }","                    }","","                    instance.inputElementsData[index] = {","                        content: label,","                        value: node.getAttribute('value') || index,","                        title: node.getAttribute('title')","                    };","                });","","                labels.remove(true);","                inputs.remove(true);","            }","","            if (inputName) {","                hiddenInput.setAttribute('name', inputName);","                boundingBox.appendChild(hiddenInput);","            }","","            instance.set('hiddenInput', hiddenInput);","        },","","        /**","         * Render the Rating label.","         *","         * @method _renderLabel","         * @protected","         */","        _renderLabel: function() {","            var instance = this;","","            instance.get('contentBox').setContent(","                instance.get('labelNode')","            );","        },","","        /**","         * Render the Rating elements.","         *","         * @method _renderElements","         * @protected","         */","        _renderElements: function() {","            var instance = this,","                contentBox = instance.get('contentBox'),","                elements = instance.get('elements');","","            // if there are no elements in the markup, create them based on the","            // size attribute","            if (!elements || !elements.size()) {","                elements = instance._createElements();","","                instance.set('elements', elements);","            }","","            elements.each(","                function(element, i) {","                    var data = instance._getInputData(i),","                        content = data.content,","                        // try to use the pulled title data from the dom,","                        // otherwise use the TITLE attr, in the last case use","                        // the content","                        title = data.title || instance.get('title') || content;","","                    // setting the title","                    if (title && instance.get('showTitle')) {","                        element.setAttribute('title', title);","                    }","                    if (!element.attr('href') && (element.get('nodeName').toLowerCase() === 'a')) {","                        element.setAttribute('onclick', 'return false;');","                    }","                }","            );","            contentBox.append(elements.getDOM());","        },","","        /**","         * Sync the Rating elements.","         *","         * @method _syncElements","         * @protected","         */","        _syncElements: function() {","            var instance = this,","                selectedIndex = instance.get('defaultSelected') - 1;","","            instance.set('selectedIndex', selectedIndex);","            instance.select();","        },","","        /**","         * Sync the Rating label UI.","         *","         * @method _syncLabelUI","         * @protected","         */","        _syncLabelUI: function() {","            var instance = this,","                labelText = instance.get('label');","","            instance.get('labelNode').html(labelText);","        },","","        /**","         * Get the `index` element input data stored on `inputElementsData`.","         *","         * @method _getInputData","         * @protected","         */","        _getInputData: function(index) {","            var instance = this;","","            return instance.inputElementsData[index] || {};","        },","","        /**","         * Fire the click event.","         *","         * @method _handleClickEvent","         * @param {EventFacade} event Click event facade","         * @protected","         */","        _handleClickEvent: function(event) {","            var instance = this,","                domEvent = event.domEvent;","","            if (instance._canFireCustomEvent(event)) {","                instance.fire('itemClick', {","                    delegateEvent: event,","                    domEvent: domEvent","                });","            }","            else {","                domEvent.preventDefault();","            }","        },","","        /**","         * Fire the mouseOut event.","         *","         * @method _handleMouseOutEvent","         * @param {EventFacade} event mouseOut event facade","         * @protected","         */","        _handleMouseOutEvent: function(event) {","            var instance = this;","","            if (instance._canFireCustomEvent(event)) {","                instance.fire('itemOut', {","                    delegateEvent: event,","                    domEvent: event.domEvent","                });","            }","        },","","        /**","         * Fire the mouseOver event.","         *","         * @method _handleMouseOverEvent","         * @param {EventFacade} event mouseOver event facade","         * @protected","         */","        _handleMouseOverEvent: function(event) {","            var instance = this;","","            if (instance._canFireCustomEvent(event)) {","                instance.fire('itemOver', {","                    delegateEvent: event,","                    domEvent: event.domEvent","                });","            }","        },","","        /**","         * Fire after the value of the [label](A.Rating.html#attr_label)","         * attribute change.","         *","         * @method _afterSetLabel","         * @param {EventFacade} event","         * @protected","         */","        _afterSetLabel: function() {","            this._syncLabelUI();","        }","    }","});","","A.Rating = Rating;","A.StarRating = Rating;","","","}, '3.0.1', {","    \"requires\": [","        \"aui-component\",","        \"aui-node-base\",","        \"widget-htmlparser\",","        \"widget-uievents\"","    ],","    \"skinnable\": true","});","","}());"]};
  }
  var __cov_1c3ebusOq1WOBfKFUFLgCA = __coverage__['build/aui-rating-base/aui-rating-base.js'];
  __cov_1c3ebusOq1WOBfKFUFLgCA.s['1']++;YUI.add('aui-rating-base',function(A,NAME){__cov_1c3ebusOq1WOBfKFUFLgCA.f['1']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['2']++;var Lang=A.Lang,isBoolean=Lang.isBoolean,isNumber=Lang.isNumber,isString=Lang.isString,ENTER=13,getCN=A.getClassName,CSS_ICON=getCN('glyphicon'),CSS_STAR=getCN('glyphicon','star'),CSS_STAR_EMPTY=getCN('glyphicon','star','empty'),CSS_RATING_LABEL=getCN('rating','label'),TPL_ELEMENT='<a class="{cssClasses}" tabindex="{tabindex}"></a>',TPL_LABEL='<span class="'+CSS_RATING_LABEL+'"></span>';__cov_1c3ebusOq1WOBfKFUFLgCA.s['3']++;var Rating=A.Component.create({NAME:'rating',ATTRS:{disabled:{value:false,validator:isBoolean},canReset:{value:true,validator:isBoolean},cssClasses:{value:{element:[CSS_ICON,CSS_STAR_EMPTY].join(' '),hover:[CSS_ICON,CSS_STAR].join(' '),off:[CSS_ICON,CSS_STAR_EMPTY].join(' '),on:[CSS_ICON,CSS_STAR].join(' ')}},defaultSelected:{value:0,writeOnce:true,validator:isNumber},elements:{validator:A.Lang.isNodeList},hiddenInput:{validator:A.Lang.isNode},inputName:{value:'',validator:isString},label:{value:'',validator:isString},labelNode:{valueFn:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['2']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['4']++;return A.Node.create(TPL_LABEL);},validator:A.Lang.isNode},selectedIndex:{value:-1,validator:isNumber},showTitle:{value:true,validator:isBoolean},size:{value:5,validator:function(v){__cov_1c3ebusOq1WOBfKFUFLgCA.f['3']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['5']++;return(__cov_1c3ebusOq1WOBfKFUFLgCA.b['1'][0]++,isNumber(v))&&(__cov_1c3ebusOq1WOBfKFUFLgCA.b['1'][1]++,v>0);}},title:null,value:null},HTML_PARSER:{elements:function(srcNode){__cov_1c3ebusOq1WOBfKFUFLgCA.f['4']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['6']++;return srcNode.all('a');},label:function(srcNode){__cov_1c3ebusOq1WOBfKFUFLgCA.f['5']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['7']++;var labelNode=srcNode.one('.'+CSS_RATING_LABEL);__cov_1c3ebusOq1WOBfKFUFLgCA.s['8']++;if(labelNode){__cov_1c3ebusOq1WOBfKFUFLgCA.b['2'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['9']++;return labelNode.html();}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['2'][1]++;}},labelNode:'.'+CSS_RATING_LABEL},prototype:{BOUNDING_TEMPLATE:'<span></span>',CONTENT_TEMPLATE:'<span></span>',initializer:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['6']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['10']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['11']++;instance.inputElementsData={};__cov_1c3ebusOq1WOBfKFUFLgCA.s['12']++;instance.after('labelChange',this._afterSetLabel);},renderUI:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['7']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['13']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['14']++;instance._parseInputElements();__cov_1c3ebusOq1WOBfKFUFLgCA.s['15']++;instance._renderLabel();__cov_1c3ebusOq1WOBfKFUFLgCA.s['16']++;instance._renderElements();},bindUI:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['8']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['17']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['18']++;instance._createEvents();__cov_1c3ebusOq1WOBfKFUFLgCA.s['19']++;instance.on({click:instance._handleClickEvent,keypress:instance._handleKeyPressEvent,mouseover:instance._handleMouseOverEvent,mouseout:instance._handleMouseOutEvent});},syncUI:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['9']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['20']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['21']++;instance._syncElements();__cov_1c3ebusOq1WOBfKFUFLgCA.s['22']++;instance._syncLabelUI();},clearSelection:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['10']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['23']++;var instance=this,cssClasses=instance.get('cssClasses');__cov_1c3ebusOq1WOBfKFUFLgCA.s['24']++;instance.get('elements').each(function(node){__cov_1c3ebusOq1WOBfKFUFLgCA.f['11']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['25']++;node.removeClass(cssClasses.on);__cov_1c3ebusOq1WOBfKFUFLgCA.s['26']++;node.removeClass(cssClasses.hover);__cov_1c3ebusOq1WOBfKFUFLgCA.s['27']++;node.addClass(cssClasses.element);});},select:function(index){__cov_1c3ebusOq1WOBfKFUFLgCA.f['12']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['28']++;var instance=this,oldIndex=instance.get('selectedIndex'),canReset=instance.get('canReset');__cov_1c3ebusOq1WOBfKFUFLgCA.s['29']++;if((__cov_1c3ebusOq1WOBfKFUFLgCA.b['4'][0]++,canReset)&&(__cov_1c3ebusOq1WOBfKFUFLgCA.b['4'][1]++,oldIndex===index)){__cov_1c3ebusOq1WOBfKFUFLgCA.b['3'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['30']++;index=-1;}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['3'][1]++;}__cov_1c3ebusOq1WOBfKFUFLgCA.s['31']++;instance.set('selectedIndex',index);__cov_1c3ebusOq1WOBfKFUFLgCA.s['32']++;var selectedIndex=instance.get('selectedIndex'),data=instance._getInputData(selectedIndex),title='title'in data?(__cov_1c3ebusOq1WOBfKFUFLgCA.b['5'][0]++,data.title):(__cov_1c3ebusOq1WOBfKFUFLgCA.b['5'][1]++,''),value='value'in data?(__cov_1c3ebusOq1WOBfKFUFLgCA.b['6'][0]++,data.value):(__cov_1c3ebusOq1WOBfKFUFLgCA.b['6'][1]++,selectedIndex);__cov_1c3ebusOq1WOBfKFUFLgCA.s['33']++;instance.fillTo(selectedIndex);__cov_1c3ebusOq1WOBfKFUFLgCA.s['34']++;instance.set('title',title);__cov_1c3ebusOq1WOBfKFUFLgCA.s['35']++;instance.set('value',value);__cov_1c3ebusOq1WOBfKFUFLgCA.s['36']++;var hiddenInput=instance.get('hiddenInput');__cov_1c3ebusOq1WOBfKFUFLgCA.s['37']++;hiddenInput.setAttribute('title',title);__cov_1c3ebusOq1WOBfKFUFLgCA.s['38']++;hiddenInput.setAttribute('value',value);},fillTo:function(index,className){__cov_1c3ebusOq1WOBfKFUFLgCA.f['13']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['39']++;var instance=this,cssClasses=instance.get('cssClasses');__cov_1c3ebusOq1WOBfKFUFLgCA.s['40']++;instance.clearSelection();__cov_1c3ebusOq1WOBfKFUFLgCA.s['41']++;if(index>=0){__cov_1c3ebusOq1WOBfKFUFLgCA.b['7'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['42']++;instance.get('elements').some(function(node,i){__cov_1c3ebusOq1WOBfKFUFLgCA.f['14']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['43']++;node.addClass((__cov_1c3ebusOq1WOBfKFUFLgCA.b['8'][0]++,className)||(__cov_1c3ebusOq1WOBfKFUFLgCA.b['8'][1]++,cssClasses.on));__cov_1c3ebusOq1WOBfKFUFLgCA.s['44']++;node.removeClass(cssClasses.element);__cov_1c3ebusOq1WOBfKFUFLgCA.s['45']++;return i===Math.round(index);});}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['7'][1]++;}},indexOf:function(elem){__cov_1c3ebusOq1WOBfKFUFLgCA.f['15']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['46']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['47']++;return instance.get('elements').indexOf(elem);},_canFireCustomEvent:function(event){__cov_1c3ebusOq1WOBfKFUFLgCA.f['16']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['48']++;var instance=this,domTarget=event.domEvent.target;__cov_1c3ebusOq1WOBfKFUFLgCA.s['49']++;return(__cov_1c3ebusOq1WOBfKFUFLgCA.b['9'][0]++,!instance.get('disabled'))&&(__cov_1c3ebusOq1WOBfKFUFLgCA.b['9'][1]++,domTarget.test('a'));},_createElements:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['17']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['50']++;var instance=this,cssClasses=instance.get('cssClasses'),disabled,elements=[],size=this.get('size');__cov_1c3ebusOq1WOBfKFUFLgCA.s['51']++;disabled=instance.get('disabled');__cov_1c3ebusOq1WOBfKFUFLgCA.s['52']++;for(var i=0;i<size;i++){__cov_1c3ebusOq1WOBfKFUFLgCA.s['53']++;elements.push(Lang.sub(TPL_ELEMENT,{cssClasses:cssClasses.element,tabindex:disabled?(__cov_1c3ebusOq1WOBfKFUFLgCA.b['10'][0]++,-1):(__cov_1c3ebusOq1WOBfKFUFLgCA.b['10'][1]++,0)}));}__cov_1c3ebusOq1WOBfKFUFLgCA.s['54']++;return A.NodeList.create(elements.join(''));},_createEvents:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['18']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['55']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['56']++;var publish=function(name,fn){__cov_1c3ebusOq1WOBfKFUFLgCA.f['19']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['57']++;instance.publish(name,{defaultFn:fn,queuable:false,emitFacade:true,bubbles:true});};__cov_1c3ebusOq1WOBfKFUFLgCA.s['58']++;publish('itemClick',this._defRatingItemClickFn);__cov_1c3ebusOq1WOBfKFUFLgCA.s['59']++;publish('itemSelect',this._defRatingItemSelectFn);__cov_1c3ebusOq1WOBfKFUFLgCA.s['60']++;publish('itemOver',this._defRatingItemOverFn);__cov_1c3ebusOq1WOBfKFUFLgCA.s['61']++;publish('itemOut',this._defRatingItemOutFn);},_defRatingItemClickFn:function(event){__cov_1c3ebusOq1WOBfKFUFLgCA.f['20']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['62']++;var instance=this,domEvent=event.domEvent;__cov_1c3ebusOq1WOBfKFUFLgCA.s['63']++;instance.fire('itemSelect',{delegateEvent:event,domEvent:domEvent,ratingItem:domEvent.target});},_defRatingItemSelectFn:function(event){__cov_1c3ebusOq1WOBfKFUFLgCA.f['21']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['64']++;var instance=this,domTarget=event.domEvent.target;__cov_1c3ebusOq1WOBfKFUFLgCA.s['65']++;instance.select(instance.indexOf(domTarget));},_defRatingItemOutFn:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['22']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['66']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['67']++;instance.fillTo(instance.get('selectedIndex'));},_defRatingItemOverFn:function(event){__cov_1c3ebusOq1WOBfKFUFLgCA.f['23']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['68']++;var instance=this,cssClasses=instance.get('cssClasses'),index=instance.indexOf(event.domEvent.target);__cov_1c3ebusOq1WOBfKFUFLgCA.s['69']++;instance.fillTo(index,cssClasses.hover);},_handleKeyPressEvent:function(event){__cov_1c3ebusOq1WOBfKFUFLgCA.f['24']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['70']++;var instance=this,domEvent;__cov_1c3ebusOq1WOBfKFUFLgCA.s['71']++;domEvent=event.domEvent;__cov_1c3ebusOq1WOBfKFUFLgCA.s['72']++;if(domEvent.charCode===ENTER){__cov_1c3ebusOq1WOBfKFUFLgCA.b['11'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['73']++;instance._handleClickEvent(event);}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['11'][1]++;}},_parseInputElements:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['25']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['74']++;var instance=this,boundingBox=instance.get('boundingBox'),inputs=boundingBox.all('input'),size=inputs.size(),inputName=instance.get('inputName'),hiddenInput=A.Node.create('<input type="hidden" />');__cov_1c3ebusOq1WOBfKFUFLgCA.s['75']++;if(size>0){__cov_1c3ebusOq1WOBfKFUFLgCA.b['12'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['76']++;inputName=(__cov_1c3ebusOq1WOBfKFUFLgCA.b['13'][0]++,inputName)||(__cov_1c3ebusOq1WOBfKFUFLgCA.b['13'][1]++,inputs.item(0).getAttribute('name'));__cov_1c3ebusOq1WOBfKFUFLgCA.s['77']++;instance.set('size',size);__cov_1c3ebusOq1WOBfKFUFLgCA.s['78']++;var labels=boundingBox.getElementsByTagName('label');__cov_1c3ebusOq1WOBfKFUFLgCA.s['79']++;inputs.each(function(node,index){__cov_1c3ebusOq1WOBfKFUFLgCA.f['26']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['80']++;var id=node.get('id');__cov_1c3ebusOq1WOBfKFUFLgCA.s['81']++;var label='';__cov_1c3ebusOq1WOBfKFUFLgCA.s['82']++;if(id){__cov_1c3ebusOq1WOBfKFUFLgCA.b['14'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['83']++;var labelEl=labels.filter('[for="'+id+'"]');__cov_1c3ebusOq1WOBfKFUFLgCA.s['84']++;if(labelEl.size()){__cov_1c3ebusOq1WOBfKFUFLgCA.b['15'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['85']++;label=labelEl.item(0).html();}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['15'][1]++;}}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['14'][1]++;}__cov_1c3ebusOq1WOBfKFUFLgCA.s['86']++;instance.inputElementsData[index]={content:label,value:(__cov_1c3ebusOq1WOBfKFUFLgCA.b['16'][0]++,node.getAttribute('value'))||(__cov_1c3ebusOq1WOBfKFUFLgCA.b['16'][1]++,index),title:node.getAttribute('title')};});__cov_1c3ebusOq1WOBfKFUFLgCA.s['87']++;labels.remove(true);__cov_1c3ebusOq1WOBfKFUFLgCA.s['88']++;inputs.remove(true);}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['12'][1]++;}__cov_1c3ebusOq1WOBfKFUFLgCA.s['89']++;if(inputName){__cov_1c3ebusOq1WOBfKFUFLgCA.b['17'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['90']++;hiddenInput.setAttribute('name',inputName);__cov_1c3ebusOq1WOBfKFUFLgCA.s['91']++;boundingBox.appendChild(hiddenInput);}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['17'][1]++;}__cov_1c3ebusOq1WOBfKFUFLgCA.s['92']++;instance.set('hiddenInput',hiddenInput);},_renderLabel:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['27']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['93']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['94']++;instance.get('contentBox').setContent(instance.get('labelNode'));},_renderElements:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['28']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['95']++;var instance=this,contentBox=instance.get('contentBox'),elements=instance.get('elements');__cov_1c3ebusOq1WOBfKFUFLgCA.s['96']++;if((__cov_1c3ebusOq1WOBfKFUFLgCA.b['19'][0]++,!elements)||(__cov_1c3ebusOq1WOBfKFUFLgCA.b['19'][1]++,!elements.size())){__cov_1c3ebusOq1WOBfKFUFLgCA.b['18'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['97']++;elements=instance._createElements();__cov_1c3ebusOq1WOBfKFUFLgCA.s['98']++;instance.set('elements',elements);}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['18'][1]++;}__cov_1c3ebusOq1WOBfKFUFLgCA.s['99']++;elements.each(function(element,i){__cov_1c3ebusOq1WOBfKFUFLgCA.f['29']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['100']++;var data=instance._getInputData(i),content=data.content,title=(__cov_1c3ebusOq1WOBfKFUFLgCA.b['20'][0]++,data.title)||(__cov_1c3ebusOq1WOBfKFUFLgCA.b['20'][1]++,instance.get('title'))||(__cov_1c3ebusOq1WOBfKFUFLgCA.b['20'][2]++,content);__cov_1c3ebusOq1WOBfKFUFLgCA.s['101']++;if((__cov_1c3ebusOq1WOBfKFUFLgCA.b['22'][0]++,title)&&(__cov_1c3ebusOq1WOBfKFUFLgCA.b['22'][1]++,instance.get('showTitle'))){__cov_1c3ebusOq1WOBfKFUFLgCA.b['21'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['102']++;element.setAttribute('title',title);}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['21'][1]++;}__cov_1c3ebusOq1WOBfKFUFLgCA.s['103']++;if((__cov_1c3ebusOq1WOBfKFUFLgCA.b['24'][0]++,!element.attr('href'))&&(__cov_1c3ebusOq1WOBfKFUFLgCA.b['24'][1]++,element.get('nodeName').toLowerCase()==='a')){__cov_1c3ebusOq1WOBfKFUFLgCA.b['23'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['104']++;element.setAttribute('onclick','return false;');}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['23'][1]++;}});__cov_1c3ebusOq1WOBfKFUFLgCA.s['105']++;contentBox.append(elements.getDOM());},_syncElements:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['30']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['106']++;var instance=this,selectedIndex=instance.get('defaultSelected')-1;__cov_1c3ebusOq1WOBfKFUFLgCA.s['107']++;instance.set('selectedIndex',selectedIndex);__cov_1c3ebusOq1WOBfKFUFLgCA.s['108']++;instance.select();},_syncLabelUI:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['31']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['109']++;var instance=this,labelText=instance.get('label');__cov_1c3ebusOq1WOBfKFUFLgCA.s['110']++;instance.get('labelNode').html(labelText);},_getInputData:function(index){__cov_1c3ebusOq1WOBfKFUFLgCA.f['32']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['111']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['112']++;return(__cov_1c3ebusOq1WOBfKFUFLgCA.b['25'][0]++,instance.inputElementsData[index])||(__cov_1c3ebusOq1WOBfKFUFLgCA.b['25'][1]++,{});},_handleClickEvent:function(event){__cov_1c3ebusOq1WOBfKFUFLgCA.f['33']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['113']++;var instance=this,domEvent=event.domEvent;__cov_1c3ebusOq1WOBfKFUFLgCA.s['114']++;if(instance._canFireCustomEvent(event)){__cov_1c3ebusOq1WOBfKFUFLgCA.b['26'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['115']++;instance.fire('itemClick',{delegateEvent:event,domEvent:domEvent});}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['26'][1]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['116']++;domEvent.preventDefault();}},_handleMouseOutEvent:function(event){__cov_1c3ebusOq1WOBfKFUFLgCA.f['34']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['117']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['118']++;if(instance._canFireCustomEvent(event)){__cov_1c3ebusOq1WOBfKFUFLgCA.b['27'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['119']++;instance.fire('itemOut',{delegateEvent:event,domEvent:event.domEvent});}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['27'][1]++;}},_handleMouseOverEvent:function(event){__cov_1c3ebusOq1WOBfKFUFLgCA.f['35']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['120']++;var instance=this;__cov_1c3ebusOq1WOBfKFUFLgCA.s['121']++;if(instance._canFireCustomEvent(event)){__cov_1c3ebusOq1WOBfKFUFLgCA.b['28'][0]++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['122']++;instance.fire('itemOver',{delegateEvent:event,domEvent:event.domEvent});}else{__cov_1c3ebusOq1WOBfKFUFLgCA.b['28'][1]++;}},_afterSetLabel:function(){__cov_1c3ebusOq1WOBfKFUFLgCA.f['36']++;__cov_1c3ebusOq1WOBfKFUFLgCA.s['123']++;this._syncLabelUI();}}});__cov_1c3ebusOq1WOBfKFUFLgCA.s['124']++;A.Rating=Rating;__cov_1c3ebusOq1WOBfKFUFLgCA.s['125']++;A.StarRating=Rating;},'3.0.1',{'requires':['aui-component','aui-node-base','widget-htmlparser','widget-uievents'],'skinnable':true});
  