text: /*
  YUI 3.17.2 (build 9c3c78e)
  Copyright 2014 Yahoo! Inc. All rights reserved.
  Licensed under the BSD License.
  http://yuilibrary.com/license/
  */
  
  if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
  if (!__coverage__['build/sortable/sortable.js']) {
     __coverage__['build/sortable/sortable.js'] = {"path":"build/sortable/sortable.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,"126":0,"127":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,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],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":39}}},"2":{"name":"(anonymous_2)","line":16,"loc":{"start":{"line":16,"column":19},"end":{"line":16,"column":30}}},"3":{"name":"(anonymous_3)","line":43,"loc":{"start":{"line":43,"column":21},"end":{"line":43,"column":32}}},"4":{"name":"(anonymous_4)","line":86,"loc":{"start":{"line":86,"column":17},"end":{"line":86,"column":29}}},"5":{"name":"(anonymous_5)","line":101,"loc":{"start":{"line":101,"column":22},"end":{"line":101,"column":34}}},"6":{"name":"(anonymous_6)","line":116,"loc":{"start":{"line":116,"column":21},"end":{"line":116,"column":33}}},"7":{"name":"(anonymous_7)","line":190,"loc":{"start":{"line":190,"column":22},"end":{"line":190,"column":33}}},"8":{"name":"(anonymous_8)","line":205,"loc":{"start":{"line":205,"column":20},"end":{"line":205,"column":31}}},"9":{"name":"(anonymous_9)","line":221,"loc":{"start":{"line":221,"column":14},"end":{"line":221,"column":36}}},"10":{"name":"(anonymous_10)","line":235,"loc":{"start":{"line":235,"column":14},"end":{"line":235,"column":25}}},"11":{"name":"(anonymous_11)","line":239,"loc":{"start":{"line":239,"column":20},"end":{"line":239,"column":31}}},"12":{"name":"(anonymous_12)","line":257,"loc":{"start":{"line":257,"column":14},"end":{"line":257,"column":34}}},"13":{"name":"(anonymous_13)","line":280,"loc":{"start":{"line":280,"column":20},"end":{"line":280,"column":34}}},"14":{"name":"(anonymous_14)","line":290,"loc":{"start":{"line":290,"column":20},"end":{"line":290,"column":34}}},"15":{"name":"(anonymous_15)","line":300,"loc":{"start":{"line":300,"column":21},"end":{"line":300,"column":35}}},"16":{"name":"(anonymous_16)","line":309,"loc":{"start":{"line":309,"column":21},"end":{"line":309,"column":35}}},"17":{"name":"(anonymous_17)","line":319,"loc":{"start":{"line":319,"column":21},"end":{"line":319,"column":40}}},"18":{"name":"(anonymous_18)","line":323,"loc":{"start":{"line":323,"column":27},"end":{"line":323,"column":43}}},"19":{"name":"(anonymous_19)","line":328,"loc":{"start":{"line":328,"column":60},"end":{"line":328,"column":75}}},"20":{"name":"(anonymous_20)","line":416,"loc":{"start":{"line":416,"column":15},"end":{"line":416,"column":36}}},"21":{"name":"(anonymous_21)","line":431,"loc":{"start":{"line":431,"column":21},"end":{"line":431,"column":36}}},"22":{"name":"(anonymous_22)","line":439,"loc":{"start":{"line":439,"column":49},"end":{"line":439,"column":61}}},"23":{"name":"(anonymous_23)","line":453,"loc":{"start":{"line":453,"column":13},"end":{"line":453,"column":29}}},"24":{"name":"(anonymous_24)","line":466,"loc":{"start":{"line":466,"column":15},"end":{"line":466,"column":31}}},"25":{"name":"(anonymous_25)","line":474,"loc":{"start":{"line":474,"column":49},"end":{"line":474,"column":64}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":527,"column":74}},"2":{"start":{"line":16,"column":4},"end":{"line":27,"column":18}},"3":{"start":{"line":17,"column":8},"end":{"line":17,"column":63}},"4":{"start":{"line":30,"column":4},"end":{"line":480,"column":7}},"5":{"start":{"line":44,"column":12},"end":{"line":53,"column":23}},"6":{"start":{"line":55,"column":12},"end":{"line":57,"column":13}},"7":{"start":{"line":56,"column":16},"end":{"line":56,"column":56}},"8":{"start":{"line":58,"column":12},"end":{"line":58,"column":47}},"9":{"start":{"line":60,"column":12},"end":{"line":60,"column":29}},"10":{"start":{"line":62,"column":12},"end":{"line":65,"column":15}},"11":{"start":{"line":67,"column":12},"end":{"line":71,"column":15}},"12":{"start":{"line":72,"column":12},"end":{"line":72,"column":72}},"13":{"start":{"line":74,"column":12},"end":{"line":79,"column":15}},"14":{"start":{"line":81,"column":12},"end":{"line":81,"column":32}},"15":{"start":{"line":82,"column":12},"end":{"line":82,"column":35}},"16":{"start":{"line":87,"column":12},"end":{"line":91,"column":13}},"17":{"start":{"line":88,"column":16},"end":{"line":88,"column":32}},"18":{"start":{"line":89,"column":19},"end":{"line":91,"column":13}},"19":{"start":{"line":90,"column":16},"end":{"line":90,"column":33}},"20":{"start":{"line":93,"column":12},"end":{"line":93,"column":30}},"21":{"start":{"line":102,"column":12},"end":{"line":103,"column":44}},"22":{"start":{"line":105,"column":12},"end":{"line":108,"column":13}},"23":{"start":{"line":107,"column":16},"end":{"line":107,"column":42}},"24":{"start":{"line":117,"column":12},"end":{"line":119,"column":13}},"25":{"start":{"line":118,"column":16},"end":{"line":118,"column":23}},"26":{"start":{"line":120,"column":12},"end":{"line":122,"column":13}},"27":{"start":{"line":121,"column":16},"end":{"line":121,"column":23}},"28":{"start":{"line":124,"column":12},"end":{"line":126,"column":13}},"29":{"start":{"line":125,"column":16},"end":{"line":125,"column":23}},"30":{"start":{"line":127,"column":12},"end":{"line":128,"column":62}},"31":{"start":{"line":130,"column":12},"end":{"line":132,"column":13}},"32":{"start":{"line":131,"column":16},"end":{"line":131,"column":28}},"33":{"start":{"line":133,"column":12},"end":{"line":135,"column":13}},"34":{"start":{"line":134,"column":16},"end":{"line":134,"column":36}},"35":{"start":{"line":136,"column":12},"end":{"line":179,"column":13}},"36":{"start":{"line":138,"column":20},"end":{"line":138,"column":60}},"37":{"start":{"line":139,"column":20},"end":{"line":139,"column":48}},"38":{"start":{"line":140,"column":20},"end":{"line":144,"column":21}},"39":{"start":{"line":141,"column":24},"end":{"line":141,"column":58}},"40":{"start":{"line":143,"column":24},"end":{"line":143,"column":63}},"41":{"start":{"line":145,"column":20},"end":{"line":145,"column":26}},"42":{"start":{"line":147,"column":20},"end":{"line":147,"column":54}},"43":{"start":{"line":148,"column":20},"end":{"line":148,"column":26}},"44":{"start":{"line":151,"column":20},"end":{"line":151,"column":89}},"45":{"start":{"line":153,"column":20},"end":{"line":155,"column":21}},"46":{"start":{"line":154,"column":24},"end":{"line":154,"column":31}},"47":{"start":{"line":157,"column":20},"end":{"line":157,"column":84}},"48":{"start":{"line":160,"column":20},"end":{"line":177,"column":21}},"49":{"start":{"line":161,"column":24},"end":{"line":161,"column":58}},"50":{"start":{"line":163,"column":24},"end":{"line":175,"column":25}},"51":{"start":{"line":165,"column":28},"end":{"line":165,"column":55}},"52":{"start":{"line":166,"column":28},"end":{"line":166,"column":62}},"53":{"start":{"line":168,"column":28},"end":{"line":168,"column":48}},"54":{"start":{"line":169,"column":28},"end":{"line":169,"column":54}},"55":{"start":{"line":170,"column":28},"end":{"line":170,"column":86}},"56":{"start":{"line":171,"column":28},"end":{"line":174,"column":31}},"57":{"start":{"line":176,"column":24},"end":{"line":176,"column":76}},"58":{"start":{"line":178,"column":20},"end":{"line":178,"column":26}},"59":{"start":{"line":181,"column":12},"end":{"line":181,"column":76}},"60":{"start":{"line":182,"column":12},"end":{"line":182,"column":75}},"61":{"start":{"line":191,"column":12},"end":{"line":192,"column":47}},"62":{"start":{"line":193,"column":12},"end":{"line":195,"column":13}},"63":{"start":{"line":194,"column":16},"end":{"line":194,"column":46}},"64":{"start":{"line":196,"column":12},"end":{"line":196,"column":81}},"65":{"start":{"line":197,"column":12},"end":{"line":197,"column":58}},"66":{"start":{"line":206,"column":12},"end":{"line":206,"column":75}},"67":{"start":{"line":207,"column":12},"end":{"line":207,"column":65}},"68":{"start":{"line":208,"column":12},"end":{"line":211,"column":15}},"69":{"start":{"line":212,"column":12},"end":{"line":212,"column":24}},"70":{"start":{"line":223,"column":12},"end":{"line":227,"column":13}},"71":{"start":{"line":224,"column":16},"end":{"line":224,"column":73}},"72":{"start":{"line":226,"column":16},"end":{"line":226,"column":51}},"73":{"start":{"line":228,"column":12},"end":{"line":228,"column":24}},"74":{"start":{"line":236,"column":12},"end":{"line":236,"column":40}},"75":{"start":{"line":237,"column":12},"end":{"line":237,"column":24}},"76":{"start":{"line":240,"column":12},"end":{"line":240,"column":32}},"77":{"start":{"line":241,"column":12},"end":{"line":241,"column":36}},"78":{"start":{"line":242,"column":12},"end":{"line":242,"column":47}},"79":{"start":{"line":258,"column":12},"end":{"line":261,"column":13}},"80":{"start":{"line":259,"column":16},"end":{"line":259,"column":68}},"81":{"start":{"line":260,"column":16},"end":{"line":260,"column":28}},"82":{"start":{"line":262,"column":12},"end":{"line":264,"column":13}},"83":{"start":{"line":263,"column":16},"end":{"line":263,"column":30}},"84":{"start":{"line":265,"column":12},"end":{"line":265,"column":38}},"85":{"start":{"line":266,"column":12},"end":{"line":266,"column":41}},"86":{"start":{"line":268,"column":12},"end":{"line":270,"column":13}},"87":{"start":{"line":269,"column":16},"end":{"line":269,"column":34}},"88":{"start":{"line":272,"column":12},"end":{"line":272,"column":24}},"89":{"start":{"line":281,"column":12},"end":{"line":281,"column":58}},"90":{"start":{"line":282,"column":12},"end":{"line":282,"column":58}},"91":{"start":{"line":291,"column":12},"end":{"line":291,"column":53}},"92":{"start":{"line":292,"column":12},"end":{"line":292,"column":53}},"93":{"start":{"line":301,"column":12},"end":{"line":301,"column":53}},"94":{"start":{"line":310,"column":12},"end":{"line":310,"column":53}},"95":{"start":{"line":320,"column":12},"end":{"line":320,"column":30}},"96":{"start":{"line":322,"column":12},"end":{"line":326,"column":13}},"97":{"start":{"line":323,"column":16},"end":{"line":325,"column":18}},"98":{"start":{"line":324,"column":20},"end":{"line":324,"column":32}},"99":{"start":{"line":328,"column":12},"end":{"line":330,"column":15}},"100":{"start":{"line":329,"column":16},"end":{"line":329,"column":46}},"101":{"start":{"line":331,"column":12},"end":{"line":331,"column":28}},"102":{"start":{"line":417,"column":12},"end":{"line":417,"column":20}},"103":{"start":{"line":418,"column":12},"end":{"line":422,"column":13}},"104":{"start":{"line":419,"column":16},"end":{"line":419,"column":38}},"105":{"start":{"line":421,"column":16},"end":{"line":421,"column":38}},"106":{"start":{"line":423,"column":12},"end":{"line":423,"column":23}},"107":{"start":{"line":432,"column":12},"end":{"line":433,"column":26}},"108":{"start":{"line":434,"column":12},"end":{"line":434,"column":31}},"109":{"start":{"line":435,"column":12},"end":{"line":435,"column":30}},"110":{"start":{"line":436,"column":12},"end":{"line":438,"column":13}},"111":{"start":{"line":437,"column":16},"end":{"line":437,"column":49}},"112":{"start":{"line":439,"column":12},"end":{"line":443,"column":15}},"113":{"start":{"line":440,"column":16},"end":{"line":442,"column":17}},"114":{"start":{"line":441,"column":20},"end":{"line":441,"column":26}},"115":{"start":{"line":444,"column":12},"end":{"line":444,"column":21}},"116":{"start":{"line":454,"column":12},"end":{"line":456,"column":13}},"117":{"start":{"line":455,"column":16},"end":{"line":455,"column":31}},"118":{"start":{"line":457,"column":12},"end":{"line":457,"column":42}},"119":{"start":{"line":467,"column":12},"end":{"line":469,"column":13}},"120":{"start":{"line":468,"column":16},"end":{"line":468,"column":31}},"121":{"start":{"line":470,"column":12},"end":{"line":473,"column":13}},"122":{"start":{"line":471,"column":16},"end":{"line":471,"column":49}},"123":{"start":{"line":472,"column":16},"end":{"line":472,"column":23}},"124":{"start":{"line":474,"column":12},"end":{"line":478,"column":15}},"125":{"start":{"line":475,"column":16},"end":{"line":477,"column":17}},"126":{"start":{"line":476,"column":20},"end":{"line":476,"column":50}},"127":{"start":{"line":482,"column":4},"end":{"line":482,"column":26}}},"branchMap":{"1":{"line":55,"type":"if","locations":[{"start":{"line":55,"column":12},"end":{"line":55,"column":12}},{"start":{"line":55,"column":12},"end":{"line":55,"column":12}}]},"2":{"line":87,"type":"if","locations":[{"start":{"line":87,"column":12},"end":{"line":87,"column":12}},{"start":{"line":87,"column":12},"end":{"line":87,"column":12}}]},"3":{"line":89,"type":"if","locations":[{"start":{"line":89,"column":19},"end":{"line":89,"column":19}},{"start":{"line":89,"column":19},"end":{"line":89,"column":19}}]},"4":{"line":105,"type":"if","locations":[{"start":{"line":105,"column":12},"end":{"line":105,"column":12}},{"start":{"line":105,"column":12},"end":{"line":105,"column":12}}]},"5":{"line":105,"type":"binary-expr","locations":[{"start":{"line":105,"column":16},"end":{"line":105,"column":47}},{"start":{"line":106,"column":16},"end":{"line":106,"column":62}}]},"6":{"line":117,"type":"if","locations":[{"start":{"line":117,"column":12},"end":{"line":117,"column":12}},{"start":{"line":117,"column":12},"end":{"line":117,"column":12}}]},"7":{"line":120,"type":"if","locations":[{"start":{"line":120,"column":12},"end":{"line":120,"column":12}},{"start":{"line":120,"column":12},"end":{"line":120,"column":12}}]},"8":{"line":124,"type":"if","locations":[{"start":{"line":124,"column":12},"end":{"line":124,"column":12}},{"start":{"line":124,"column":12},"end":{"line":124,"column":12}}]},"9":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":12},"end":{"line":130,"column":12}},{"start":{"line":130,"column":12},"end":{"line":130,"column":12}}]},"10":{"line":133,"type":"if","locations":[{"start":{"line":133,"column":12},"end":{"line":133,"column":12}},{"start":{"line":133,"column":12},"end":{"line":133,"column":12}}]},"11":{"line":133,"type":"binary-expr","locations":[{"start":{"line":133,"column":16},"end":{"line":133,"column":20}},{"start":{"line":133,"column":24},"end":{"line":133,"column":43}}]},"12":{"line":136,"type":"switch","locations":[{"start":{"line":137,"column":16},"end":{"line":145,"column":26}},{"start":{"line":146,"column":16},"end":{"line":148,"column":26}},{"start":{"line":149,"column":16},"end":{"line":149,"column":28}},{"start":{"line":150,"column":16},"end":{"line":178,"column":26}}]},"13":{"line":138,"type":"cond-expr","locations":[{"start":{"line":138,"column":40},"end":{"line":138,"column":48}},{"start":{"line":138,"column":51},"end":{"line":138,"column":58}}]},"14":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":20},"end":{"line":140,"column":20}},{"start":{"line":140,"column":20},"end":{"line":140,"column":20}}]},"15":{"line":153,"type":"if","locations":[{"start":{"line":153,"column":20},"end":{"line":153,"column":20}},{"start":{"line":153,"column":20},"end":{"line":153,"column":20}}]},"16":{"line":160,"type":"if","locations":[{"start":{"line":160,"column":20},"end":{"line":160,"column":20}},{"start":{"line":160,"column":20},"end":{"line":160,"column":20}}]},"17":{"line":163,"type":"if","locations":[{"start":{"line":163,"column":24},"end":{"line":163,"column":24}},{"start":{"line":163,"column":24},"end":{"line":163,"column":24}}]},"18":{"line":193,"type":"if","locations":[{"start":{"line":193,"column":12},"end":{"line":193,"column":12}},{"start":{"line":193,"column":12},"end":{"line":193,"column":12}}]},"19":{"line":193,"type":"binary-expr","locations":[{"start":{"line":193,"column":16},"end":{"line":193,"column":24}},{"start":{"line":193,"column":28},"end":{"line":193,"column":49}}]},"20":{"line":223,"type":"if","locations":[{"start":{"line":223,"column":12},"end":{"line":223,"column":12}},{"start":{"line":223,"column":12},"end":{"line":223,"column":12}}]},"21":{"line":223,"type":"binary-expr","locations":[{"start":{"line":223,"column":16},"end":{"line":223,"column":19}},{"start":{"line":223,"column":23},"end":{"line":223,"column":72}}]},"22":{"line":258,"type":"if","locations":[{"start":{"line":258,"column":12},"end":{"line":258,"column":12}},{"start":{"line":258,"column":12},"end":{"line":258,"column":12}}]},"23":{"line":262,"type":"if","locations":[{"start":{"line":262,"column":12},"end":{"line":262,"column":12}},{"start":{"line":262,"column":12},"end":{"line":262,"column":12}}]},"24":{"line":268,"type":"if","locations":[{"start":{"line":268,"column":12},"end":{"line":268,"column":12}},{"start":{"line":268,"column":12},"end":{"line":268,"column":12}}]},"25":{"line":322,"type":"if","locations":[{"start":{"line":322,"column":12},"end":{"line":322,"column":12}},{"start":{"line":322,"column":12},"end":{"line":322,"column":12}}]},"26":{"line":418,"type":"if","locations":[{"start":{"line":418,"column":12},"end":{"line":418,"column":12}},{"start":{"line":418,"column":12},"end":{"line":418,"column":12}}]},"27":{"line":436,"type":"if","locations":[{"start":{"line":436,"column":12},"end":{"line":436,"column":12}},{"start":{"line":436,"column":12},"end":{"line":436,"column":12}}]},"28":{"line":436,"type":"binary-expr","locations":[{"start":{"line":436,"column":15},"end":{"line":436,"column":17}},{"start":{"line":436,"column":21},"end":{"line":436,"column":46}}]},"29":{"line":440,"type":"if","locations":[{"start":{"line":440,"column":16},"end":{"line":440,"column":16}},{"start":{"line":440,"column":16},"end":{"line":440,"column":16}}]},"30":{"line":454,"type":"if","locations":[{"start":{"line":454,"column":12},"end":{"line":454,"column":12}},{"start":{"line":454,"column":12},"end":{"line":454,"column":12}}]},"31":{"line":467,"type":"if","locations":[{"start":{"line":467,"column":12},"end":{"line":467,"column":12}},{"start":{"line":467,"column":12},"end":{"line":467,"column":12}}]},"32":{"line":470,"type":"if","locations":[{"start":{"line":470,"column":12},"end":{"line":470,"column":12}},{"start":{"line":470,"column":12},"end":{"line":470,"column":12}}]},"33":{"line":470,"type":"binary-expr","locations":[{"start":{"line":470,"column":16},"end":{"line":470,"column":18}},{"start":{"line":470,"column":22},"end":{"line":470,"column":47}}]},"34":{"line":475,"type":"if","locations":[{"start":{"line":475,"column":16},"end":{"line":475,"column":16}},{"start":{"line":475,"column":16},"end":{"line":475,"column":16}}]}},"code":["(function () { YUI.add('sortable', function (Y, NAME) {","","","    /**","     * The class allows you to create a Drag & Drop reordered list.","     * @module sortable","     */","    /**","     * The class allows you to create a Drag & Drop reordered list.","     * @class Sortable","     * @extends Base","     * @constructor","     */","","","    var Sortable = function() {","        Sortable.superclass.constructor.apply(this, arguments);","    },","    CURRENT_NODE = 'currentNode',","    OPACITY_NODE = 'opacityNode',","    CONT = 'container',","    ID = 'id',","    ZINDEX = 'zIndex',","    OPACITY = 'opacity',","    PARENT_NODE = 'parentNode',","    NODES = 'nodes',","    NODE = 'node';","","","    Y.extend(Sortable, Y.Base, {","        /**","        * @property delegate","        * @type DD.Delegate","        * @description A reference to the DD.Delegate instance.","        */","        delegate: null,","        /**","        * @property drop","        * @type DD.Drop","        * @description A reference to the DD.Drop instance","        */","        drop: null,","        initializer: function() {","            var id = 'sortable-' + Y.guid(),","                delConfig = {","                    container: this.get(CONT),","                    nodes: this.get(NODES),","                    target: true,","                    invalid: this.get('invalid'),","                    dragConfig: {","                        groups: [ id ]","                    }","                }, del;","","            if (this.get('handles')) {","                delConfig.handles = this.get('handles');","            }","            del = new Y.DD.Delegate(delConfig);","","            this.set(ID, id);","","            del.dd.plug(Y.Plugin.DDProxy, {","                moveOnEnd: false,","                cloneNode: true","            });","","            this.drop =  new Y.DD.Drop({","                node: this.get(CONT),","                bubbleTarget: del,","                groups: del.dd.get('groups')","            });","            this.drop.on('drop:enter', Y.bind(this._onDropEnter, this));","","            del.on({","                'drag:start': Y.bind(this._onDragStart, this),","                'drag:end': Y.bind(this._onDragEnd, this),","                'drag:over': Y.bind(this._onDragOver, this),","                'drag:drag': Y.bind(this._onDrag, this)","            });","","            this.delegate = del;","            Sortable.reg(this, id);","        },","        _up: null,","        _y: null,","        _onDrag: function(e) {","            if (e.pageY < this._y) {","                this._up = true;","            } else if (e.pageY > this._y) {","                this._up = false;","            }","","            this._y = e.pageY;","        },","        /**","        * @private","        * @method _onDropEnter","        * @param Event e The Event Object","        * @description Handles the DropEnter event to append a new node to a target.","        */","        _onDropEnter: function(e) {","            var dropNode = e.drop.get(NODE),","                dragNode = e.drag.get(NODE);","","            if (!dropNode.test(this.get(NODES)) &&","                !dragNode.get(PARENT_NODE).compareTo(dropNode)) {","                dropNode.append(dragNode);","            }","        },","        /**","        * @private","        * @method _onDragOver","        * @param Event e The Event Object","        * @description Handles the DragOver event that moves the object in the list or to another list.","        */","        _onDragOver: function(e) {","            if (!e.drop.get(NODE).test(this.get(NODES))) {","                return;","            }","            if (e.drag.get(NODE) === e.drop.get(NODE)) {","                return;","            }","            // is drop a child of drag?","            if (e.drag.get(NODE).contains(e.drop.get(NODE))) {","                return;","            }","            var same = false, dir, oldNode, newNode, dropsort, dropNode,","                moveType = this.get('moveType').toLowerCase();","","            if (e.drag.get(NODE).get(PARENT_NODE).contains(e.drop.get(NODE))) {","                same = true;","            }","            if (same && moveType === 'move') {","                moveType = 'insert';","            }","            switch (moveType) {","                case 'insert':","                    dir = ((this._up) ? 'before' : 'after');","                    dropNode = e.drop.get(NODE);","                    if (Y.Sortable._test(dropNode, this.get(CONT))) {","                        dropNode.append(e.drag.get(NODE));","                    } else {","                        dropNode.insert(e.drag.get(NODE), dir);","                    }","                    break;","                case 'swap':","                    Y.DD.DDM.swapNode(e.drag, e.drop);","                    break;","                case 'move':","                case 'copy':","                    dropsort = Y.Sortable.getSortable(e.drop.get(NODE).get(PARENT_NODE));","","                    if (!dropsort) {","                        return;","                    }","","                    Y.DD.DDM.getDrop(e.drag.get(NODE)).addToGroup(dropsort.get(ID));","","                    //Same List","                    if (same) {","                        Y.DD.DDM.swapNode(e.drag, e.drop);","                    } else {","                        if (this.get('moveType') === 'copy') {","                            //New List","                            oldNode = e.drag.get(NODE);","                            newNode = oldNode.cloneNode(true);","","                            newNode.set(ID, '');","                            e.drag.set(NODE, newNode);","                            dropsort.delegate.createDrop(newNode, [dropsort.get(ID)]);","                            oldNode.setStyles({","                                top: '',","                                left: ''","                            });","                        }","                        e.drop.get(NODE).insert(e.drag.get(NODE), 'before');","                    }","                    break;","            }","","            this.fire(moveType, { same: same, drag: e.drag, drop: e.drop });","            this.fire('moved', { same: same, drag: e.drag, drop: e.drop });","        },","        /**","        * @private","        * @method _onDragStart","        * @param Event e The Event Object","        * @description Handles the DragStart event and initializes some settings.","        */","        _onDragStart: function() {","            var del = this.delegate,","                lastNode = del.get('lastNode');","            if (lastNode && lastNode.getDOMNode()) {","                lastNode.setStyle(ZINDEX, '');","            }","            del.get(this.get(OPACITY_NODE)).setStyle(OPACITY, this.get(OPACITY));","            del.get(CURRENT_NODE).setStyle(ZINDEX, '999');","        },","        /**","        * @private","        * @method _onDragEnd","        * @param Event e The Event Object","        * @description Handles the DragEnd event that cleans up the settings in the drag:start event.","        */","        _onDragEnd: function() {","            this.delegate.get(this.get(OPACITY_NODE)).setStyle(OPACITY, 1);","            this.delegate.get(CURRENT_NODE).setStyle(ZINDEX, '');","            this.delegate.get(CURRENT_NODE).setStyles({","                top: '',","                left: ''","            });","            this.sync();","        },","        /**","        * @method plug","        * @param Class cls The class to plug","        * @param Object config The class config","        * @description Passthrough to the DD.Delegate.ddplug method","        * @chainable","        */","        plug: function(cls, config) {","            //I don't like this.. Not at all, need to discuss with the team","            if (cls && cls.NAME.substring(0, 4).toLowerCase() === 'sort') {","                this.constructor.superclass.plug.call(this, cls, config);","            } else {","                this.delegate.dd.plug(cls, config);","            }","            return this;","        },","        /**","        * @method sync","        * @description Passthrough to the DD.Delegate syncTargets method.","        * @chainable","        */","        sync: function() {","            this.delegate.syncTargets();","            return this;","        },","        destructor: function() {","            this.drop.destroy();","            this.delegate.destroy();","            Sortable.unreg(this, this.get(ID));","        },","        /**","        * @method join","        * @param Sortable sel The Sortable list to join with","        * @param String type The type of join to do: full, inner, outer, none. Default: full","        * @description Join this Sortable with another Sortable instance.","        * <ul>","        *   <li>full: Exchange nodes with both lists.</li>","        *   <li>inner: Items can go into this list from the joined list.</li>","        *   <li>outer: Items can go out of the joined list into this list.</li>","        *   <li>none: Removes the join.</li>","        * </ul>","        * @chainable","        */","        join: function(sel, type) {","            if (!(sel instanceof Y.Sortable)) {","                Y.error('Sortable: join needs a Sortable Instance');","                return this;","            }","            if (!type) {","                type = 'full';","            }","            type = type.toLowerCase();","            var method = '_join_' + type;","","            if (this[method]) {","                this[method](sel);","            }","","            return this;","        },","        /**","        * @private","        * @method _join_none","        * @param Sortable sel The Sortable to remove the join from","        * @description Removes the join with the passed Sortable.","        */","        _join_none: function(sel) {","            this.delegate.dd.removeFromGroup(sel.get(ID));","            sel.delegate.dd.removeFromGroup(this.get(ID));","        },","        /**","        * @private","        * @method _join_full","        * @param Sortable sel The Sortable list to join with","        * @description Joins both of the Sortables together.","        */","        _join_full: function(sel) {","            this.delegate.dd.addToGroup(sel.get(ID));","            sel.delegate.dd.addToGroup(this.get(ID));","        },","        /**","        * @private","        * @method _join_outer","        * @param Sortable sel The Sortable list to join with","        * @description Allows this Sortable to accept items from the passed Sortable.","        */","        _join_outer: function(sel) {","            this.delegate.dd.addToGroup(sel.get(ID));","        },","        /**","        * @private","        * @method _join_inner","        * @param Sortable sel The Sortable list to join with","        * @description Allows this Sortable to give items to the passed Sortable.","        */","        _join_inner: function(sel) {","            sel.delegate.dd.addToGroup(this.get(ID));","        },","        /**","        * A custom callback to allow a user to extract some sort of id or any other data","        * from the node to use in the \"ordering list\" and then that data should be returned from the callback.","        * @method getOrdering","        * @param Function callback","        * @return Array","        */","        getOrdering: function(callback) {","            var ordering = [];","","            if (!Y.Lang.isFunction(callback)) {","                callback = function (node) {","                    return node;","                };","            }","","            Y.one(this.get(CONT)).all(this.get(NODES)).each(function(node) {","                ordering.push(callback(node));","            });","            return ordering;","       }","    }, {","        NAME: 'sortable',","        ATTRS: {","            /**","            * @attribute handles","            * @description Drag handles to pass on to the internal DD.Delegate instance.","            * @type Array","            */","            handles: {","                value: false","            },","            /**","            * @attribute container","            * @description A selector query to get the container to listen for mousedown events on. All \"nodes\" should be a child of this container.","            * @type String","            */","            container: {","                value: 'body'","            },","            /**","            * @attribute nodes","            * @description A selector query to get the children of the \"container\" to make draggable elements from.","            * @type String","            */","            nodes: {","                value: '.dd-draggable'","            },","            /**","            * @attribute opacity","            * @description The opacity to change the proxy item to when dragging.","            * @type String","            */","            opacity: {","                value: '.75'","            },","            /**","            * @attribute opacityNode","            * @description The node to set opacity on when dragging (dragNode or currentNode). Default: currentNode.","            * @type String","            */","            opacityNode: {","                value: 'currentNode'","            },","            /**","            * @attribute id","            * @description The id of this Sortable, used to get a reference to this Sortable list from another list.","            * @type String","            */","            id: {","                value: null","            },","            /**","            * @attribute moveType","            * @description How should an item move to another list: insert, swap, move, copy. Default: insert","            * @type String","            */","            moveType: {","                value: 'insert'","            },","            /**","            * @attribute invalid","            * @description A selector string to test if a list item is invalid and not sortable","            * @type String","            */","            invalid: {","                value: ''","            }","        },","        /**","        * @static","        * @property _sortables","        * @private","        * @type Object","        * @description Hash map of all Sortables on the page.","        */","        _sortables: {},","        /**","        * @static","        * @method _test","        * @param {Node} node The node instance to test.","        * @param {String|Node} test The node instance or selector string to test against.","        * @description Test a Node or a selector for the container","        */","        _test: function(node, test) {","            var ret;","            if (test instanceof Y.Node) {","                ret = (test === node);","            } else {","                ret = node.test(test);","            }","            return ret;","        },","        /**","        * @static","        * @method getSortable","        * @param {String|Node} node The node instance or selector string to use to find a Sortable instance.","        * @description Get a Sortable instance back from a node reference or a selector string.","        */","        getSortable: function(node) {","            var s = null,","                id = null;","            node = Y.one(node);","            id = node.get(ID);","            if(id && Y.Sortable._sortables[id]) {","                return Y.Sortable._sortables[id];","            }","            Y.Object.each(Y.Sortable._sortables, function(v) {","                if (Y.Sortable._test(node, v.get(CONT))) {","                    s = v;","                }","            });","            return s;","        },","        /**","        * @static","        * @method reg","        * @param Sortable s A Sortable instance.","        * @param String id (optional) The id of the sortable instance.","        * @description Register a Sortable instance with the singleton to allow lookups later.","        */","        reg: function(s, id) {","            if (!id) {","                id = s.get(ID);","            }","            Y.Sortable._sortables[id] = s;","        },","        /**","        * @static","        * @method unreg","        * @param Sortable s A Sortable instance.","        * @param String id (optional) The id of the sortable instance.","        * @description Unregister a Sortable instance with the singleton.","        */","        unreg: function(s, id) {","            if (!id) {","                id = s.get(ID);","            }","            if (id && Y.Sortable._sortables[id]) {","                delete Y.Sortable._sortables[id];","                return;","            }","            Y.Object.each(Y.Sortable._sortables, function(v, k) {","                if (v === s) {","                    delete Sortable._sortables[k];","                }","            });","        }","    });","","    Y.Sortable = Sortable;","","    /**","    * @event copy","    * @description A Sortable node was moved with a copy.","    * @param {EventFacade} event An Event Facade object","    * @param {Boolean} event.same Moved to the same list.","    * @param {DD.Drag} event.drag The drag instance.","    * @param {DD.Drop} event.drop The drop instance.","    */","    /**","    * @event move","    * @description A Sortable node was moved with a move.","    * @param {EventFacade} event An Event Facade object with the following specific property added:","    * @param {Boolean} event.same Moved to the same list.","    * @param {DD.Drag} event.drag The drag instance.","    * @param {DD.Drop} event.drop The drop instance.","    */","    /**","    * @event insert","    * @description A Sortable node was moved with an insert.","    * @param {EventFacade} event An Event Facade object with the following specific property added:","    * @param {Boolean} event.same Moved to the same list.","    * @param {DD.Drag} event.drag The drag instance.","    * @param {DD.Drop} event.drop The drop instance.","    */","    /**","    * @event swap","    * @description A Sortable node was moved with a swap.","    * @param {EventFacade} event An Event Facade object with the following specific property added:","    * @param {Boolean} event.same Moved to the same list.","    * @param {DD.Drag} event.drag The drag instance.","    * @param {DD.Drop} event.drop The drop instance.","    */","    /**","    * @event moved","    * @description A Sortable node was moved.","    * @param {EventFacade} event An Event Facade object with the following specific property added:","    * @param {Boolean} event.same Moved to the same list.","    * @param {DD.Drag} event.drag The drag instance.","    * @param {DD.Drop} event.drop The drop instance.","    */","","","","}, '3.17.2', {\"requires\": [\"dd-delegate\", \"dd-drop-plugin\", \"dd-proxy\"]});","","}());"]};
  }
  var __cov_cWknOFtrFZo1Tv0J0Rh61g = __coverage__['build/sortable/sortable.js'];
  __cov_cWknOFtrFZo1Tv0J0Rh61g.s['1']++;YUI.add('sortable',function(Y,NAME){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['1']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['2']++;var Sortable=function(){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['2']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['3']++;Sortable.superclass.constructor.apply(this,arguments);},CURRENT_NODE='currentNode',OPACITY_NODE='opacityNode',CONT='container',ID='id',ZINDEX='zIndex',OPACITY='opacity',PARENT_NODE='parentNode',NODES='nodes',NODE='node';__cov_cWknOFtrFZo1Tv0J0Rh61g.s['4']++;Y.extend(Sortable,Y.Base,{delegate:null,drop:null,initializer:function(){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['3']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['5']++;var id='sortable-'+Y.guid(),delConfig={container:this.get(CONT),nodes:this.get(NODES),target:true,invalid:this.get('invalid'),dragConfig:{groups:[id]}},del;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['6']++;if(this.get('handles')){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['1'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['7']++;delConfig.handles=this.get('handles');}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['1'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['8']++;del=new Y.DD.Delegate(delConfig);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['9']++;this.set(ID,id);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['10']++;del.dd.plug(Y.Plugin.DDProxy,{moveOnEnd:false,cloneNode:true});__cov_cWknOFtrFZo1Tv0J0Rh61g.s['11']++;this.drop=new Y.DD.Drop({node:this.get(CONT),bubbleTarget:del,groups:del.dd.get('groups')});__cov_cWknOFtrFZo1Tv0J0Rh61g.s['12']++;this.drop.on('drop:enter',Y.bind(this._onDropEnter,this));__cov_cWknOFtrFZo1Tv0J0Rh61g.s['13']++;del.on({'drag:start':Y.bind(this._onDragStart,this),'drag:end':Y.bind(this._onDragEnd,this),'drag:over':Y.bind(this._onDragOver,this),'drag:drag':Y.bind(this._onDrag,this)});__cov_cWknOFtrFZo1Tv0J0Rh61g.s['14']++;this.delegate=del;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['15']++;Sortable.reg(this,id);},_up:null,_y:null,_onDrag:function(e){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['4']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['16']++;if(e.pageY<this._y){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['2'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['17']++;this._up=true;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['2'][1]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['18']++;if(e.pageY>this._y){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['3'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['19']++;this._up=false;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['3'][1]++;}}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['20']++;this._y=e.pageY;},_onDropEnter:function(e){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['5']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['21']++;var dropNode=e.drop.get(NODE),dragNode=e.drag.get(NODE);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['22']++;if((__cov_cWknOFtrFZo1Tv0J0Rh61g.b['5'][0]++,!dropNode.test(this.get(NODES)))&&(__cov_cWknOFtrFZo1Tv0J0Rh61g.b['5'][1]++,!dragNode.get(PARENT_NODE).compareTo(dropNode))){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['4'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['23']++;dropNode.append(dragNode);}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['4'][1]++;}},_onDragOver:function(e){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['6']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['24']++;if(!e.drop.get(NODE).test(this.get(NODES))){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['6'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['25']++;return;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['6'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['26']++;if(e.drag.get(NODE)===e.drop.get(NODE)){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['7'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['27']++;return;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['7'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['28']++;if(e.drag.get(NODE).contains(e.drop.get(NODE))){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['8'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['29']++;return;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['8'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['30']++;var same=false,dir,oldNode,newNode,dropsort,dropNode,moveType=this.get('moveType').toLowerCase();__cov_cWknOFtrFZo1Tv0J0Rh61g.s['31']++;if(e.drag.get(NODE).get(PARENT_NODE).contains(e.drop.get(NODE))){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['9'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['32']++;same=true;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['9'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['33']++;if((__cov_cWknOFtrFZo1Tv0J0Rh61g.b['11'][0]++,same)&&(__cov_cWknOFtrFZo1Tv0J0Rh61g.b['11'][1]++,moveType==='move')){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['10'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['34']++;moveType='insert';}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['10'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['35']++;switch(moveType){case'insert':__cov_cWknOFtrFZo1Tv0J0Rh61g.b['12'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['36']++;dir=this._up?(__cov_cWknOFtrFZo1Tv0J0Rh61g.b['13'][0]++,'before'):(__cov_cWknOFtrFZo1Tv0J0Rh61g.b['13'][1]++,'after');__cov_cWknOFtrFZo1Tv0J0Rh61g.s['37']++;dropNode=e.drop.get(NODE);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['38']++;if(Y.Sortable._test(dropNode,this.get(CONT))){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['14'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['39']++;dropNode.append(e.drag.get(NODE));}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['14'][1]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['40']++;dropNode.insert(e.drag.get(NODE),dir);}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['41']++;break;case'swap':__cov_cWknOFtrFZo1Tv0J0Rh61g.b['12'][1]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['42']++;Y.DD.DDM.swapNode(e.drag,e.drop);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['43']++;break;case'move':__cov_cWknOFtrFZo1Tv0J0Rh61g.b['12'][2]++;case'copy':__cov_cWknOFtrFZo1Tv0J0Rh61g.b['12'][3]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['44']++;dropsort=Y.Sortable.getSortable(e.drop.get(NODE).get(PARENT_NODE));__cov_cWknOFtrFZo1Tv0J0Rh61g.s['45']++;if(!dropsort){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['15'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['46']++;return;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['15'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['47']++;Y.DD.DDM.getDrop(e.drag.get(NODE)).addToGroup(dropsort.get(ID));__cov_cWknOFtrFZo1Tv0J0Rh61g.s['48']++;if(same){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['16'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['49']++;Y.DD.DDM.swapNode(e.drag,e.drop);}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['16'][1]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['50']++;if(this.get('moveType')==='copy'){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['17'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['51']++;oldNode=e.drag.get(NODE);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['52']++;newNode=oldNode.cloneNode(true);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['53']++;newNode.set(ID,'');__cov_cWknOFtrFZo1Tv0J0Rh61g.s['54']++;e.drag.set(NODE,newNode);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['55']++;dropsort.delegate.createDrop(newNode,[dropsort.get(ID)]);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['56']++;oldNode.setStyles({top:'',left:''});}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['17'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['57']++;e.drop.get(NODE).insert(e.drag.get(NODE),'before');}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['58']++;break;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['59']++;this.fire(moveType,{same:same,drag:e.drag,drop:e.drop});__cov_cWknOFtrFZo1Tv0J0Rh61g.s['60']++;this.fire('moved',{same:same,drag:e.drag,drop:e.drop});},_onDragStart:function(){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['7']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['61']++;var del=this.delegate,lastNode=del.get('lastNode');__cov_cWknOFtrFZo1Tv0J0Rh61g.s['62']++;if((__cov_cWknOFtrFZo1Tv0J0Rh61g.b['19'][0]++,lastNode)&&(__cov_cWknOFtrFZo1Tv0J0Rh61g.b['19'][1]++,lastNode.getDOMNode())){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['18'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['63']++;lastNode.setStyle(ZINDEX,'');}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['18'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['64']++;del.get(this.get(OPACITY_NODE)).setStyle(OPACITY,this.get(OPACITY));__cov_cWknOFtrFZo1Tv0J0Rh61g.s['65']++;del.get(CURRENT_NODE).setStyle(ZINDEX,'999');},_onDragEnd:function(){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['8']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['66']++;this.delegate.get(this.get(OPACITY_NODE)).setStyle(OPACITY,1);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['67']++;this.delegate.get(CURRENT_NODE).setStyle(ZINDEX,'');__cov_cWknOFtrFZo1Tv0J0Rh61g.s['68']++;this.delegate.get(CURRENT_NODE).setStyles({top:'',left:''});__cov_cWknOFtrFZo1Tv0J0Rh61g.s['69']++;this.sync();},plug:function(cls,config){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['9']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['70']++;if((__cov_cWknOFtrFZo1Tv0J0Rh61g.b['21'][0]++,cls)&&(__cov_cWknOFtrFZo1Tv0J0Rh61g.b['21'][1]++,cls.NAME.substring(0,4).toLowerCase()==='sort')){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['20'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['71']++;this.constructor.superclass.plug.call(this,cls,config);}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['20'][1]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['72']++;this.delegate.dd.plug(cls,config);}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['73']++;return this;},sync:function(){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['10']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['74']++;this.delegate.syncTargets();__cov_cWknOFtrFZo1Tv0J0Rh61g.s['75']++;return this;},destructor:function(){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['11']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['76']++;this.drop.destroy();__cov_cWknOFtrFZo1Tv0J0Rh61g.s['77']++;this.delegate.destroy();__cov_cWknOFtrFZo1Tv0J0Rh61g.s['78']++;Sortable.unreg(this,this.get(ID));},join:function(sel,type){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['12']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['79']++;if(!(sel instanceof Y.Sortable)){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['22'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['80']++;Y.error('Sortable: join needs a Sortable Instance');__cov_cWknOFtrFZo1Tv0J0Rh61g.s['81']++;return this;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['22'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['82']++;if(!type){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['23'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['83']++;type='full';}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['23'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['84']++;type=type.toLowerCase();__cov_cWknOFtrFZo1Tv0J0Rh61g.s['85']++;var method='_join_'+type;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['86']++;if(this[method]){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['24'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['87']++;this[method](sel);}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['24'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['88']++;return this;},_join_none:function(sel){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['13']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['89']++;this.delegate.dd.removeFromGroup(sel.get(ID));__cov_cWknOFtrFZo1Tv0J0Rh61g.s['90']++;sel.delegate.dd.removeFromGroup(this.get(ID));},_join_full:function(sel){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['14']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['91']++;this.delegate.dd.addToGroup(sel.get(ID));__cov_cWknOFtrFZo1Tv0J0Rh61g.s['92']++;sel.delegate.dd.addToGroup(this.get(ID));},_join_outer:function(sel){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['15']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['93']++;this.delegate.dd.addToGroup(sel.get(ID));},_join_inner:function(sel){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['16']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['94']++;sel.delegate.dd.addToGroup(this.get(ID));},getOrdering:function(callback){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['17']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['95']++;var ordering=[];__cov_cWknOFtrFZo1Tv0J0Rh61g.s['96']++;if(!Y.Lang.isFunction(callback)){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['25'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['97']++;callback=function(node){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['18']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['98']++;return node;};}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['25'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['99']++;Y.one(this.get(CONT)).all(this.get(NODES)).each(function(node){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['19']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['100']++;ordering.push(callback(node));});__cov_cWknOFtrFZo1Tv0J0Rh61g.s['101']++;return ordering;}},{NAME:'sortable',ATTRS:{handles:{value:false},container:{value:'body'},nodes:{value:'.dd-draggable'},opacity:{value:'.75'},opacityNode:{value:'currentNode'},id:{value:null},moveType:{value:'insert'},invalid:{value:''}},_sortables:{},_test:function(node,test){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['20']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['102']++;var ret;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['103']++;if(test instanceof Y.Node){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['26'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['104']++;ret=test===node;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['26'][1]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['105']++;ret=node.test(test);}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['106']++;return ret;},getSortable:function(node){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['21']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['107']++;var s=null,id=null;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['108']++;node=Y.one(node);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['109']++;id=node.get(ID);__cov_cWknOFtrFZo1Tv0J0Rh61g.s['110']++;if((__cov_cWknOFtrFZo1Tv0J0Rh61g.b['28'][0]++,id)&&(__cov_cWknOFtrFZo1Tv0J0Rh61g.b['28'][1]++,Y.Sortable._sortables[id])){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['27'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['111']++;return Y.Sortable._sortables[id];}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['27'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['112']++;Y.Object.each(Y.Sortable._sortables,function(v){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['22']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['113']++;if(Y.Sortable._test(node,v.get(CONT))){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['29'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['114']++;s=v;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['29'][1]++;}});__cov_cWknOFtrFZo1Tv0J0Rh61g.s['115']++;return s;},reg:function(s,id){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['23']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['116']++;if(!id){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['30'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['117']++;id=s.get(ID);}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['30'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['118']++;Y.Sortable._sortables[id]=s;},unreg:function(s,id){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['24']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['119']++;if(!id){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['31'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['120']++;id=s.get(ID);}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['31'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['121']++;if((__cov_cWknOFtrFZo1Tv0J0Rh61g.b['33'][0]++,id)&&(__cov_cWknOFtrFZo1Tv0J0Rh61g.b['33'][1]++,Y.Sortable._sortables[id])){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['32'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['122']++;delete Y.Sortable._sortables[id];__cov_cWknOFtrFZo1Tv0J0Rh61g.s['123']++;return;}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['32'][1]++;}__cov_cWknOFtrFZo1Tv0J0Rh61g.s['124']++;Y.Object.each(Y.Sortable._sortables,function(v,k){__cov_cWknOFtrFZo1Tv0J0Rh61g.f['25']++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['125']++;if(v===s){__cov_cWknOFtrFZo1Tv0J0Rh61g.b['34'][0]++;__cov_cWknOFtrFZo1Tv0J0Rh61g.s['126']++;delete Sortable._sortables[k];}else{__cov_cWknOFtrFZo1Tv0J0Rh61g.b['34'][1]++;}});}});__cov_cWknOFtrFZo1Tv0J0Rh61g.s['127']++;Y.Sortable=Sortable;},'3.17.2',{'requires':['dd-delegate','dd-drop-plugin','dd-proxy']});
  