{"version":3,"sources":["polyfills/polyfills.js"],"names":["Array","prototype","move","from","to","splice","offsetFromWindow","element","xPosition","yPosition","offsetLeft","scrollLeft","clientLeft","offsetTop","scrollTop","clientTop","offsetParent","x","y"],"mappings":";;AAAA;AACA;AACAA,KAAK,CAACC,SAAN,CAAgBC,IAAhB,GAAuB,UAAUC,IAAV,EAAgBC,EAAhB,EAAoB;AACvC,OAAKC,MAAL,CAAYD,EAAZ,EAAgB,CAAhB,EAAmB,KAAKC,MAAL,CAAYF,IAAZ,EAAkB,CAAlB,EAAqB,CAArB,CAAnB;AACH,CAFD;AAIA;AACA;;;AACA,SAASG,gBAAT,CAA0BC,OAA1B,EAAmC;AAC/B,MAAIC,SAAS,GAAG,CAAhB;AACA,MAAIC,SAAS,GAAG,CAAhB;;AACA,SAAOF,OAAP,EAAgB;AACZC,IAAAA,SAAS,IAAKD,OAAO,CAACG,UAAR,GAAqBH,OAAO,CAACI,UAA7B,GAA0CJ,OAAO,CAACK,UAAhE;AACAH,IAAAA,SAAS,IAAKF,OAAO,CAACM,SAAR,GAAoBN,OAAO,CAACO,SAA5B,GAAwCP,OAAO,CAACQ,SAA9D;AACAR,IAAAA,OAAO,GAAGA,OAAO,CAACS,YAAlB;AACH;;AAED,SAAO;AAAEC,IAAAA,CAAC,EAAET,SAAL;AAAgBU,IAAAA,CAAC,EAAET;AAAnB,GAAP;AACH","sourcesContent":["/*! From: http://stackoverflow.com/a/7180095 */\r\n/// For moving the indexes of items in an array\r\nArray.prototype.move = function (from, to) {\r\n this.splice(to, 0, this.splice(from, 1)[0]);\r\n};\r\n\r\n/* From: http://stackoverflow.com/a/24829409 */\r\n/// Distance from top of window\r\nfunction offsetFromWindow(element) {\r\n    var xPosition = 0;\r\n    var yPosition = 0;\r\n    while (element) {\r\n        xPosition += (element.offsetLeft - element.scrollLeft + element.clientLeft);\r\n        yPosition += (element.offsetTop - element.scrollTop + element.clientTop);\r\n        element = element.offsetParent;\r\n    }\r\n\r\n    return { x: xPosition, y: yPosition };\r\n}"],"file":"../../polyfills/polyfills.js"}